SHARE
TWEET

MK to Havoc Whyred (test)

aperio Apr 5th, 2019 (edited) 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. mv HavocOS/device/xiaomi/whyred/overlay-mokee/mokee-sdk/mk HavocOS/device/xiaomi/whyred/overlay-mokee/mokee-sdk/lineage
  3. mv HavocOS/device/xiaomi/whyred/overlay-mokee/mokee-sdk HavocOS/device/xiaomi/whyred/overlay-mokee/lineage-sdk
  4. mv HavocOS/device/xiaomi/whyred/overlay-mokee HavocOS/device/xiaomi/whyred/overlay-lineage
  5. cp HavocOS/device/xiaomi/whyred/mk_whyred.mk HavocOS/device/xiaomi/whyred/havoc_whyred.mk
  6. rm -r HavocOS/device/xiaomi/whyred/doze
  7. sed -i 's|mk_whyred|havoc_whyred|g' HavocOS/device/xiaomi/whyred/AndroidProducts.mk
  8. sed -i 's|/mk|/havoc|g' HavocOS/device/xiaomi/whyred/havoc_whyred.mk
  9. sed -i 's|mk_|havoc_|g' HavocOS/device/xiaomi/whyred/havoc_whyred.mk
  10. sed -i 's|device.mk)|device.mk)\x0A\x0A$(call inherit-product, vendor/xiaomi/MiuiCamera/config.mk)|g' HavocOS/device/xiaomi/whyred/havoc_whyred.mk
  11. sed -i 's|common_full_phone|common|g' HavocOS/device/xiaomi/whyred/havoc_whyred.mk
  12. sed -i 's|generic|kryo|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  13. sed -i 's|cortex-a73|kryo|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  14. sed -i 's|whyred-perf|whyred|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  15. sed -i "s|CLANG_COMPILE := true|CLANG_COMPILE := true\x0ATARGET_KERNEL_CLANG_VERSION := 9.0.1|g" HavocOS/device/xiaomi/whyred/BoardConfig.mk
  16. sed -i 's|ifeq ($(|#ifeq ($(|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  17. sed -i 's|ifneq ($(|#ifneq ($(|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  18. sed -i 's|endif|#endif|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  19. sed -i 's|PREOPT := true|PREOPT ?= true|g' HavocOS/device/xiaomi/whyred/BoardConfig.mk
  20. sed -i 's|.mokee.|.lineage.|g' HavocOS/device/xiaomi/whyred/vendor_framework_compatibility_matrix.xml
  21. sed -i 's|IMoKeePower|ILineagePower|g' HavocOS/device/xiaomi/whyred/vendor_framework_compatibility_matrix.xml
  22. sed -i 's|.mokee.|.lineage.|g' HavocOS/device/xiaomi/whyred/manifest.xml
  23. sed -i 's|IMoKeePower|ILineagePower|g' HavocOS/device/xiaomi/whyred/manifest.xml
  24. sed -i 's|mokee|lineage|g' HavocOS/device/xiaomi/whyred/device.mk
  25. sed -i ':a;N;$!ba;s/Doze\nPRO/Doze\n#PRO/g' HavocOS/device/xiaomi/whyred/device.mk
  26. sed -i 's|XiaomiDoze|#XiaomiDoze|g' HavocOS/device/xiaomi/whyred/device.mk
  27. sed -i '1,1d' HavocOS/device/xiaomi/whyred/board-info.txt
  28. echo "" >> HavocOS/device/xiaomi/whyred/board-info.txt
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top