[MOD][Update: 12-Aug-2011]Rooted CG from CH Leak - Milestone 2 Android Development

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

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

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

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.

[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

[Q] Ubuntu SBKv2 & Asus Stock Apps.

First does anyone have a .zip for the Asus stock apps? I had an older copy of the revolver removed apps file and I accidentally deleted it, the one that is currently linked on the revolver ROM shows as corrupted.
Has anyone been able to successfully Dual-boot Ubuntu on sbkv2 devices? What is your current method to doing so?
I tried the modified version of OLiFE with wheelie but ended up in an APX boot loop and had to flash back to stock.
I tried to use my own ROM (revolver) and the net-install version of ubuntu so perhaps I 'injected' them incorrectly.
Could not find much of a guide to do this...
Was interested in trying franks tools because that seems to be the easiest option (My main OS is windows but I have Ubuntu installed on an flash drive)
I tried the method here http://forum.xda-developers.com/showthread.php?p=23428126 but I didnt add or copy the .lib modules and my recovery was internal sd access only (working on updating that)
Plus the whole pseudo dual boot thing seems like a pain in the ass...
Any thoughts on the net install version of ubuntu?
How do you go about flashing or updating Roms when you are dual booting?
Thanks!
Wanna try my tutorial?
Well its bit messy, but i am lookign for osme fixes in ubuntu.
The Part where I get confused is the boot image and system image I may have messed up there?
Where do you place/name the net-install img?
Also as far as the rom and kernel go do you have to get that set up and then do a backup and use that or do you still have access to android recovery to flash zips?
Thanks!
fauxsoul said:
The Part where I get confused is the boot image and system image I may have messed up there?
Where do you place/name the net-install img?
Also as far as the rom and kernel go do you have to get that set up and then do a backup and use that or do you still have access to android recovery to flash zips?
Thanks!
Click to expand...
Click to collapse
OH SHOOT! i didn t say where to paste >.<
Ok paste in the image folder.
its inside he olife folder.
Yeah you have set up roms and kernel.
I dont recommend to go stock, but AR HD. In find its only proper working stock ICS and a working usb.
Further I had some difficulties installing ... Libre if oyu want to use as office.
vietchinh said:
OH SHOOT! i didn t say where to paste >.<
Ok paste in the image folder.
its inside he olife folder.
Yeah you have set up roms and kernel.
I dont recommend to go stock, but AR HD. In find its only proper working stock ICS and a working usb.
Further I had some difficulties installing ... Libre if oyu want to use as office.
Click to expand...
Click to collapse
So install the rom and kernel you want to use, do a backup then copy the system & boot imgs from the backup.
From what i understood you have to rename the net-install img to ubuntu.img? Is that correct?
Yeah definitely planning on using it for word editing etc (for school)
Right now I'm using team EOS nightlys for the rom and the kat kernel.
It's running very well so i might stick with that.
So you are not able to flash updates for android once you go dual boot?
Thanks I will probably try this out again when I get home later.
fauxsoul said:
So install the rom and kernel you want to use, do a backup then copy the system & boot imgs from the backup.
From what i understood you have to rename the net-install img to ubuntu.img? Is that correct?
Yeah definitely planning on using it for word editing etc (for school)
Right now I'm using team EOS nightlys for the rom and the kat kernel.
It's running very well so i might stick with that.
So you are not able to flash updates for android once you go dual boot?
Thanks I will probably try this out again when I get home later.
Click to expand...
Click to collapse
You mean recovery? If you want recovery u need to wait for Franktools SBk2v, but it cause apx bootloop so its removed.
Backup ur data to with recovery or titanium backup.
I recommend to use normal ubuntu ( with GDM) and then install enlightment.
Why i recommend normal ubuntu, becasue it was only working libre office, but you can try something else
So far no luck still isn't working.
Maybe it's the net-installer I'm having issues with I might just try the regular ubuntu.img if franks tools aren't back up soon (I just wanted to try the easier way.)
I tried just installing linux by itself and got some penguins and scripts running but it was in apx boot loop after that.
Had to flash to stock and rebuild.
I think I might wait for kenshin to fix franks tools (which might take a while from the looks of it)
fauxsoul said:
So far no luck still isn't working.
Maybe it's the net-installer I'm having issues with I might just try the regular ubuntu.img if franks tools aren't back up soon (I just wanted to try the easier way.)
I tried just installing linux by itself and got some penguins and scripts running but it was in apx boot loop after that.
Had to flash to stock and rebuild.
I think I might wait for kenshin to fix franks tools (which might take a while from the looks of it)
Click to expand...
Click to collapse
U got teamviewer and skype or somesort?
I can help u with that if you dont understand any thing of the tutorial.
IF you add me at skype (naruto.fbi any one can add me ) i can help u :].
Did you have any errors?
I had error thatkernel was to big ( 9.4 mb) i change some code adn i could flash it.
Maybe u have the same?
I hear form u soon
No errors, Have had my rom and kernel installed. Did the android backup using olife. Copied the olife backup files and renamed them (boot and system IMG files) to the images folder.
Then flashed device with dual boot tried both android and linux as the default and neither way worked.
Tried installing linux only and it doesnt work.
I just keep getting apx boot loops.
I dont have team viewer or skype so I was wondering if you might share your olife folder that you used to install (in case I was doing something wrong)
but if you have personal info in the backups i understand.
I think I might take you up on that offer and hit you up on skype or with team viewer, but maybe later this week because I'm going to be very busy with work/school for a few days.
Thanks for your help
fauxsoul said:
No errors, Have had my rom and kernel installed. Did the android backup using olife. Copied the olife backup files and renamed them (boot and system IMG files) to the images folder.
Then flashed device with dual boot tried both android and linux as the default and neither way worked.
Tried installing linux only and it doesnt work.
I just keep getting apx boot loops.
I dont have team viewer or skype so I was wondering if you might share your olife folder that you used to install (in case I was doing something wrong)
but if you have personal info in the backups i understand.
I think I might take you up on that offer and hit you up on skype or with team viewer, but maybe later this week because I'm going to be very busy with work/school for a few days.
Thanks for your help
Click to expand...
Click to collapse
Well i can send u my olife folder.
It contain the 2.1 gb ubuntu (11.10) and the net installer. Also android system are: AR HD( ICS) with gevour kernel if you dont mind.
It also contin a jhinta kernel which you can flash over it. Flash it with chromeOS ( in update and then advance)
Also i change some size for the kernel.
Kernel size was to big.
All fixed :3.
I will send u the folder as soon as i can ^^.
Few backdraws at the moment with ubuntu:
No flash support anymore by adobe (few alternetives like gapps( to slow and laggy) and lightspark(need to be tested)
Libre has some difficulties installin in gnome classic install of net installer and englightment.
At the moment libre works in ubunu with gdm.
Even linux for tegra installed it seems like it cant see the processor ( currenly in net-installer, it does show in livistie ubuntu.),
Google chrome cant be installed :\ ( no arm packages).
Net-installer can have some frustation on the wifi configuration.
fauxsoul said:
Any thoughts on the net install version of ubuntu?
Click to expand...
Click to collapse
Have you compared the pros & cons using my version of Debian/Ubuntu Android integration?
http://forum.xda-developers.com/showthread.php?t=1780378
I'm running it on my TF101 with flying colours.
kuisma said:
Have you compared the pros & cons using my version of Debian/Ubuntu Android integration?
http://forum.xda-developers.com/showthread.php?t=1780378
I'm running it on my TF101 with flying colours.
Click to expand...
Click to collapse
I think its slow ?
becasue its chroot.
I dont know.
At the moment i am trying allot of things ^^.
vietchinh said:
I think its slow ?
becasue its chroot.
.
Click to expand...
Click to collapse
Slow? You tell me.
kuisma said:
Have you compared the pros & cons using my version of Debian/Ubuntu Android integration?
http://forum.xda-developers.com/showthread.php?t=1780378
I'm running it on my TF101 with flying colours.
Click to expand...
Click to collapse
That actually looks pretty cool, I really wanted ubuntu for a more powerful text editor and maybe a few other things.
Might be more convenient.
I'm going to try it.
fauxsoul said:
That actually looks pretty cool, I really wanted ubuntu for a more powerful text editor and maybe a few other things.
Might be more convenient.
I'm going to try it.
Click to expand...
Click to collapse
If a powerful text editor is all you need, I'd say this solution is way overkill.
kuisma said:
If a powerful text editor is all you need, I'd say this solution is way overkill.
Click to expand...
Click to collapse
Plus I just want to play around with it in general.
I'm sure you can understand that feeling.
fauxsoul said:
Plus I just want to play around with it in general.
I'm sure you can understand that feeling.
Click to expand...
Click to collapse
Yes indeed.
If you are skilled, this is quite a neat solution giving you lots of power over the Android device. But since it can be somewhat tricky for the beginner to implement, if only a GNU/Linux environment is needed, and not the control over the Android environment, it is much easier to run the GNU/Linux environment jailed, instead of Android jailed as here.
But this is of course way much cooler.
kuisma said:
Slow? You tell me.
Click to expand...
Click to collapse
I take my words back ._.

New Builder Question

This should probably go in some general Q&A forum, but this is by far the most helpful community I've come across so I wanted to try here first. I've finally got my Ubuntu box up and running again (upgrading to 14.04 wasn't pretty) and was able to build for both my 700t and my n5 without error, but I'm afraid to pull the trigger and flash it. I'm building straight CM for the tablet and AOSP for the phone, so what is the worst that could happen? I haven't gotten either of them to run in the emulator, but I'm not completely sure that is even possible. Any insight you may have would be most appreciated.
Thanks in advance!
Just thought of this, since I'm running Crombi ROM2SD, could I just install my zip on external, and then refresh the right kernel?
Sent from my ASUS Transformer Pad TF700T using Tapatalk
psudeke said:
but I'm afraid to pull the trigger and flash it. I'm building straight CM for the tablet and AOSP for the phone, so what is the worst that could happen?
Click to expand...
Click to collapse
The worst thing that can happen is that you brick your device, but you must do something sufficiently stupid for that to happen. I can't say anything about your phone, but for the TF700T, as long as you have a working recovery, flashing a ROM won't brick it. You may want to create the nvflash blobs if you want to have another safety net - it is possible to brick the TF700T if you force it to boot to the recovery and the recovery is broken.
psudeke said:
I haven't gotten either of them to run in the emulator, but I'm not completely sure that is even possible.
Click to expand...
Click to collapse
That's normal - ARM devices are just too different, and the emulator is just another different device.
psudeke said:
Just thought of this, since I'm running Crombi ROM2SD, could I just install my zip on external, and then refresh the right kernel?
Click to expand...
Click to collapse
See my Android dual-booting thread in the dev subforum. I originally developed ROM2SD to be able to test my self-built ROMs without breaking my working installation.
_that said:
The worst thing that can happen is that you brick your device, but you must do something sufficiently stupid for that to happen. I can't say anything about your phone, but for the TF700T, as long as you have a working recovery, flashing a ROM won't brick it. You may want to create the nvflash blobs if you want to have another safety net - it is possible to brick the TF700T if you force it to boot to the recovery and the recovery is broken.
That's normal - ARM devices are just too different, and the emulator is just another different device.
See my Android dual-booting thread in the dev subforum. I originally developed ROM2SD to be able to test my self-built ROMs without breaking my working installation.
Click to expand...
Click to collapse
Thanks _That, I appreciate your help! After reading your post and the f2fs post, i thought i was in the clear, but i still managed to screw something up. i'm unable to get the tablet to boot off of external, regardless of whether its my ROM or CROMBi. I see a "segmentation error" listed in the output from the the preinit, and then it always boots to internal. I thought maybe i got the mount points reversed in recovered, so i reflashed recovery, but no luck. i also tried deleting the preinit script and then reinstalling CROMBi, but i still get the same error. any thoughts?
psudeke said:
I see a "segmentation error" listed in the output from the the preinit
Click to expand...
Click to collapse
For some unknown reason, dynamically linked executables don't work for preinit in KitKat. So if your *internal* ROM is not stock 4.2-based (I have no data about 4.3), the only way to run a preinit script is to use a statically linked busybox.
You still get that fault with a static busybox but it seems to copy files fine.
@psudeke you can compile the static busybox yourself simply with make static-busybox in your build folder - or just steal mine from /system/boot
sbdags said:
You still get that fault with a static busybox but it seems to copy files fine.
Click to expand...
Click to collapse
Your fault may come from one of the programs that you call in your script (did you forget to prefix some line with "busybox"?).
_that said:
Your fault may come from one of the programs that you call in your script (did you forget to prefix some line with "busybox"?).
Click to expand...
Click to collapse
it comes from the ls -l /init* which indeed doesn't have the busybox prefix but if I do it gives some other error I forget now
Anyway it doesn't harm the boot process - just an error message
_that said:
For some unknown reason, dynamically linked executables don't work for preinit in KitKat. So if your *internal* ROM is not stock 4.2-based (I have no data about 4.3), the only way to run a preinit script is to use a statically linked busybox.
Click to expand...
Click to collapse
_that said:
Your fault may come from one of the programs that you call in your script (did you forget to prefix some line with "busybox"?).
Click to expand...
Click to collapse
Internal is the 5/17 build of Crombi, and its a brand new install. with a full format of the data partition (which in my haste to get this working yesterday, i wiped out my nandroid from right before i tried this).
is there any connection between when the internal is flashed compared to the external? in other words, if i reflash the internal rom, it should still recognize an existing external rom? hope that makes sense, i'm still shaking off the effects of a little too much whiskey last night.:laugh:
psudeke said:
Internal is the 5/17 build of Crombi, and its a brand new install. with a full format of the data partition (which in my haste to get this working yesterday, i wiped out my nandroid from right before i tried this).
is there any connection between when the internal is flashed compared to the external? in other words, if i reflash the internal rom, it should still recognize an existing external rom? hope that makes sense, i'm still shaking off the effects of a little too much whiskey last night.:laugh:
Click to expand...
Click to collapse
No currently if you reflash internal it will only see internal. You need to reflash external for that to work.
sbdags said:
No currently if you reflash internal it will only see internal. You need to reflash external for that to work.
Click to expand...
Click to collapse
Ahh, thanks sbdags! that fixed the issue with ROM2SD. i got that impression when i pulled the preinit and saw it only had an entry for internal. but, i'm still very much in a learning phase so i didn't want to jump to a conclusion.
and after getting crombi to boot on external, i swapped sd cards and my build of CM11 actually booted! now the real learning process begins as i figure out how to customize it.
Thanks again to both you and @_that, you guys are the best:good:
@sbdags and @_that
Just wanted to thank you both again for your help. After much trial and error, i was able to build the 5/27 version of CM and merge in that's 9 f2fs kernel, its running well so far. not a bad quadrant score for someone who doesn't know what they're doing!
https://www.dropbox.com/s/khq17h04b715eyd/C11%20Benchmark%20ART.png
Hats off to both of you! :good:
--- Guess I can't insert an image directly from my DropBox, link is to a screenshot of my score ---
psudeke said:
After much trial and error, i was able to build the 5/27 version of CM and merge in that's 9 f2fs kernel, its running well so far. not a bad quadrant score for someone who doesn't know what they're doing!
Click to expand...
Click to collapse
Congratulations! If you can build a working ROM from source, you're already in the top 1% of people here who know what they're doing.
_that said:
Congratulations! If you can build a working ROM from source, you're already in the top 1% of people here who know what they're doing.
Click to expand...
Click to collapse
Good to finally be a "One Percenter" in something! :laugh:
Thanks again for your help, I'm sure that was the first of many questions I can't figure out.
psudeke said:
Good to finally be a "One Percenter" in something! :laugh:
Thanks again for your help, I'm sure that was the first of many questions I can't figure out.
Click to expand...
Click to collapse
Just ask away and congrats! :good:
sbdags said:
Just ask away and congrats! :good:
Click to expand...
Click to collapse
Be careful what you wish for, I've got a laundry list of questions ranging from basic Linux commands to the nature of the multiverse, lol.
I do have one question out of the gate about the update-binary file. I'm trying to add a couple apps to either the system or data folders, but I'm not sure what commands are available from the stock CM file. I think for the most part by looking at your updater-script file I can figure out the commands to do what I want, but given the little I know about this and the size difference of the binary file between CM and the one i was looking at of yours, I'm curious. Is the best way to see what's available CM's git? I basically just want to install a different Launcher and Viper instead of DSP manager for sound. Do I need to study up on edify to look at the binary or is there an easier way?
Thanks again!
Sent from my ASUS Transformer Pad TF700T using Tapatalk
psudeke said:
Be careful what you wish for, I've got a laundry list of questions ranging from basic Linux commands to the nature of the multiverse, lol.
I do have one question out of the gate about the update-binary file. I'm trying to add a couple apps to either the system or data folders, but I'm not sure what commands are available from the stock CM file. I think for the most part by looking at your updater-script file I can figure out the commands to do what I want, but given the little I know about this and the size difference of the binary file between CM and the one i was looking at of yours, I'm curious. Is the best way to see what's available CM's git? I basically just want to install a different Launcher and Viper instead of DSP manager for sound. Do I need to study up on edify to look at the binary or is there an easier way?
Thanks again!
Sent from my ASUS Transformer Pad TF700T using Tapatalk
Click to expand...
Click to collapse
yes the easiest way to do it is just make 2 folders with your extra apps in it say /extras/app
then add the following to the updater-script (you don't need to touch the update-binary unless you start using aroma)
package_extract_dir("extras", "/system");
delete("/system/app/DSPManager.apk");
delete("/system/priv-app/Trebuchet.apk");
What that does is copies the extras/app folder into system and deletes your unwanted apps
note apps can be installed into 2 folders /system/app or /system/priv-app
similarly you can install your user apps into /data/app but this is dangerous with launchers as if the user manually uninstalls it you can't do anything on the tab
sbdags said:
yes the easiest way to do it is just make 2 folders with your extra apps in it say /extras/app
then add the following to the updater-script (you don't need to touch the update-binary unless you start using aroma)
package_extract_dir("extras", "/system");
delete("/system/app/DSPManager.apk");
delete("/system/priv-app/Trebuchet.apk");
What that does is copies the extras/app folder into system and deletes you unwanted apps
note apps can be installed into 2 folders /system/app or /systempriv-app
similar you can install your user apps into /data/app but this is dangerous with launchers as if the user manually uninstalls it you can't do anything on the tab
Click to expand...
Click to collapse
Thanks again! i can see how this becomes addicting fast :fingers-crossed:
@sbdags do I need to mount data before installing anything to the /data/app folder? I saw in your updater-script this line, and i'm assuming i need the same:
Code:
mount("f2fs", "EMMC", "/dev/block/mmcblk0p8", "/data");
one other quick question (hopefully), I saw in the XDA WIKI that i can possibly test the script using the update-binary, do i have to do this on the tablet itself? i spent all afternoon trying to fix a problem that amounted to an errant quotation mark in my script (and i knew it was something like that too. too many years of non-terminated string errors to not look there first:laugh, but the only way i could find to test it was to rezip the file and flash. any suggestions?
thank you good sir! :highfive:
psudeke said:
@sbdags do I need to mount data before installing anything to the /data/app folder? I saw in your updater-script this line, and i'm assuming i need the same:
Code:
mount("f2fs", "EMMC", "/dev/block/mmcblk0p8", "/data");
one other quick question (hopefully), I saw in the XDA WIKI that i can possibly test the script using the update-binary, do i have to do this on the tablet itself? i spent all afternoon trying to fix a problem that amounted to an errant quotation mark in my script (and i knew it was something like that too. too many years of non-terminated string errors to not look there first:laugh, but the only way i could find to test it was to rezip the file and flash. any suggestions?
thank you good sir! :highfive:
Click to expand...
Click to collapse
just zip the /meta-inf folder, and flash that to test. obviously comment out any format commands as they will fail. That is what I do.
Hey @psudeke you ever need any help with anything to do with source or git let me know
I am also willing to help out
and just a FYI be careful of @sbdags :cyclops: LOL
Just kidding....
Let me know thx Josh

Categories

Resources