-
Notifications
You must be signed in to change notification settings - Fork 115
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
Not working in Samsung note 10 #37
Comments
Hey @Luisstevie thanks for the notice, this library depends on crowd sourcing very heavily since one person doesn't have all the phones that can be tried and tested to figure out which package works, it would be great to have a pull request for the version of samsung phone that you are currently testing it on. |
Hey @judemanutd ! See my comment to #33 it seems the activity name is wrong or was changed. |
It checks the existence of the activities before attempting to open them. Now if the activity can really not be opened, getAutoStartPermission will return false. Related issues: judemanutd#29 judemanutd#30 isAutoStartPermissionAvailable is checking the existence of the activity in order to avoid 'false positives' when the library is not able to open a specific settings screen. Inverted the Huawei intents to process the newer ones first (I didn't invert the rest of the manufacturers as I can't test all of them). This fix known issue with Huawei P 10 Lite judemanutd#38 (tested) Use Build.BRAND.toLowerCase(Locale.ROOT) to avoid issues with certain languages as Turkish as mentioned here: judemanutd#66 (tested) Includes FLAG_ACTIVITY_NEW_TASK so that it can be called outside an Activity. Fixed this: judemanutd#62 Add a new activity to be opened in Samsung devices as: This one open the exact Sleeping Apps setting com.samsung.android.lool/com.samsung.android.sm.battery.ui.usage.CheckableAppListActivity While this one opens the main battery settings com.samsung.android.lool/com.samsung.android.sm.battery.ui.BatteryActivity That should fixes theses (Tested with Note 8, Note 9 & Note 20): judemanutd#37 judemanutd#33
This should be resolved by #69 but feel free to open this issue back up in case it does not |
I got an exception here. Activity Not found exception
try { startIntent(context, PACKAGE_SAMSUNG_MAIN, PACKAGE_SAMSUNG_COMPONENT) } catch (e: Exception) { e.printStackTrace() return false }
The text was updated successfully, but these errors were encountered: