public static Intent createAppOpsIntent(String packageName)
{
final Intent intent = new Intent();
intent.setClassName(AppOpsActivity.class.getPackage().getName(),
AppOpsActivity.class.getName());
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK
| Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION);
if(packageName != null)
{
final Bundle args = new Bundle();
args.putString(AppOpsDetails.ARG_PACKAGE_NAME, packageName);
intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS, args);
intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, AppOpsDetails.class.getName());
}
return intent;
}
Util.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:AppOpsXposed
作者:
评论列表
文章目录