diff options
| -rw-r--r-- | service/java/com/android/server/wifi/ActiveModeWarden.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/ActiveModeWarden.java b/service/java/com/android/server/wifi/ActiveModeWarden.java index e60b27c302..d7065398dd 100644 --- a/service/java/com/android/server/wifi/ActiveModeWarden.java +++ b/service/java/com/android/server/wifi/ActiveModeWarden.java @@ -2419,7 +2419,8 @@ public class ActiveModeWarden { if (mAllowRootToGetLocalOnlyCmm && curUid == 0) { // 0 is root UID. continue; } - if (mWifiPermissionsUtil.checkEnterCarModePrioritized(curUid)) { + if (curUid != Process.SYSTEM_UID + && mWifiPermissionsUtil.checkEnterCarModePrioritized(curUid)) { requestInfo.listener.onAnswer(primaryManager); if (mVerboseLoggingEnabled) { Log.w(TAG, "Uid " + curUid |