Skip to content

nisemoe/riru_unity_example

 
 

Repository files navigation

Riru - Template

Riru module template.

Build

  1. Replace module info in module/build.gradle (all lines end with // FIXME replace with yours)
  2. Write you codes
  3. Run gradle task :module:assembleRelease task from Android Studio or command line, zip will be saved in out.

Notes

  • DO NOT overwrite android.os.SystemProperties#native_set in core, or your data may be wiped (Detail info) (If you really need to hook this, remember to clear exception)
  • DO NO print log (__android_log_print) in nativeForkAndSpecialize(Pre/Post) nativeForkSystemServer(Pre/Post) when in zygote process, or it may cause zygote not work (magic not confirmed, Detail info)
  • Add -ffixed-x18 to both compiler and linker parameter, or it will cause problems on Android Q (see template)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.9%
  • C 10.1%
  • Other 1.0%