Comments (10)
Since App Manager uses server-client mechanism and server (which doesn't have any impact on battery) runs in the background all the time, this can be achieved more easily (since it's only specific to root users) in the following way:
- Run AM server on boot instead of only when AM is running
- Register a broadcast receiver for PACKAGE_ADDED.
- When an app is installed ie. PACKAGE_ADDED is called, another explicit broadcast will be sent to AM (which will wake up AM for a few seconds).
- AM will run a job to block the tracking components and a notification will be displayed.
from appmanager.
So, I will provide an option in the settings which will be disabled by default. It will block trackers only if it's enabled.
Detecting new package installation is not heard but detecting the package itself is a bit difficult. So, what I'll do is fetch all the packages and sort it using the date installed updated and only apply the blocking in the last one.
from appmanager.
Now that AM can install APKs directly from file managers, this feature could be implemented more easily, at least only for apps installed through AM.
Yes, this could be possible.
Since AM is going to have a firewall function, running an installation watchdog could be coupled with the FW service.
Firewall won't use any service for root users, at least, for now. I do not intend to make it a complicated firewall system like AFWall+ or Netguard. It will have the basic internet blocking features, import/export (like any other rules) and, probably, hosts blocking and will be available throughout the app as batch ops and routine ops (the ecosystem is already very complicated in the backend). I may also add logging capabilities in future. Most users should be satisfied with only these features. Besides, merging root/no-root firewall is going to be a difficult job.
from appmanager.
But doesn't this mean that it needs to run a service all the time?
from appmanager.
Can't an app be woken up by a broadcast without having a persistent bg service?
from appmanager.
Can't an app be woken up by a broadcast without having a persistent bg service?
Unfortunately, no. After API 26, most of the system broadcasts has been hidden (I can detect package uninstalls though as it's not yet hidden). So, a background service is required. The alternative is to mark the last app launch time and find the newly installed/updated apps between that time and apply the action, which I think is better than running persistent services.
from appmanager.
Related to #61
from appmanager.
Now that AM can install APKs directly from file managers, this feature could be implemented more easily, at least only for apps installed through AM.
The alternative is to mark the last app launch time and find the newly installed/updated apps between that time and apply the action, which I think is better than running persistent services.
Since AM is going to have a firewall function, running an installation watchdog could be coupled with the FW service.
from appmanager.
Now that AM can install APKs directly from file managers, this feature could be implemented more easily, at least only for apps installed through AM.
This feature has been implemented in fb69160.
from appmanager.
I looked and poked around but could not find anything on this aspect - can arbitrary components also be added to auto revoke on install (eg I want to automatically disable anything with the word "lytic" or "metric" in it), and other permissions like network; defaulting anything new to POLICY_REJECT_ALL
from appmanager.
Related Issues (20)
- Backup Mutiple Auto Name Feature Not Work HOT 1
- Add support for MediaStore `ACTION_REVIEW` in interceptor HOT 1
- java.lang.RuntimeException: Unable to start activity HOT 2
- Crash on install from notification HOT 1
- Restoring [split] app data backups (i.e. any backup >1GB) fails with error "Input is not in the .gz format"
- Disable Code Editor appearance for Labs HOT 2
- App Manager Crash when trying to edit DANA HOT 1
- Support for AppManager to be able replace the built-in package installer front-end app HOT 1
- Reboot options HOT 3
- App Manager crashing when selecting an app HOT 2
- Bug about multi-user space HOT 2
- Routine operations are blocked if Screen Lock options in enabled
- App list not available in > 4.0 bld 2705
- family link bypass HOT 1
- AppInfo `ConcurrentModificationException` crash HOT 1
- Add "Battery optimization", "Sensors", "Install for" to batch op
- Recognize Net policy for "single app" batch op
- Is Pithus Report in Scanner page broken? HOT 3
- App Manager hangs while using Install
- Not able to setup through wireless debugging in OOS HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appmanager.