天天看點

sprd安卓11 自定義廣播時,log中報 Sending non-protected broadcast

--- a/sprd/frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/sprd/frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -16048,7 +16048,11 @@ public class ActivityManagerService extends IActivityManager.Stub
             // we've relaxed, so it's fine for system internals to send.
             return;
         }
-
+               //modify by luoyalong 20210712 for  remove non-protected log begin
+               if(action != null && (action.contains("neostra.intent") || action.contains("not.launcher3") || action.contains("is.launcher3")  || action.contains("broadcast.lockapp"))){
+                       return;
+               }
+               //modify by luoyalong 20210712 for  remove non-protected log end
         // This broadcast may be a problem...  but there are often system components that