buihien224 / Android-14-Remove-APK-Protection

This Patch make Android 14 allow install modded system apk
40 stars 166 forks source link

Not working on Android 14 with OneUI6.1. #26

Open soytony opened 3 months ago

soytony commented 3 months ago

Modding 'getMinimumSigantureSchemeVersionForTargetSdk' seems not enough for Android 14. Modded system apks failed to pass signature scheme v3 verification according to log.

buihien224 commented 3 months ago

try new commit

soytony commented 3 months ago

Still not working. The modded apks are rejectecd after wiping userdata. I guess there must be some forced signature verification on first boot.

buihien224 commented 3 months ago

send me logcat

soytony commented 3 months ago

The system app I modded is SystemUI, and after I wiped user data it is rejected by the system, as the status bar is gone. Now I managed to finish the setupwizard and get into settings, but was unable to enable ADB. Maybe the ADB switch has to be triggered thru SystemUI or something.

soytony commented 3 months ago

Thus I cannot provide the log now.

soytony commented 3 months ago

False alarm! 😂 I turned out to be the issue of the tool I mod the app. The tool allows me to mod the files inside the apk in place, but it seems to give out an invalid zip file for the A14 system. I manually repacked the apk in non-compressed mode and zipaligned it, it worked all fine! Mocking the ret value of 'getMinimumSignatureSchemeVersionForTargetSdk' is enough to make the modded system apk work!