[Framework] Develop the system APP independently in AS, there is a prompt

Foreword: If you have needs or questions, please leave a private message. If I can provide you with ideas, I will reply as soon as possible.

①Be able to develop the Android system APP as an independent project in Android Studio.

②Copy the system APP separately and overlay it, without modifying and invading the native APP.

③ After porting to Android Studio, there are code prompts for development.

If you want to achieve the above effects, then this article can solve your problem.

The following uses SystemUI as an example.

1. Copy the SystemUI source code to SystemUI2.

2. Create a new SystemUIProject project in Android Studio. 

3. Open the terminal and enter the following command.

ln -sf /AOSP/frameworks/base/packages/SystemUI2 /xxxx/AndroidStudioProjects/SystemUIProject/

ln -sf [source path] [project path]

This command means to softly connect the source code path and the project path. That is, create a shortcut SystemUIProject[project path] for the SystemUI2[source code path] that will be modified soon. 

After the creation is successful, it looks like this:

Guess you like

Origin blog.csdn.net/guanmingyuangmy/article/details/132578501