hdrfix: Finalize script
# How this works # 0) Wait for boot complete and surfaceflinger crash (on .rc script) # 1) Read logcat for isHDRLayer # 2) Find isHDRLayer offset # 3) Find first "cbz" offset # 4) Patch it to "cbnz" and save to /data/local/tmp/ # 5) Stop surfaceflinger # 6) Patch lib (if system mounts as rw, lib patches directly but if not, patched lib bind mounts in every boot) # 7) Start surfaceflinger (gsed: gnu sed taken from https://github.com/android-ide/ndk-arm-prebuilt ) Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
Loading
Please register or sign in to comment