https://github.com/amanoteam/faina
Allow the `pm` CLI utility to install APKs from anywhere in your filesystem
https://github.com/amanoteam/faina
Last synced: 7 months ago
JSON representation
Allow the `pm` CLI utility to install APKs from anywhere in your filesystem
- Host: GitHub
- URL: https://github.com/amanoteam/faina
- Owner: AmanoTeam
- License: lgpl-3.0
- Created: 2024-03-25T05:28:24.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-25T12:53:04.000Z (over 1 year ago)
- Last Synced: 2025-01-20T04:37:10.696Z (9 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# "pm Install" from anywhere
Allow the `pm` CLI utility to install APKs from anywhere in your filesystem.
This is done by modifying the SELinux policy to allow system processes running under the user `system_server` to read APK files from `fuse` and `sdcardfs` filesystems.
## Background
At some point between the release of Android 8 and 9, Google changed the way the `pm install` utility handles APK installation. Before that change, you could install APKs from anywhere in your filesystem, but now you are required to provide an APK from a "trusted location" like `/data/local/tmp` to be able to install it.
This is annoying because it makes you run additional commands or take extra actions (e.g., copy, move, change file permissions) to move or copy the APK to a trusted location before actually installing it.
### References
* [Install APK using root, handling new limitations of "/data/local/tmp/" folder](https://stackoverflow.com/questions/50540334)
* [Bug: can't install APK files using "pm install" via device](https://issuetracker.google.com/issues/80270303)## Supported Android versions
This module was only tested on Android 14, but in theory, it should work on any Android version starting from Android Oreo.