public PackageManagerService(Context context, Installer installer,
boolean factoryTest, boolean onlyCore) {
......
sMtkSystemServerIns.addBootEvent("Android:PMS_scan_END");
Slog.i(TAG, "Time to scan packages: "
+ ((SystemClock.uptimeMillis()-startTime)/1000f)
+ " seconds");
APK_INSTALL_FINISH = true;//add
// If the platform SDK has changed since the last time we booted,
// we need to re-grant app permission to catch any new ones that