• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

frameworks/base


Commit MetaInfo

修訂0b67139d52ddb0977ae3fe3dcbda3f2f56137c17 (tree)
時間2020-04-14 23:46:54
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

pm: ignore restorecon failure

On the 9p filesystem, restorecon won't work. It causes apk can't be
installed. Just ignore the errors to workaround it.

Change Summary

差異

--- a/services/core/java/com/android/server/pm/PackageInstallerService.java
+++ b/services/core/java/com/android/server/pm/PackageInstallerService.java
@@ -754,7 +754,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
754754 }
755755
756756 if (!SELinux.restorecon(stageDir)) {
757- throw new IOException("Failed to restorecon session dir: " + stageDir);
757+ Slog.e(TAG, "Failed to restorecon session dir: " + stageDir);
758758 }
759759 }
760760
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -15811,7 +15811,6 @@ public class PackageManagerService extends IPackageManager.Stub
1581115811
1581215812 if (!SELinux.restoreconRecursive(afterCodeFile)) {
1581315813 Slog.w(TAG, "Failed to restorecon");
15814- return false;
1581515814 }
1581615815
1581715816 // Reflect the rename internally