8000 GitHub - DNights/AndroidCheat
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DNights/AndroidCheat

 
 

Repository files navigation

Release

AndroidCheat

Setup

Add the JitPack repository in your build.gradle (top level module):

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

And add next dependencies in the build.gradle of the module:

dependencies {
    implementation 'com.github.13mile:androidcheat:0.1'
}

Application class onCreate() in word:

class App:Application() {
          override fun onCreate() {
          super.onCreate()

          Cheat.register<MainActivity, CheatActivity>(buildDate,buildType,versionName)
          //{MainActivity} your initialize activity 
          // MainActivity have Intent filter (action.MAIN) And you have to specify (category.LAUNCHER).
          
          //{CheatActivity} your cheating activity.
          //{CheatActivity} inherits CheatBaseActivity.
          
          //buildDate = System.currentTimeMillis()
          //buildType = BuildConfig.BUILD_TYPE
          //versionName = BuildConfig.VERSION_NAME
          }
}

CheatAcitivity Setting and UseCase:

class CheatActivity : CheatBaseActivity(){
     override fun initializeMenus() {
         rightMenu.addButton("hello cheat world"){
             //Do Somting
         }
         
         bottomMenu.addButton("hello bottom menu"){
             //Do Somting
         }
         
         leftMenu.addButton("hello left menu"){
             //Do Somting
         }
     }
 }    

Manifest setting:

    <uses-permission
            android:name="android.permission.WRITE_EXTERNAL_STORAGE"
            tools:remove="android:maxSdkVersion"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 

getPermission :

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Cheat.getPermission(this)
    }

    override fun onResume() {
        super.onResume()
        Cheat.showDebugInfoView(this)
    }
}

floating Cheat View :

device-2019-07-09-173805

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 98.3%
  • Java 1.7%
0