Creating boot images for Mi 5C - Xiaomi Mi 5c Guides, News, & Discussion

Hi, this might be more suitable in the ROMS/development section, but I don't have a post count high enough to post there.
I've been hacking around on the Mi 5C since I got it last week. I thought I'd share what I've learnt.
With regards to the device itself - it's very nice. Metal construction, vivid screen, great build quality. I'm very pleased with it - though even after changing the language there's a lot of Chinese stuff in the stock ROM which I can't read. Obviously no play store/GMS either. I haven't spent any time trying to sideload those because I'm flashing it pretty regularly at the moment.
Bootloader Unlocking
The process for unlocking the bootloader is the same as for other Xiaomi phones, put in a request on en.miui.com/unlock, then wait for a code and use their unlocking tool to unlock.
I had success with version 1.1.1111.11231 of the Mi Unlock Tool, which you can find in the MIUI forums.
Boot Images
I initially had some trouble getting the (unlocked) bootloader to accept any boot images which I created. It would tell me "image verify failed".
After fiddling around with creating different images and comparing them to the stock one in the Xiaomi ROM, I discovered that the bootloader is expecting the images to have a sha256 checksum rather than sha1.
I don't know what the motivation for that was - but if you swap sha1 for sha256, it works fine.
I've got a patched version of mkbootimg on Github at usedbytes/mkbootimg (branch sha256) which lets you specify sha256 on the command line. I've submitted a pull request to get it back into osm0sis' repo, which is where Google sent me to get the mkbootimg source code.
With that mkbootimg, you can create boot images for the mi5c with the following parameters (taken from the stock ROM):
Code:
mkbootimg \
--kernel $KERNEL_IMAGE \
--ramdisk $RAMDISK \
--cmdline "console=ttyS0,115200 earlyprintk=uart8250-32bit,0xF900B000 androidboot.hardware=song no_console_suspend debug user_debug=31 loglevel=9" \
--base 0x0 \
--pagesize 4096 \
--kernel_offset 0x0a080000 \
--ramdisk_offset 0x0c400000 \
--dt $DEVICETREE \
--tags_offset 0xc200000 \
--os_version 0.0.0 \
--os_patch_level 0 \
--second_offset 0x00f00000 \
--hash sha256 \
--id \
-o $OUTFILE
Root
I have managed to root it by manually installing SuperSU into my init ramdisk. That was quite an involved process which I won't go in to.
If anyone is really interested I can write it up - but it would be better to find a better way, such as porting TWRP.
TWRP/Custom ROM
Xiaomi haven't released any source for the Mi 5C, and I'm not sure if we can expect them to.
I do intend to try and port TWRP to it, but having never done anything like that before I don't know if I'll succeed.
My eventual goal is to get AOSP onto it, but again having not tried building a custom ROM before, it will be a challenge.
Hopefully the information here can help someone who knows what they are doing start some development on this device!

Hi, very nice work dude !
I have some questions though.
Is there a way to enable some network band ? Because you surely have noticed that this phone doesn't work very well in 3G outside China.
Plus do you think you can create a custom global MIUI ROM ?

Hi!
Big thanks to usedbyte for expanded description to create modified boot for Mi5C.
I make a custom fastboot rom for this device with all translations and patches at Multirom.me Team
https://yadi.sk/d/V3Btc_NB3GFbZx

Alting said:
Hi!
Big thanks to usedbyte for expanded description to create modified boot for Mi5C.
I make a custom fastboot rom for this device with all translations and patches at Multirom.me Team
Click to expand...
Click to collapse
Hi, could you explain how I can install it ? Because TWRP isn't port on Mi5C yet. Thanks !

Calentyth said:
Hi, could you explain how I can install it ? Because TWRP isn't port on Mi5C yet. Thanks !
Click to expand...
Click to collapse
You must first unlock your device and install via fastboot.
My friend make a full archive for fastboot: https://yadi.sk/d/dHsiZDef3GGpWr

Alting said:
Hi!
Big thanks to usedbyte for expanded description to create modified boot for Mi5C.
I make a custom fastboot rom for this device with all translations and patches at Multirom.me Team
https://yadi.sk/d/V3Btc_NB3GFbZx
Click to expand...
Click to collapse
Hey Alting, np.
Whats in your ROM exactly?

IXI Nyx IXI said:
Hi, very nice work dude !
I have some questions though.
Is there a way to enable some network band ? Because you surely have noticed that this phone doesn't work very well in 3G outside China.
Plus do you think you can create a custom global MIUI ROM ?
Click to expand...
Click to collapse
Well there's a thread on the MiUi forums about unlocking FDD LTE: en.miui.com/thread-538090-1-1.html
but there's another thread by the same guy saying it's not possible: en.miui.com/thread-526343-1-1.html
To be honest, I haven't actually put a SIM card in mine - I've been spending all my time hacking around on it. I will put a SIM in and see what happens.

usedbytes said:
Hey Alting, np.
Whats in your ROM exactly?
Click to expand...
Click to collapse
It's just fastboot version of MultiROM Team ROM (https://multirom.me/).
Included translate to all languages of global version MIUI, gapps, e.t.c.

Hey,
I am trying to unlock the Mi5C and I already have the unlock code but when I use the Mi Flash Unlock Tool v1.1.1111.11231 it says that it couldn't verify the device.
Do you have any clue on how to solve this issue? My MIUI version is 8.1.13.0 China Stable.
Thank you so much!
Albert

look here:
http://en.miui.com/thread-536089-1-1.html
Someone talks about the installing Mi PC Suite and removing the ADB driver.
Not sure if that is helpful as I do not have a Xiaomi phone & have not used the PC Suite.

alloveras said:
Hey,
I am trying to unlock the Mi5C and I already have the unlock code but when I use the Mi Flash Unlock Tool v1.1.1111.11231 it says that it couldn't verify the device.
Do you have any clue on how to solve this issue? My MIUI version is 8.1.13.0 China Stable.
Thank you so much!
Albert
Click to expand...
Click to collapse
I had this problem as well actually. Firstly you need to make sure that you're logged in to your Mi account on the phone.
The thing that made it work for me though was finding the device in device-manager (I don't remember what it was called - some random USB device) and removing the driver for it.
There were instructions on the MiUI forums about it - if you search for the error message you should be able to find it

usedbytes said:
I had this problem as well actually. Firstly you need to make sure that you're logged in to your Mi account on the phone.
The thing that made it work for me though was finding the device in device-manager (I don't remember what it was called - some random USB device) and removing the driver for it.
There were instructions on the MiUI forums about it - if you search for the error message you should be able to find it
Click to expand...
Click to collapse
Hey there!
Thank you all for all of your detailed and quick answers!! I finally managed to unlock and flash my Xiaomi 5C!!! The problem was related with the USB drivers on my Windows 10 (x64) machine. I uninstalled them all, rebooted the system, re-installed again and the unlocking app worked like a charm!
Thank you guys again!
Greetings from Spain,
Albert

Hello,
I have managed to build TWRP touch recovery for MI 5C.
It can be found at https://ufile.io/cd6d3
We can simply boot into recovery from fastboot or flash it(recommend to test on your device first without flashing)
fastboot boot twrp.mi5c.3.1.0.img
Click to expand...
Click to collapse
And we will be able to mount any partition and get root adb access.
The recovery image is available on server for 30 days, so it will be good if someone can mirror it on a more reliable location.
I hope it helps.

swinder0161 said:
Hello,
I have managed to build TWRP touch recovery for MI 5C.
It can be found at https://ufile.io/cd6d3
We can simply boot into recovery from fastboot or flash it(recommend to test on your device first without flashing)
And we will be able to mount any partition and get root adb access.
The recovery image is available on server for 30 days, so it will be good if someone can mirror it on a more reliable location.
I hope it helps.
Click to expand...
Click to collapse
Could you tell me how you managed to root xiaomi mi5c via adb please?

IronJacob said:
Could you tell me how you managed to root xiaomi mi5c via adb please?
Click to expand...
Click to collapse
The first post of this thread explains the rooting process.

swinder0161 said:
Hello,
I have managed to build TWRP touch recovery for MI 5C.
It can be found at https://ufile.io/cd6d3
We can simply boot into recovery from fastboot or flash it(recommend to test on your device first without flashing)
And we will be able to mount any partition and get root adb access.
The recovery image is available on server for 30 days, so it will be good if someone can mirror it on a more reliable location.
I hope it helps.
Click to expand...
Click to collapse
Please show the link in this file was deleted

xiaomi mi 5c
Open lineage os 14.1 for the Xiaomi my 5c?

Hello All, i try to root this device but if i root with TWRP my phone reboot always stuck in fast boot mode what happen? Please help me..

ferry_setya said:
Hello All, i try to root this device but if i root with TWRP my phone reboot always stuck in fast boot mode what happen? Please help me..
Click to expand...
Click to collapse
Same happen to me too when i flash supersu to get rooted, these were what i did :
1. Flash "Magisk-v9.zip" (must this version, latest version will lead u to bootloop n not recommend to update via magisk manager app)
2. Flash "phh-superuser-magisk-r266-2.zip"
3. After done with twrp, reboot to system then install "me.phh.superuser_1033.apk"

bataratami said:
Same happen to me too when i flash supersu to get rooted, these were what i did :
1. Flash "Magisk-v9.zip" (must this version, latest version will lead u to bootloop n not recommend to update via magisk manager app)
2. Flash "phh-superuser-magisk-r266-2.zip"
3. After done with twrp, reboot to system then install "me.phh.superuser_1033.apk"
Click to expand...
Click to collapse
thank you for your support sir :good: but can you upload the correct version sir? I am afraid if searching on google i got wrong version for mi5c me .. and againts i really thank you sir..

Related

Tips for your Huawei Mediapad 7 Youth (s7-701u)

To root your mediapad, head over to :
forum.xda-developers.com/showthread.php?t=2620655
Hey world
I'm creating this thread so as to help most of you techies with a mediapad 7 better exploit its features
Disclaimer 1
Most tips I provide will require root
If you haven't rooted yet, head over to the link above for a how to.
Disclaimer 2
As always, anything that does ao does not happen to your device, whether as a result of your following this thread or not, is entirely your fault, and neither i nor any other parties but yourself carry any blame.
Now thats done, let's get on with it
(Forgive the lack of pretty formatting, posting from the tab)
Tip Number One: Install xposed framework, terminal emulator and Android tuner/ROM toolbox pro
For those of you who have already done this, you will agree as to how important these apps are for any modding done to an android without flashing a custom ROM or kernel.
For xposed, go here and follow the instructions:
http://www.addictivetips.com/android/what-is-xposed-framework-for-android-how-to-install-it-guide/
You can find the terminal emulator app on the play store, and also the android tuner app.
I'll try to update this thread at least once a week, but with school( igcse this year) and a spotty internet connection, don't hold me to my word too much.
Till next week, hopefully.
i have this device sir, is xposed installer compatible? how to flash back stock firmware just in case? is there a working clock work mod recovery for us? how to enter recovery by the way? thanks and more power.
PS. i've rooted my mediapad by VROOT+SuperSu.ak method.
In response to your questions
enensales said:
i have this device sir, is xposed installer compatible? how to flash back stock firmware just in case? is there a working clock work mod recovery for us? how to enter recovery by the way? thanks and more power.
PS. i've rooted my mediapad by VROOT+SuperSu.ak method.
Click to expand...
Click to collapse
Xposed installer is compatible with the device
have been using it for a while now
unfortunately the only way to recover is to update using the stock firmware from the huawei site
clockworkmod recovery I'm working on, using the online recovery builder. will start a new thread for that
and the only recovery this device currently has is not like clockworkmod but more like download mode.
I've checked
Some More Apps
More root apps for you
Try
1. Lucky patcher : For patching all your apps
http://lucky-patcher.netbew.com/
2. Videoder : For Downloading videos off the internet, including YouTube
http://videoder.en.uptodown.com/android
3. Shou : For good screen broadcasting or recording.
https://shou.tv/
Sorry for the lack of a comprehensive guide
Will get to that soon.
Kris the wizz 15 said:
Xposed installer is compatible with the device
have been using it for a while now
unfortunately the only way to recover is to update using the stock firmware from the huawei site
clockworkmod recovery I'm working on, using the online recovery builder. will start a new thread for that
and the only recovery this device currently has is not like clockworkmod but more like download mode.
I've checked
Click to expand...
Click to collapse
Kris the wizz 15 said:
More root apps for you
Try
1. Lucky patcher : For patching all your apps
http://lucky-patcher.netbew.com/
2. Videoder : For Downloading videos off the internet, including YouTube
http://videoder.en.uptodown.com/android
3. Shou : For good screen broadcasting or recording.
https://shou.tv/
Sorry for the lack of a comprehensive guide
Will get to that soon.
Click to expand...
Click to collapse
thank you so much for this sir, i'll be waiting for your guidance on this device. more power. :good:
Kris the wizz 15
hey, any update for this device , custom recovery like twrp or cwm
and custom rom like kitkat and lollipop 5,,,?
plz share, if you have any update for this device..
vwong said:
Kris the wizz 15
hey, any update for this device , custom recovery like twrp or cwm
and custom rom like kitkat and lollipop 5,,,?
plz share, if you have any update for this device..
Click to expand...
Click to collapse
Some progress, only on alpha stage though.
Check it out here
Kris the wizz 15 said:
Some progress, only on alpha stage though.
Check it out here
Click to expand...
Click to collapse
Great!!! i will try it
----------------------
Update: It not work... the recovery image isn't signed and the bootloader lockit. to make it work we need huawei crc key sign, or wait for huawei release the opensource firmware for s7-701u...
That's very true, and I've emailed them to that very effect
Kris the wizz 15 says: "I can't seem to get fastboot configured, or boot the device in bootloader. Fastboot commands therefore do not work.
Any advice on this? I'd appreciate it. "
Click to expand...
Click to collapse
You can't go to fastboot in the s7-701u beacouse it CPU is a rockchip rk3168. and Rockchip have his own "fastboot" method, by the way huawei is locking this method...
i has been conected via Rkdownload mode usin "Fashtool" "RkTool" and "RkFlashKit"software but nothing really work except to dump partitions on pc disk.
Rkdownload mode do not use "fastboot" command, and beacouse this we can't unlock the bootloader.
:crying:
More information about this here
PD: To have future custom rom for our device, we really need huawei release s7-701u open source code firmware.
puntoazul said:
You can't go to fastboot in the s7-701u beacouse it CPU is a rockchip rk3168. and Rockchip have his own "fastboot" method, by the way huawei is locking this method...
i has been conected via Rkdownload mode usin "Fashtool" "RkTool" and "RkFlashKit"software but nothing really work except to dump partitions on pc disk.
Rkdownload mode do not use "fastboot" command, and beacouse this we can't unlock the bootloader.
:crying:
More information about this here
PD: To have future custom rom for our device, we really need huawei release s7-701u open source code firmware.
Click to expand...
Click to collapse
What about now can we unlock bootloader and install twrp or cwm

Acer Predator 8 GT-810 Root needed please!

Hello, i am willing to donate if someone can figure out a way to Root the new Acer Predator 8 GT-810 Tablet. Been looking everywhere and tried many common root apps with no luck. Thanks in advance.
Mee Too! I will also donate when someone helps me to root the Acer predator 8.
Amazing tablet, but what's the point when you can't root and hook up your Ps3 controller to play some emulators?
First i need root for the device to get it Ad-free and to install appOops, to delete tons of bloatware, a working recovery would be great and some custom Roms also.
I would love to have root for this tablet too
Anybody knows, how to root Acer Predator 8 GT-810 ?
I can unlock the bootloader, unfortunately I need to compile TWRP to install the SU binaries. If anyone can point me in the right direction on how to compile TWRP for a device that no devs are working on, I would love to try to do this myself. Thanks!
herschwolf said:
I can unlock the bootloader, unfortunately I need to compile TWRP to install the SU binaries. If anyone can point me in the right direction on how to compile TWRP for a device that no devs are working on, I would love to try to do this myself. Thanks!
Click to expand...
Click to collapse
Hi man,
You can visit the "Taiwan101 ROM Factory" of Facebook to ask he how to compile TWRP to install the SU binaries.
URL as below : .facebook.com/tw101.rom.factory/?fref=ts
Please add www at the .facebook.com/
so I cannot use "post outside links".
(To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!)
And if you success root Acer GT-810, please help provide the Root Tool to me, thank you very much.:fingers-crossed:
I might have a way of easily flash TWRP, and install SuperSU, use the Temporary recovery project to boot temporarily into twrp and flashing supersu, theres an easy way of getting twrp permanently but ill try it when i get the tablet 31th of this month.
Also this temporary recovery does not require an unlocked bootloader since it uses a flaw in bootloader to load twrp, but it might be patched, just try it.
Perhaps this new found exploit can be used in rooting this tablet. http://arstechnica.com/security/201...tflips-to-root-android-phones-is-now-a-thing/
Hi, i am thinking of getting one for my son to replace his aging xoom. I want a tablet that can be rooted so I can get rid of bloat wire, not overly fussed about a rom.
I have googled rooting and came across a page How to root Acer Predator 8 GT-810 on androidrootmania.net
Has anyone tried any of these methods of root. Thankyou in advance for replies
lildanda said:
Hi, i am thinking of getting one for my son to replace his aging xoom. I want a tablet that can be rooted so I can get rid of bloat wire, not overly fussed about a rom.
I have googled rooting and came across a page How to root Acer Predator 8 GT-810 on androidrootmania.net
Has anyone tried any of these methods of root. Thankyou in advance for replies
Click to expand...
Click to collapse
androidrootmania.net is a clickbait fake website. None of the posted method works.
thexile said:
androidrootmania.net is a clickbait fake website. None of the posted method works.
Click to expand...
Click to collapse
Hi, thanks for that. :good:
Ruben Craveiro said:
I might have a way of easily flash TWRP, and install SuperSU, use the Temporary recovery project to boot temporarily into twrp and flashing supersu, theres an easy way of getting twrp permanently but ill try it when i get the tablet 31th of this month.
Also this temporary recovery does not require an unlocked bootloader since it uses a flaw in bootloader to load twrp, but it might be patched, just try it.
Click to expand...
Click to collapse
Hi Ruben Craveiro,
Could you root acer Gt-810 success ?
jackyne said:
Hi Ruben Craveiro,
Could you root acer Gt-810 success ?
Click to expand...
Click to collapse
Only got the tablet today, right now im trying to charge it.. and im a bit busy today and tomorrow so i wont be abke to do much.
Ruben Craveiro said:
Only got the tablet today, right now im trying to charge it.. and im a bit busy today and tomorrow so i wont be abke to do much.
Click to expand...
Click to collapse
it's okay, if you root Acer GT-810 successfully, please help me how to root it with root tool, Thank you very much.
I want use xposed on Acer GT-810.
I think its time to share at least some results, i was able to port TWRP 3.0.2 to this device AND ROOTING this device. ill leave twrp 3.0.2 here for who wants it. Please read all of the post.
=============================================================================================
IMPORTANT NOTE ABOUT ROOTING:
After flashing TWRP 3.0.2, use the SuperSU 2.46 flashable zip, do NOT use latest version or will result in a bootloop. Good Luck and have fun with rooting. Links on bottom of the post.
=============================================================================================
REQUIREMENTS
1- Unlocked Bootloader (search on google if you dont know how to unlock)
2- Drivers and Adb/Fastboot commands knowledge
=============================================================================================
New TWRP bugfix update! Now you can flash stock rom on TWRP without bricking! Download Page updated!
=============================================================================================
Bugs:
1- adb shell command needs to be sent before system partition is mounted or it will give an error, after doing adb shell you can mount system and do all the modifications you need.
2- You cant flash any img on twrp it gives an error, im trying to fix.
3- Backups do work, but everytime twrp restarts, the device name seems to change (which means that on /TWRP/BACKUPS/devicename/backupsinside/ changes every reboot so you have to go get the backup inside the old devicename folder and put on the new devicename folder).
=============================================================================================
Im leaving an unsecured boot image because system seems not want to boot android if anything seems changed. So please if system does not boot after flashing twrp/rooting, flash the unsecured boot img on fastboot.
=============================================================================================
Also im asking just a little bit of your time to request our device to have our own forum threads as it will make it a lot easier to manage the development and make it easier for people with same device to find it, request it here, the more people the better the higher chances we get to see a forum thread for our device: http://forum.xda-developers.com/showthread.php?t=1660354
=============================================================================================
Downloads:
Stock boot and Unsecured Boot, Stock Recovery and TWRP 3.0.2-1, SuperSU 2.46:
https://drive.google.com/file/d/0BxzG5iupOOSKNTdlRC1Wd0VmTlk/view?usp=drivesdk
Dont forget to press thanks if i helped you. Im also sorry if its a bit messed up the explanation, its hard when theres no specific threads for the device.
=============================================================================================
jackyne said:
it's okay, if you root Acer GT-810 successfully, please help me how to root it with root tool, Thank you very much.
I want use xposed on Acer GT-810.
Click to expand...
Click to collapse
I finally rooted the device! Download SuperSU 2.46 (DO NOT USE LATEST VERSION as it will cause a bootloop), and flash it with the TWRP i made that i shared on this thread.
Ruben Craveiro said:
I finally rooted the device! Download SuperSU 2.46 (DO NOT USE LATEST VERSION as it will cause a bootloop), and flash it with the TWRP i made that i shared on this thread.
Click to expand...
Click to collapse
Hi Ruben mind posting a step-by-step guide? How do you flash the TWRP? And which .img file in your shared zip file should we use?
thexile said:
Hi Ruben mind posting a step-by-step guide? How do you flash the TWRP? And which .img file in your shared zip file should we use?
Click to expand...
Click to collapse
on this thread simply scroll up and you should see it, its saying what bugs and names of the images are pretty straightforward.. flash the unsecured boot (its names osmething like that), and flash the TWRP.img, the root you will have to search on google for version 2.46, if u use the latest you will have bootloop

[GUIDE]How to root LG G Watch on 6.0.1 with squashfs

This is just a mirror to my original thread on superSU
Make sure you have adb installed either via the sdk or adb minimal
Here is a guide for anyone running android wear 6.0.1 on rooting
(from PC)
1.Unlock the bootloader if not already unlocked
(Make sure to boot to system and set up device after unlocking bootloader otherwise broken kernel! )
Code:
adb reboot bootloader
fastboot oem unlock
2.flash THIS TWRP onto the watch MAKE SURE TO USE THIS ONE!(current official cannot mount squashfs system)
Code:
fastboot flash recovery recoveryname.img
3.Download special SuperSU here with busybox YDS included HERE and move it to watch with adb push to /sdcard while TWRP is booted and then install as normal zip
Code:
adb push nameofzip.zip /sdcard/
4.Boot watch to system (ignore TWRP message of no OS installed) Now your root apps from 5.1 should work perfect
REMEMBER squashfs is read only even with root so don't bother trying to modify system files like the build.prop
If you would like to change pixel density perform this command in either adb shell or a terminal emulator:
Code:
wm density <dpi>
Please leave thanks if it helped!
New Update!
updated to superSU 2.79
reverted to previous busybox due to incompatibility
Xmaster24 said:
Feel free to submit links to twrp for squashfs watch with model name, codename and original developer's name
Will add them to this post
I DID NOT CREATE ANY OF THESE BUILDS!
LG G Watch dory(courtesy of @rbox): http://www.mediafire.com/download/apwtscp0tn0y8qd/twrp-3.0.0-0-dory+squashfs.img
Click to expand...
Click to collapse
I read in your other thread that you have your own version of TWRP? The 3.0.0.0 version I got from twrp.me doesn't seem to flash your supersu zip properly. Or at least I don't have a busybox app installed on my watch after flashing the zip.
b1g.p0ppa said:
I read in your other thread that you have your own version of TWRP? The 3.0.0.0 version I got from twrp.me doesn't seem to flash your supersu zip properly. Or at least I don't have a busybox app installed on my watch after flashing the zip.
Click to expand...
Click to collapse
yes see step 2 download the one from post below ie. the one you quoted. The one from twrp.me is outdated and cannot mount the system as it is squashfs. the one in that post can
oh sorry! the way it was situated in your post made me think it was a signature, so I didn't even read it. Thanks!
b1g.p0ppa said:
oh sorry! the way it was situated in your post made me think it was a signature, so I didn't even read it. Thanks!
Click to expand...
Click to collapse
Yes thanks for pointing that out, I have made it more obvious now.
Non-relatedid you notice xda updated this evening? notifications are broken now have to check things manually
I followed the instructions to a T and when I went to reboot in TWRP I have no OS installed what the **** happend?
EDIT: I saved myself when because I used the rootjunky tool to restore 5.1.1 then flahsed twrp on that and then flashed the update 6.0.1 zip from another thread on here. Hopefully I can figure this out. I'm good with android phone... first time messing with android wear.
EDIT: Second time is the charm I guess. Thanks for nobody screaming at me and calling me a nub!
codyedmonson said:
I followed the instructions to a T and when I went to reboot in TWRP I have no OS installed what the **** happend?
EDIT: I saved myself when because I used the rootjunky tool to restore 5.1.1 then flahsed twrp on that and then flashed the update 6.0.1 zip from another thread on here. Hopefully I can figure this out. I'm good with android phone... first time messing with android wear.
EDIT: Second time is the charm I guess. Thanks for nobody screaming at me and calling me a nub!
Click to expand...
Click to collapse
Um probably should have told people but TWRP would say that but you should just ignore it cause your system is there
Xmaster24 said:
Um probably should have told people but TWRP would say that but you should just ignore it cause your system is there
Click to expand...
Click to collapse
Yeahhh I figured that out after a while. My knowledge with rooting android wear is very limited at the moment. I've read as much as I could in one night lol. After figuring everything out with twrp/rooting I know have root and everything is going smoothly. Thanks for the tut!
okay, i used ur tutorial... fastboot flashed the twrp and pushed the supersu via adb to the sd... installed the zip via twrp... on leaving twrp it says "no os installed"... when i try to reboot the system it always just boots straight into twrp
/edit
okay! please add to your tutorial that you have to reboot and pair your watch first, after unlocking the bootloader! thx
cYraXx said:
okay, i used ur tutorial... fastboot flashed the twrp and pushed the supersu via adb to the sd... installed the zip via twrp... on leaving twrp it says "no os installed"... when i try to reboot the system it always just boots straight into twrp
/edit
okay! please add to your tutorial that you have to reboot and pair your watch first, after unlocking the bootloader! thx
Click to expand...
Click to collapse
Thanks was not aware that was a requirement strange that that happens
his thread gets a tad confussing ..is there a clear guide on doing 6.0.1 ? please..
Eggman72 said:
his thread gets a tad confussing ..is there a clear guide on doing 6.0.1 ? please..
Click to expand...
Click to collapse
What's confusing you? It's almost the same as rooting a phone flash twrp install supersu zip
Posters saying this is missing etc...im unsure whether posted tools etc are all there...rooted plenty of phones etc..just never a smartwatch..dont want to end up with a nice paperweight (I know its always a risk) seems some people have had a couple of issues Os missing etc..
Eggman72 said:
Posters saying this is missing etc...im unsure whether posted tools etc are all there...rooted plenty of phones etc..just never a smartwatch..dont want to end up with a nice paperweight (I know its always a risk) seems some people have had a couple of issues Os missing etc..
Click to expand...
Click to collapse
OS missing is just fault of twrp not me besides it's meaningless error it simply cannot write to system so it assumes it those not exist. Everything you need is there apart from adb but just get adb minimal from XDA. With my method there is no risk of a paperweight it only touches recovery and kernel which both can be easily replaced. The only thing that can really kill a phone is a messed up bootloader update/mod. I have taken everything posters said into account and updated accordingly. Originally I just wrote what worked for me but now I updated it for universal use
Thanks for the reply & clarificartion.. you say 1.Unlock the bootloader if not already unlocked
(Make sure to set up device after unlocking bootloader otherwise no boot!) does that mean after unlock it will reboot into OS and you perform language setup & pairing ? or after its done the unlock it go's straight into os for setup ?
Eggman72 said:
Thanks for the reply & clarificartion.. you say 1.Unlock the bootloader if not already unlocked
(Make sure to set up device after unlocking bootloader otherwise no boot!) does that mean after unlock it will reboot into OS and you perform language setup & pairing ? or after its done the unlock it go's straight into os for setup ?
Click to expand...
Click to collapse
After unlocking go straight to OS and setup because rooting with an empty data partition breaks the kernel
Do you reboot or does just go straight in ?
Eggman72 said:
Do you reboot or does just go straight in ?
Click to expand...
Click to collapse
I'm not sure I think it does yes just try it if it thosen't its simple as clicking start on the watch bootloader screen
bootloader unlocked fine..twrp installed fine..pushed files install and i get this error..any clues guys ?busy box installs but no super user... help !!!

Redmi 5 plus bought in china and brought to Europe; put a standard android

Hello, I'm a noob in modding a phone, but I want to try
Some years ago a friend of mine bought a redmi5plus in China and brought it in Europe; he put on it a global MIUI and registered it with a MI account.
Now he sold me his phone, and correctly disassociated it from his account.
What it would be nice to do is to remove the MIUI global, and put a stock android OS, like android 8.1 (with google apps), because I want to give it to my father, and he's a bit old, he learned the standard android and can't fit with the MIUI one (he still asks "where the hack is the menu button with all my apps?" and similar).
So, a pure OS, no MIUI, no non-google-basic apps.
Since I'm quite a noob (ok, I have a computer science degree but I've never touched a phone), could you please help me on learning how to do this?
(or if there's a guide on how to do that, what are the OS list i can mount on it, no problem, just link me)
edit: specs are:
- model: redmi 5 plus
- android version: 7.1.2 N2G47H
- MIUI version: MIUI global 9.2 | stabile 9.2.6.0(NEGMIEK)
- band base: 953_GEN_PACK-1.129634.1.131253.1
- kernel version: 3.18.31-perf-g439dbb6
Thanks!
First you must unlock the bootloader with waiting
https://en.miui.com/unlock/download_en.html
The unlock tool will tell u how long.
Then u need a recovery like
https://forum.xda-developers.com/re...t/recovery-orangefox-recovery-xiaomi-t4054193
This work for orangefox too
https://www.xda-developers.com/how-to-install-twrp/
After you flash over ADB, you must flash again the orangefox.zip in recovery.
And roms look in the right section
You can find many guides at xda
joke19 said:
First you must unlock the bootloader with waiting
https://en.miui.com/unlock/download_en.html
The unlock tool will tell u how long.
Then u need a recovery like
https://forum.xda-developers.com/re...t/recovery-orangefox-recovery-xiaomi-t4054193
This work for orangefox too
https://www.xda-developers.com/how-to-install-twrp/
After you flash over ADB, you must flash again the orangefox.zip in recovery.
And roms look in the right section
You can find many guides at xda
Click to expand...
Click to collapse
Thanks so much man, at least now I know the right steps to do!
Hope everything will be good, tomorrow I'll try.
p.s.: is it necessary orangefox or just TWRP is enough?
tiec7 said:
Thanks so much man, at least now I know the right steps to do!
Hope everything will be good, tomorrow I'll try.
p.s.: is it necessary orangefox or just TWRP is enough?
Click to expand...
Click to collapse
Is your choice what recovery u use, I like orangefox.
joke19 said:
Is your choice what recovery u use, I like orangefox.
Click to expand...
Click to collapse
ah i see I think I need a lightweight one, because this phone will be used by my father
Do you think it's possible to install a standard android 8.1 ? does it exist as a rom?
tiec7 said:
ah i see I think I need a lightweight one, because this phone will be used by my father
Do you think it's possible to install a standard android 8.1 ? does it exist as a rom?
Click to expand...
Click to collapse
No, but you can make miui that it look like stock with a theme and a customer launcher.
Maybe you can use the Xiaomi eu rom.
Google it. It's nice
Sent from my Mi Note 10 using XDA Labs
joke19 said:
No, but you can make miui that it look like stock with a theme and a customer launcher.
Maybe you can use the Xiaomi eu rom.
Google it. It's nice
Sent from my Mi Note 10 using XDA Labs
Click to expand...
Click to collapse
mmm i had a look but i think i'll try evolutionX ( the one in this post: https://forum.xda-developers.com/redmi-note-5/development/evolution-x-4-4-redmi-5-plus-t4122467 )
is there a small guide on how to do the steps to install it? =)
Until now I just disassociated this phone from the old account (was my friend account who gave this phone to me) and I just looked into developer settings and i saw that is already unlocked (don't exactly know what does it means but is it, if there's some explanation of those things in some guide...)
ok, i tried to install it without success, the phone now goes in black screen and stays there.
I installed TWRP with
fastboot devices
fastboot flash recovery twrp.img
boot twrp.img
this step was ok, if i do it from a command line connecting my phone in fastboot mode to the pc, it starts.
then i went on "install" and installed the zip file
EvolutionX_4.5_vince-10.0-20200714-0943-OFFICIAL.zip
from here
https://forum.xda-developers.com/redmi-note-5/development/evolution-x-4-4-redmi-5-plus-t4122467
after that, i rebooted the redmi 5 plus and boom, black screen after some seconds of "mi" screen.
can anyone help me?
ok, i've managed it: i followed these guides: https://forum.xda-developers.com/android/general/how-to-fix-unable-to-mount-data-t3830897
now, I installed havocOS but I just realized there's no camera app. why? how can i do to have it?
edit: no wifi and no mobile connection!! without any of the roms I tried!
someone has any idea?
duplicate
tiec7 said:
ok, i've managed it: i followed these guides: https://forum.xda-developers.com/android/general/how-to-fix-unable-to-mount-data-t3830897
now, I installed havocOS but I just realized there's no camera app. why? how can i do to have it?
edit: no wifi and no mobile connection!! without any of the roms I tried!
someone has any idea?
Click to expand...
Click to collapse
Flash orangefox, install the last global firmware, reboot to the recovery, format not wipe the data partition, reboot again and then your rom
https://xiaomifirmwareupdater.com/firmware/vince/
Sent from my Mi Note 10 using XDA
joke19 said:
Flash orangefox, install the last global firmware, reboot to the recovery, format not wipe the data partition, reboot again and then your rom
https://xiaomifirmwareupdater.com/firmware/vince/
Sent from my Mi Note 10 using XDA
Click to expand...
Click to collapse
the problem with no SIM and no WIFI was exactly the firmware. I didn't even know a phone had a firmware!!
Thanks!!
Now it works with EvolutionX; absolutely no chance of working with
- crDroid
- MSM Xtended
- coltOS
- resurrection remix
- HavocOS
with all of these it gives me a misterious "error 7" during install. Do you know what is this error?
Ok, i solved.
I was absolutely CERTAIN that the ROM I wanted to install was the one made for my redmi 5 plus,
(filename is Havoc-OS-v3.7-20200726-vince-Official-GApps.zip )
so what i did was
- I went to META-INF\com\google\android inside the zip file with winrar
- unzipped to desktop the updater-script file
- since my phone is TOTALLY EMPTY, i changed those lines:
* removed line
Code:
run_program("/tmp/install/bin/backuptool.sh", "backup", "/dev/block/bootdevice/by-name/system", "ext4");
* removed line
Code:
run_program("/tmp/install/bin/backuptool.sh", "restore", "/dev/block/bootdevice/by-name/system", "ext4");
* then, since I read a lot about that but no one ever posted the result, i tried changing this line
Code:
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
with this line:
Code:
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat");
and i re-inserted this file draggin and droppin it in the winrar window, where the old file was; DO NOT CHANGE THE NAME OF THE ZIP or it will be thrown an error on the zip name;
- wiped system, dalvik, cache, data (if it gives some errors, reboot and retry; if still errors, i formatted data in ext2 then re-formatted in ext4 )
- installed the modded zip
everything went ok.
I am anyway really disappointed by this community, not a single help in 3 days, just "follow guides". Just thanks to joke19 who at least tried to help me giving me some basic info.
tiec7 said:
Ok, i solved.
I was absolutely CERTAIN that the ROM I wanted to install was the one made for my redmi 5 plus,
(filename is Havoc-OS-v3.7-20200726-vince-Official-GApps.zip )
so what i did was
- I went to META-INF\com\google\android inside the zip file with winrar
- unzipped to desktop the updater-script file
- since my phone is TOTALLY EMPTY, i changed those lines:
* removed line
* removed line
* then, since I read a lot about that but no one ever posted the result, i tried changing this line
with this line:
and i re-inserted this file draggin and droppin it in the winrar window, where the old file was; DO NOT CHANGE THE NAME OF THE ZIP or it will be thrown an error on the zip name;
- wiped system, dalvik, cache, data (if it gives some errors, reboot and retry; if still errors, i formatted data in ext2 then re-formatted in ext4 )
- installed the modded zip
everything went ok.
I am anyway really disappointed by this community, not a single help in 3 days, just "follow guides". Just thanks to joke19 who at least tried to help me giving me some basic info.
Click to expand...
Click to collapse
Me too. Nobody push the thanks button in this thread.
Sent from my Mi Note 10 using XDA Labs

How to unlock your bootloader (Chinese ROM)

Credit to @user_ScoTTT
1. First of all, you need to sign up and login on the official website of Oppo in China. (Use Google Translate if you need to)
https://bbs.coloros.net/graphic?id=1498611
2. Follow the links and download the unlock program of Oppo Find x2 /x2 pro
3. Install the apk on your phone
4. Ensure your device has the latest version of your ROM installed.
5. Click "Start Applying" on the Unlock App. You will need to wait about a month. After a month, open the application, and if "Approved" is displayed, please go to the next step.
If not, Force Close the Application several times over and over, and maybe it will display "Approved".(Some Chinese citizens reported a similar situation.)If you still can't, please contact oppo online customer service, they can solve this problem for you.
6. Next, please back up your data.
7. After receiving the 'Approval' in the app.
Go to Settings - about mobile phone - version information - version number Click here five times.
Go to settings - other settings - Developer options then Check OEM unlock.
8. Once again, open the Deep Test application and click "Start the Depth Test". The phone will automatically restart and enter Bootloader mode.
9. Connect your phone to the computer.
10. Open the command prompt browse to your adb/fastboot location and enter
"fastboot flashing unlock"
then confirm. At this time, the mobile phone will give some warning information. Please read it carefully before making a decision.
If you decide, choose "unlock the bootloader" and press the power key to restart. It is worth noting that the phone will be formatted here. If you have opened "find my phone" before, you need to enter your oppo account password to start your phone.
11. You now setup your phone as normal though with an unlocked bootloader.
12. If you wish to Root then please see this guide: https://forum.xda-developers.com/find-x2-pro/how-to/magisk-root-install-unlocked-bootloader-t4157327
can i flash global rom after unlocked bootloader ?
i was wondering the same thing. i dont see why not. give it a shot and let us know. you have nothing to lose it will simply not let you flash if it doesnt work and your existing ROM/Phone will be unaffected.
Ok, so I've unlocked my Chinese Find X2 Pro using the official method, which is by using the depth testing app and waiting for approval, then unlocking via Fastboot.
But I still can't flash the global ROM using the stock ColorOS recovery. I've tried various versions, just either get the 'Installation failed' or 'The installed version is lower than current' error.
Do I need to wait until TWRP is available for the X2 Pro or is there another way? I don't want to root, just install the stock ROM from another region. Will Magisk allow me to do this?
Was really hoping unlocking the bootloader would do it, guess it's a good start
bugger.. it would appear that the ColorOS Recovery is preventing the install. So yes you would need TWRP or someone to hack the ColorOS recovery to flash without the check.
though with an unlocked bootloader you can flash TWRP as soon as it's been developed by someone.. or risk flashing a twrp from a similiar phone?
Bugger indeed, I've bricked it! Tried various ways to do it as really need to get rid of this Chinese ROM. I flashed a Boot image from a global version, didn't work. Then flashed the Chinese version back.
So then in a bold (stupid) move I tried to flash other images from the global ROM - now won't load into recovery at all. With nothing to lose I tried loading TWRP recovery from one of the latest Realme phones this morning, didn't fix it.
What is weird is in Oppo / Realme ROMs there is no recovery image - not sure if it's part of the boot image?
Does anyone know how to obtain a recovery image? I think this is what I'm missing. Thinking maybe it's not part of the ROM on these devices.
---------- Post added at 04:27 PM ---------- Previous post was at 04:22 PM ----------
And FYI, I've been using a python tool to decrypt the ozip files. Have looked in multiple ROMs, beta and standard, Chinese and global and even a few Realme ROMs.
I'm starting to hate Oppo, it's even more of a pain in the ass than Samsung! :silly:
I bought a Xiaomi Mi Mix 3 5G yesterday off eBay just to get me by for the time being, it was a carrier version and I managed to get the stock global ROM with MI12 on it in 30 minutes using fastboot and flashing all the images. Refreshingly easy
klanbo78 said:
Bugger indeed, I've bricked it! Tried various ways to do it as really need to get rid of this Chinese ROM. I flashed a Boot image from a global version, didn't work. Then flashed the Chinese version back.
So then in a bold (stupid) move I tried to flash other images from the global ROM - now won't load into recovery at all. With nothing to lose I tried loading TWRP recovery from one of the latest Realme phones this morning, didn't fix it.
What is weird is in Oppo / Realme ROMs there is no recovery image - not sure if it's part of the boot image?
Does anyone know how to obtain a recovery image? I think this is what I'm missing. Thinking maybe it's not part of the ROM on these devices.
---------- Post added at 04:27 PM ---------- Previous post was at 04:22 PM ----------
What method were you using to flash mate?
I had a look at the extract of the Global ROM and can see a heap of img files.. though your right there is no obvious Recovery image file.
That is strange. As the device has a Recovery mode. It would be very strange to make it part of the Boot Image. Surely Oppo has a recover tool that just puts everything back to default?
Click to expand...
Click to collapse
Sage said:
What method were you using to flash mate?
Click to expand...
Click to collapse
Just using the adb toools via command prompt on my PC and phone on fastboot mode.
I.e. fastboot flash boot boot.img
There's no system image either, only vbmeta_system.img which I don't think it's the same thing. Watching YouTube videos and searching the internet now to try and figure out
Finally managed to get the phone back up and running after brushing up on Linux and downloading various tools. Basically this thread saved me!! https://forum.xda-developers.com/realme-x50-pro/help/stock-recovery-image-t4111477/page6
As mentioned, the recovery image is not to be found in the firmware. So once you decrypt the Ozip file (using python tool like the one in the above post), you'll see the boot.img file along with various others, but no system, vendor or recovery images. Using the UR-Tool mentioned and a simple linux command I managed to create a recovery image.
Flased it using fastboot and now all working - still on Chinese ROM though. Next step is to try to flash the global image onto this Chinese variant - expect I'll brick it again
klanbo78 said:
Finally managed to get the phone back up and running after brushing up on Linux and downloading various tools. Basically this thread saved me!! https://forum.xda-developers.com/realme-x50-pro/help/stock-recovery-image-t4111477/page6
As mentioned, the recovery image is not to be found in the firmware. So once you decrypt the Ozip file (using python tool like the one in the above post), you'll see the boot.img file along with various others, but no system, vendor or recovery images. Using the UR-Tool mentioned and a simple linux command I managed to create a recovery image.
Flased it using fastboot and now all working - still on Chinese ROM though. Next step is to try to flash the global image onto this Chinese variant - expect I'll brick it again
Click to expand...
Click to collapse
Impressive mate well done! And thanks for posting the solution! With a recovery.img file you are now free to experiment! I hope you get the Global Working! Please keep us up to date!
Can you upload the recovery.img to help the community?
Sage said:
Impressive mate well done! And thanks for posting the solution! With a recovery.img file you are now free to experiment! I hope you get the Global Working! Please keep us up to date!
Can you upload the recovery.img to help the community?
Click to expand...
Click to collapse
You will be the first person in the world to have an unlocked bootloader on the Global ROM!
surely with some combination of Global and Chinese it will work!
Chinese Recovery -> Global Boot -> Global ROM -> Chinese Vendor
Global Recovery -> Global Boot -> Global System -> Chinese Vendor
Chinese Recovery -> Chinese Boot -> Global System -> Global Vendor
etc
etc
Sage said:
You will be the first person in the world to have an unlocked bootloader on the Global ROM!
surely with some combination of Global and Chinese it will work!
Chinese Recovery -> Global Boot -> Global ROM -> Chinese Vendor
Global Recovery -> Global Boot -> Global System -> Chinese Vendor
Chinese Recovery -> Chinese Boot -> Global System -> Global Vendor
etc
etc
Click to expand...
Click to collapse
Thanks for your support
I'll upload the recovery images for the global and Chinese variants once I'm back on my desktop later.
So the issue I'm facing now is it this phone doesn't have a system, vendor or product partition. My assumption is that I need to flash the global system image, as that's the one that basically contains the OS.
I think that these images are contained within the "super" partition which appears to be a dynamically resizable partition. I have no idea how to flash to these!
I'm trying to make sense of it all but fastbootd has come up a few times, which apparently is needed to flash to userspace which is where this super partition resides.
I can see in the ROM there is an updater script file that refers to these images, create groups in the super partition and resizes them as necessary. It seems to use the vb_meta_system image in some way. I have no idea how to replicate this script in fastboot though or if it's even possible?
Can anyone help?
---------- Post added at 08:59 AM ---------- Previous post was at 08:46 AM ----------
A bit of info on dynamic partitions...
https://source.android.com/devices/tech/ota/dynamic_partitions/implement
vbmeta.img removes the boot verification so you definitely want to use that. see this thread for its use.
https://forum.xda-developers.com/find-x2-pro/how-to/magisk-root-install-unlocked-bootloader-t4157327
I downloaded the depth testing app but the submit application is greyed out. Any tips on what to do?
golemagg said:
I downloaded the depth testing app but the submit application is greyed out. Any tips on what to do?
Click to expand...
Click to collapse
I know they have a monthly quota, perhaps it's been reached this month.
Or maybe the servers are down? there were a few days during my application that I couldn't check the status, just assumed the server was offline - perhaps it's something like that.
Maybe just wait a few days and see.
Where is you download the app from? And do you have the Chinese variant?
klanbo78 said:
I know they have a monthly quota, perhaps it's been reached this month.
Or maybe the servers are down? there were a few days during my application that I couldn't check the status, just assumed the server was offline or something like that - perhaps it's something like that.
Maybe just wait a few days and see.
Where is you download the app from? And do you have the Chinese variant?
Click to expand...
Click to collapse
Understood. I'll keep monitoring it. Thanks a lot for the information.
klanbo78 said:
Finally managed to get the phone back up and running after brushing up on Linux and downloading various tools. Basically this thread saved me!! https://forum.xda-developers.com/realme-x50-pro/help/stock-recovery-image-t4111477/page6
As mentioned, the recovery image is not to be found in the firmware. So once you decrypt the Ozip file (using python tool like the one in the above post), you'll see the boot.img file along with various others, but no system, vendor or recovery images. Using the UR-Tool mentioned and a simple linux command I managed to create a recovery image.
Flased it using fastboot and now all working - still on Chinese ROM though. Next step is to try to flash the global image onto this Chinese variant - expect I'll brick it again
Click to expand...
Click to collapse
Can you please upload the recovery.img for people to use?
any other progress to report?
Sage said:
Can you please upload the recovery.img for people to use?
any other progress to report?
Click to expand...
Click to collapse
Yeah, that would be really nice. I couldn't boot also in recovery after android 11 beta:silly:
Sage said:
Can you please upload the recovery.img for people to use?
any other progress to report?
Click to expand...
Click to collapse
Here's the link to the recovery (and boot) images, have zipped them as they're quite large. I've included both variants (so PDEM30 and CPH2025).
https://drive.google.com/drive/folders/1HkNeQSuzsPDdue4KqRbDWLah0YH-CSwb?usp=sharing
In terms of progress, there is none. I got a bit adventurous and decided to flash all of the partitons on my PDEM30 with the images from the CPH2025 (manaully as there is no "flash-all.bat" file in the OTA ROM). I think it would have worked as it has for phones I've flashed this way in the past, but as I now know phones that launced with Android 10 are quite different due to having a dynamic "super" partition. This super partition contains the system, product, vendor image, etc. It should not (can't be) be flashed from fastboot as it's held in the "user space" of the phone and fastboot doesn't know how to deal with these partition types.
Pixel devices have a program called fastbootd which I think can be used for this, but Oppo doesn't appear to have that mode. Basically the phone now won't boot to recovery at all, I can only get into fastboot mode.
Not even worth holding out for TWRP as as of right now, TWRP doesn't support these dynamic partions (so any phone launced with Android 10). I contacted Oppo UK support and they said I could send in for repair, but then got told by the company who would be doing the repair (SBE UK) that they only support UK and EU devices. So looks like it might be going back to China for a repair (just need to find a freind who speaks Chinese )
Before that though I'm going to see if I can edit the recovery.img in Android Kitchen, to see if I can find the bit that's responsible for it not booting into recovery mode. I think at this point I have nothing to lose!!
I can't download unlock program of Oppo Find x2 / x2 pro, can you help me download it, thanks

Categories

Resources