纯净模式是否开启判断
public static final String PURE_MODE_STATE = "pure_mode_state";
public static final int PURE_MODE_CLOSED = 1;
public static final int PURE_MODE_OPENED = 0;
public static int readState(Context context) {
if (context != null) {
return Settings.Secure.getInt(context.getContentResolver(), PURE_MODE_STATE, -1);
}
return 1;
}
跳转到玩机助手的纯净模式说明
Intent intent = new Intent();
intent.setPackage("com.huawei.android.tips");
intent.setAction("com.huawei.android.tips.ACTION_FEATURE_ID");
intent.putExtra("featureId", "SF-10044537_f102");
intent.putExtra("type", 52);
startActivity(intent);
网友评论