packages/apps/Settings
リビジョン | 528c64e205bf1d8f8237fb4e582d152958345b92 (tree) |
---|---|
日時 | 2015-02-02 20:22:02 |
作者 | Robin Lee <rgl@goog...> |
コミッター | Android (Google) Code Review |
Merge "Repair broken keychain wifi_uid logic" into lmp-mr1-dev
@@ -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 |