aperio

MK to Lin Whyred

Mar 28th, 2019
96
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. mv lin-16.0/device/xiaomi/whyred/overlay-mokee/mokee-sdk/mk lin-16.0/device/xiaomi/whyred/overlay-mokee/mokee-sdk/lineage
  3. mv lin-16.0/device/xiaomi/whyred/overlay-mokee/mokee-sdk lin-16.0/device/xiaomi/whyred/overlay-mokee/lineage-sdk
  4. mv lin-16.0/device/xiaomi/whyred/overlay-mokee lin-16.0/device/xiaomi/whyred/overlay-lineage
  5. cp lin-16.0/device/xiaomi/whyred/mk_whyred.mk lin-16.0/device/xiaomi/whyred/lineage_whyred.mk
  6. rm -r lin-16.0/device/xiaomi/whyred/doze
  7. sed -i 's|mk_whyred|lineage_whyred|g' lin-16.0/device/xiaomi/whyred/AndroidProducts.mk
  8. sed -i 's|/mk|/lineage|g' lin-16.0/device/xiaomi/whyred/lineage_whyred.mk
  9. sed -i 's|mk_|lineage_|g' lin-16.0/device/xiaomi/whyred/lineage_whyred.mk
  10. sed -i 's|device.mk)|device.mk)\x0A\x0A$(call inherit-product, vendor/xiaomi/MiuiCamera/config.mk)|g' lin-16.0/device/xiaomi/whyred/lineage_whyred.mk
  11. sed -i 's|generic|kryo|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  12. sed -i 's|cortex-a73|kryo|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  13. sed -i 's|whyred-perf|whyred|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  14. sed -i "s|CLANG_COMPILE := true|CLANG_COMPILE := true\x0ATARGET_KERNEL_CLANG_VERSION := 9.0.1|g" lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  15. sed -i 's|ifeq ($(|#ifeq ($(|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  16. sed -i 's|ifneq ($(|#ifneq ($(|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  17. sed -i 's|endif|#endif|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  18. sed -i 's|PREOPT := true|PREOPT ?= true|g' lin-16.0/device/xiaomi/whyred/BoardConfig.mk
  19. sed -i 's|.mokee.|.lineage.|g' lin-16.0/device/xiaomi/whyred/vendor_framework_compatibility_matrix.xml
  20. sed -i 's|IMoKeePower|ILineagePower|g' lin-16.0/device/xiaomi/whyred/vendor_framework_compatibility_matrix.xml
  21. sed -i 's|.mokee.|.lineage.|g' lin-16.0/device/xiaomi/whyred/manifest.xml
  22. sed -i 's|IMoKeePower|ILineagePower|g' lin-16.0/device/xiaomi/whyred/manifest.xml
  23. sed -i 's|mokee|lineage|g' lin-16.0/device/xiaomi/whyred/device.mk
  24. sed -i ':a;N;$!ba;s/Doze\nPRO/Doze\n#PRO/g' lin-16.0/device/xiaomi/whyred/device.mk
  25. sed -i 's|XiaomiDoze|#XiaomiDoze|g' lin-16.0/device/xiaomi/whyred/device.mk
  26. sed -i '1,1d' lin-16.0/device/xiaomi/whyred/board-info.txt
  27. echo "" >> lin-16.0/device/xiaomi/whyred/board-info.txt
RAW Paste Data