layout
路径:
lagvm/LINUX/android/vendor/chinatsp/overlay/frameworks/base/core/res/res/
- Create a new layout folder under this path and add a layout file in it.
lagvm/LINUX/android/
Execute make update-api in the directorylagvm/LINUX/android/
Execute make framework-res in the directory- Push the compiled framework-res.apk into the machine
adb push out/target/product/msmnile_gvmq/system/framework/framework-res.apk /system/framework/ && adb shell sync
color
路径:
lagvm/LINUX/android/vendor/chinatsp/overlay/frameworks/base/core/res/res/
- Add a res-night folder to the path, add a values folder to it, add an empty attrs.xml file to the values folder, and a colors.xml file we need, which is defined in the colors file. The color value we need
frameworks/base/core/res/
Add a res-night folder under the folder, add a values folder under the folder, and add an empty attrs.xml file under the values folder.frameworks/base/core/res/Android.bp
The new res-night will be added in
resource_dirs: [“res”, “res-skin”,“res-night”]
- Define the new color value into
frameworks/base/core/res/res/values/symbols.xml
the file
<java-symbol type="color" name="resize_shadow_start_color" />
<java-symbol type="color" name="resize_shadow_end_color" />
lagvm/LINUX/android/
Execute make update-api in the directorylagvm/LINUX/android/
Execute make framework-res in the directory- Push the compiled framework-res.apk into the machine