While looking around at the decompiled SecSettings2.apk, I noticed that all of the App Ops (application permissions) stuff was still present. So, I decided to look for a way to enable the Settings menu option for Application Permissions.
The xml files all seemed to have the entries required to display the option, but the smali code was preventing it.
Note that there are apps in the store that will give you this feature, but this method doesn't require an additional app and it uses the built-in settings menus.
I have not tested every permission, but I did disabled "location" for several apps and that worked perfectly.
This is an easy mod if you know how to decompile/recompile.
Disclaimer: This is intended mainly for rom devs to use, but if you like making your own mods, then feel free to give it a try. I take no responsibility for any modifications you make to your device. Always ensure that you have the required files to restore if something goes wrong.

The xml files all seemed to have the entries required to display the option, but the smali code was preventing it.
Note that there are apps in the store that will give you this feature, but this method doesn't require an additional app and it uses the built-in settings menus.
I have not tested every permission, but I did disabled "location" for several apps and that worked perfectly.
This is an easy mod if you know how to decompile/recompile.
- Decompile the deodexed SecSettings2.apk.
- In the smali folder, navigate to com\android\settings\LockscreenMenuSettings.smali
- Do a search for the following line:
Code:
iget-object v14, v0, Lcom/android/settings/LockscreenMenuSettings;->mAppOpsSettings:Landroid/preference/Preference; - Just after the first instance of that code, you will see:
Code:
if-eqz v14, :cond_d - Change it to:
Code:
if-nez v14, :cond_d - Save and recompile.
- You will find the "Application Permissions" menu under the "Lock screen and Security" settings menu.
Disclaimer: This is intended mainly for rom devs to use, but if you like making your own mods, then feel free to give it a try. I take no responsibility for any modifications you make to your device. Always ensure that you have the required files to restore if something goes wrong.

Aucun commentaire:
Enregistrer un commentaire