Merge "Use canonical path for /vendor/app"

This commit is contained in:
Christopher Tate
2014-02-07 23:30:23 +00:00
committed by Gerrit Code Review

View File

@ -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();