packages/apps/Settings
修订版 | 635426b0a7db8791bc62836921d3b2f22b36acea (tree) |
---|---|
时间 | 2015-01-31 04:00:45 |
作者 | Robin Lee <rgl@goog...> |
Commiter | Robin Lee |
Repair broken keychain wifi_uid logic
Check for cross-user installs was missing a short-circuit for installs
where no UID was specified. This is now added.
Bug: 19194391
Change-Id: I10aa8323b47e0fcabb59e7c30d677080bb80b976
@@ -223,9 +223,9 @@ public final class CredentialStorage extends Activity { | ||
223 | 223 | Bundle bundle = mInstallBundle; |
224 | 224 | mInstallBundle = null; |
225 | 225 | |
226 | - final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); | |
226 | + final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, KeyStore.UID_SELF); | |
227 | 227 | |
228 | - if (!UserHandle.isSameUser(uid, Process.myUid())) { | |
228 | + if (uid != KeyStore.UID_SELF && !UserHandle.isSameUser(uid, Process.myUid())) { | |
229 | 229 | int dstUserId = UserHandle.getUserId(uid); |
230 | 230 | int myUserId = UserHandle.myUserId(); |
231 | 231 |