-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suggestion: make patches for android 6+ check if FAKE_PACKAGE_SIGNATURE declared #24
Comments
hey, i'll look into this when i can but i can tell you it's very likely it's a permission issue and the patcher code is ok. |
Thanks I faced this long time ago, I tried even place FAKE_PACKAGE_SIGNATURE in framework-res.apk of patched rom and everytime I see this. This is lineageOS 14.1 Same thing when placing FAKE_PACKAGE_SIGNATURE in framerork-res |
I would also like to see per app based granting permissions. Otherwise everything work just fine on my phone. EDIT: |
I've modified the patches to make it more similar to MicroG's approach: It won't work in Android 4.0 and below, but the MicroG patches are for >=4.4 anyway. You also need to set the permission's The effect is that signature spoofing permission works similar to MicroG source code patch: signature spoofing is allowed only if the permission is explicitly granted by the user. Tested using NanoDroid patcher on LineageOS 17.1 ( |
Hi @Lanchon
For first sorry for bad english
Suggestion:
Modify and improve patches for android 6+ (if it is possible) to make them check if
android.permission.FAKE_PACKAGE_SIGNATURE
declared in ROM then behave accordingly to system features.I made small fake app for @Nanolx NanoDroid patcher that add info about signatire spoofing and declares FAKE_PACKAGE_SIGNATURE permission.
That is what I'm talking about https://gitlab.com/Nanolx/NanoDroid/issues/53
So, if we change
android:protectionLevel
in AndroidManifest.xml fromnormal
todangerous
it became possible to ask, grant, deny and manage this permission, but patched system ignores this and grant this permission by default to all apps. (Anyway, we can still see ask permission dialog for this permission if protectionLevel isdangerous
)It would be great if patched system will check if fake pachage signature permission is allready declared in system (and managable) and grant this permission according to settings to each app like other
dangerous
permissions and grant by default to all if not declared or declared asnormal
and so on.If it possible it will be FULL signsture spoofing support patch with managing :)
Thanks
The text was updated successfully, but these errors were encountered: