[Tool] Recovery Flasher! - Xiaomi Mi 4C

Mi4c Recovery Flash Tools!
I wrote a few batch scripts to simplify flashing recoveries on the Mi4c and just wanted to share it!
Its also requires
1) Unlocked bootloader
2) adb and xiaomi drivers (files are included).
To run it, make sure you have usb debugging enabled (if you don't know how to do this, it will be at the bottom).
Then extract the files and run flashtwrp.bat or flashstock.bat, depending on if you want to flash twrp,
or if you want to flash stock and you will be walked through the process by the scripts.
Also, for those who want root, just install the SuperSU script after TWRP installs.
If there are any problems, just leave a reply and ill try and help.
Thank you!
Click here to download
How To Enable USB debugging
To enable usb debugging, goto
Settings>About phone>MIUI Version
and then keep tapping the miui version until the popup says "You are now a developer".
Now, goto
Settings>Additional settings>Developer settings
and turn on USB debugging

Omg it works! But why did I have to put in my credit card info?

cthuluhoop123 said:
Omg it works! But why did I have to put in my credit card info?
Click to expand...
Click to collapse
You don't have to :silly:

No other comments?
Does that work?

Worked very nicelly. Thanks a lot!

where's i must put a twrp.img ?
thanks

After TWRP booted, I need to select Read only or swipe to allow modifications. But screen is not responding

need unlocked bootloader first ?

andylitias said:
need unlocked bootloader first ?
Click to expand...
Click to collapse
As with flashing any recovery, yes

BlackXhorneT said:
As with flashing any recovery, yes
Click to expand...
Click to collapse
I not understand, could you explain please ?

andylitias said:
I not understand, could you explain please ?
Click to expand...
Click to collapse
... yes you need to unlock your boot loader

le1t00 said:
After TWRP booted, I need to select Read only or swipe to allow modifications. But screen is not responding
Click to expand...
Click to collapse
*sorry for late response*
It seems like it takes a while for the screen to become responsive in TWRP; I don't know why.
I will check it if there are any new twrp updates if it fixes it.

andylitias said:
need unlocked bootloader first ?
Click to expand...
Click to collapse
*sorry for late response*
Yep. It does. I forgot to write it on original post. I've added it as prerequisite on the post.

le1t00 said:
After TWRP booted, I need to select Read only or swipe to allow modifications. But screen is not responding
Click to expand...
Click to collapse
KuHaKu said:
*sorry for late response*
It seems like it takes a while for the screen to become responsive in TWRP; I don't know why.
I will check it if there are any new twrp updates if it fixes it.
Click to expand...
Click to collapse
I've moved to TeamSuperluminal's TWRP. It fixes the touchscreen issue.
Fixed Script is available on 1st post.

Related

[Q] PAC V23 Wifi not turning on.

Hello!
Was wondering could anyone help me?
I used ROM manager to backup and install v23 (from 22.3.0), but after the install the wifi won't turn on. There's no response when I touch the symbol in the quick settings and even when I go in to full settings the slider is grey and I'll just get a 'wifi turning on' message and it gets stuck on that.
I'm quite the newbie at this (hence the username), but was wondering could anyone give me a hand? Thank you!
same issue here. Upgraded from 22.3 to 23.0 and wifi wont work. MAC address would show as unavailable. Seems like a wifi driver issue.:crying:
If you're htcdev unlocked, have you flashed the boot.img of the new version?
teadrinker said:
If you're htcdev unlocked, have you flashed the boot.img of the new version?
Click to expand...
Click to collapse
That helped. Flashing the new boot image worked. Thanks
teadrinker said:
If you're htcdev unlocked, have you flashed the boot.img of the new version?
Click to expand...
Click to collapse
Wow! Didn't expect a reply so soon. Great community.
I'll try the flash method instead of just using the 'install ROM' feature in ROM Manager.
Eh, just so I'm sure. Flashing is running the command line while the phone is connected via usb (in recovery).
I wrote the commands down somewhere, but (again, apologies for the newbiness) is there a link or somewhere with the commands?
Thanks for all your help. I took a backup on v22.3.0 and just restored that (working fine...still getting the odd shutdown, but an amazing rom!).
xdanewbnewb said:
Eh, just so I'm sure. Flashing is running the command line while the phone is connected via usb (in recovery).
I wrote the commands down somewhere, but (again, apologies for the newbiness) is there a link or somewhere with the commands?
Click to expand...
Click to collapse
Reboot into bootloader/fastboot USB mode
Make sure u have the latest version of HTC drivers installed on your PC
run 'fastboot.exe devices' from platform-tools folder in android sdk.
If your device is listed, then run 'fastboot.exe flash boot <path_to_boot.img>'
reboot your device
imza said:
Reboot into bootloader/fastboot USB mode
Make sure u have the latest version of HTC drivers installed on your PC
run 'fastboot.exe devices' from platform-tolls folder in android sdk.
[*] If your device is listed, then run 'fastboot.exe flash boot <path_to_boot.img>'
reboot your device
Click to expand...
Click to collapse
Thanks for that.
The only thing is the bolded bits. I didn't do it this way initially, just all through command prompt.
I'll work on this later...can't at the moment!
smithryan6 said:
What more do you want
Click to expand...
Click to collapse
Less attitude and for this thread to stay on topic.
xdanewbnewb said:
Thanks for that.
The only thing is the bolded bits. I didn't do it this way initially, just all through command prompt.
I'll work on this later...can't at the moment!
Click to expand...
Click to collapse
The bold bits are to be run through the command prompt
teadrinker said:
The bold bits are to be run through the command prompt
Click to expand...
Click to collapse
Ah....<facepalm>. Got you.
Just having my first coffee of the day. That should make me a bit more alert! Until the tenth one...when I'm a jittery mess.
Thanks to all who replied some constructive responses and that it wasn't only me who had the fault. I'll try the earlier mentioned fix and see if that helps as it did another user.
Sorry for the double post but I think this can be marked as [SOLVED]
I started again by booting in to recovery, deleted cache, dalvik cache. Installed from zip file, installed the gapps from zip then booted in to bootloader and flashed the boot.img and wifi works! It's also telling me in the About that it's up to v23 but I'm just making sure I did everything right as all my apps\contacts\sms's are still there. Is this correct? I was under the impression that it'd all be wiped (hence the ROM manager backup).
Apologies for the newb-ness.

Just updated to XNPH05Q - help

So I lost twrp and root, Whats the easiest way to get root back or twrp as I cant get into twrp recovery to try and flash supersu.
SysAdmNj said:
So I lost twrp and root, Whats the easiest way to get root back or twrp as I cant get into twrp recovery to try and flash supersu.
Click to expand...
Click to collapse
You'll probably need to flash a custom recovery via fastboot/toolkit, you can root at the same time or flash a supersu zip once you have your custom recovery.
gsmyth said:
You'll probably need to flash a custom recovery via fastboot/toolkit, you can root at the same time or flash a supersu zip once you have your custom recovery.
Click to expand...
Click to collapse
Dammit, I should of asked first before updating lol. Thanks, I guess I'll have to go that route.
SysAdmNj said:
Dammit, I should of asked first before updating lol. Thanks, I guess I'll have to go that route.
Click to expand...
Click to collapse
Same thing happened to me, but at least its simple enough to sort. Doesn't help if you're not near a PC and can't wait though!
For future reference remember and untick update CM recovery in developer options
gsmyth said:
Same thing happened to me, but at least its simple enough to sort. Doesn't help if you're not near a PC and can't wait though!
Click to expand...
Click to collapse
Yup, gotta wait till this evening.
bombadier said:
For future reference remember and untick update CM recovery in developer options
Click to expand...
Click to collapse
Jeez, missed that as well. Thanks.
Re-Install TWRP through Play Store no PC needed
Cholerabob said:
Re-Install TWRP through Play Store no PC needed
Click to expand...
Click to collapse
But you need root to do that, no?
SysAdmNj said:
But you need root to do that, no?
Click to expand...
Click to collapse
That's right, the TWRP app is really unreliable anyway so don't bother with it. Why don't you just flash TWRP the normal way, with fastboot?
Transmitted via Bacon

installed CM12 and lost root and recovery

Hi chaps, yesterday I had an update (CM12) on my rooted OPO and after having done the update I lost root (which I knew I would have anyway) but, surprisingly I also lost TWRP, which is rather unusual. So now, my question is, do I have to go through the whole rooting procedure again as detailed here http://forum.xda-developers.com/showthread.php?t=2788632 (procedure which, incidentally, I followed the first time I rooted my phone last year) or if not, what should I do? What steps should I skip?
thanks
duratto said:
Hi chaps, yesterday I had an update (CM12) on my rooted OPO and after having done the update I lost root (which I knew I would have anyway) but, surprisingly I also lost TWRP, which is rather unusual. So now, my question is, do I have to go through the whole rooting procedure again as detailed here http://forum.xda-developers.com/showthread.php?t=2788632 (procedure which, incidentally, I followed the first time I rooted my phone last year) or if not, what should I do? What steps should I skip?
thanks
Click to expand...
Click to collapse
See this thread, someone with a similar problem, pretty easy to sort if you're near a PC. Just remember to boot back into recovery, before rebooting fully and also turn off the 'update cyanogen recovery' option under developer options.
http://forum.xda-developers.com/showpost.php?p=60446476&postcount=4
Thanks mate, had a very quick look, so essentially the answer is yes, I have to go through the whole procedure again and do it either through the procedure in the first link or in the second (with the toolkit)
thanks
gsmyth said:
See this thread, someone with a similar problem, pretty easy to sort if you're near a PC. Just remember to boot back into recovery, before rebooting fully and also turn off the 'update cyanogen recovery' option under developer options.
http://forum.xda-developers.com/showpost.php?p=60446476&postcount=4
Click to expand...
Click to collapse
duratto said:
Thanks mate, had a very quick look, so essentially the answer is yes, I have to go through the whole procedure again and do it either through the procedure in the first link or in the second (with the toolkit)
thanks
Click to expand...
Click to collapse
You just need to flash a custom recovery via fastboot or using a PC tool. You can then flash a superSU zip to get root.
Cool thanks. OK so I don't need to unlock the bootloader, I can just go to step 2 in here http://forum.xda-developers.com/showthread.php?t=2788632
gsmyth said:
You just need to flash a custom recovery via fastboot or using a PC tool. You can then flash a superSU zip to get root.
Click to expand...
Click to collapse
duratto said:
Cool thanks. OK so I don't need to unlock the bootloader, I can just go to step 2 in here http://forum.xda-developers.com/showthread.php?t=2788632
Click to expand...
Click to collapse
Your bootloader is still unlocked, so no need to do that again.
Ah brilliant, thanks for clarifying that!

How To Root Oxygen 5.1.7

Oneplus updated the OnePlus 6's Bootloader and you may ask yourself 'Can i still root?'
The answer is yes. It is easy.
1. At first, your bootloader has to be unlocked
2. Just download the Twrp.img and the Twrp installer from twrp.me, then the latest magisk installer
3. Put the magisk.zip and twrp installer zip into the root of your device and boot into bootloader
4. Now you have to open a new shell or cmd window in your adb folder, then type "Fastboot devices" there
5. If your phone is recognized, then do this command: " fastboot boot .\twrp-3.2.1-0-enchilada.img"
6. The op6 should boot into the TWRP, there type in your pincode, pattern, or what so ever you have. If you get a message because of system modification, click 'Keep read only'
7. Go to 'Install', then flash the TWRP installer zip, then magisk right after it
8. Just reboot and enjoy
The procedure is the same as always. I can confirm it's working because i rooted a few minutes ago
Just keep in mind the kernels and custom roms haven't been updated to 5.1.7 base yet and may not work until they are.
iElvis said:
Just keep in mind the kernels and custom roms haven't been updated to 5.1.7 base yet and may not work until they are.
Click to expand...
Click to collapse
Forgot the mention that, thanks!
Edit: Screenshots
Flash kernel works. Btw please don't create threads on how to root if the method hasn't changed lol
joemossjr said:
Flash kernel works. Btw please don't create threads on how to root if the method hasn't changed lol
Click to expand...
Click to collapse
Sorry, I thought that would be helpful for people who are worried about root because of updated bootloader.
A Moderator can remove this thread then
joemossjr said:
Flash kernel works. Btw please don't create threads on how to root if the method hasn't changed lol
Click to expand...
Click to collapse
Based on how things have been going so far, people are going to be asking. Just saying.
i understand butttttttttttttttttttttt this forum is flooded with how to flash twrp, how to root with 5.1.6, how to install 5.1.5 with twrp ect ect ect lol just trying to reduce clutter and make things a tad bit simpler. No offense guys lol
So if I already have twrp and Magisk installed is the method still the same?
Will this update lock the bootloader back?
Pretty sure I swiped to allow system modifications on my first twrp installation so will that matter?
joemossjr said:
i understand butttttttttttttttttttttt this forum is flooded with how to flash twrp, how to root with 5.1.6, how to install 5.1.5 with twrp ect ect ect lol just trying to reduce clutter and make things a tad bit simpler. No offense guys lol
Click to expand...
Click to collapse
Yes I know. I mean, you're right. Thought something like "new bootloader, new confusions". I justed wanted to help people if they're worried of a brick
dgunn said:
So if I already have twrp and Magisk installed is the method still the same?
Pretty sure I swiped to allow system modifications on my first twrp installation so will that matter?
Click to expand...
Click to collapse
Don't worry. You can use TWRP and your phone itself as always
Sconny said:
Don't worry. You can use TWRP and your phone itself as always
Click to expand...
Click to collapse
So do I flash the update in twrp?
Must the bootloader be unlocked again?
dgunn said:
So do I flash the update in twrp?
Must the bootloader be unlocked again?
Click to expand...
Click to collapse
No you flash in system via local upgrade
joemossjr said:
No you flash in system via local upgrade
Click to expand...
Click to collapse
Flash with local upgrade, reboot to fastboot, run twrp.img, install twrp, flash Magisk and reboot? No unlocking bootloader again?
If not correct please tell me
Yup that's it
joemossjr said:
No you flash in system via local upgrade
Click to expand...
Click to collapse
Flash in system.. you mean through the system updates in settings? And then I have to reinstall TWRP?
BossNexusS said:
Flash in system.. you mean through the system updates in settings? And then I have to reinstall TWRP?
Click to expand...
Click to collapse
Yes
joemossjr said:
Yes
Click to expand...
Click to collapse
What were the steps you followed if you don't mind?
Maybe someone will upload the full rom?
anyone tried hiding system updates inside magisk hide ?
it now shows only 224 update (canadian vpn), hence don't know what it will do when you take that route, anyone ?

[hisense a6] custom reupload - R 02 (HLTE700T-L1488.6.09.02.00)

I made hisense a6 custom rom with yklaxds 's qpst package.
I merge system.img and modified rawprogram
i install gapps manually.
set security label and permission.
most function work very well.
ota update impossible. because of hisense's update is bonding partition
qualcomm package open now.
R02 HLTE700T-L1488.6.09.02.00.joygram
https://drive.google.com/file/d/1mgpOIClF0fgIkPc5rMth6VtNa0mJKG9z/view?usp=drivesdk
link may be block because heavy traffic by onedrive.
backup and share please.
R01 HLTE700T_L1488.6.04.01.00.joygram
https://1drv.ms/u/s!As0qoPp2K9MuaQeKFk-6PrnqfZ4
(onedrive blocked because heavy traffic, backup and share, please)
flashing method
https://1drv.ms/b/s!As0qoPp2K9MuaHBVpNnNPGkKl2M
nitice:
please use
rawprogram_30060000_joygram.xml only.
notice:
if appear password screen after flashing.
enter recover mode and factory reset
recovery mode :
power off : power button about 20 seconds over
volume_down + power : about 5 seconds and remove your fingers^^
notice:
WIP custom with L1488.6.09.02.00
if you brick, use TF recovery ROM
Link: https://pan.baidu.com/s/1Mkjvb9q_0oGuXZ0KLprJog extraction
code: j8qi
you can recover.
this instruction from official hisense forumn
2) Preparation before the T card upgrade:
1. Prepare a TF card and format the TF card into FAT format first;
2. Decompress the downloaded product software version (generally a compressed package and divide it into multiple compressed sub-packets) and copy the obtained folder named "HLTE700T_TF" to the root directory of the TF card.
3. Insert the TF card into your phone and put the battery in your phone. Make sure the battery is more than 50% charged. If the battery is low, please charge it first.
(three) T card upgrade process
1. Press and hold the “Volume+” and “Volume-” side buttons at the same time, then press the power button, the phone will automatically enter the T card upgrade mode for upgrade. If the phone does not enter the T card upgrade mode, please shut down. Repeat this operation.
2. Wait for about 5 minutes to complete the upgrade and a prompt for the upgrade to be successful.
3. Restart according to the prompt after successful upgrade. If there is no such prompt, press and hold the power button for more than 20 seconds to restart. After the upgrade, the first boot time is longer, which is several times of the normal boot time. Please be patient.
**
I am not chinese but korean
Thanks very much,
root the phone did you have method?
Maybe you can share your ways that how do you make it to let more people to discuss it. Thanks.
I will upload latest version QPST ROM, also from taobao.com. Please wait for me.
------------------------------------------------------------------------------------------------------------------
2019 5.16 version L1488.6.09.02.00 official ROM QPST:
https://drive.google.com/file/d/1IOxo79igLjPoldLmbP7eEM0W7UQpS3P-/view?usp=sharing
sdwshlsdx said:
Thanks very much,
root the phone did you have method?
Click to expand...
Click to collapse
Just add su file or root app like SuperSU? I dont know. Maybe have a try. You can just extract my ROM file(system.img files).
yklaxds said:
Maybe you can share your ways that how do you make it to let more people to discuss it. Thanks.
I will upload latest version QPST ROM, also from taobao.com. Please wait for me.
------------------------------------------------------------------------------------------------------------------
2019 5.16 version L1488.6.09.02.00 official ROM QPST:
https://drive.google.com/file/d/1IOxo79igLjPoldLmbP7eEM0W7UQpS3P-/view?usp=sharing
Click to expand...
Click to collapse
I will research more.
Thank you.
I flashed it according to your method. But now it's asking for password. How to proceed?
danjl said:
I flashed it according to your method. But now it's asking for password. How to proceed?
Click to expand...
Click to collapse
may be all partition not flashed.
check rawprogramming _joygeam.xml
if comment any partition with <!-- -->
remove this
i will check firmware and release soon
i am sorry for inconvenience
pengboby126 said:
Thanks a lot for this rom?
Is it possible to enable camera 2 api by modifying build.prop, which functions Gcam Port?
Click to expand...
Click to collapse
i tried but no gapps cam working.
if you know gcam for hisense a6
let me know.
joygram said:
may be all partition not flashed.
check rawprogramming _joygeam.xml
if comment any partition with <!-- -->
remove this
i will check firmware and release soon
i am sorry for inconvenience
Click to expand...
Click to collapse
How can I reset phone? It's not detected through usb anymore
danjl said:
How can I reset phone? It's not detected through usb anymore
Click to expand...
Click to collapse
dont worry.
you can recover with hisense TF Rom from fans.hisense.com ( hisense forum)
download tf rom and flashing.
I have files but can release next weekend.
sdwshlsdx said:
Thanks very much,
root the phone did you have method?
Click to expand...
Click to collapse
i am researching method with recovery.
joygram said:
may be all partition not flashed.
check rawprogramming _joygeam.xml
if comment any partition with <!-- -->
remove this
i will check firmware and release soon
i am sorry for inconvenience
Click to expand...
Click to collapse
joygram said:
dont worry.
you can recover with hisense TF Rom from fans.hisense.com ( hisense forum)
download tf rom and flashing.
I have files but can release next weekend.
Click to expand...
Click to collapse
EDIT: Yipee! It was asking for password. I booted to recovery by Hodling volume down+power. Then select an option to erase data, confirm by pressing volume up. It took a few minutes.
Then it booted with the custom rom!
So, anyone who comes across password can just erase their phone by booting into recovery.
Thanks to joygram! This works, so looking forward to having gapps on my phone now! Good luck to everybody.
danjl said:
How can I reset phone? It's not detected through usb anymore
Click to expand...
Click to collapse
Please try my hisense official flashing ROM.
https://drive.google.com/file/d/1IOxo79igLjPoldLmbP7eEM0W7UQpS3P-/view
---------- Post added at 05:06 PM ---------- Previous post was at 05:03 PM ----------
joygram said:
i am researching method with recovery.
Click to expand...
Click to collapse
Yep, we need twrp so that we can root or flasing GAPPS.
danjl said:
EDIT: Yipee! It was asking for password. I booted to recovery by Hodling volume down+power. Then select an option to erase data, confirm by pressing volume up. It took a few minutes.
Then it booted with the custom rom!
So, anyone who comes across password can just erase their phone by booting into recovery.
Thanks to joygram! This works, so looking forward to having gapps on my phone now! Good luck to everybody.
Click to expand...
Click to collapse
enjoy !!
So to summarize... If we get chinese version of A6 we can now flash this custom rom to have both :
- gapp (not available on chinese version)
- Widgets and full eink function (not available on russian version)
?
Yep, we need twrp so that we can root or flasing GAPPS.[/QUOTE]
->
I can not make twrp
I just merge system.img and install gapps manually.
so I can not root
but I will try
I used Magisk and patched boot.img in joygram's ROM. Then I replaced the original boot.img with partched one, and then used the same method with QFIL. It works!
But when you boot it reminds you device state is locked. However, Magisk is fully operational and I have used many modules already.
danjl said:
I used Magisk and patched boot.img in joygram's ROM. Then I replaced the original boot.img with partched one, and then used the same method with QFIL. It works!
But when you boot it reminds you device state is locked. However, Magisk is fully operational and I have used many modules already.
Click to expand...
Click to collapse
How do you change it? I also want root. Just like this way?
https://juejin.im/post/5b1bb43b5188257d5903045b
I want to make twrp but I don't know how to do it. Here no ways to teache me.
And can we unlock bootloader by ROM?
danjl said:
I used Magisk and patched boot.img in joygram's ROM. Then I replaced the original boot.img with partched one, and then used the same method with QFIL. It works!
But when you boot it reminds you device state is locked. However, Magisk is fully operational and I have used many modules already.
Click to expand...
Click to collapse
could you please boot.img release?
joygram said:
could you please boot.img release?
Click to expand...
Click to collapse
I'll upload it soon. Having some troubles with internet connection.
Thanks for the roms you uploaded.

Categories

Resources