• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Révision330d823c639537528f0e57a67ce2c82a99be0bde (tree)
l'heure2016-11-27 15:50:24
AuteurZhao Wei Liew <zhaoweiliew@gmai...>
CommiterDan Pasanen

Message de Log

Build: use UserHandle.isApp for M compatibility

Change-Id: Ie4511c547d9afe2697e1ac3519f41a9b19784f18

Change Summary

Modification

--- a/core/java/android/os/Build.java
+++ b/core/java/android/os/Build.java
@@ -712,7 +712,7 @@ public class Build {
712712
713713 /** @hide */
714714 public static void adjustBuildTypeIfNeeded() {
715- if (Process.isApplicationUid(Process.myUid()) && !TextUtils.isEmpty(TYPE_FOR_APPS)) {
715+ if (UserHandle.isApp(Process.myUid()) && !TextUtils.isEmpty(TYPE_FOR_APPS)) {
716716 try {
717717 // This is sick. TYPE is final (which can't be changed because it's an API
718718 // guarantee), but we have to reassign it. Resort to reflection to unset the