android9 开机禁用adb功能

diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index 29162b0..1eed5fc 100644
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -1500,7 +1500,7 @@
 
     @Override
     public void onStart() {
-        Settings.Secure.putInt(getContext().getContentResolver(), Settings.Secure.ADB_ENABLED,0);
+        //Settings.Secure.putInt(getContext().getContentResolver(), Settings.Secure.ADB_ENABLED,0);
         SnoozeHelper snoozeHelper = new SnoozeHelper(getContext(), new SnoozeHelper.Callback() {
             @Override
             public void repost(int userId, NotificationRecord r) {

你可能感兴趣的:(java,servlet,开发语言)