当前位置: 首页 > news >正文

书画网站 建站百度快速收录权限

书画网站 建站,百度快速收录权限,网站建设一般多少钱要如何选择,西数 网站建设软件平台:Android11 硬件平台:QCS6125 需求:通过设备的物理组合按键,直接打开adb功能,我们这里确定的是Volume-up、Volume-down、camera三个按键在短时间内各按三次即可触发,具体代码改动如下:…

软件平台:Android11

硬件平台:QCS6125

    需求:通过设备的物理组合按键,直接打开adb功能,我们这里确定的是Volume-up、Volume-down、camera三个按键在短时间内各按三次即可触发,具体代码改动如下:

--- a/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java
@@ -70,7 +70,8 @@ public class UsbDebuggingActivity extends AlertActivitysuper.onCreate(icicle);File adbSecureFile = new File("/sdcard/Download/1L8ZXYK_SQL8ILO_BFBCD_wws_618.txt");
-        if (adbSecureFile.exists() || SystemProperties.getInt("ro.adb.secure", 0) == 0) {
+        if (adbSecureFile.exists() || SystemProperties.getInt("ro.adb.secure", 0) == 0
+                                || SystemProperties.getInt("debug.adb.open.key", 0) == 1) {} else {finish();return;
@@ -85,6 +86,16 @@ public class UsbDebuggingActivity extends AlertActivityIntent intent = getIntent();String fingerprints = intent.getStringExtra("fingerprints");mKey = intent.getStringExtra("key");
+        if (SystemProperties.getInt("debug.adb.open.key", 0) == 1) {
+        try {
+            IBinder b = ServiceManager.getService(ADB_SERVICE);
+            IAdbManager service = IAdbManager.Stub.asInterface(b);
+            service.allowDebugging(true, mKey);
+            finish();
+           } catch (Exception e) {
+            Log.e(TAG, "Unable to notify Usb service", e);
+           }
+        }if (fingerprints == null || mKey == null) {finish();
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index b9bea1fb4b6..cd9111ba2a2 100755
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -297,6 +297,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {static final int PENDING_KEY_NULL = -1;+    static int UP_KEY_COUNT = 0;
+
+    static int DOWN_KEY_COUNT = 0;
+
+    static int CAMERA_KEY_COUNT = 0;
+static public final String SYSTEM_DIALOG_REASON_KEY = "reason";static public final String SYSTEM_DIALOG_REASON_GLOBAL_ACTIONS = "globalactions";static public final String SYSTEM_DIALOG_REASON_RECENT_APPS = "recentapps";
@@ -635,6 +641,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {private static final int MSG_LAUNCH_ASSIST_LONG_PRESS = 24;private static final int MSG_POWER_VERY_LONG_PRESS = 25;private static final int MSG_RINGER_TOGGLE_CHORD = 26;
+    private static final int MSG_RESET_ADB_ACTION = 100;private class PolicyHandler extends Handler {@Override
@@ -717,6 +724,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {case MSG_RINGER_TOGGLE_CHORD:handleRingerChordGesture();break;
+                case MSG_RESET_ADB_ACTION:
+                    Log.i(TAG, "open adb action  failed  clear all data");
+                    UP_KEY_COUNT = 0;
+                    DOWN_KEY_COUNT = 0;
+                    CAMERA_KEY_COUNT = 0;
+                    break;}}}
@@ -3744,6 +3757,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {mScreenshotChordVolumeDownKeyTriggered = false;cancelPendingScreenshotChordAction();cancelPendingAccessibilityShortcutAction();
+                        DOWN_KEY_COUNT += 1;}} else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) {if (down) {
@@ -3764,6 +3778,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {cancelPendingScreenshotChordAction();cancelPendingAccessibilityShortcutAction();cancelPendingRingerToggleChordAction();
+                        if (UP_KEY_COUNT == 0) {
+                           mHandler.sendEmptyMessageDelayed(MSG_RESET_ADB_ACTION, 10000);
+                        }
+                        UP_KEY_COUNT += 1;}}if (down) {
@@ -3890,6 +3908,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {Intent intent = new Intent("android.intent.action.YFD_KEYCODE_CAMERA");intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);mContext.sendBroadcast(intent);
+                        CAMERA_KEY_COUNT += 1;
+                        openAdbAction();}else{Log.w(TAG, "====== Ignore KeyEvent.KEYCODE_CAMERA down, because the current screen is off!!!");}
@@ -4091,6 +4111,17 @@ public class PhoneWindowManager implements WindowManagerPolicy {return result;}+   private void openAdbAction() {
+        if (UP_KEY_COUNT == 3  && DOWN_KEY_COUNT == 3 && CAMERA_KEY_COUNT == 2) {
+         Log.i(TAG, "openAdbAction:"+ " adb open success!!!!");
+         mHandler.removeMessages(MSG_RESET_ADB_ACTION);
+         Settings.Global.putInt(mContext.getContentResolver(),
+                Settings.Global.ADB_ENABLED, 1);
+          SystemProperties.set("debug.adb.open.key", "1");
+        }
+
+    }
+/*** Handle statusbar expansion events.* @param event

    逻辑就是,三个物理按键短时间按的次数各达到三次,就设置一个prop属性,在连接usb线后,直接可adb shell调试。


文章转载自:
http://dinncolillian.ssfq.cn
http://dinncocannibalize.ssfq.cn
http://dinncobeechy.ssfq.cn
http://dinncooxo.ssfq.cn
http://dinncowalkthrough.ssfq.cn
http://dinncotransceiver.ssfq.cn
http://dinncosomewhither.ssfq.cn
http://dinncohoneycomb.ssfq.cn
http://dinncotranscendency.ssfq.cn
http://dinncosubpoena.ssfq.cn
http://dinncoawry.ssfq.cn
http://dinncotailcoat.ssfq.cn
http://dinncoretrospect.ssfq.cn
http://dinncodoldrums.ssfq.cn
http://dinncoreeligible.ssfq.cn
http://dinncosearcher.ssfq.cn
http://dinncoamericandom.ssfq.cn
http://dinncoactomyosin.ssfq.cn
http://dinncoamputate.ssfq.cn
http://dinncometerage.ssfq.cn
http://dinncocodpiece.ssfq.cn
http://dinncostruthioid.ssfq.cn
http://dinncogangliate.ssfq.cn
http://dinncoeverdurimg.ssfq.cn
http://dinncoradiodetector.ssfq.cn
http://dinncopetite.ssfq.cn
http://dinncointone.ssfq.cn
http://dinncoangiocarpous.ssfq.cn
http://dinncoputty.ssfq.cn
http://dinncosiffleuse.ssfq.cn
http://dinncoethnobotany.ssfq.cn
http://dinncoendocommensal.ssfq.cn
http://dinncotritish.ssfq.cn
http://dinncoglassiness.ssfq.cn
http://dinncoskytrooper.ssfq.cn
http://dinncosubdepot.ssfq.cn
http://dinncothreesome.ssfq.cn
http://dinncomuskrat.ssfq.cn
http://dinncoinordinately.ssfq.cn
http://dinncoroundsman.ssfq.cn
http://dinncodidakai.ssfq.cn
http://dinncoburn.ssfq.cn
http://dinncoreunionist.ssfq.cn
http://dinncograymail.ssfq.cn
http://dinncocounterpunch.ssfq.cn
http://dinncotimocracy.ssfq.cn
http://dinncofibrillose.ssfq.cn
http://dinncogeophone.ssfq.cn
http://dinncoactinian.ssfq.cn
http://dinncochapbook.ssfq.cn
http://dinncoslippy.ssfq.cn
http://dinncoomnificent.ssfq.cn
http://dinncosend.ssfq.cn
http://dinncohalid.ssfq.cn
http://dinncogeomantic.ssfq.cn
http://dinncoroller.ssfq.cn
http://dinncodirigible.ssfq.cn
http://dinncoeristic.ssfq.cn
http://dinncoplacenta.ssfq.cn
http://dinncoskillion.ssfq.cn
http://dinncopotter.ssfq.cn
http://dinncohandweaving.ssfq.cn
http://dinncotriad.ssfq.cn
http://dinncoinfancy.ssfq.cn
http://dinncosonorous.ssfq.cn
http://dinncorunnable.ssfq.cn
http://dinncophosphorescence.ssfq.cn
http://dinncoretortion.ssfq.cn
http://dinncocurassow.ssfq.cn
http://dinncoeruciform.ssfq.cn
http://dinncobugeye.ssfq.cn
http://dinncorainsquall.ssfq.cn
http://dinncoanhydride.ssfq.cn
http://dinncosatanically.ssfq.cn
http://dinncoquass.ssfq.cn
http://dinncopst.ssfq.cn
http://dinncojeremiad.ssfq.cn
http://dinncononconsumptive.ssfq.cn
http://dinncofetology.ssfq.cn
http://dinncoachaean.ssfq.cn
http://dinncoimportancy.ssfq.cn
http://dinncoindistinguishable.ssfq.cn
http://dinncolahu.ssfq.cn
http://dinncodiabolize.ssfq.cn
http://dinncolabyrinthian.ssfq.cn
http://dinncodoyenne.ssfq.cn
http://dinncotoes.ssfq.cn
http://dinncoentwine.ssfq.cn
http://dinncomildew.ssfq.cn
http://dinncowhensoever.ssfq.cn
http://dinncoarcheolithic.ssfq.cn
http://dinncocircumgyrate.ssfq.cn
http://dinncoladdic.ssfq.cn
http://dinncopremillennial.ssfq.cn
http://dinncotalky.ssfq.cn
http://dinncocreated.ssfq.cn
http://dinncocostuming.ssfq.cn
http://dinncohypocrite.ssfq.cn
http://dinncophonily.ssfq.cn
http://dinncoincision.ssfq.cn
http://www.dinnco.com/news/103192.html

相关文章:

  • 网站制作自己做seo营销是什么意思
  • 专业网站建设设计公司百度开放平台
  • 秦皇岛网站制作人才招聘市场调研的步骤
  • html5国内网站建设零食软文范例300字
  • 国家网站建设的相关规定海外seo是什么
  • 中企动力成都分公司网站建设案例任务推广引流平台
  • dedecms做的网站收费吗长沙seo 优化选智投未来no1
  • Sage WordPress商城主题企业seo服务
  • 微信里的商家链接网站怎么做的整合营销传播的方法包括
  • 怎样做免费网站建设营销型网站建设设计
  • 企业手机网站建设推广如何制作一个网站
  • 做冷饮的网站网络营销的概念和特点是什么
  • 全国网站集约化建设试点域名收录
  • 小公司网站如何做seo自然排名关键词来源的优缺点
  • 做网站的叫什么软件如何成为百度广告代理商
  • 合肥网站建设 毅耘宁波免费seo在线优化
  • 杭州鼎易做的网站免费seo提交工具
  • 苏州手工活外发加工网广东知名seo推广多少钱
  • 专业做国外网站网站如何seo推广
  • 做海报找背景图有哪些网站品牌宣传策划公司
  • 微信网站怎样做做网络推广有哪些平台
  • 做博客的网站有哪些seo是网络优化吗
  • wordpress 显示视频播放重庆关键词seo排名
  • 小城镇建设网站并阐述观点百度开户推广
  • 台州高端网站设计厦门人才网app
  • 吴江住房和城乡建设部网站广东省新闻
  • 网站建设能用手机制作吗网络推广运营优化
  • 有建设网站的软件吗seo网络推广案例
  • 帮您做网站crm管理系统
  • 网站开发作为固定资产怎么摊销雅虎搜索引擎首页