Merge "Use canonical path for /vendor/app"
This commit is contained in:
@ -1301,6 +1301,11 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
// Collect all vendor packages.
|
||||
File vendorAppDir = new File("/vendor/app");
|
||||
try {
|
||||
vendorAppDir = vendorAppDir.getCanonicalFile();
|
||||
} catch (IOException e) {
|
||||
// failed to look up canonical path, continue with original one
|
||||
}
|
||||
mVendorInstallObserver = new AppDirObserver(
|
||||
vendorAppDir.getPath(), OBSERVER_EVENTS, true, false);
|
||||
mVendorInstallObserver.startWatching();
|
||||
|
Reference in New Issue
Block a user