j-hc / FlagSecurePatcher

Magisk module to patch service.jar on device to disable secure lock and screenshot listeners
Apache License 2.0
107 stars 6 forks source link

Error installing on android 15 #11

Open TheNeutrinoRaged opened 1 month ago

TheNeutrinoRaged commented 1 month ago

Hi I'm using android 15 beta on my pixel 8a and I get he following error when trying to install the module

I have KernelSU installed in a private space, idk if that makes any difference

KernelSU_install_log_2024-08-10-15-24-07.log

If you need anything else let me know

Thanks

TheNeutrinoRaged commented 3 weeks ago

More info, my patched classes3.dex inside services.jar is v41 dex file (which may have different header size?)

If I change line 48 in customize.sh to specify api level 34 I get a v40 dex which works fine

if ! OP=$(paccer "$DEX" "$DEX" "$TARGET_JAR_NAME" 34 2>&1); then

(from here https://github.com/google/smali/blob/main/dexlib2/src/main/java/com/android/tools/smali/dexlib2/VersionMap.java)

Thanks for the module!

j-hc commented 3 weeks ago

can you run this in termux and upload the zip: pkg install zip && cd /system/framework/ && su -c $(command -v zip) -r9 /sdcard/fw.zip .

TheNeutrinoRaged commented 3 weeks ago

I disabled the module and ran the command, here you go https://drive.google.com/file/d/1MHJ53giGQd_jJkD1wGbRDdmZcvAFznKt/view?usp=sharing

(I also have a zip with the module enabled if you need it)

j-hc commented 3 weeks ago

I disabled the module and ran the command, here you go https://drive.google.com/file/d/1MHJ53giGQd_jJkD1wGbRDdmZcvAFznKt/view?usp=sharing

(I also have a zip with the module enabled if you need it)

drive link is not public

TheNeutrinoRaged commented 3 weeks ago

Sorry, just updated it, hopefully it works now