Giter Site home page Giter Site logo

Comments (10)

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024 3

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:

  1. Run AM server on boot instead of only when AM is running
  2. Register a broadcast receiver for PACKAGE_ADDED.
  3. 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).
  4. AM will run a job to block the tracking components and a notification will be displayed.

from appmanager.

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024 2

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.

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024 1

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.

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024

But doesn't this mean that it needs to run a service all the time?

from appmanager.

Atrate avatar Atrate commented on August 9, 2024

Can't an app be woken up by a broadcast without having a persistent bg service?

from appmanager.

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024

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.

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024

Related to #61

from appmanager.

Atrate avatar Atrate commented on August 9, 2024

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.

MuntashirAkon avatar MuntashirAkon commented on August 9, 2024

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.

EkriirkE avatar EkriirkE commented on August 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.