[CDMA] Cellular South CDMA Desire Hacks [Update: 6 OCT 2010] - Desire Android Development

Just like our USCC friends, I'm currently working on several mods for Cellular South's release of the Desire. I'll keep this post updated with new developments.
Linked is a custom boot.img from our stock ROM with apps2sd support. You will still need to download and flash the latest Darktremor apps2sd release and format your SD card accordingly.
How to flash?
Place the dphase-apps2sd-signed.zip file on the root of your sdcard and flash it as a zipped update.
Download Link (Cellular South, also confirmed working with Alaska Communications):
http://dphase.net/desire/dphase-apps2sd-signed.zip (2.3 MB)
MD5 checksum: 70df556ceb6891cbdcc3801d807d58af
US Cellular stock boot.img with apps2sd support
http://dphase.net/desire/dphase-USCC-apps2sd-signed.zip (2.3 MB)
MD5 checksum: e11b6f40b26811e252f0579f0ed5861c
Latest Darktremor apps2sd:
http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.1-adv-signed.zip
------------------------------------------------------------------------------------------
Zipaligned and PNG optimized system apps:
Code:
% du -sh original optimized
62M original
42M optimized
As you can see above, I've zipaligned and optimized the images in the system apps, which shaved off 20MB from total files size. This should lead to faster load times.
To install, untar the optimized archive to the directory of choice and boot to recovery. Mount the /system partition then do the following command with adb from within the directory holding the apk's (adb should be in your binary path, if not, fix that to make life easier in the future):
Code:
adb push . /system/app
You'll then see, for example:
Code:
push: ./DCSImpl.apk -> /system/app/DCSImpl.apk
push: ./HtcDialer.apk -> /system/app/HtcDialer.apk
push: ./EnhancedGoogleSearchProvider.apk -> /system/app/EnhancedGoogleSearchProvider.apk
... (etc)
Link:
http://dphase.net/desire/system_app_optimized.tar.gz (40MB compressed)
MD5 checksum:
2dc5fe2683e657006d2a8026c4ac32dc

reserved for later use

So what exactly does this accomplish? Is it basically adding apps 2 sd to the stock 2.1 rom? Any chance it will run on my US Cell desire?

Yes, adds apps2sd support to the stock rom. The latest a2sd will automagically move portions of /data over once it sees a properly formatted card.
In theory, this should work on USCC, but ymmv.

It is likely I won't get time tonight, but if I do, I'll be sure to give it a shot. I would like to get a2sd without a full reflash

con247 said:
It is likely I won't get time tonight, but if I do, I'll be sure to give it a shot. I would like to get a2sd without a full reflash
Click to expand...
Click to collapse
If it doesn't work, we'll grab your existing boot.img and I can tweak it.

Updates posted, please test and enjoy.

dphase said:
If it doesn't work, we'll grab your existing boot.img and I can tweak it.
Click to expand...
Click to collapse
That is the link to my boot.img
If you have time, if you could tweak that one, it would be great. If not, I'll give yours a shot tonight.

con247 said:
That is the link to my boot.img
If you have time, if you could tweak that one, it would be great. If not, I'll give yours a shot tonight.
Click to expand...
Click to collapse
I've modified your boot.img and placed a link in the first post.

dphase said:
I've modified your boot.img and placed a link in the first post.
Click to expand...
Click to collapse
A Big Thanks I am testing it now. I had to remember to change the MD5 information otherwise you get a fail.
Also You have to remember to run the apps2sd after the restore otherwise you will not boot!
Just booted and WOW look at all that new Space!!! Time to get more apps

seesser said:
A Big Thanks I am testing it now. I had to remember to change the MD5 information otherwise you get a fail.
Also You have to remember to run the apps2sd after the restore otherwise you will not boot!
Click to expand...
Click to collapse
Yes, I recommend installing apps2sd, formatting card, then applying new boot image.

How do you change the MD5 of the file

dphase said:
Yes, I recommend installing apps2sd, formatting card, then applying new boot image.
Click to expand...
Click to collapse
I guess I did it a little differently. I already had the sd card partitioned so I just took a backup swapped the boot.img and edited the MD5 with note++. Restored the modified backup and then ran the apps2sd.zip and rebooted.
I did it this way just in case something went wrong I could restore the backup that I didn't modify.
Going to try out that app optimize next.
Thank again.

This might be a noobish ?
but couldnt I just use a custom recovery and flash this as a rom?
or do I still have to push stuff?
im a lil confused coming from winmo
Right now im running blitz's apps2sd 2.1 sense rom
but not sure im seeing any benifit from the apps2sd....although I do see somethings being moved...wondering if seesser had tried blitz's rom...
are u seeing more space with the above method?
and what do I change the md5 to?
thanks
byte

bytethegroove said:
This might be a noobish ?
but couldnt I just use a custom recovery and flash this as a rom?
or do I still have to push stuff?
im a lil confused coming from winmo
Right now im running blitz's apps2sd 2.1 sense rom
but not sure im seeing any benifit from the apps2sd....although I do see somethings being moved...wondering if seesser had tried blitz's rom...
are u seeing more space with the above method?
and what do I change the md5 to?
thanks
byte
Click to expand...
Click to collapse
Hello and yes I was running that rom but did not like that friend Stream did not have twitter. with that rom you still had to tell the phone to move the files (a little bit of command line codding). With this boot.img and apps2sd on my stock rom backup I went from 15mb to 71mb so this one works great right out of the box.
I Explained how I did it from a backup of my stock rom up a few lines hope this helps.

I too am a little lost on this push of the app optimize. Could you explain it a little more? I have done a little adb shell programming but am lost with your directions.
Thanks,

bytethegroove said:
This might be a noobish ?
but couldnt I just use a custom recovery and flash this as a rom?
or do I still have to push stuff?
im a lil confused coming from winmo
Right now im running blitz's apps2sd 2.1 sense rom
but not sure im seeing any benifit from the apps2sd....although I do see somethings being moved...wondering if seesser had tried blitz's rom...
are u seeing more space with the above method?
and what do I change the md5 to?
thanks
byte
Click to expand...
Click to collapse
No, none of this can be flashed as a rom.
I'm not sure why anyone is changing MD5's, I included those so one could verify there was no data corruption during the download.

fixed. no worries..

con247 said:
I keep getting an MD5 mismatch after I edited the nandroid.md5 to the one in the original post
Click to expand...
Click to collapse
There is zero reason to edit that. Are you trying to use nandroid to flash the image? If so, that's the wrong answer.

con247 said:
fixed. no worries..
Click to expand...
Click to collapse
Did you restart the phone after you modified the MD5? I had that problem also until I restarted the phone and It worked after that.

Related

(update 21/07 5pm) JACHeroSKI FULL 32B Fully Working (Any dream ROM :))

Hi,
Sorry if I'm wrong,
But thanks to NK02 mentioning in a thread to make one small change to boot.img ramdisk I now have JACHero 2.7.3 fully working (WIFI Bluetooth & FAST!) on my Magic 32B.
I used the normal update.zip from the dream forum, and extracted and changed the boot.img and flashed it in fastboot.
Heres the boot.img to save you making the change as well
http://www.megaupload.com/?d=R8OX15W1
I had also previously partitioned my sd card to have an ext2 and swap partition, all of which have been set up automatically so I know the boot.img is working as intended.
Very happy bunny now
UPDATE:
Seems to work for some. Having your SD card prepped with 3 partitions helps a lot.
Speed is going to be slower than say the NK02 Cyano ROM, but thats down to Rosie and the limited RAM, don't think we'll ever get that perfect.
At least now we know a way to use Dream Roms easily (sorry 32A owners, I think K4R1M will have something for you later)
UPDATE 5PM
i just used same method on cyanogens latest rom and works perfectly
Sounds real nice :> What about the gyro/compass ? Doesnt seem to work for me when using the original JACHero 2.7.3
Running well after 1 hour, widgets all stock not removed any and NO rosie reloads.
Little bit of lag, but nothing terrible (and for me to say that means it is hardly there!)
Anyone else tried it? I want to rule out me doing something silly
Compass working (at least in sky map)
Hi Again
Trying to set-up my sd card paritions, but parted command in adb shell is not working (not found error). Do I need a particular recovery image to be able to use parted ?
Thanks!
dazcox5181 said:
Running well after 1 hour, widgets all stock not removed any and NO rosie reloads.
Little bit of lag, but nothing terrible (and for me to say that means it is hardly there!)
Anyone else tried it? I want to rule out me doing something silly
Compass working (at least in sky map)
Click to expand...
Click to collapse
i dont think there is a magic recovery with the parted command. thats why i used a Gparted live usb boot (google unetbootin - will create a bootable usb stick for you) and a card reader in my netbook (yes I use a MSI wind with OSX )
well done dazcox.
can you please describe the process people need to take to load up boot.img?
eg. recovery screen, wipe, flash G1 ROM, reboot, let ROM load, reboot into fastboot, flash boot.img,.. and the required commands etc.
might be annoying, but it'll help to answer the flood of questions that your answer has brought
presumably as each new ROM produces changes we will need to edit the boot.img each time, as they may contain updates, yah?
Yes, I would assume each time new release we make the change.
My Process was this.
download the scripts from http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
(beware if on OSX google and download newer cpio utility and copy to /usr/bin)
Download JAChero 2.7.3 full from dream forum
rename downloaded file to update.zip and copy to sd
on computer open update.zip and extract boot.img
Use unpack-bootimg.pl boot.img to extract the kernel and ramdisk
in the ramdisk dir rename init.trout.rc to init.sapphire.rc
repack-bootimg.pl boot.img-kernel.gz boot.img-ramdisk boot1.img
On your phone reboot to recovery (I use amon ra recovery from this forum)
BACKUP (nandroid is your saviour)
wipe
apply update.zip
reboot, but go straight to fastboot (vol down + power)
in fastboot
fastboot flash boot boot1.img
reboot
enjoy
*decide you want to try something else and start all over again*
For me who already have JACHero 2.7.3 installed with the cyanogen kernel, can I just flash the boot.img or do I need to make a complete wipe and include it into the update.zip?
zw4mp said:
For me who already have JACHero 2.7.3 installed with the cyanogen kernel, can I just flash the boot.img or do I need to make a complete wipe and include it into the update.zip?
Click to expand...
Click to collapse
I would rather use the full update.zip and then flash the boot.img to be sure.
Sorry - I'm learning as I go and don't know how to sign an update.zip yet
@ dazcox5181
can you make a working update.zip for us?
jan.lamp said:
@ dazcox5181
can you make a working update.zip for us?
Click to expand...
Click to collapse
I might later, probably not though, as it's really easy to do.
I've followed the steps, and after flashing the boot1.img adn rebooting, the phone is really taking forever.
The screen is totally dark but i know the phone is on as i can enter through adb to it.
Any tips?
I had from before a class 6 card with 3 partitions, FAT, ext2 and swap (in that order).
Thanks
did you wipe/flash the normal (not ported) jachero rom first?
Then fastboot flash the boot.img?
Yes please +1
jan.lamp said:
@ dazcox5181 can you make a working update.zip for us?
Click to expand...
Click to collapse
+2
That would be fantastic for those of us that I are still on the steep part of the learning curve...
Cheers
Ben
Signing and uploading update.zip now...
When I get my paypal sorted you all owe me a beer!
I'm flashing it myself to be sure, upload will be done in about 20min then i have to do some work.
My update_signed.zip failed, can't find update script error.
Anyone help? the only file I changed was the boot.img?
dazcox5181 said:
Signing and uploading update.zip now...
When I get my paypal sorted you all owe me a beer!
Click to expand...
Click to collapse
With the new update all predone all that needs doing is the partitioning of the sd card to be fat32 + ext2 then update rom in normal way, correct?
dazcox5181 said:
I would rather use the full update.zip and then flash the boot.img to be sure.
Sorry - I'm learning as I go and don't know how to sign an update.zip yet
Click to expand...
Click to collapse
I decided to try just flash the boot image before redoing it all to see what would happen, and it is actually working Wifi and gyro didnt work before but is now.
The only thing is that Bluetooth A2D2 mode (playing music) doesn't seem to work. It says "playing media through bluetooth headset" but I get no sound. Can anyone confirm that this is working for you? If so maybe I will need to wipe and reinstall anyway.
stevetigersix said:
With the new update all predone all that needs doing is the partitioning of the ad card with an ext2 then update rom in normal way?
Click to expand...
Click to collapse
That will be the plan, if i can get the update.zip to work
dazcox5181 said:
That will be the plan, if i can get the update.zip to work
Click to expand...
Click to collapse
Sweet looking toward to it daz, now all I've got to do is pluck up the bottle to root and partition the ad card then install your Rom , I'm new to this on android lol

Sprint Stock Rom with A2SD Support

This is the latest Sprint Rom based on the latest RUU leak with A2SD support (I used Darktremor A2SD 2.7 since it was easy to add it).
I have verified that A2SD is working as I downloaded and installed a couple of programs from the market. The programs are being stored in /system/sd/app.
Here's the link: http://www.darktremor.info/files/2.1/2.1-ruu-a2sd-signed.ziphttp://www.darktremor.info/files/2.1/sprintstock-21-a2sd-b-signed.zip
This one now has adb rooted (thanks to nfinitefx45 for his assistance) and does flash (heard complaints on the symlink issue...never sure what causes that, but ended up starting over and porting the files from the previous build).
This is for those people who want to keep with the stock installation but want the addition of A2SD. If you want a customized look, faster performance and A2SD support, I suggest a custom rom. Fresh 2.1.2 or FreshToast is a good one to use.
Note: It will not affect recovery.
Enjoy and I'll answer any questions you may have (if I can answer them).
did you manually edit the init.rc? and you should mention that this is a ROM, not an RUU
tkirton said:
This is the latest Sprint RUU leak with A2SD support (I used Darktremor A2SD 2.7 since it was easy to add it).
This is definitely an RUU as when I go into adb shell, I get the dollar sign as a prompt rather than the pound sign...I'm pretty certain it is not rooted.
.
Click to expand...
Click to collapse
<<<snip>>>
This makes no sense at all.
Good point about the Rom vs RUU. Edited to correct.
As for the init.rc. Mainly it was init.rc edit.
regaw_leinad said:
did you manually edit the init.rc? and you should mention that this is a ROM, not an RUU
Click to expand...
Click to collapse
Don't look at me...that's what I'm getting. Doesn't make much sense to me, either. I just know if I do adb shell, I don't have root access. But A2SD works fine.
I went ahead and released it since the goal was to get A2SD working...and I did that. Everything else is for a Rom developer.
wctom said:
<<<snip>>>
This makes no sense at all.
Click to expand...
Click to collapse
tkirton said:
Don't look at me...that's what I'm getting. Doesn't make much sense to me, either. I just know if I do adb shell, I don't have root access. But A2SD works fine.
I went ahead and released it since the goal was to get A2SD working...and I did that. Everything else is for a Rom developer.
Click to expand...
Click to collapse
Thanks, I'll just use your boot image for RegawMOD 2.5. saves me a few minutes
working perfectly all apps installed and 132 megs still open internal
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
sandboxlove said:
is it a general consensus that if you want to run a2sd successfully you should use a class6? i currently have a class4
Click to expand...
Click to collapse
right now, I switched back to my class 4 and its working great
nvmchars....
tkirton,
here is your exact rom that's in your first post, but I deodexed it. You can add that to the OP if you'd like.
Everyone else, here it is too:
http://www.4shared.com/file/Fm3pXapi/21-ruu-a2sd-deodexed-signed.html
I have not tested it, but it should work fine. Deodexed /system/app and /system/framework
sandboxlove said:
i just want to be clear...this is the latest sprint leak? you seriously deodexed the whole thing?
i thought vince was crazy for trying, your completely BANANNAS
Click to expand...
Click to collapse
yeah, i thought I'd post it in here. Didn't think since it's the same thing as he posted but deodexed that I should make another thread.
and yes, the latest sprint leak. you should test this. I can't right now.
Oooh...cool. Enhancements. I like enhancements.
regaw_leinad said:
tkirton,
here is your exact rom that's in your first post, but I deodexed it. You can add that to the OP if you'd like.
Everyone else, here it is too:
http://www.4shared.com/file/Fm3pXapi/21-ruu-a2sd-deodexed-signed.html
I have not tested it, but it should work fine. Deodexed /system/app and /system/framework
Click to expand...
Click to collapse
tkirton said:
Oooh...cool. Enhancements. I like enhancements.
Click to expand...
Click to collapse
Well, I like your work, so that's for you
did anyone test it out to make sure it boots?
Sorry to be such a noob, but what is "deodexed" a ROM mean?
regaw_leinad said:
tkirton,
here is your exact rom that's in your first post, but I deodexed it. You can add that to the OP if you'd like.
Everyone else, here it is too:
http://www.4shared.com/file/Fm3pXapi/21-ruu-a2sd-deodexed-signed.html
I have not tested it, but it should work fine. Deodexed /system/app and /system/framework
Click to expand...
Click to collapse
Well I flashed it and stuck on the HTC screen. Flashed the non deodexed version and loads fine.
So apparently i f***ed up deodexing lol. I guess that ROM that I did wont work..
well just loving this rom, but one question, can we get a updated boot.img with the adb enabled for access as root?
Now that the A2SD stuff is behind me, I'll take a look at that. Flipzmode or Toastcfh may be able to shed some light on how you get this image rooted correctly, especially Flipz since he's using the latest leak for Fresh 2.1.1.
The original goal was to get A2SD working on a stock rom, which I did....but it is rather annoying that it isn't rooted (or fully rooted).
Damage said in his point that it was rooted, but I got the same thing you did...no root when doing adb.
I'll talk to Flipz or Toast and see if they can point me in a direction to go.
nfinitefx45 said:
well just loving this rom, but one question, can we get a updated boot.img with the adb enabled for access as root?
Click to expand...
Click to collapse
well this is a piece from some of the reading I've been doing I beleice this needs to be done with in the boot image. I dont know if this will help in your research,
-------------------------
You also need to modify the ROM update script to change the default permissions for /system/bin/su so it can be used to elevate privileges to root. The script is in $WKD/dst/META-INF/com/google/android/update-script. Open it in your favorite editor and find the line starting with set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh and after it add the following set_perm 0 0 04755 SYSTEM:bin/su
=======================
Hi tkirton,
Nice job on this and thanks for all your hard work on everything! I am also wondering what dedoxed means? Is it like where application data is also stored on the SD card instead of on the phone itself?
Thanks!

[DISCONTINUED] GTG's stock w/ root, bloat removed, HSUPA, unknown sources...

Update (2/26): Discontinued
Note: If you flashed this without first flashing the stock RUU, you may not be able to get into CWM. If you want CWM back, either flash the stock RUU and then this modified RUU or check out page 13 of this thread
Credit goes to angelchen1111 and nyckid58 for providing me with the information needed to put this together.
Features:
-Based on stock RUU and not de-odexed
-Rooted
-HSUPA enabled
-Unknown sources option added to settings for sideloading
-Browser home page set to Google
-Removed the following bloatware apps:
AT&T Code Scanner
AT&T FamilyMap
AT&T Hot Spots
AT&T Navigator
Blockbuster
Live TV
myAT&T
YPmobile
Installation
1) Use the HTC Inspire Hack Kit here to get S-OFF so that you can flash custom roms.
2) Download the zip file here [removed] and put it on your SD card. Don't rename it and don't put it in any folders.
3) On your phone, go to Settings > Applications, turn off fast boot, and then shut down your phone.
3) Boot into HBOOT by pressing volume down and power. Once you're in HBOOT, the installation will begin. A factory reset will be performed so have your data backed up.
Funny that you mentioned it's not de-odexed, I'm actually working on that right now using Android Kitchen. I'll let you know if it works with the HBOOT loader if you'd like.
nyckid58 said:
Funny that you mentioned it's not de-odexed, I'm actually working on that right now using Android Kitchen. I'll let you know if it works with the HBOOT loader if you'd like.
Click to expand...
Click to collapse
Sure, let me know. I'll post up your de-odexed version as well if it works.
What difference does de-odexed give us?
Great work gtg and whomever had a hand in helping with this.
I'm assuming we can expect the same sound quality as the stock Rom?
Sent from my illmatic Inspire 4G / Desire HD
yzlvr said:
What difference does de-odexed give us?
Click to expand...
Click to collapse
In layman's terms, de-odexing modifies the system apps so that they can be manipulated (themed, etc.) more easily. It's sometimes a pain in the ass though and can lead to little bugs if the apps aren't de-odexed just right, so I just left everything how it was from HTC (odexed) for now.
If nyckid58 de-odexes it I'll post that in the first post as well, but both will be kept up until we verify that no bugs were introduced in the de-odexed version.
legend221 said:
Great work gtg and whomever had a hand in helping with this.
I'm assuming we can expect the same sound quality as the stock Rom?
Sent from my illmatic Inspire 4G / Desire HD
Click to expand...
Click to collapse
Yup, this thing is mostly untouched stock so everything should work as it did from the factory
gtg465x said:
In layman's terms, de-odexing modifies the system apps so that they can be manipulated (themed, etc.) more easily. It's sometimes a pain in the ass though and can lead to little bugs if the apps aren't de-odexed just right, so I just left everything how it was from HTC (odexed) for now.
If nyckid58 de-odexes it I'll post that in the first post as well, but both will be kept up until we verify that no bugs were introduced in the de-odexed version.
Click to expand...
Click to collapse
Ok, thanks for explaining it.
I'm still here, I've extracted and de-odexed all the files, the problem I'm running into is reintroducing it to the system.img. The de-odexed framework files add fine but the apps files is freezing up my computer. I'll update if anything else comes down.
Thank you for this. I wanted a minimally invasive option, so this is perfect for me. I just wanna be able to get rid of unwanted apps and bypass ATT's app blocking.
Do you need to do a wipe first and if so how do you do that sorry for the noob question
Sent from my Desire HD using XDA App
mmr8cmh said:
Do you need to do a wipe first and if so how do you do that sorry for the noob question
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
No. This is a little different than other ROMs. Do not flash this with ClockworkMod. Follow the instructions in the OP.
I'm all ready s-offd so Ill give this a whirl. I just ruu back to stock so ill post results and what i think in a few min great work always good to see forward progress
@GTG: I got the image compiled with the de-odexed files unfortunately though it throws off the size of PD98IMG.zip by about 120 meg. I tried to apply regardless but it wouldn't take. I'm thinking there is a size constraint, any ideas?
gtg465x said:
No. This is a little different than other ROMs. Do not flash this with ClockworkMod. Follow the instructions in the OP.
Click to expand...
Click to collapse
Thanks for the info
Sent from my Desire HD using XDA App
nyckid58 said:
@GTG: I got the image compiled with the de-odexed files unfortunately though it throws off the size of PD98IMG.zip by about 120 meg. I tried to apply regardless but it wouldn't take. I'm thinking there is a size constraint, any ideas?
Click to expand...
Click to collapse
I would imagine the system.img needs to be the exact same size. Did you create a new image or mount and modify the original image?
gtg465x said:
I would imagine the system.img needs to be the exact same size. Did you create a new image or mount and modify the original image?
Click to expand...
Click to collapse
Mount and modify. I don't think I'm ready to try to make an image from scratch.
nyckid58 said:
Mount and modify. I don't think I'm ready to try to make an image from scratch.
Click to expand...
Click to collapse
So how did it throw off the size of the zip so much? If you mount and modify the system.img should be the same size when you're done no?
edit: Regardless, if you're de-odexing it you might as well just package it as a CWM flashable zip instead of a system image.
gtg465x said:
So how did it throw off the size of the zip so much? If you mount and modify the system.img should be the same size when you're done no?
edit: Regardless, if you're de-odexing it you might as well just package it as a CWM flashable zip instead of a system image.
Click to expand...
Click to collapse
System.img is the same size yes but I'm thinking the de-odexed files are throwing the compression off. I think you might be right about the CWM idea. I shall research how to do that. Thanks again GTG.
Does the wi-fi tether app works without a tether plan?
Thanks

[ROM](Working Update.zip) -> Defy Update.zip Cookie Cutter Rom

Defy Froyo 3.4.2 Cookie Cutter Rom​
Q. How Do I use the Update.zip?
A. Go to Market & Download Defy SD-Recovery & Install..
1. Next place the Update.zip on the /sdcard via PC
2. Turn on MoTo Phone Portal ( SD-Recovery is SD Based so you need to Turn Off USB Mass Storage )
3. ADB Debugging does not have to be Turned Off on my version
Once Booted into the Recovery apply the update.zip
wait a few minutes & it should be done...
Please Reads the notes I left in the Update.zip if you build a Custom Update.zip, this will save you trouble down the road.
What's Flashed?
A. Boot.img
B. dev_tree
C. Moto Blur 3.4.2 Rom ( Yes I know it's not the latest, built off what I had )
D. UNO & TMO-TV Removed
E. Rooted ( SU & Superuser )
F. Busybox Installed to xbin
G. Rest of Rom is stock
Once installed, remove eugene.apk from /system/app ( Old boot strap that need adb turned off before rebooting / defy sd-recovery does not have this issue)
Q. I Edited the update.zip & Now it fails verf. in recovery when trying to flash!
A. example of signapk on signing the edited update
java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 update1.zip update.zip
Download: Original Post
To Update other parts of the Phone: Add this to the update-scripts for what you are flashing.
If we had all these Parts from 2.1 we could go back.
package_extract_file("lbl", "/tmp/lbl");
write_raw_image("/tmp/lbl","lbl");
delete("/tmp/lbl");
package_extract_file("device_tree.bin", "/tmp/device_tree.bin");
write_raw_image("/tmp/device_tree.bin","devtree");
delete("/tmp/device_tree.bin");
package_extract_file("cdrom", "/tmp/cdrom");
write_raw_image("/tmp/cdrom","cdrom");
delete("/tmp/cdrom");
package_extract_file("logo.bin", "/tmp/logo.bin");
write_raw_image("/tmp/logo.bin","logo.bin");
delete("/tmp/logo.bin");
package_extract_file("umts_wrigleyref_build.bin", "/tmp/umts_wrigleyref_build.bin");
write_raw_image("/tmp/umts_wrigleyref_build.bin","bpsw");
delete("/tmp/umts_wrigleyref_build.bin");
package_extract_file("cdt.bin", "/tmp/cdt.bin");
write_raw_image("/tmp/cdt.bin","cdt.bin");
delete("/tmp/cdt.bin");
Hey eugene,
Glad to see you working on Defy too
I think this will be major help for developers and btw that 3.4.2 version did you used? since there are many of them.
Thanks.
um. 107 I think since it has a floating update.zip someplace & sbf.
Ill update to the latest when I start building roms
Sent from my MB525 using XDA App
i don't understand. is the boot.img still the signed cg35.smg?
if so, can't we just use the cmw to do that?
can you post more detailed chages you made over cmw?
other than the signapk and usb debugging described.
many thanks.
eugene373 - great work!
racca said:
i don't understand. is the boot.img still the signed cg35.smg?
if so, can't we just use the cmw to do that?
can you post more detailed chages you made over cmw?
other than the signapk and usb debugging described.
many thanks.
Click to expand...
Click to collapse
Same here, i'm pretty interested in more details, thank you
this Zip File is for what ?
Thanks
Greetings
you can not use cwm due encryption. If you dont know what an update.zip is stick to nandroid...
This is for rom builders.
Heading out, when I get home ill make it clearer.
Though, now that I think about it cwm might be fine due to the nature of how it works.
Ill test later and let everyone know
Sent from my MB525 using XDA App
So we are able to install updates via the "normal" Motorola Recovery mode? So we are able to get a "unbrickable" Defy?
Edit: got it myself. The ZIP File won't be recognized by the motorola recovery... anyway thanks for your job
Now, what can SD-recovery do? Can it write other partitions, like cdt.bin?
Simplestas said:
Now, what can SD-recovery do? Can it write other partitions, like cdt.bin?
Click to expand...
Click to collapse
Yes. I can add the string if you would like
eugene373 said:
To Update other parts of the Phone: Add this to the update-scripts for what you are flashing.
package_extract_file("lbl", "/tmp/lbl");
write_raw_image("/tmp/lbl","lbl");
delete("/tmp/lbl");
package_extract_file("device_tree.bin", "/tmp/device_tree.bin");
write_raw_image("/tmp/device_tree.bin","devtree");
delete("/tmp/device_tree.bin");
package_extract_file("cdrom", "/tmp/cdrom");
write_raw_image("/tmp/cdrom","cdrom");
delete("/tmp/cdrom");
package_extract_file("logo.bin", "/tmp/logo.bin");
write_raw_image("/tmp/logo.bin","logo.bin");
delete("/tmp/logo.bin");
package_extract_file("umts_wrigleyref_build.bin", "/tmp/umts_wrigleyref_build.bin");
write_raw_image("/tmp/umts_wrigleyref_build.bin","bpsw");
delete("/tmp/umts_wrigleyref_build.bin");
package_extract_file("cdt.bin", "/tmp/cdt.bin");
write_raw_image("/tmp/cdt.bin","cdt.bin");
delete("/tmp/cdt.bin");
Click to expand...
Click to collapse
eugene373 said:
Yes. I can add the string if you would like
Click to expand...
Click to collapse
CwM can do exactly the same afaik, i've already made quite a few update.zip with it.
after reading all your notes, do you actually mean that we can't use format on those patitions?
if you do, well, i learned it the hard way, and delete_recursive also works for me.
thanks for putting up an excellent example if not for anything else, it's much needed.
racca said:
CwM can do exactly the same afaik, i've already made quite a few update.zip with it.
after reading all your notes, do you actually mean that we can't use format on those patitions?
if you do, well, i learned it the hard way, and delete_recursive also works for me.
thanks for putting up an excellent example if not for anything else, it's much needed.
Click to expand...
Click to collapse
Correct, you can only format with the stock recovery ( Hence the reason why I used the Stock Recovery ) any Partition with cwm recovery will cause a non-booting system..
regarding cwm I've not tested it, so Likely it will work.. Steven is still working on the cwm recovery & there is no point in me adding another cwm bootstrap recovery... Mine is just pure stock & works perfect.
I'm still weeding through the /bin /etc file's to find exactly what needs left...
but main goal was to provide an example of what is needed to make an update.zip with out breaking the system.
what exactly is the benefit of this new method?
drsouly said:
what exactly is the benefit of this new method?
Click to expand...
Click to collapse
um? Your joking right!
Update versus a nandroid, I would have thought it was a no brainier....
Build & edit roms on the fly + being able to flash boot.img & downgrading is fine without sbf unless you screw up completely..
eugene373 said:
um? Your joking right!
Update versus a nandroid, I would have thought it was a no brainier....
Build & edit roms on the fly + being able to flash boot.img & downgrading is fine without sbf unless you screw up completely..
Click to expand...
Click to collapse
ok now i got it thx
drsouly said:
ok now i got it thx
Click to expand...
Click to collapse
no problem, wasn't sure if you was being a smart-ass or honestly didn't know...
either way, sorry If I offended you.
~Eugene
I didn't understand yet . I can or not apply the update file using stock recovery?
EDIT: forget I understood now.
Sent from my MB525 using XDA App
psicodelico said:
I didn't understand yet . I can or not apply the update file using stock recovery?
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
Read OP.... Download Defy SD-Recovery from Market
Yeah, I read again slowly and understood.
Sent from my MB525 using XDA App

[MOD][Update: 12-Aug-2011]Rooted CG from CH Leak

Thanks to dangpzanco for the GREAT IDEA.
I finally got my Rooted GB working here. I can't provide a download link now but I'm going to do it later for sure.
Apparently there was a final signature check that was done somewhere after mounting the cache partition, preventing me from booting with a pure update.zip on top of froyo /system. Thanks to dangpzanco I could bypass it and get root.
Quick Guide (requires froyo, root and Droid2bootstrapper):
1. Download fixed SBF bellow. It's made from the CH leak containing ONLY: CG35.smg (boot) CG47.smg (recovery) CG61.smg (devtree) firmware.hmg (header) RAMDLD.smg (flash updater).
2. Download root_and_recovery.zip and copy it to SD Card.
3. Download full leaked SBF from General Forum (CH, signed) and use MotoAndroidDepacker to extract all images.
4. Copy the CG39.smg to /sdcard/
5. Boot into CWM
6. From CWM open adb shell and use this command: dd if=/sdcard/cg39.sm of=/dev/block/system
7. Still on CWM apply root_and_recovery.zip
8. Still on CWM wiped everything
9. Boot on bootloader and flash fixed SBF
10. Reboot
I actually did the same thing! I read it somewhere in one of the topics. I installed Defy BootMenu instead of CWM. Works great! Right now I've almost removed all the Chinese crap and got the GApps working (from CM7).
I also removed the Blur items for the Chinese SN's. I'll see if I can get Twitter and Facebook working with it.
2nd-init would be nice too actually. Does the method provided in the other thread work with this ROM?
Edit: the instructions were indeed from dangpzanco!
And right now I found a possible bug. My camera doesn't work. Everything is black and stays black. Photo's are take as they should however.
Can you check whether you have the same issue?
w0ndersp00n said:
And right now I found a possible bug. My camera doesn't work. Everything is black and stays black. Photo's are take as they should however.
Can you check whether you have the same issue?
Click to expand...
Click to collapse
Here it works fine. Have you tried to edit /system/build.prop?
Change device from ME722 to A953.
Yes, I changed it to A953...
Maybe I have deleted something that was necessary for the viewfinder... But what xD
Edit: Allright, nevermind. Somehow a reboot fixed it :-D On to the next step
Something bad happened when I tried to apply 2nd-init on this. The phone rebooted just after 2nd M logo not allowing me to get into CWM. Wierd, since CWM should take place before 2nd-init. Will need to raflash froyo and start over. We should find a way to root Gingerbread without CWM to make things faster.
That's odd indeed. I have to say, I think the CWM method of rooting is actually quite easy. For SuperOneClick I need to get my PC/laptop out every time and with the update.zip I can do it as I please.
I really hope you'll succeed wit 2nd-init. If you need help, just shout! Today and tomorrow I have enough time.
I'll make a nandroid of my current setup, so I can continue trying out stuff.
w0ndersp00n said:
That's odd indeed. I have to say, I think the CWM method of rooting is actually quite easy. For SuperOneClick I need to get my PC/laptop out every time and with the update.zip I can do it as I please.
I really hope you'll succeed wit 2nd-init. If you need help, just shout! Today and tomorrow I have enough time.
I'll make a nandroid of my current setup, so I can continue trying out stuff.
Click to expand...
Click to collapse
Yeps, it is easy indeed, but to do it I need to SBF froyo before installing GB again. In other words if I mess up the phone I will need to flash 2 versions instead of one. That's why it would be easier to flash just GB.
Hey there, nice I could help.
I think you could copy the /dev/block/system back after rooting and build the SBF with it.
@Milestone 2 (Finnaly on Gingerbread!)
dangpzanco said:
Hey there, nice I could help.
I think you could copy the /dev/block/system back after rooting and build the SBF with it.
@Milestone 2 (Finnaly on Gingerbread!)
Click to expand...
Click to collapse
I tried that with froyo but it didn't work.
you can try also this defy leaked gb rooted nandroid backup.
http://www.multiupload.com/SPZ8SIEC60
version 4.5.1-134 multilanguage.
use fixedsbf from new leaked milestone2 rom and milestone2patch from MS2Ginger thread.
In this rom /system/app/kpilogger.apk cause battery drain so delete it after install.
Something is seriously wrong... My backlight never shuts down. It's black, but when it's dark you'll see it's still on!
I actually can't change the brightness from settings. So I did a complete reinstall and the problem persists!
I'm using brightcontrol app now to adjust the brightness, but does anyone else has this issue? Or is it something I did?
r2beta0 can you please upload the nandroid of your system?
I try to get adb in CWM but it didn't recognize it.
julianlatasa said:
r2beta0 can you please upload the nandroid of your system?
I try to get adb in CWM but it didn't recognize it.
Click to expand...
Click to collapse
My system is messed. I still need to get 2nd-init to work. I'm having a lot of trouble trying to compile my custom version of logwrapper hijack. As I don't have experience in compiling stuff to ARM/Android it is being a pain in the a**. I'd appreciate some help here
Try setting up a QEMU environment with the GB leak kernel's zImage.
Edit: Now we can port CM7!!! Devtree.img is now signed.
@Milestone 2 (Finnaly on Gingerbread!)
dangpzanco said:
Try setting up a QEMU environment with the GB leak kernel's zImage
@Milestone 2 (Finnaly on Gingerbread!)
Click to expand...
Click to collapse
And how do I do that?
I tried some ways till this point:
- Installed CodeSourcery G++ Lite toolchain (could compile, but android didn't run)
- Installed NDK and tried some commands I could find on blog posts (no luck)
- Now I just finished setting up an ubuntu 10 VM with all the steps described on developer.android.com. I think I am now able to compile android system, but I don't want to as it will take a LOOONG time.
Do you know how do I build a specific module into android source? For example:
system/core/toolbox
I'm a developer, and have compiled stuff to run on linux/unix many times. But this ARM stuff is way complicated. Writing the code isn't the problem, but compiling is. Lots of flags I haven't seem before, and so on.
r2beta0 said:
And how do I do that?
Do you know how do I build a specific module into android source? For example:
system/core/toolbox
Click to expand...
Click to collapse
I just uncovered this answer by myself.
A 'make toolbox' on root folder seems to work just fine. Now I need a way to define new targets on android build system.
http://and-developers.com/
Has a page just for compiling the kernel from source. (I can't remember the link)
I also got stuck when trying to compile from AOSP... but I think you need to have ALL the files downloaded from source (specially the big prebuilt folder) even if you want to compile a single binary.
Well I'm not sure of anything...
Edit:Now I read what you wrote... so never mind you got it.
@Milestone 2 (Finnaly on Gingerbread!)
dangpzanco said:
http://and-developers.com/
Has a page just for compiling the kernel from source. (I can't remember the link)
I also got stuck when trying to compile from AOSP... but I think you need to have ALL the files downloaded from source (specially the big prebuilt folder) even if you want to compile a single binary.
Well I'm not sure of anything...
Edit:Now I read what you wrote... so never mind you got it.
@Milestone 2 (Finnaly on Gingerbread!)
Click to expand...
Click to collapse
Yeps I've made a full repo sync. It took 3 hours and is worth 6GB disk space
Great news! Can't wait to see a true custom ROM working
Just thought I'd share what I've learned: don't mess too much with your build.prop Somehow my modifications were the reason of my backlight not working right and making every app crash that wanted to use a sensor. But it's working again

Categories

Resources