admin管理员组

文章数量:1532656

2023年12月26日发(作者:)

@@ -86,6 +115,8 @@ public class SystemUIApplication extends Application { // application theme in the manifest does only work for activities. Keep this in sync with // the theme set there. setTheme(ui_theme);+

+ mContext = getApplicationContext(); FromConfig(this);@@ -143,6 +174,7 @@ public class SystemUIApplication extends Application { private static final String SETTING_SYSTEM = ""; private static final String SETTING_SECURE = ""; private static final String SETTING_GLOBAL = "";+ private static final String BROADCAST_SCREENSHOT = ""; private String valueContent = "0"; private MainReceiver mainReceiver;

@@ -150,6 +182,10 @@ public class SystemUIApplication extends Application { .i("AZ", log); }

+ private void LDLog(String log) {+ .i("LD", log);+ }+

public class MainReceiver extends BroadcastReceiver { @Override@@ -225,6 +261,18 @@ public class SystemUIApplication extends Application { ra("_CONFIRM", false); gs(_ACTIVITY_NEW_TASK); ctivity(intentDown);+ } else if (BROADCAST_(action)) {+ Intent intentScreenShot = new Intent("SHOT");+ ra("path", ras().getString("path"));+ ra("name", ras().getString("name"));+ oadcast(intentScreenShot);+ } else if (BROADCAST_(action)) {+ //checkLaidianAppAlive();+ try{+ Callbacks(laidianAppR);+ }catch(Exception e){+ }+ layed(laidianAppR, 1000); } } }@@ -326,4 +374,82 @@ public class SystemUIApplication extends Application { public SystemUI[] getServices() { return mServices; }+

+

+ Handler mHandler = new Handler();+ private int laidianAppCheckTime = 3000;+ Runnable laidianAppR = new Runnable(){++ @Override+ public void run() {+ checkAppAlive(pkgName", "clsName");+ layed(laidianAppR, laidianAppCheckTime);+ }+

+ };++ private void checkAppAlive(String pkgName, String clsName){+ long startTime = tTimeMillis();+ if(!isAppAlive(pkgName)){+ LDLog(" to ");+ try{+ ComponentName componentName = new ComponentName(pkgName, clsName);+ Intent intent = new Intent();+ ponent(componentName);+ gs(_ACTIVITY_NEW_TASK);+ ctivity(intent);+ }catch(Exception e){+

+ }+ }else{

本文标签: 系统应用获取权限操作