G33K-TRICKS - Your source to Tips and Tricks : android
Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Sunday, May 6, 2018

[Solved] Xiaomi Redmi Phone Rebooting from Fastboot Mode Or Rebooting from Recovery Mode

Xiaomi Redmi Phones Rebooting from Fastboot Mode or Rebooting from Recovery Mode

If you found this page while looking for a solution to a problem of your Phone getting switched off automatically while in Fastboot mode or While in Recovery Mode. You are absolutly at the right place.
Here is a basic and important info how to resolve this issue.

Fastboot mode on Xiaomi phones look like:
Xiaomi Redmi Fastboot Mode

You can switch to Fastboot mode by Pressing Power Key and Volume Down Key

Fastboot mode is used for flashing the ROM images completely. The flashing procedure use fastboot tool from Android to Flash. It can wipe off all the memory partition, when done a complete flash.

Recovery Mode on Xiaomi phones :

You can switch to Recovery Mode by pressing Power Key and Volume Up key and leave the Power Key when you seen the MIUI logo on the screen.

Recovery Mode is used for Zip files from OEMs or Update the OS version or firmware version. You can also use for deleting Userdata or do a factory Reset of your phone.

Recovery does not use command line tool instead it itself can flash the files which can be kept in the phone memory (if phones memory has partition available) or file can be kept in external SD card.

So coming back to our original problem. If device is keep on rebooting automatically if you are in recovery mode or fastboot mode. Major of the issues that occur is due to Power key. We tend to use Power key more often then any other keys on your phone. There press button keys have limited life shelves like any other electronic devices. After certain peroid of time they stop working as they are intended to do so. So if your device is continoulsy rebooting , say after around 10 to 14 seconds when in  fastboot mode that means the power key on device is in pressed state thus sending a Reboot signal to the device. Same happens when your device is in Recovery Mode. Your phone reboots and you continue to worry is the problem with OS.
While you struggle to find out what and where exactly the problem is, your battery might get drained out and then you are out of options now.With drained battery , you can neither check further nor you can reflash new OS. I've been into this situation. My phones battery was dead. And if I connect the phone to PC or Charger , it would charge as before the charging even initiates, the phone reboots again. That is more of a frustation over an ongoing frustation. Either you need to have another phone which can charge your phones battery or some external universal charger that can charge the battery.
After digging a lot, I found a way to charge the battery atleast. So that I can confirm that, problem is because of Power Button and not because of corrupted OS.
While trying to do all this , I tried flashing a complete OS image using the Xiaomi flash and that deleted everything from my phone including OS, so phone was just rebooting in fastboot mode.

To start with,
(I am assuming you have fastboot.exe on your system)
You need to goto device fastboot (as given in this screenshot )
And quickly need to flash the TWRP Recovery Image.
In my case- I renamed the file to recoveryb.img
The command to flash is:

fastboot flash recovery <path to recoveryb.img/recoveryb.img

The file size is around 14MB so it would be flashed quickly before your phone switches off or reboot.
Even if your battery is dead you can flash via fastboot.
You can search for Fastboot flash recovery image on XDA forum. (Do drop a comment if you are not able to fine the fastboot.zip file, I can share with you)

Alternatly , you can double click and run the flash_recovery.bat file to flash the TWRP recovery image when phone is in Fastboot mode.
Once flashing is done,  you will start seeing the MIUI logo.
Now, Connect your phone to a charger and you can remove the battery and connect it back while holding Power key and volume up key.
This will take you to TWRP recovery screen (as device was flashed with TWRP recovery image)
Quickly at bottom of the screen press up or down to move to some other page in recovery screen.
It seems, for me Power button had no impact on Recovery screen and I was able to charge the phone to 100% in recovery mode.
You would notice that phone is charging at the top right , where battery percentage is appened with "+" symbol

Let the phone charge.
you can download the complete OS for your phone from MIUI.com
and keep it in SDCARD

Once phone is completely charged or charge is greater than 80%. Keep the sdcard inside the phone.
Press the Power key and volume up key to go to TWRP recovery screen.
Click on Install button
Select the SDCARD path where OS zip image is kept.(remember flashing an complete image will make you loose your all data)

And select Yes to start the phone flashing.
Once flash is done.
Now your phone has an proper OS image which is supposed to boot properly.

But if phone continues to boot again and again from MIUI logo screen.
That confirms something is wrong with the power button of the device.

Go to nearest mobile repair shop and get the power button replaced.
He might argue that the issue is with OS or flashing but as you have done your homework, ask him to replace the button blindly.
You will have your phone working afterwards for sure.

(Please note, I will not be responsible for any damage to your data while following the instructions on this website)

Thursday, March 9, 2017

[SOLVED] WIFI not working after replacing /editing /modifying the wpa_supplicant.conf file

How to solve WIFI not working if WPA_supplicant.conf is modified or changed.

I ran into the problem one day when I was just playing around my Android phone's wpa_supplicant.conf file.
I happily rooted my phone and went to /data/misc/wifi folder and edited the file using root explorer and saved it. Till this point it was all looking so easy. I rebooted my phone and was surprised.
My Wifi was not switching On at all after replacing the wpa_supplicant.conf file.
Tried many things but did not solve the issue. Was thinking to factory reset my phone.
Somehow I found the solution to WIFI not working.

The reason was, when we edit the wpa_supplicant.conf file while saving the ownership to file changes as we will be editing the file as a root.

You can see from the screenshot, the ownername and ownergroup are changed to "root" instead they should be "wifi"

The solution to wifi not working is,
$ adb root
$ adb -d shell

# cd /data/misc/wifi
# chown system.wifi wpa_supplicant.conf
# reboot

Hope you find this useful.

Check Out the Latest Posts

Recent Posts Widget