-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Rebuild APKs #6
Comments
I would love that myself. But I'll probably have decompile Lucky Patcher to figure it out. I know how to find classes inside classes.dex and modify them but that's all I know as of today. I've no idea how odex works and I have yet to figure out how to convert odex to dex without root. |
On second thought, |
Are you sure permissions like |
Always thought it was impossible, but if AppOpsX does it and it works then that's great |
It seems most methods that are used to modify permissions are restricted in the latest APIs. There are some methods to bypass this restriction but I'm not sure if it worth it. My three days of effort ends here, I think. Regarding #2, I will only add a switch next to permissions that can be revoked using the Modifying/rebuilding apk on the fly seem to be the only viable solution for newer versions of Android. But I've no idea how to get started yet. EDIT: Accessing certain methods now requires |
Related wiki article: How to control application components without root |
AppOps-related discussion is moved to #17. |
I've finally decided to add support for app manifest editing, hopefully in v2.6. But I'm not sure how the F-Droid repo owners will react to that. |
Might be outdated now, but a Magisk module could be used to make AppManager a privileged system app. I could quickly spin such a module up and AM would just DL and install the zip if the user needed such functionality. |
Current method of setting app ops is a bit slow but works. So, I won't be working on this any time soon. |
Might come in handy: |
Closing in favour of #138 (this thread contains too many off-topic comments). |
While I believe that #2, #3 and #4 are in line with this project's direction, this issue might not be.
An interesting (and hard and time consuming to implement) feature I couldn't find in any FOSS app so far is APK rebuilding.
By that I mean disassembling the application, modifying the manifest file and some classes, then recompiling and signing with a new key, similar to what apps like Lucky Patcher or Jasi Patcher do.
This would allow for a very deeply-rooted removal of advertising receivers and services or unneeded permissions, instead of simply disabling them.
This would also allow for the removal of permissions that can't be disabled, e.g. android.permission.INTERNET.
Curiously, this does not require root access at all.
The text was updated successfully, but these errors were encountered: