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

Not working in Samsung note 10 #37

Closed
Luisstevie opened this issue Mar 5, 2020 · 3 comments
Closed

Not working in Samsung note 10 #37

Luisstevie opened this issue Mar 5, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@Luisstevie
Copy link

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 }

@judemanutd
Copy link
Owner

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.

@judemanutd judemanutd added the help wanted Extra attention is needed label Mar 5, 2020
@chrisonline
Copy link

Hey @judemanutd !

See my comment to #33 it seems the activity name is wrong or was changed.

awoisoak added a commit to awoisoak/AutoStarter that referenced this issue Jun 4, 2021
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
@judemanutd
Copy link
Owner

This should be resolved by #69 but feel free to open this issue back up in case it does not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants