Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.08 KB

README_RIRU.md

File metadata and controls

19 lines (14 loc) · 1.08 KB

Riru - Template

Riru module template.

Build

  1. Rename module.example.gradle to module.gradle
  2. Replace module info in module.gradle (all lines end with // FIXME replace with yours)
  3. Write you codes
  4. 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)