Hi
this takes over any discussion started in a nvram Linux script from here
Firstly I have a failed test of this script.
so let me explain.
The beta script, based on the nvram script attempts to either extract your current recovery.img from your Android device or (NOT TESTED) installs a recovery image.
Trying to be smart, I already know I can use mobileuncle on my mediatek device without any Windows stuff....to install either CWM or my precious TWRP
I just ran the script in extract mode, and ran a md5sum against the resultant image and compared it to my original PC file version.
Its NOT a match.
This means this project is on the back burner until I work how where I went wrong.
Here is the mis-match
they are both 6 Megs and running strings against both show strings value are the same at top and the end.
EDIT.....script removed as it was wrong
cheers
If anyone can spot my error let me know, its a doozy to add you to credits
ok so I ran strings against both recovery images but called one file a and the b
then I ran a graphical diff program against both
verdict.....press N to go to next change claims there is none. hmmmm
I might take a risk later. but will retest after injecting CWM onto phone.
##############
EDIT
used mobileuncle to flash CWM onto phone
extracted image = recovery.img while original I call cwm.img gives
recovery is bigger .....not tested strings as its getting late....but I seem to have a value or error on input issue
###############
AAAAH I just noticed something
something is good
Each extracted image is the same size as the other extracted image.......I tested CWM would boot up and it does
maybe I have it correct all along?
Maybe this shows my lack of Android skills?
Each image has to fit into those hex values as defined, so some recovery images are smaller but still work.
If I am right, when I try to flash TWRP back onto my phone tomorrow, using the script .....I won't brick
legs and arms crossed of course.
this takes over any discussion started in a nvram Linux script from here
Firstly I have a failed test of this script.
so let me explain.
The beta script, based on the nvram script attempts to either extract your current recovery.img from your Android device or (NOT TESTED) installs a recovery image.
Trying to be smart, I already know I can use mobileuncle on my mediatek device without any Windows stuff....to install either CWM or my precious TWRP
I just ran the script in extract mode, and ran a md5sum against the resultant image and compared it to my original PC file version.
Its NOT a match.
This means this project is on the back burner until I work how where I went wrong.
Here is the mis-match
Code:
md5sum /a/1build/1ANDROID/1ROMS-STUFF/twrp-recovery/recovery.img
560a3936b1f7ca3673feb14cd3b11e15 /a/1build/1ANDROID/1ROMS-STUFF/twrp-recovery/recovery.img
md5sum /a/1build/1recovery/recovery.img
9c1e240b8af103a2ad9fbb836be4019a /a/1build/1recovery/recovery.img
#### CHECK SIZE
-rw-r--r-- 1 gordon gordon 6285312 Jun 20 2013 recovery.img
-rw-r--r-- 1 gordon gordon 6291456 May 9 17:01 recovery.img
they are both 6 Megs and running strings against both show strings value are the same at top and the end.
EDIT.....script removed as it was wrong
cheers
If anyone can spot my error let me know, its a doozy to add you to credits
ok so I ran strings against both recovery images but called one file a and the b
then I ran a graphical diff program against both
verdict.....press N to go to next change claims there is none. hmmmm
I might take a risk later. but will retest after injecting CWM onto phone.
##############
EDIT
used mobileuncle to flash CWM onto phone
extracted image = recovery.img while original I call cwm.img gives
Code:
gordon@box:~/Downloads$ md5sum *
09ace826ad1f8934d4fa0a3785a18562 cwm.img
2602a502d6209cffd29b0426d27969b6 recovery.img
gordon@box:~/Downloads$ ls -al
total 11916
drwxr-xr-x 2 gordon gordon 4096 May 9 20:58 .
drwx------ 25 gordon gordon 4096 May 9 20:26 ..
-rw-r--r-- 1 gordon gordon 5900288 Apr 11 07:32 cwm.img
-rw-r--r-- 1 gordon gordon 6291456 May 9 20:56 recovery.img
recovery is bigger .....not tested strings as its getting late....but I seem to have a value or error on input issue
###############
AAAAH I just noticed something
something is good
Each extracted image is the same size as the other extracted image.......I tested CWM would boot up and it does
maybe I have it correct all along?
Maybe this shows my lack of Android skills?
Each image has to fit into those hex values as defined, so some recovery images are smaller but still work.
If I am right, when I try to flash TWRP back onto my phone tomorrow, using the script .....I won't brick
legs and arms crossed of course.