Skip to content

Instantly share code, notes, and snippets.

@jat001
Last active January 23, 2020 21:01
Show Gist options
  • Save jat001/551f496112fb70930645663e8b7e2519 to your computer and use it in GitHub Desktop.
Save jat001/551f496112fb70930645663e8b7e2519 to your computer and use it in GitHub Desktop.
Xiaomi Mix 2S CN Device (M1803D5XE) + Global ROM + Magisk Solution
#!/system/bin/sh
resetprop ro.product.name mix2s
@jat001
Copy link
Author

jat001 commented Jul 24, 2019

If you want to install Magisk on Xiaomi Mix 2S CN device (model name: M1803D5XE) with official global ROM.
After installing Magisk, put the script in /data/adb/post-fs-data.d and change the permissions to 755. Otherwise your phone will never boot into system again.

adb push global /data/adb/post-fs-data.d
adb shell chmod 755 /data/adb/post-fs-data.d/global

@ing-fcastellanos
Copy link

So simple and so beautiful. Thanks, just a little correction to the first command line:

adb push global /data/adb/post-fs-data.d/global
adb shell chmod 755 /data/adb/post-fs-data.d/global

Thanks for your help!!

@jat001
Copy link
Author

jat001 commented Jan 23, 2020

@fcastellanosKreios There is no difference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment