• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Anyone need to update their phone from below M80?

Willster419

The Casio Smartphone Guru
Hello all,
I believe it is possible to update the phones radio firmware so those who are on an old version of the phone can jump right to M150. Reply if interested.
 
Hi Willster419,
I recently got a great deal on a Commando C771 in excellent condition on Ebay that was password locked because the seller couldn't figure out how to factory reset the device. I used adb reboot recovery to factory reset the phone and found that it was rooted. The previous owner went overboard removing stock apps. It didn't even have a text messaging app. I found a decent m50 nandroid backup to restore on the device but it doesn't have the stock browser app. I have tried the ota update several times and it always fails during installation at about 25%. I'm interested in trying the radio firmware update so that I can use the m150 software.
 
Sorry for the delayed response. It has been a long day. Here is everything that is listed under about phone.

Android version: 2.2.1
Baseband version: 1
Kernel version: 2.6.32.9-perf ncmc@ncmc #1
Build number: C771M050
Hardware version: 1.1
 
Alright let's get to work.
there's too pre steps that i want us to do before we begin to modifying all the system files. The first one is to dump your recovery and boot images. It is not required but it would help me be able to help others with M50 ROM's. You have to be rooted for this stuff to work which i think you are
Download the latest casio root tool and select the "dump boot and recovery images". they will be in the "dumpedimages folder" send them to me.

the second thing it to make a full nandroid backup. after this we can start modifying the innopath update to patch the phone's modem
 
one more thing. make sure you have adb on at all times.

so essentially what we are doing it taking the M150 update file and stripping it down to just the part where it patches the phone's modem to work with the M150 system. note that this may not bring the "red light recovery from power on", i will see if i can make that go over as well, or find out if it is in the modem or not.

before i have you try it i want to make sure it works on one of my phones first, then i will make a script that does the process for you. i will try to have it up tomorrow because it is late and i don't want to make any mistakes. thanks for understanding.
 
Will this backup contain the original radio files?
no it will not. the radio files are done completely seperatly on the phone, so much so that the only way to interact with it is to use the stock recovery.

also, how good are you with adb and executing commands? it would be easier if i could just have you type in what i want you to rather than make a script to run, but both methods can work
 
I'm new to using adb, but I have a lot of experience using the command prompt. I think I can handle it. Plus I can copy and paste like nobody's business. :)

Do you think the ota update would complete if the device was unrooted even though it is missing several stock apps? Considering that this device was already rooted when I received it, would your unroot tool still work on it?
 
rooting would definitely be a cause of it not working, but it is only one of two reasons why it would not work.
You said the owner went crazy and deleted a bunch of system apps. Are they frozen or deleted?
The update works like this:
verifies the build version your phone is and applies the new build version properties
checks the files that it wants to modify to make sure they have not been tampered with
removes files that arn't needed
patches the files that it wants to
adds new files if it needs to
writes a new radio firmware.

So, if it can't find a file it needs to patch, it will fail and nothing will happen. i will be posting a complete guide in a moment for you about how to write the new radio firmware.
 
I want to say (possibly again) that this can't be tested by me because my devices are already at M150. I can say that I applied it to my already M150 device with no problems.

ok so here is the process in overview. We will:
1. install the stock recovery
2. apply the update and reboot
3. install the GNM recovery
4. update to M150
5. make sure everything works
6. be happy

1. Installing the stock recovery. Before we can do that you need to have fastboot enabled. To enable fastboot you need to open the latest casio auto root tool and go to flash menu and then enable fastboot.
To install the stock recovery open the getCMD.bat file and type (once the phone is rebooted):
Code:
adb reboot bootloader
you can copy the above code and right click in the command prompt and paste.
once the device drivers have loaded, type
Code:
fastboot -i 0x0409 flash recovery "recoveryImage/M150 stock recovery.img"
and
Code:
fastboot -i 0x0409 reboot
the device will reboot to the homescreen. once it is unlocked and at the homescreen, we begin step 2

2. apply the update and reboot. first we need to get the update to your phone. type
Code:
adb push radioUpdate\ipth_package.bin /sdcard/ipth_package.bin
then get su permissions by typing
Code:
adb shell su
to get su rights and then type
Code:
echo '--update_package=SDCARD:ipth_package.bin' >> /cache/recovery/command
this tells the recovery that when you go into it you want to install an "update" just like as if it was an OTA update coming though. then type
Code:
adb reboot recovery
it will reboot into the stock recovery and apply the radio firmware. then when it's done (android guy with triangle exclamation mark.) battery pull and power on.

now your phone's radio will be updated and you will be unable to use it.
3. install GNM recovery. go to Casio root tool, flash menu, flash GNM recovery

4. update to M150. download any of the 4 M150 updates. i recommend the custom one. reboot to recovery
Code:
adb reboot recovery
then toggle usb storage and copy the update to your sdcard. you then want to do a factory data reset. then flash update from sdcard. install it and reboot. you now can use the phone's modem. (hopefully :) ) from here,
5. make sure everything works and 6. be happy
 

Attachments

Last edited:
When I use the "adb shell su" command I get a super user prompt on the phone. After tapping "allow" the command prompt doe not respond to keystrokes. The super user version on the phone is v2.3.6.1. Do I need to restore the M150 nandroid backup first and then run these commands?
 
you have an M150 nandroid? did you mean M50? you are currently on M50 right?
honestly i've never had that problem. i've done adb shell, it loads with the money sign, then type su, click allow, and it should work. i wil have to look up why that happened but i've never had that problem
 
I downloaded the M150 nandroid backup from your onedrive. Just thought maybe the super user on my phone may have been an older version. I'll try again by typing "adb shell" and hit enter then "su" and hit enter.
 
It didn't work. When typing the command

adb shell "echo '--update_package=SDCARD:ipth_package.bin' >> /cache/recovery/command"

I received "not found" messages. Typing

echo '--update_package=SDCARD:ipth_package.bin' >> /cache/recovery/command

didn't give an error message, but it also didn't indicate whether it succeeded. I rebooted into recovery and the progress bar just flashed and then the android guy with triangle exclamation mark appeared almost instantly.

Next I used the ota update.zip to try to install the radio update and received the same result. I think it looks at the radio firmware version currently on the phone and if it doesn't match the correct previous version it fails.
 
Oh yeah i meant to not include the adb shell part since you already are in shell and have su rights. my bad.
As far as the command goes, it is a good thing that it did not say anything. when you have the ">>" command in a script, it meant to direct the output to a file, this case being to the file cache/recovery/command. So it worked :)

The fact that the progress bar showed up and not went right to the android guy with the triangle means that the script was executed. it may have therefore worked. if you want you can try it again with this version of the update. note that you have to change the file extension from bin to zip. here is the script that it will execute:
Code:
mount("yaffs2", "MTD", "system", "/system");
ui_print("Patching radio image...");
write_firmware_image("PACKAGE:radio.diff", "radio");
unmount("/system");

note the recovery won't actually print the print line.

but as far as i know, it should have worked. have you tried updating to M150 and seeing if it works?
 

Attachments

Last edited:
Yeah I tried performing the update again after restoring a M150 nandroid backup last night but the radio firmware wasn't updated. I'll try the other version of the update tomorrow.
 
if that does not work with the M150 system then, it looks like it won't work. What we could try next is getting the actual update you should be getting and modifying it a little so it will work with your device.
 
the best way to get the innopath update file is to use the old es file explorer to go to the data/data folder and search "ipth_package.bin". then copy it to you sdcard and it's easy from there
 
also do me a favor and do an adb pull of /system so i can see what files (if any) are missing and might cause the update to fail
 
Back
Top Bottom