GithubHelp home page GithubHelp logo

Comments (3)

dirkam avatar dirkam commented on May 26, 2024

This is great, thank you.

Do you happen to know if these activities can be started from 3rd party apps? Or did you have a chance to test these with adb? In many cases, these activities marked with exported = false, so your intent start will not work.

from backgroundable-android.

akwizgran avatar akwizgran commented on May 26, 2024

The activities listed above could all be opened by the shell user via adb shell am start. I don't know if that necessarily means they're available to other apps, or whether shell might have special privileges.

I did run into a lot of activities that I couldn't open; for example com.huawei.systemmanager/.power.PowerConsumeBackgroundActivity exists on all three Huawei devices I tested, but can only be opened by the shell user on the device running EmotionUI 2.0.

I guess details like which activities are exported may vary between models, even within a given major/minor OS version, as each model has its own build of the OS. So my results may not be very portable across models.

If you can tell me how to find out which activities are exported, I'd be happy to update my notes for the devices above. Until now I've just used the trial-and-error method of opening the power management UI manually, running dumpsys activity activities to find out which activity I'm looking at, then closing it and trying to relaunch it with am start. There's probably a better way. :-)

from backgroundable-android.

dirkam avatar dirkam commented on May 26, 2024

Thanks!

Would it be possible for you to create a pull request based on the README?

from backgroundable-android.

Related Issues (13)

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.