mtransitapps / mtransit-for-android-gradle

MonTransit for Android Gradle project
https://play.google.com/store/apps/details?id=org.mtransit.android
Apache License 2.0
7 stars 3 forks source link

Samsung > One UI > background usage limits > investigation... #173

Closed mmathieum closed 1 year ago

mmathieum commented 1 year ago

As a Samsung device user I want to have an easier way to fix the disabled module (deep sleeping apps) porblem


Tasks

// Launch the detail activity of background usage limits

Intent intent = new Intent(); 
intent.setAction("com.samsung.android.sm.ACTION_OPEN_CHECKABLE_LISTACTIVITY");
intent.setPackage("com.samsung.android.lool"); 
intent.putExtra("activity_type", 2); // 0 : sleeping apps / 1 : deep sleeping apps / 2 : never sleeping apps
startActivity(intent);

Changes in One UI 6 (with Android 14) To strengthen the Android platform, our collaboration with Google has resulted in a unified policy that we expect will create a more consistent and reliable user experience for Galaxy users. Since One UI 6.0, foreground services of apps targeting Android 14 will be guaranteed to work as intended so long as they are developed according to Android's new foreground service API policy.

Links:

mmathieum commented 1 year ago

https://github.com/mtransitapps/mtransit-for-android/commit/c42ac603ef24d7820e4630aa20d1371ba3dafd88

mmathieum commented 1 year ago

https://github.com/mtransitapps/mtransit-for-android/commit/63fea024eeac1e080d4e439a9942ba4e8f49d36a