2019独角兽企业重金招聘Python工程师标准>>>
% adb shell am start -n com.android.settings/com.android.settings.Settings \
-e :android:show_fragment com.android.settings.applications.AppOpsSummary \
--activity-clear-task --activity-exclude-from-recents
Intent intent = new Intent();
intent.setClassName("com.android.settings","com.android.settings.Settings");
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |Intent.FLAG_ACTIVITY_CLEAR_TASK |Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
intent.putExtra(":android:show_fragment","com.android.settings.applications.AppOpsSummary");
startActivity(intent);
Reference:
- http://www.adakoda.com/adakoda/2013/11/android-android-44-appops.html (In Japanese)
- App Ops: Android 4.3′s Hidden App Permission Manager, Control Permissions For Individual Apps! [Update]