Comments (9)
@Thornith thanks for trying this out, unfortunately as mentioned this has not been tested on a vivo or oppo phone but I am welcome to any pull requests that support these phones or any other.
from autostarter.
Came across the same issue on OPPO R15 (OS 8.1.0).
from autostarter.
Not working on OPPO CPH1609
Android 6.0
from autostarter.
Not working for Oppo A3S (CPH1803), ColorOS - V5.2.1 . I Will update if I come across any other solution. Thanks for putting this library out.
from autostarter.
I've made a pull request for the Oppo Rx17 Neo (and Rx17 Pro) running ColorOS 5.2.
For these devices, the switch for "Allow Auto Start" is within the App Info itself (long press on your app icon).
https://drive.google.com/file/d/1zk7ThbM7eumnphtElRF9Zr9R-uuia9D4/view?usp=sharing
My fix is on a per device basis (value of Build.Product).
If the solution for your Oppo is this, check out PR #51 and if it gets merged, add your device into the list.
from autostarter.
Hey,
@Prometheus3k is headed the right way, but it can never really work on per-device basis. As long as we can assume that either the existing options work, or it's a different OS version that has the auto start option moved to App Info and there are no other options, the reasonable way is to allow AutoStarter for all Oppo devices and when resolving the known activities fails, send to user to App Info.
I'm going to do this in an app with 2M downloads and see what the users say.
Btw I have also checked the current application that manages all kinds of power saving thingamajigs on Oppos (com.coloros.oppoguardelf
) and none of the activites available there are exported nor accessible without some special Oppo permissions. In other words: no third party app can do anything anymore. Good job Oppo, I hope you're proud.
from autostarter.
@NoHarmDan Yeah I had thought about this. I had originally put it in the existing try catch blocks, but it's quite an assumption that if none of the security packages are there, we launch app info. We could be taking the user there for no reason (if the switch isn't there).
The current issue is more accurately described as in Oppo RX17 Neo, Color OS 5.2, PhoneManager app (with Privacy Permission, Startup Manager) exists on device, but it cannot be launched. It requires some Oppo "oppo.permission.OPPO_COMPONENT_SAFE" permission?
But the switch does exist in the app info without need for permission.
This is quite a new behaviour with ColorOS. If we can get some more info about this new setup from Oppo, I'd be happy to generalise to default to app info if we can confirm this is not just a solution for this device. Can anyone here help verify?
Does anyone have an Oppo device, Color OS 5.2 (or higher) other than Rx17 Neo/Pro that can check if auto start is in app info (A, R, Reno, Find models)? As I understand it, there are several ColorOS version after 5.2 (6.x.x and 7). Color OS version history
Some folk here have mentioned some devices where the current library packages don't work, but don't mentioned the ColorOS versions for them. If they can verify Allow Auto start switch is in app info for their ColorOS that would be really helpful.
The Oppo devices I have are on loan so won't have them for much longer to test with.
from autostarter.
Well my point of view is that sending somebody to App Info for no reason is a lesser evil than having your app not working properly. 🤷
And the device I have at hand is the A1k with ColorOS V6.0.1 and auto start in App Info.
from autostarter.
@NoHarmDan perfect, thanks for checking it on ColorOS 6. Can safely say it's a forward trend so I'll update my PR.
Appreciate any posts for other ColorOS versions that have the switch in App Info (or not).
@Thornith
Oppo F9 is also ColorOS 6, Oppo F11 is upgradable to ColorOS 7
from autostarter.
Related Issues (20)
- Android 11 policies HOT 2
- toLowerCase fail HOT 1
- OnePlus Android 11 fails to open ChainLaunchAppListActivity HOT 1
- Issue on Honor View 20
- Not working on Lenovo A7000-a and Realme narzo
- Use in Java Project HOT 2
- SecurityException on Huawei HUAWEI nova 5T Android 10 HOT 4
- App gets killed after enable then disable the auto start toggle from setting
- Not working with ASUS Zenfon6 HOT 1
- Samsung Note 9 Android 10
- Realme Startup Need to be add
- Mistaking Battery Optimization for Autostart HOT 2
- help
- Support For Vivo (Y73) Device Needed
- SecurityException: Permission Denial HOT 5
- Request: return a list of special permissions of the current device, so that we could prepare an explanation before reaching it
- Brings up the wrong settings view on Samsung
- Auto Start Permission not working on oneplus device HOT 1
- Any chance of using this in Unity? (C#)
- getAutoStartPermission method throws exception HOT 1
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 autostarter.