Loading services/core/java/com/android/server/MountService.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -1758,6 +1758,9 @@ class MountService extends IMountService.Stub @Override @Override public void finishMediaUpdate() { public void finishMediaUpdate() { if (Binder.getCallingUid() != android.os.Process.SYSTEM_UID) { throw new SecurityException("no permission to call finishMediaUpdate()"); } if (mUnmountSignal != null) { if (mUnmountSignal != null) { mUnmountSignal.countDown(); mUnmountSignal.countDown(); } else { } else { Loading Loading @@ -1791,7 +1794,7 @@ class MountService extends IMountService.Stub warnOnNotMounted(); warnOnNotMounted(); final ObbState state; final ObbState state; synchronized (mObbPathToStateMap) { synchronized (mObbMounts) { state = mObbPathToStateMap.get(rawPath); state = mObbPathToStateMap.get(rawPath); } } if (state == null) { if (state == null) { Loading Loading @@ -1843,7 +1846,7 @@ class MountService extends IMountService.Stub Preconditions.checkNotNull(rawPath, "rawPath cannot be null"); Preconditions.checkNotNull(rawPath, "rawPath cannot be null"); final ObbState existingState; final ObbState existingState; synchronized (mObbPathToStateMap) { synchronized (mObbMounts) { existingState = mObbPathToStateMap.get(rawPath); existingState = mObbPathToStateMap.get(rawPath); } } Loading Loading @@ -2093,6 +2096,8 @@ class MountService extends IMountService.Stub @Override @Override public String getPassword() throws RemoteException { public String getPassword() throws RemoteException { mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_KEYGUARD_SECURE_STORAGE, "only keyguard can retrieve password"); if (!isReady()) { if (!isReady()) { return new String(); return new String(); } } Loading Loading
services/core/java/com/android/server/MountService.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -1758,6 +1758,9 @@ class MountService extends IMountService.Stub @Override @Override public void finishMediaUpdate() { public void finishMediaUpdate() { if (Binder.getCallingUid() != android.os.Process.SYSTEM_UID) { throw new SecurityException("no permission to call finishMediaUpdate()"); } if (mUnmountSignal != null) { if (mUnmountSignal != null) { mUnmountSignal.countDown(); mUnmountSignal.countDown(); } else { } else { Loading Loading @@ -1791,7 +1794,7 @@ class MountService extends IMountService.Stub warnOnNotMounted(); warnOnNotMounted(); final ObbState state; final ObbState state; synchronized (mObbPathToStateMap) { synchronized (mObbMounts) { state = mObbPathToStateMap.get(rawPath); state = mObbPathToStateMap.get(rawPath); } } if (state == null) { if (state == null) { Loading Loading @@ -1843,7 +1846,7 @@ class MountService extends IMountService.Stub Preconditions.checkNotNull(rawPath, "rawPath cannot be null"); Preconditions.checkNotNull(rawPath, "rawPath cannot be null"); final ObbState existingState; final ObbState existingState; synchronized (mObbPathToStateMap) { synchronized (mObbMounts) { existingState = mObbPathToStateMap.get(rawPath); existingState = mObbPathToStateMap.get(rawPath); } } Loading Loading @@ -2093,6 +2096,8 @@ class MountService extends IMountService.Stub @Override @Override public String getPassword() throws RemoteException { public String getPassword() throws RemoteException { mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_KEYGUARD_SECURE_STORAGE, "only keyguard can retrieve password"); if (!isReady()) { if (!isReady()) { return new String(); return new String(); } } Loading