Debug the Java part of the Android framework
Note: debug the Java code of Android framework. Take android-28 as an example. An API 28 simulator is required.
There are many ways to download the source code. Since only java code is needed to debug the framework, here you can download it using the SDK manager of Android studio. Take downloading android-28 as an example
After downloading, you can see the android-28 source code under SDK / sources
The package name is cn.test.demo. It starts with com because the source code has com. Copying the source code later is to avoid duplication
You can see the project directory structure
For example, after selecting the subclass uihandler and handlemessage method of activitymanagerservice, click to start the application in the simulator, such as SMS, to debug
Original link: https://github.com/libill/DebugAndroidFramework
For more information, please refer to Geek time - Android Development Master course