Code Monkey home page Code Monkey logo

mod-menu-without-overlay-permission-demo's Introduction

Introduction

This is a concept of floating mod menu without overlay permission. This menu will help you get around some basic anti-cheat. It will only work if the menu has been called from Activity, not Application context. Otherwise you would get an error java.lang.ClassCastException: ____ cannot be cast to android.app.Activity

Sorry to disappoint you, but this is not a full menu project, just like a demo project and I have not implemented a fallback yet. You could try implement yourself, and make it ask for overlay permission and run service, if it fails. Don't cry if I don't want to spoonfeed

Thanks to DarkSide for his idea and sent me his project, but I have improved the project quite a bit

Preview:

How to add menu

For those who knew how to add menu to the game, it's the same way as the regular LGL menu, but without adding overlay permission and services

Decompile APK, both game and menu app

Copy menu smali file to the game. Doesn't matter what classes folder you are copying on

Find main activity from AndroidManifest.xml and open the main smali file

Now, this is important. Pay attention to the class name on the first line. Is it an activity? or is it an application?

We can easly determite that this is an activity

But what about this? It's an application context. Menu will not work with it

But if you are unsure, just give it a try. Otherwise, find another smali that has OnCreate method

And add menu call below OnCreate method:

invoke-static {p0}, Lcom/mod/Main;->Start(Landroid/content/Context;)V

Compile

That is simple

If you didn't know my mod menu project, please check this out: https://github.com/LGLTeam/Android-Mod-Menu/

mod-menu-without-overlay-permission-demo's People

Contributors

lglteam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.