Modify the framework layer resource file

layout

路径:
lagvm/LINUX/android/vendor/chinatsp/overlay/frameworks/base/core/res/res/

  1. Create a new layout folder under this path and add a layout file in it.
  2. lagvm/LINUX/android/Execute make update-api in the directory
  3. lagvm/LINUX/android/Execute make framework-res in the directory
  4. 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/

  1. 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
  2. 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.
  3. frameworks/base/core/res/Android.bpThe new res-night will be added in

resource_dirs: [“res”, “res-skin”,“res-night”]

  1. Define the new color value into frameworks/base/core/res/res/values/symbols.xmlthe file
  <java-symbol type="color" name="resize_shadow_start_color" />
  <java-symbol type="color" name="resize_shadow_end_color" />
  1. lagvm/LINUX/android/Execute make update-api in the directory
  2. lagvm/LINUX/android/Execute make framework-res in the directory
  3. Push the compiled framework-res.apk into the machine

Guess you like

Origin blog.csdn.net/jxq1994/article/details/130267575