1. 程式人生 > >安裝第三方APP接收不到廣播

安裝第三方APP接收不到廣播

frameworks/base$ git diff services/
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index 66ffe1316dd..d6141048ecc 100755
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -3712,11 +3712,11 @@ public final class ActivityManagerService extends ActivityManagerNative
                        return null;
                }

-               if(((info.flags & ApplicationInfo.FLAG_SYSTEM) ==0)&&("broadcast".equals(hostingType)))
-               {
-                       if(DEBUG_LOWMEM)Slog.v("xzj", "third part process dont start for broadcast: " + info.uid + "/" + info.processName);
-                       return null;
-               }
+       //      if(((info.flags & ApplicationInfo.FLAG_SYSTEM) ==0)&&("broadcast".equals(hostingType)))
+       //      {
+       //              if(DEBUG_LOWMEM)Slog.v("xzj", "third part process dont start for broadcast: " + info.uid + "/" + info.processName);
+       //              return null;
+       //      }
                if(mGameMap.get(processName) != null)
                {
                        killAllBackgroundProcesses();