Android源码阅读笔记(应用安装,LOG抓取等)

wtf: What a Terrible Failure

SystemServer.main()
-SystemServer.init1()
-android_server_SystemServer_init1()
-system_init()
-SurfaceFlinger
-SensorService

SystemServer.init2()
-ServerThread.run()
-[final]ServiceManager.addService(...)
-[final]ActivityManagerService.main()
-PackageManagerService.main()
-[final]ContentService.main()
-WindowManagerService.main()


安装时查找的目录:
/system/framework
/system/app
/data/app
/data/app-private
/vendor/app

LOG抓取工具:logcat,bugreport,dumpstate,dumpsys等。
连接上USB,除了DMSS外,还可以通过ADB命令抓取:
adb shell dumpstate >e:\dumpstate.log
adb shell dumpsys >e:\dumpsys.log
adb bugreport >e:\bugreport.log

你可能感兴趣的:(Android源码阅读笔记(应用安装,LOG抓取等))