Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 12:14:28 AM Paul O'Brien: Hey man
- 12:14:30 AM Paul O'Brien: Here?
- 12:14:33 AM Koushik K. Dutta: hi
- 12:14:50 AM Paul O'Brien: How goes?
- 12:14:51 AM Paul O'Brien:
- 12:14:57 AM Koushik K. Dutta: pretty good
- 12:15:10 AM Koushik K. Dutta: i have way to change the recovery without pushing from a computer
- 12:15:11 AM Koushik K. Dutta: for evo and desire.
- 12:15:16 AM Koushik K. Dutta: and ihave a way to make rm work on those phones
- 12:15:19 AM Koushik K. Dutta: testing it now.
- 12:15:21 AM Paul O'Brien: Tell me more
- 12:15:25 AM Paul O'Brien: BTW, I sent you the Streak recovery already?
- 12:15:31 AM Koushik K. Dutta: basically, make an update.zip that replaces the ramdisk.
- 12:15:37 AM Koushik K. Dutta: and restart recovery process.
- 12:15:46 AM Koushik K. Dutta: sign the update.zip with a test key
- 12:15:59 AM Koushik K. Dutta: use /cache/recovery/command to force the stock recovery to load the update.zip
- 12:16:11 AM Koushik K. Dutta: also, leave that update.zip on the root of the sdcard
- 12:16:29 AM Paul O'Brien: I had a similar idea
- 12:16:47 AM Paul O'Brien: I also considered making a binary that sensed volume up keypress on startup
- 12:16:53 AM Koushik K. Dutta: yeah
- 12:16:53 AM Paul O'Brien: Then launched recovery from standard bootimg if it is pressed
- 12:16:58 AM Koushik K. Dutta: thats something i considered
- 12:17:00 AM Koushik K. Dutta: but thats way too much work
- 12:17:05 AM Koushik K. Dutta: when this is way easier
- 12:21:34 AM Paul O'Brien:
- 12:21:41 AM Paul O'Brien: Do you need the boot.img for the streak too?
- 12:21:46 AM Paul O'Brien: One thing weird on the streak
- 12:21:51 AM Paul O'Brien: I repacked amonRA's recovery
- 12:21:55 AM Paul O'Brien: And everything's upside down
- 12:21:56 AM Paul O'Brien:
- 12:22:01 AM Koushik K. Dutta: lol
- 12:22:01 AM Paul O'Brien: So yours will probably do the same
- 12:22:08 AM Koushik K. Dutta: hold it upside down then!
- 12:22:11 AM Paul O'Brien: Need to bear that in mind when setting up the keys
- 12:22:12 AM Paul O'Brien: Yeah, that's fine
- 12:22:18 AM Paul O'Brien: But up / down need to know about it
- 12:22:19 AM Paul O'Brien:
- 12:24:05 AM Koushik K. Dutta: does the desire default recovery accept test signed zips?
- 12:24:52 AM Paul O'Brien: Not tried...
- 12:24:57 AM Koushik K. Dutta: mind giving it a shot?
- 12:25:20 AM Paul O'Brien: Yeah, can do, wanna send me one to try?
- 12:25:38 AM Paul O'Brien: Wanna test sign your Desire recovery and i'll try flashing it from the stock recovery?
- 12:25:54 AM Koushik K. Dutta: http://www.clockworkmod.com/download//test/signedupdate.zip
- 12:25:57 AM Koushik K. Dutta: thats test signed
- 12:27:18 AM Paul O'Brien: OK cool
- 12:27:21 AM Paul O'Brien: Will test it now
- 12:27:51 AM Koushik K. Dutta: just tested it on ra recovery, it worked
- 12:27:54 AM Koushik K. Dutta: replaced it with cw
- 12:28:00 AM Koushik K. Dutta: on n1 and droid
- 12:28:22 AM Koushik K. Dutta: pretty neat, would be lame if those things dont accept test signed zips.
- 12:28:31 AM Paul O'Brien: Yeah
- 12:28:33 AM Paul O'Brien: Since it's a test image
- 12:29:33 AM Paul O'Brien: So this is the stock 'test image' recovery right
- 12:29:36 AM Paul O'Brien: Pushed the update zip
- 12:29:41 AM Koushik K. Dutta: yeah
- 12:29:54 AM Paul O'Brien: Signature verification failed, installation aborted
- 12:29:55 AM Paul O'Brien:
- 12:29:58 AM Koushik K. Dutta: shitfuuuuck
- 12:30:02 AM Paul O'Brien: Bastards
- 12:30:12 AM Koushik K. Dutta: sigh dual boot it is then.
- 12:30:32 AM Paul O'Brien: Yeah
- 12:30:33 AM Paul O'Brien:
- 12:34:07 AM Koushik K. Dutta: can you flash boot from within android?
- 12:35:28 AM Paul O'Brien: Not on the Desire
- 12:37:16 AM Koushik K. Dutta: also, can you try pulling /etc/keys from default
- 12:37:22 AM Koushik K. Dutta: and sending me the pastebin of its contents
- 12:38:37 AM Paul O'Brien: From the default recovery?
- 12:38:45 AM Koushik K. Dutta: yup
- 12:38:53 AM Paul O'Brien: You mean /res/keys?
- 12:38:57 AM Koushik K. Dutta: err right
- 12:39:01 AM Paul O'Brien:
- 12:39:03 AM Paul O'Brien: # cat /res/keys
- {64,0xc926ad21,{1795090719,2141396315,950055447,-1713398866,-26044131,1920809988,546586521,-795969498,1776797858,-554906482,1805317999,1429410244,129622599,1422441418,1783893377,1222374759,-1731647369,323993566,28517732,609753416,1826472888,215237850,-33324596,-245884705,-1066504894,774857746,154822455,-1797768399,-1536767878,-1275951968,-1500189652,87251430,-1760039318,120774784,571297800,-599067824,-1815042109,-483341846,-893134306,-1900097649,-1027721089,950095497,555058928,414729973,1136544882,-1250377212,465547824,-236820568,-1563171242,1689838846,-404210357,1048029507,895090649,247140249,178744550,-747082073,-1129788053,109881576,-350362881,1044303212,-522594267,-1309816990,-557446364,-695002876},{-857949815,-510492167,-1494742324,-1208744608,251333580,2131931323,512774938,325948880,-1637480859,2102694287,-474399070,792812816,1026422502,2053275343,-1494078096,-1181380486,165549746,-21447327,-229719404,1902789247,772932719,-353118870,-642223187,216871947,-1130566647,1942378755,-298201445,1055777370,964047799,629391717,-2062222979,-384408304,191868569,-1536083459,-612150544,-1297252564,-1592438046,-724266841,-518093464,-370899750,-739277751,-1536141862,1323144535,61311905,1997411085,376844204,213777604,-217643712,9135381,1625809335,-1490225159,-1342673351,1117190829,-57654514,1825108855,-1281819325,1111251351,-1726129724,1684324211,-1773988491,367251975,810756730,-1941182952,1175080310}}
- 12:39:25 AM Koushik K. Dutta: err huh
- 12:39:28 AM Koushik K. Dutta: can you send me the file
- 12:39:32 AM Koushik K. Dutta: that looks exactly the same..
- 12:40:16 AM Paul O'Brien: http://content.modaco.net/dropzone/keys
- 12:40:59 AM Koushik K. Dutta: dude
- 12:41:00 AM Koushik K. Dutta: its the same
- 12:41:01 AM Koushik K. Dutta: wt.
- 12:41:02 AM Koushik K. Dutta: wtf
- 12:41:04 AM Koushik K. Dutta: did i sign wrong
- 12:41:07 AM Koushik K. Dutta: can you try signing teh zip
- 12:41:24 AM Paul O'Brien: Yeah, 1 sec
- 12:42:02 AM Paul O'Brien: Pushing now...
- 12:42:28 AM Koushik K. Dutta: do you use signapk.jar
- 12:42:30 AM Koushik K. Dutta: or testsign
- 12:43:04 AM Paul O'Brien: Same error
- 12:43:19 AM Paul O'Brien: signapk.jar
- 12:43:20 AM Paul O'Brien: iirc
- 12:43:30 AM Paul O'Brien: (it's all embedded in my scripts nowadays)
- 12:46:16 AM Koushik K. Dutta: can you pull /tmp/recovery.log of the error
- 12:46:18 AM Koushik K. Dutta: it might have more info
- 12:46:57 AM Paul O'Brien: http://content.modaco.net/dropzone/recovery.log
- 12:47:26 AM Paul O'Brien: These devices are a real pain
- 12:47:34 AM Paul O'Brien: I dunno why HTC go to such trouble to prevent root
- 12:47:34 AM Koushik K. Dutta: dude we gotta be signing it wrong.
- 12:47:44 AM Paul O'Brien: heh
- 12:47:55 AM Paul O'Brien: But it passes the AmonRA recovery checks
- 12:48:02 AM Paul O'Brien: *shrugs*
- 12:48:08 AM Koushik K. Dutta: amon ra recovery checks cant install make otapackage
- 12:48:17 AM Paul O'Brien: Yeah
- 12:48:26 AM Paul O'Brien: But they are signed release-keys no?
- 12:48:30 AM Koushik K. Dutta: nah, test
- 12:48:35 AM Paul O'Brien: hmmm
- 12:48:37 AM Koushik K. Dutta: sec. lemme see what otapackage does.
- 12:48:38 AM Paul O'Brien: That's strange then
- 12:51:13 AM Koushik K. Dutta: oh shit
- 12:51:19 AM Koushik K. Dutta: ii've got symlinks in the zip.
- 12:52:43 AM Paul O'Brien: Shouldn't make the sig verification fail tho
- 12:55:00 AM Koushik K. Dutta: http://clockworkmod.s3.amazonaws.com//test/foosigned.zip
- 12:55:01 AM Koushik K. Dutta: try that
- 12:55:03 AM Koushik K. Dutta: its an empty zip.
- 12:55:16 AM Koushik K. Dutta: just has an updater-script in it
- 12:55:22 AM Koushik K. Dutta: that prints something
- 12:55:27 AM Paul O'Brien: AccessDeniedAccess DeniedDA6C0930A0D30839vgee8UYgAKCm6vwqe+e5mrTtmhxEBJb/7+rTht6QhxfvJUW7g5yRhUniHGfmvI+4
- 12:55:31 AM Paul O'Brien: On that URL
- 12:55:34 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/foosigned.zip
- 12:55:40 AM Paul O'Brien: Ah got it
- 12:55:56 AM Koushik K. Dutta: i have scripts to upload to every mirror i have avaialble, scp style
- 12:56:10 AM Paul O'Brien: Same
- 12:56:11 AM Paul O'Brien:
- 12:56:22 AM Koushik K. Dutta: same bug?
- 12:56:26 AM Koushik K. Dutta: ugh
- 12:57:10 AM Paul O'Brien: Iet boot command "boot-recovery"
- Finding update package...
- I:Update location: SDCARD:update.zip
- Opening update package...
- I:Update file path: /sdcard/update.zip
- I:1 key(s) loaded from /res/keys
- Verifying update package...
- I:verify_file returned 1
- E:signature verification failed
- Installation aborted.
- 12:57:25 AM Paul O'Brien: Strange
- 12:58:05 AM Koushik K. Dutta: dude sig verification failed
- 12:58:07 AM Koushik K. Dutta: on cw
- 12:58:10 AM Koushik K. Dutta: i turned it on
- 12:58:11 AM Koushik K. Dutta: just to check
- 12:58:16 AM Koushik K. Dutta: we're DEFINITELY signing it wrong.
- 12:58:29 AM Paul O'Brien:
- 12:58:34 AM Paul O'Brien: How is that possible?
- 12:58:42 AM Paul O'Brien: I have testsign.jar here
- 12:58:45 AM Paul O'Brien: I'll run it thru that
- 12:58:48 AM Koushik K. Dutta: k
- 1:00:43 AM Paul O'Brien: Gah, same!
- 1:01:09 AM Paul O'Brien: So what's going on?
- 1:03:01 AM Koushik K. Dutta: gonna try an ota build
- 1:03:05 AM Koushik K. Dutta: against this sig checking cw'
- 1:03:07 AM Koushik K. Dutta: to sanity check
- 1:03:24 AM Paul O'Brien:
- 1:04:14 AM Koushik K. Dutta: aaaaand it works.
- 1:04:16 AM Koushik K. Dutta: LOL
- 1:04:21 AM Koushik K. Dutta: let me see.
- 1:04:26 AM Koushik K. Dutta: i have an idae
- 1:04:33 AM Koushik K. Dutta: you can flash a cm build for droid
- 1:04:36 AM Koushik K. Dutta: sec.
- 1:05:02 AM Koushik K. Dutta: nevermind, it prop checks.
- 1:05:08 AM Paul O'Brien: Yes
- 1:05:09 AM Paul O'Brien: But
- 1:05:12 AM Paul O'Brien: We can see if it gets that far
- 1:05:16 AM Paul O'Brien: It should sig check first right?
- 1:05:18 AM Koushik K. Dutta: fair enough
- 1:05:45 AM Koushik K. Dutta: "http://www.thekilpatrickproject.com/downloads/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
- "http://droidk.macleodweb.net/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
- "http://android.antbox.org/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
- "http://www.droidaftermarket.com/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
- "http://koush.romraid.com/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip"
- 1:05:51 AM Koushik K. Dutta: one of those should work
- 1:06:06 AM Paul O'Brien: *shuts eyes and clicks*
- 1:06:07 AM Paul O'Brien: Hah
- 1:06:12 AM Paul O'Brien: The one I clicked doesn't work
- 1:06:12 AM Paul O'Brien: lol
- 1:06:20 AM Koushik K. Dutta: droidaftermarket should
- 1:06:23 AM Paul O'Brien: http://www.droidaftermarket.com/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip
- 1:06:25 AM Paul O'Brien: That's the dead one!
- 1:06:28 AM Koushik K. Dutta: haha
- 1:06:35 AM Paul O'Brien: Got a working one now
- 1:06:37 AM Paul O'Brien: 3 mins
- 1:06:40 AM Koushik K. Dutta: k
- 1:09:28 AM Paul O'Brien: Pushing...
- 1:10:16 AM Koushik K. Dutta: checkng to see what otapackage does.
- 1:11:05 AM Paul O'Brien: OK
- 1:11:07 AM Paul O'Brien: So that works!!!
- 1:11:10 AM Koushik K. Dutta: lol
- 1:11:12 AM Paul O'Brien: (well, it fails at the assser)
- 1:11:15 AM Paul O'Brien: *assert
- 1:11:17 AM Paul O'Brien: =
- 1:11:18 AM Paul O'Brien: WTF
- 1:11:20 AM Paul O'Brien:
- 1:11:26 AM Paul O'Brien: If we can suss this then, we can flash recovery!
- 1:11:31 AM Koushik K. Dutta: yup
- 1:11:37 AM Koushik K. Dutta: fake-flash
- 1:11:48 AM Koushik K. Dutta: ['java', '-Xmx512m', '-jar', 'out/host/darwin-x86/framework/signapk.jar', '-w', 'build/target/product/security/testkey.x509.pem', 'build/target/product/security/testkey.pk8', '/tmp/tmpmA1YKO', 'out/target/product/sholes-open/cyanogen_sholes-ota-eng.koush.zip']
- 1:12:32 AM Koushik K. Dutta: whats -w ?
- 1:12:41 AM Paul O'Brien: Let me compare that to my script, 1 sec
- 1:12:57 AM Paul O'Brien: java -jar ~/ROMraid/tools/signapk.jar ~/ROMraid/tools/testkey.x509.pem ~/ROMraid/tools/testkey.pk8 $1.zip $1-signed.zip
- 1:13:14 AM Paul O'Brien: Hmmm
- 1:13:27 AM Koushik K. Dutta: testing..
- 1:14:27 AM Koushik K. Dutta: THAT WORKED.
- 1:14:31 AM Paul O'Brien: What?
- 1:14:34 AM Paul O'Brien: Using -w?
- 1:14:36 AM Koushik K. Dutta: yes
- 1:14:39 AM Koushik K. Dutta: it meansa whole file
- 1:14:41 AM Koushik K. Dutta: watever the fuck that is
- 1:14:41 AM Koushik K. Dutta: sec
- 1:14:45 AM Koushik K. Dutta: i'm gonna send u another recovery image
- 1:14:46 AM Paul O'Brien: OMG
- 1:14:52 AM Paul O'Brien: How could we not know this?
- 1:14:56 AM Paul O'Brien: Let me resign your foo update
- 1:16:02 AM Koushik K. Dutta: k
- 1:16:19 AM Paul O'Brien: My signapk.jar is b0rking when I pass a -w
- 1:16:30 AM Paul O'Brien:
- 1:16:32 AM Koushik K. Dutta: ok
- 1:16:37 AM Koushik K. Dutta: here comes a new signed update.zip
- 1:16:46 AM Paul O'Brien: java -jar ~/ROMraid/tools/signapk.jar -w ~/ROMraid/tools/testkey.x509.pem ~/ROMraid/tools/testkey.pk8 foosigned.zip foosignedw.zip
- 1:16:51 AM Paul O'Brien: ^^ that fails
- 1:16:55 AM Koushik K. Dutta: whats the error
- 1:17:02 AM Paul O'Brien: Usage: signapk publickey.x509[.pem] privatekey.pk8 input.jar output.jar
- 1:17:10 AM Koushik K. Dutta: you have an old one
- 1:17:13 AM Koushik K. Dutta: the one i ma using is from a build
- 1:17:22 AM Paul O'Brien: Could you drop it somewhere?
- 1:17:24 AM Koushik K. Dutta: sec sure
- 1:17:30 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/dashw.zip
- 1:17:56 AM Koushik K. Dutta: if this works, let me prepare a rom manager release before you blog
- 1:18:01 AM Koushik K. Dutta: you can break the news
- 1:18:35 AM Paul O'Brien: Heh, I tweeted we're working on it
- 1:18:36 AM Paul O'Brien: lol
- 1:18:39 AM Koushik K. Dutta: hahaha
- 1:18:48 AM Paul O'Brien: Can you up that signapk.jar?
- 1:18:51 AM Paul O'Brien: Incidentally
- 1:18:55 AM Koushik K. Dutta: yip
- 1:18:57 AM Paul O'Brien: I have a test image for the Wildfire
- 1:19:03 AM Paul O'Brien: So we should be able to root that the minute it's released
- 1:19:03 AM Paul O'Brien:
- 1:19:21 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/signapk.jar
- 1:19:25 AM Koushik K. Dutta: the cool part about this update.zip format..
- 1:19:28 AM Koushik K. Dutta: it works on any phone
- 1:19:30 AM Koushik K. Dutta: *any* phone
- 1:19:37 AM Paul O'Brien: It says it worked!
- 1:19:37 AM Koushik K. Dutta: the fstabs and everything are dynamically generated
- 1:19:53 AM Koushik K. Dutta: ok, so it got past sig check, but did it boot into cw?
- 1:20:01 AM Paul O'Brien: It says install from SDcard complete
- 1:20:03 AM Koushik K. Dutta: ok
- 1:20:06 AM Koushik K. Dutta: so it worked but failed
- 1:20:10 AM Koushik K. Dutta: lets get the recovery.log again
- 1:20:11 AM Paul O'Brien: heh
- 1:20:15 AM Paul O'Brien: Well
- 1:20:40 AM Paul O'Brien: Can't we just do a conventional flash recovery?
- 1:20:48 AM Koushik K. Dutta: no, that doesnt work
- 1:20:55 AM Paul O'Brien: Well
- 1:20:57 AM Koushik K. Dutta: obviosly
- 1:21:02 AM Paul O'Brien: It didn't work from our recovery
- 1:21:09 AM Paul O'Brien: I wonder if the 'burned in' recovery will be able to do it
- 1:21:20 AM Koushik K. Dutta: nah, i doubt it.
- 1:21:36 AM Koushik K. Dutta: its all the same shit runnig as root
- 1:21:48 AM Koushik K. Dutta: flash_imagae doesnt work in recovery mode
- 1:21:49 AM Koushik K. Dutta: erase fails.
- 1:22:16 AM Koushik K. Dutta: if ya really wanna try
- 1:22:21 AM Koushik K. Dutta: you can create an update package that doesnt use flash image
- 1:22:29 AM Koushik K. Dutta: rather, it uses the write_image_raw or whatever function
- 1:22:40 AM Koushik K. Dutta: assert(package_extract_file("boot.img", "/tmp/boot.img"),
- write_raw_image("/tmp/boot.img", "boot"),
- delete("/tmp/boot.img"));
- 1:22:41 AM Koushik K. Dutta: like this
- 1:22:48 AM Koushik K. Dutta: but i am 99.999999% sure that wont work.
- 1:22:58 AM Koushik K. Dutta: toss me the log when you have a change
- 1:22:59 AM Koushik K. Dutta: chance*
- 1:24:26 AM Paul O'Brien: -- Install from sdcard...
- I:Set boot command "boot-recovery"
- Finding update package...
- I:Update location: SDCARD:update.zip
- Opening update package...
- I:Update file path: /sdcard/update.zip
- I:1 key(s) loaded from /res/keys
- Verifying update package...
- I:comment is 1738 bytes; signature 1720 bytes from end
- I:whole-file signature verified
- I:verify_file returned 0
- Installing update...
- package_extract_file: can't open /sbin/adbd for write: Text file busy
- Replacing stock recovery with stock recovery...about to run program [/sbin/killrecovery.sh] with 1 args
- run_program: execv failed: No such file or directory
- run_program: child exited with status 1
- script result was [256]
- 1:24:48 AM Koushik K. Dutta: can you adb shell in?
- 1:24:57 AM Paul O'Brien: I can by pushing some files over
- 1:24:58 AM Koushik K. Dutta: it might let you
- 1:25:01 AM Koushik K. Dutta: try without pushing
- 1:25:03 AM Paul O'Brien: Ah OK
- 1:25:06 AM Paul O'Brien: Nope
- 1:25:13 AM Paul O'Brien: Paul-OBriens-iMac:Downloads paul$ adb shell
- - exec '/system/bin/sh' failed: No such file or directory (2) -
- 1:25:19 AM Koushik K. Dutta: ok push and check
- 1:26:04 AM Paul O'Brien: killrecovery.sh is in /sbin/
- 1:26:05 AM Paul O'Brien:
- 1:26:08 AM Koushik K. Dutta: whats the perms
- 1:26:14 AM Koushik K. Dutta: oh, there's no sh.
- 1:26:16 AM Paul O'Brien: # ls -l killrecovery.sh
- -rwxr-xr-x 1 0 0 43 Jun 9 08:18 killrecovery.sh
- 1:26:17 AM Koushik K. Dutta: thats why it failed haha.
- 1:26:19 AM Paul O'Brien: Ah
- 1:26:20 AM Paul O'Brien: heh
- 1:26:21 AM Paul O'Brien: Yeah
- 1:26:21 AM Paul O'Brien:
- 1:27:10 AM Koushik K. Dutta: ok try running killrecovery.sh from adb shell
- 1:27:35 AM Paul O'Brien: What's it supposed to do
- 1:27:37 AM Paul O'Brien: It killed the recovery
- 1:27:40 AM Koushik K. Dutta: ok
- 1:27:41 AM Koushik K. Dutta: good
- 1:27:43 AM Paul O'Brien: And it reopened
- 1:27:46 AM Koushik K. Dutta: as cw?
- 1:28:04 AM Paul O'Brien: No....
- 1:28:18 AM Paul O'Brien: But i've overwritten it remember
- 1:28:22 AM Paul O'Brien: With my push
- 1:28:36 AM Koushik K. Dutta: you overwrote recovery?
- 1:28:47 AM Koushik K. Dutta: are you still in stock recovery
- 1:28:51 AM Koushik K. Dutta: or amonra or something now
- 1:29:00 AM Paul O'Brien: No, I ran my desire-recovery script
- 1:29:04 AM Koushik K. Dutta: ok
- 1:29:07 AM Paul O'Brien: Which pushes the file for /sh and the AmonRA recovery
- 1:29:08 AM Koushik K. Dutta: makes sense
- 1:29:11 AM Paul O'Brien: So your script works basically
- 1:29:23 AM Paul O'Brien: Just i'd overwritten the recovery you flashed with the amonRA one
- 1:29:33 AM Paul O'Brien: So you need to include a bunch of files to let sh run
- 1:30:04 AM Paul O'Brien: This is what I push
- 1:30:04 AM Paul O'Brien: ./etc
- ./etc/fstab
- ./etc/mtab
- ./sbin
- ./sbin/adbd
- ./sbin/backuptool.sh
- ./sbin/busybox
- ./sbin/dump_image
- ./sbin/e2fsck
- ./sbin/fix_permissions
- ./sbin/flash_image
- ./sbin/fs
- ./sbin/log2sd
- ./sbin/mke2fs
- ./sbin/mkyaffs2image
- ./sbin/nandroid-mobile.sh
- ./sbin/parted
- ./sbin/reboot
- ./sbin/recovery
- ./sbin/sdparted
- ./sbin/toolbox
- ./sbin/tune2fs
- ./sbin/um
- ./sbin/ums_toggle
- ./sbin/unyaffs
- ./sbin/wipe
- ./system
- ./system/bin
- ./system/bin/linker
- ./system/bin/sh
- ./system/lib
- ./system/lib/libc.so
- ./system/lib/libcutils.so
- ./system/lib/liblog.so
- ./system/lib/libm.so
- ./system/lib/libstdc++.so
- 1:30:11 AM Paul O'Brien: To let AmonRA's recovery run
- 1:30:37 AM Paul O'Brien: The /system/bin and /system/lib stuff is the stuff that matters to you I guess
- 1:32:42 AM Paul O'Brien: http://content.modaco.net/dropzone/desirefiles.zip
- 1:32:46 AM Paul O'Brien: They are the files if you need them
- 1:44:51 AM Koushik K. Dutta: removed symlinks
- 1:44:57 AM Koushik K. Dutta: working on fixing up the problems writing certain files
- 1:45:08 AM Koushik K. Dutta: ok think i got it working
- 1:45:38 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/signingnoobs.zip
- 1:47:22 AM Paul O'Brien: heh
- 1:49:48 AM Paul O'Brien: So to sanity check
- 1:49:54 AM Paul O'Brien: I made an update zip signed the new way
- 1:49:57 AM Paul O'Brien: With just this:
- 1:49:58 AM Paul O'Brien: show_progress 0.1 0
- write_raw_image PACKAGE:recovery.img RECOVERY:
- show_progress 0.1 10
- 1:50:01 AM Koushik K. Dutta: right
- 1:50:06 AM Paul O'Brien: It exited with 'installation aborted'
- 1:50:09 AM Paul O'Brien: Not very descriptive
- 1:50:11 AM Paul O'Brien:
- 1:50:15 AM Koushik K. Dutta: yeah you used update-script
- 1:50:22 AM Koushik K. Dutta: new recoveries cant handle update-script anymore
- 1:50:26 AM Koushik K. Dutta: amend is deprecated
- 1:50:30 AM Koushik K. Dutta: you need to use edify, updater-script
- 1:50:32 AM Koushik K. Dutta: and update-binary
- 1:50:38 AM Koushik K. Dutta: and use that blob i sent you
- 1:50:55 AM Paul O'Brien: Really? Didn't realise it was deprecated, that's rubbish!
- 1:50:56 AM Paul O'Brien:
- 1:51:02 AM Koushik K. Dutta: hehe
- 1:51:23 AM Koushik K. Dutta: amend realy sucked, when passing arguments that had multple "words" but was only one argument
- 1:51:30 AM Paul O'Brien: Yeah
- 1:51:37 AM Koushik K. Dutta: edify fixed that
- 1:52:06 AM Koushik K. Dutta: did the zip i sent work/
- 1:52:07 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/signingnoobs.zip
- 1:52:15 AM Paul O'Brien: Testing now
- 1:52:17 AM Koushik K. Dutta: k
- 1:52:17 AM Paul O'Brien: Yup
- 1:52:20 AM Paul O'Brien: Now in clockword mod
- 1:52:21 AM Koushik K. Dutta: YESSSSSSSSSS
- 1:52:21 AM Paul O'Brien:
- 1:52:47 AM Paul O'Brien: Very cool
- 1:52:47 AM Paul O'Brien:
- 1:53:10 AM Paul O'Brien: I can haz Legend one too?
- 1:53:11 AM Paul O'Brien:
- 1:53:16 AM Koushik K. Dutta: haha that is the legend one
- 1:53:56 AM Koushik K. Dutta: actually go ahead and post it
- 1:53:58 AM Koushik K. Dutta: i need to sleep
- 1:54:07 AM Koushik K. Dutta: i'll work on RM suport tomorrow.
- 1:54:27 AM Koushik K. Dutta: basically it will force an OTA update with that update.zip, and then CW will kick in and do the actual install
- 1:55:11 AM Paul O'Brien: Hmmmm, when I adb shell it fails
- 1:55:16 AM Koushik K. Dutta: whats it say
- 1:55:23 AM Paul O'Brien: - exec '/system/bin/sh' failed: No such file or directory (2) -
- 1:55:29 AM Koushik K. Dutta: sec i know how to fix it.
- 1:55:41 AM Paul O'Brien: Don't forget the streak recovery!
- 1:55:41 AM Paul O'Brien:
- 1:55:49 AM Koushik K. Dutta: do adb root
- 1:55:50 AM Paul O'Brien: Wanna hack 2.1 onto this bad boy
- 1:55:52 AM Koushik K. Dutta: and then retry
- 1:55:59 AM Paul O'Brien: 'adbd is already running as root'
- 1:56:01 AM Koushik K. Dutta: ok
- 1:56:02 AM Koushik K. Dutta: umm
- 1:56:11 AM Koushik K. Dutta: adb tcp
- 1:56:13 AM Koushik K. Dutta: adb usb
- 1:56:15 AM Koushik K. Dutta: adb shell
- 1:56:18 AM Koushik K. Dutta: that will force a restart
- 1:56:22 AM Koushik K. Dutta: err adb tcp 34343
- 1:56:25 AM Paul O'Brien: Hmmm, that worked
- 1:56:27 AM Koushik K. Dutta: yea
- 1:56:31 AM Paul O'Brien: Bizarre
- 1:56:32 AM Paul O'Brien:
- 1:56:34 AM Koushik K. Dutta: nah
- 1:56:35 AM Paul O'Brien: What's that all about?
- 1:56:38 AM Koushik K. Dutta: basically its the old adb listening
- 1:56:42 AM Koushik K. Dutta: which looks for shell in /system/bin/sh
- 1:56:48 AM Koushik K. Dutta: my recovery image has a patched adbd
- 1:56:51 AM Koushik K. Dutta: which looks in /sbin/sh
- 1:56:52 AM Paul O'Brien: Symlink it in your script?
- 1:56:59 AM Koushik K. Dutta: no
- 1:57:02 AM Koushik K. Dutta: because if system is mounted
- 1:57:05 AM Koushik K. Dutta: and someone runs adb shell
- 1:57:09 AM Koushik K. Dutta: then it uses the one in /system/bin
- 1:57:12 AM Koushik K. Dutta: and then you cant unmount
- 1:57:22 AM Koushik K. Dutta: quite problematic
- 1:57:26 AM Paul O'Brien: Ah I see
- 1:57:27 AM Koushik K. Dutta: noobs do funny things.
- 1:57:27 AM Paul O'Brien:
- 1:57:34 AM Paul O'Brien: Ok so this is cool
- 1:57:36 AM Koushik K. Dutta: i'll adjust killrecovery.sh
- 1:57:39 AM Paul O'Brien: Someone with a Desire / Legend
- 1:57:44 AM Koushik K. Dutta: to also restart adbd.
- 1:57:44 AM Paul O'Brien: Can get into recovery now without needed a PC
- 1:57:47 AM Koushik K. Dutta: yup
- 1:57:48 AM Paul O'Brien: By keeping update.zip on their SD
- 1:57:51 AM Koushik K. Dutta: yup
- 1:57:54 AM Paul O'Brien: That's cool
- 1:58:04 AM Paul O'Brien: Can't believe we'd missed that -w option
- 1:58:07 AM Paul O'Brien: Gah
- 1:58:08 AM Paul O'Brien:
- 1:58:10 AM Koushik K. Dutta: heh
- 1:58:13 AM Koushik K. Dutta: it wasnt around till eclair
- 1:58:19 AM Koushik K. Dutta: and amonra is using a cupcake recovery
- 1:58:20 AM Paul O'Brien: I just knew you couldn't sign for their test recovery
- 1:58:24 AM Paul O'Brien: Didn't realise why
- 1:58:25 AM Paul O'Brien:
- 1:58:27 AM Paul O'Brien: idd
- 1:58:33 AM Koushik K. Dutta: yea i'm glad i checked /res/keys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement