Skip to content
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

Is it possible to enable autostart on Techno phones #22

Closed
enriquejuan2 opened this issue Nov 27, 2019 · 3 comments
Closed

Is it possible to enable autostart on Techno phones #22

enriquejuan2 opened this issue Nov 27, 2019 · 3 comments

Comments

@enriquejuan2
Copy link

All techno phones have issues with autostart, is it possible to enable autostart on them?

@judemanutd
Copy link
Owner

Hey @enriquejuan2 I'm based in India and I don't think techno sells over here and without the actual device its pretty much impossible to get the package name that relates to the auto start screen.

If you do have access to the phone, just plug it in and take a look at logcat for the packages that are called, you only need the package name ( could look something like this com.xxx.securitycenter ) and the activity name of the autostart screen ( could look something like this com.xxx.autostart.AutoStartManagementActivity ).Each OEM has its own version so there is no standard api for this. Once you have those, create a new intent like below and start it, if you've got the correct ones you'll see the auto start screen start up.

val intent = Intent()
intent.component = ComponentName(packageName, componentName)
context.startActivity(intent)

P.S. If it does work, do add it to the library so others can have it as well.

@enriquejuan2
Copy link
Author

Hi @judemanutd Thanks for the quick reply. I have the actual device let me try to get to the autostart screen and get the activity name and package name.

@judemanutd
Copy link
Owner

Awesome, It's going to be quite a bit of trial and error but I think you can look out for words like autostart, powersaver, optimize, startup,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants