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.
Meanwhile,
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.


Thursday, November 17, 2016

How to Run JAVA games with Android Phones



Like everyone else, I to had a question boggling me, whether I can run JAVA games/ app from my Android phones.
The Answer to it is Yes!!!
Yes, you can run the old JAR apps on your android phones using the utility explained below.


Netmite App Runner

You can download the app from PlayStore

Below are the features for Netmite App Runner

  • Among the famous apps to run Java games  & apps  (J2ME/MIDP – jar/jad) app on Android Phones
  • It is integrated with Browser-Browse any j2me site, click to run any jad/jar file.
  • You can immediately port your existing Java apps (jar/jad) to Android WITHOUT source code.
  • App is having integrated File explorer to load the java apps

Using JBED 

1. We need to Root your Android Phone. Rooting now a days is very easy.

2. Download JBED

3. Download lib jbedvm

4. Using ES Explorer, enable root access by going to the Settings.

5. Browse system/lib using the explorer. and copy and paste the lib jbeddm to it.

6. Launch JBED. And, you can normally install any java games on your Android.


Using PhoneME 

1. Install and use phoneMe.

2. Download the "phoneMe Feature" APK from internet and install on your phone.
http://davy.preuveneers.be/phoneme/?q=node/10

3. Also download and install OpenIntents File Manager

4. Download JADGen on PC and create a JAD file for any JAR file using the JADGen.

5. Now, copy both JAD and the respective JAR file into the same folder on your phone.

6. Open the phoneME app and run the game

Using JBLEND 

1. Download the JBlend archive file and extract the contents.

2. Copy the files on your phone.

3. Install the Root Explorer application.

4. Open Root Explorer and tap the "r/w" button in the upper corner. Copy the following files to the destination specified:
ibDxDrmJava.so – /system/lib
libjbmidpdy.so – /system/lib
libjbmidp.so – /system/lib
javax.obex.jar – /system/framework
MetaMidpPlayer.apk – /system/app
MidpPlayer.apk – /system/app

5.Copy the JAR files that you want to run to your phone.

6.Use JBlend to select the files to run them. 

Check Out the Latest Posts

Recent Posts Widget