• 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?

Here are the system files. I'll post the update file when it finally finishes downloading. Looks like it is going to take a while. Is there any way to make it use wifi?
 

Attachments

yup just as i thought. it's looking to patch system apk files that the previous owner deleted. once i make sure everything else is there i can modify the update so that it will ignore the missing files. i will get to that later today.
by the way, the dd file you sent me gives me access to every commando update ever made, so i can start supporting more devices. huge thanks!
 
That's great. Those files were located in the cache directory. There is file called fota_pipe in cache\recovery\fota that I thought might be useful, but copying it just hangs indefinitely.
 
the only way i know to fix this is to manually go through every file that the update wants to change and if your phone does not have it, delete it from the script. it will take a while but it can be done. unless you have all of the system apps backed up somewhere.

the way for this to work is just before the phones goes to reboot to apply the update you need to replace the offical downloaded update file with the one i will make for you. it could then work.

i will provide the lines that you need to type into command prompt, but i need to know the exact location of where the update downloads to on your phone like this "/cache/foldernames/filename.bin"

also something that would be nice is right after you replace the update file you could copy the file cache/recovery/command to your sdcard and adb pull it to your pc, so i can see how exactly it wants to update the phone and if there is anything else it does besides run the package
 
Last edited:
Do you know anyone in the forums that might have a M050 nandroid backup with all of the stock apps? The one currently installed on the phone was the only one I could find.

I'm wondering if your original radio update idea would work if each radio firmware update was applied in succession.

If I only have to edit the updater-script, I think I can probably take it from here.
 
Last edited:
M050 was in 2011, back when the main posters were Jova and spikeG. They would be the only ones who have them, but they are long gone now...

the idea with the radio might work, it's basically patching it up to M150. You could try it.

If you feel comfortable editing the updater-script, then yea go for it. You need winrar and notepad++. change the bin extension to zip and then you can open it directly. when you open the script file, tell it to open with notepad and when you make a change, winrar will add it directly back in. as for making the changes, you have to remove the lines for verifying the patch and actually patching each system apk that is not actually there.

It sounds like you are on your way to doing this yourself. if you have any questions just reply, and good luck!
 
I think I may have made some progress. I got really frustrated with the stock recovery failing to apply the update. So I flashed back the gnm recovery, changed the extension of my modified update file to zip, and hit flash zip update from sd card. I figured it really just couldn't be that easy and I had probably bricked my phone, but after the update completed my build is now C771M070 and it still has cell service!
 
i would not trust that at all. i tried that once and I remember it was spouting lots of output. i will look at the GNM source code to verify it knows what to do with patch files
 
It definitely patched the radio firmware.
I just restored a nandroid backup of the M140 build and I still have cell service.
 
it looks like it did.
i got curious and ran some tests on the GNM recovery to see how many of the update file's commands it understood. I ran a bunch of commands on different modified versions of the update file and then moved the log to the sd card to anaylize it. The results are interesting.
for example, it says that some of the updates failed and succeeded at the same time:
Code:
Patching system files...
applying patch to /system/app/NcmcHomeApp.apk

"/system/app/NcmcHomeApp.apk" is already target; no patch needed
I:read: apply_patch 0
E:unknown command [apply_patch]

the recovery says it did not know what to do with it directly on the output, but when looking into the logs, it seems to have secretly known what to do with it. It looks to me that there are two layers to this GNM recovery: the original recovery and the patchwork GNM put on top of it. GNM may not know what to do with the code, but the original recovery knew what tot do.

Here's another interesting find:
Code:
Install from sdcard...
Finding update package...
I:Update location: SDCARD:Download/test of gnm abilities/write radio image.zip
Opening update package...
I:Update file path: /sdcard/Download/test of gnm abilities/write radio image.zip
Installing update...
entering update_binary
radio.diff found
radio.diff uncomp len = 13370877
Can't make /cache/fota/radio.diff
installing QCOM updater extensions
I:read: ui_print Patching radio image...
Patching radio image...script aborted (no error message)

so the script "aborts" right at the end where it applies the firmware radio image, but before that it is already doing stuff with the radio.diff file. keep in mind that stuff with radio.diff happened every time i loaded an update.zip with the file radio.diff in it. my guess: it applies the radio.diff before the update, and finalizes it at the end, or it might be redundant code, seeing how it seems to have worked for you.


all in all, it looks like you can flash innopath updates with the GNM recovery, and there is no reason to go stock to do it. have you tried restoring the M50 or M70 nandroid and tried patching all the way up to M150? in theory it should work, and if it does I can include it in my Casio Root Tool.

this is the greatest advancement in commando knowledge since rooting M130
 
The first thing I did was flash the earliest modified boot image I could find which was M110 and GNM recovery. Then I took a nandroid backup of the M070 build. Then I restored the nandroid backup of M140 and still had cell service. Now I'm attempting the ota update to M150 to see if it completes. If it fails I may try going through all of the updates, but modifying the update script to match the version I have for every update will be time consuming. Do you have any stock nandroid backups at a lower build than M130?
 
i do not. what i am thinking is that the stock recovery will fail if the patch fails, but with GNM recovery it will keep going, so you don't have to modify the script. I can double check that later today, that is what it meant when i asked if you have tried going from M050 to M150.

By flashing the nandroid mackup of M70 which was BS-20111130-0230.zip, the B stands for boot so you put M70 boot on it. if your M140 has a B in it then you are on M140 boot image
 
I tried using GNM with an unmodified update and it failed when it searched for browser.apk. After editing the update script, it now fails when it checks the boot partition. Is it possible to access GMN recovery with a stock boot.img.

Never mind I can just remove the boot image check. Now I'm at M080.
 
Last edited:
Then I restored the nandroid backup of M140 and still had cell service.
based on my calculus level mathematics skills, it sounds like radio update + boot image + system = working signal.

in terms of updating the radio, it also sounds like GNM recovery can do the job with just the M150 radio update. Therefore, if I eithor add it in the M150 update instructions and/or add it to the M150 update, it would solve everyone not being able to use it because of loss of cell service. that would solve everyone's problem with not being able to update to M150 in the first place, and people in your situation would not have to try to manually update everything up to M150.

looks like i have something to do this weekend ;)
 
I have successfully applied all of the radio updates to my phone and restored the stock M150 nandroid backup. I now have a fully functional and fully updated Casio C771.

Thank you Willster419 for all of your help.
 
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.
Would this work with the c811 version? It's stuck on 4.0, would like to get it to 4.1.2 at the least , higher if possible (would 4.4 be crazy impractical or the beauty of rooting?)
 
CasioGZ,
This post is about the Casio C771 Commando. Your question is about the Casio Commando4g C811. This cannot help you, but if you ask your question in the C811 forms they might be able to help you better ;)
 
Back
Top Bottom