Advertisement
Guest User

Untitled

a guest
Jun 9th, 2010
1,688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.28 KB | None | 0 0
  1. 12:14:28 AM Paul O'Brien: Hey man
  2. 12:14:30 AM Paul O'Brien: Here?
  3. 12:14:33 AM Koushik K. Dutta: hi
  4. 12:14:50 AM Paul O'Brien: How goes?
  5. 12:14:51 AM Paul O'Brien:
  6. 12:14:57 AM Koushik K. Dutta: pretty good
  7. 12:15:10 AM Koushik K. Dutta: i have way to change the recovery without pushing from a computer
  8. 12:15:11 AM Koushik K. Dutta: for evo and desire.
  9. 12:15:16 AM Koushik K. Dutta: and ihave a way to make rm work on those phones
  10. 12:15:19 AM Koushik K. Dutta: testing it now.
  11. 12:15:21 AM Paul O'Brien: Tell me more
  12. 12:15:25 AM Paul O'Brien: BTW, I sent you the Streak recovery already?
  13. 12:15:31 AM Koushik K. Dutta: basically, make an update.zip that replaces the ramdisk.
  14. 12:15:37 AM Koushik K. Dutta: and restart recovery process.
  15. 12:15:46 AM Koushik K. Dutta: sign the update.zip with a test key
  16. 12:15:59 AM Koushik K. Dutta: use /cache/recovery/command to force the stock recovery to load the update.zip
  17. 12:16:11 AM Koushik K. Dutta: also, leave that update.zip on the root of the sdcard
  18. 12:16:29 AM Paul O'Brien: I had a similar idea
  19. 12:16:47 AM Paul O'Brien: I also considered making a binary that sensed volume up keypress on startup
  20. 12:16:53 AM Koushik K. Dutta: yeah
  21. 12:16:53 AM Paul O'Brien: Then launched recovery from standard bootimg if it is pressed
  22. 12:16:58 AM Koushik K. Dutta: thats something i considered
  23. 12:17:00 AM Koushik K. Dutta: but thats way too much work
  24. 12:17:05 AM Koushik K. Dutta: when this is way easier
  25. 12:21:34 AM Paul O'Brien:
  26. 12:21:41 AM Paul O'Brien: Do you need the boot.img for the streak too?
  27. 12:21:46 AM Paul O'Brien: One thing weird on the streak
  28. 12:21:51 AM Paul O'Brien: I repacked amonRA's recovery
  29. 12:21:55 AM Paul O'Brien: And everything's upside down
  30. 12:21:56 AM Paul O'Brien:
  31. 12:22:01 AM Koushik K. Dutta: lol
  32. 12:22:01 AM Paul O'Brien: So yours will probably do the same
  33. 12:22:08 AM Koushik K. Dutta: hold it upside down then!
  34. 12:22:11 AM Paul O'Brien: Need to bear that in mind when setting up the keys
  35. 12:22:12 AM Paul O'Brien: Yeah, that's fine
  36. 12:22:18 AM Paul O'Brien: But up / down need to know about it
  37. 12:22:19 AM Paul O'Brien:
  38. 12:24:05 AM Koushik K. Dutta: does the desire default recovery accept test signed zips?
  39. 12:24:52 AM Paul O'Brien: Not tried...
  40. 12:24:57 AM Koushik K. Dutta: mind giving it a shot?
  41. 12:25:20 AM Paul O'Brien: Yeah, can do, wanna send me one to try?
  42. 12:25:38 AM Paul O'Brien: Wanna test sign your Desire recovery and i'll try flashing it from the stock recovery?
  43. 12:25:54 AM Koushik K. Dutta: http://www.clockworkmod.com/download//test/signedupdate.zip
  44. 12:25:57 AM Koushik K. Dutta: thats test signed
  45. 12:27:18 AM Paul O'Brien: OK cool
  46. 12:27:21 AM Paul O'Brien: Will test it now
  47. 12:27:51 AM Koushik K. Dutta: just tested it on ra recovery, it worked
  48. 12:27:54 AM Koushik K. Dutta: replaced it with cw
  49. 12:28:00 AM Koushik K. Dutta: on n1 and droid
  50. 12:28:22 AM Koushik K. Dutta: pretty neat, would be lame if those things dont accept test signed zips.
  51. 12:28:31 AM Paul O'Brien: Yeah
  52. 12:28:33 AM Paul O'Brien: Since it's a test image
  53. 12:29:33 AM Paul O'Brien: So this is the stock 'test image' recovery right
  54. 12:29:36 AM Paul O'Brien: Pushed the update zip
  55. 12:29:41 AM Koushik K. Dutta: yeah
  56. 12:29:54 AM Paul O'Brien: Signature verification failed, installation aborted
  57. 12:29:55 AM Paul O'Brien:
  58. 12:29:58 AM Koushik K. Dutta: shitfuuuuck
  59. 12:30:02 AM Paul O'Brien: Bastards
  60. 12:30:12 AM Koushik K. Dutta: sigh dual boot it is then.
  61. 12:30:32 AM Paul O'Brien: Yeah
  62. 12:30:33 AM Paul O'Brien:
  63. 12:34:07 AM Koushik K. Dutta: can you flash boot from within android?
  64. 12:35:28 AM Paul O'Brien: Not on the Desire
  65. 12:37:16 AM Koushik K. Dutta: also, can you try pulling /etc/keys from default
  66. 12:37:22 AM Koushik K. Dutta: and sending me the pastebin of its contents
  67. 12:38:37 AM Paul O'Brien: From the default recovery?
  68. 12:38:45 AM Koushik K. Dutta: yup
  69. 12:38:53 AM Paul O'Brien: You mean /res/keys?
  70. 12:38:57 AM Koushik K. Dutta: err right
  71. 12:39:01 AM Paul O'Brien:
  72. 12:39:03 AM Paul O'Brien: # cat /res/keys
  73. {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}}
  74. 12:39:25 AM Koushik K. Dutta: err huh
  75. 12:39:28 AM Koushik K. Dutta: can you send me the file
  76. 12:39:32 AM Koushik K. Dutta: that looks exactly the same..
  77. 12:40:16 AM Paul O'Brien: http://content.modaco.net/dropzone/keys
  78. 12:40:59 AM Koushik K. Dutta: dude
  79. 12:41:00 AM Koushik K. Dutta: its the same
  80. 12:41:01 AM Koushik K. Dutta: wt.
  81. 12:41:02 AM Koushik K. Dutta: wtf
  82. 12:41:04 AM Koushik K. Dutta: did i sign wrong
  83. 12:41:07 AM Koushik K. Dutta: can you try signing teh zip
  84. 12:41:24 AM Paul O'Brien: Yeah, 1 sec
  85. 12:42:02 AM Paul O'Brien: Pushing now...
  86. 12:42:28 AM Koushik K. Dutta: do you use signapk.jar
  87. 12:42:30 AM Koushik K. Dutta: or testsign
  88. 12:43:04 AM Paul O'Brien: Same error
  89. 12:43:19 AM Paul O'Brien: signapk.jar
  90. 12:43:20 AM Paul O'Brien: iirc
  91. 12:43:30 AM Paul O'Brien: (it's all embedded in my scripts nowadays)
  92. 12:46:16 AM Koushik K. Dutta: can you pull /tmp/recovery.log of the error
  93. 12:46:18 AM Koushik K. Dutta: it might have more info
  94. 12:46:57 AM Paul O'Brien: http://content.modaco.net/dropzone/recovery.log
  95. 12:47:26 AM Paul O'Brien: These devices are a real pain
  96. 12:47:34 AM Paul O'Brien: I dunno why HTC go to such trouble to prevent root
  97. 12:47:34 AM Koushik K. Dutta: dude we gotta be signing it wrong.
  98. 12:47:44 AM Paul O'Brien: heh
  99. 12:47:55 AM Paul O'Brien: But it passes the AmonRA recovery checks
  100. 12:48:02 AM Paul O'Brien: *shrugs*
  101. 12:48:08 AM Koushik K. Dutta: amon ra recovery checks cant install make otapackage
  102. 12:48:17 AM Paul O'Brien: Yeah
  103. 12:48:26 AM Paul O'Brien: But they are signed release-keys no?
  104. 12:48:30 AM Koushik K. Dutta: nah, test
  105. 12:48:35 AM Paul O'Brien: hmmm
  106. 12:48:37 AM Koushik K. Dutta: sec. lemme see what otapackage does.
  107. 12:48:38 AM Paul O'Brien: That's strange then
  108. 12:51:13 AM Koushik K. Dutta: oh shit
  109. 12:51:19 AM Koushik K. Dutta: ii've got symlinks in the zip.
  110. 12:52:43 AM Paul O'Brien: Shouldn't make the sig verification fail tho
  111. 12:55:00 AM Koushik K. Dutta: http://clockworkmod.s3.amazonaws.com//test/foosigned.zip
  112.  
  113. 12:55:01 AM Koushik K. Dutta: try that
  114. 12:55:03 AM Koushik K. Dutta: its an empty zip.
  115. 12:55:16 AM Koushik K. Dutta: just has an updater-script in it
  116. 12:55:22 AM Koushik K. Dutta: that prints something
  117. 12:55:27 AM Paul O'Brien: AccessDeniedAccess DeniedDA6C0930A0D30839vgee8UYgAKCm6vwqe+e5mrTtmhxEBJb/7+rTht6QhxfvJUW7g5yRhUniHGfmvI+4
  118. 12:55:31 AM Paul O'Brien: On that URL
  119. 12:55:34 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/foosigned.zip
  120.  
  121. 12:55:40 AM Paul O'Brien: Ah got it
  122. 12:55:56 AM Koushik K. Dutta: i have scripts to upload to every mirror i have avaialble, scp style
  123. 12:56:10 AM Paul O'Brien: Same
  124. 12:56:11 AM Paul O'Brien:
  125. 12:56:22 AM Koushik K. Dutta: same bug?
  126. 12:56:26 AM Koushik K. Dutta: ugh
  127. 12:57:10 AM Paul O'Brien: Iet boot command "boot-recovery"
  128. Finding update package...
  129. I:Update location: SDCARD:update.zip
  130. Opening update package...
  131. I:Update file path: /sdcard/update.zip
  132. I:1 key(s) loaded from /res/keys
  133. Verifying update package...
  134. I:verify_file returned 1
  135. E:signature verification failed
  136. Installation aborted.
  137. 12:57:25 AM Paul O'Brien: Strange
  138. 12:58:05 AM Koushik K. Dutta: dude sig verification failed
  139. 12:58:07 AM Koushik K. Dutta: on cw
  140. 12:58:10 AM Koushik K. Dutta: i turned it on
  141. 12:58:11 AM Koushik K. Dutta: just to check
  142. 12:58:16 AM Koushik K. Dutta: we're DEFINITELY signing it wrong.
  143. 12:58:29 AM Paul O'Brien:
  144. 12:58:34 AM Paul O'Brien: How is that possible?
  145. 12:58:42 AM Paul O'Brien: I have testsign.jar here
  146. 12:58:45 AM Paul O'Brien: I'll run it thru that
  147. 12:58:48 AM Koushik K. Dutta: k
  148. 1:00:43 AM Paul O'Brien: Gah, same!
  149. 1:01:09 AM Paul O'Brien: So what's going on?
  150. 1:03:01 AM Koushik K. Dutta: gonna try an ota build
  151. 1:03:05 AM Koushik K. Dutta: against this sig checking cw'
  152. 1:03:07 AM Koushik K. Dutta: to sanity check
  153. 1:03:24 AM Paul O'Brien:
  154. 1:04:14 AM Koushik K. Dutta: aaaaand it works.
  155. 1:04:16 AM Koushik K. Dutta: LOL
  156. 1:04:21 AM Koushik K. Dutta: let me see.
  157. 1:04:26 AM Koushik K. Dutta: i have an idae
  158. 1:04:33 AM Koushik K. Dutta: you can flash a cm build for droid
  159. 1:04:36 AM Koushik K. Dutta: sec.
  160. 1:05:02 AM Koushik K. Dutta: nevermind, it prop checks.
  161. 1:05:08 AM Paul O'Brien: Yes
  162. 1:05:09 AM Paul O'Brien: But
  163. 1:05:12 AM Paul O'Brien: We can see if it gets that far
  164. 1:05:16 AM Paul O'Brien: It should sig check first right?
  165. 1:05:18 AM Koushik K. Dutta: fair enough
  166. 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",
  167. "http://droidk.macleodweb.net/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
  168. "http://android.antbox.org/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
  169. "http://www.droidaftermarket.com/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip",
  170. "http://koush.romraid.com/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip"
  171. 1:05:51 AM Koushik K. Dutta: one of those should work
  172. 1:06:06 AM Paul O'Brien: *shuts eyes and clicks*
  173. 1:06:07 AM Paul O'Brien: Hah
  174. 1:06:12 AM Paul O'Brien: The one I clicked doesn't work
  175. 1:06:12 AM Paul O'Brien: lol
  176. 1:06:20 AM Koushik K. Dutta: droidaftermarket should
  177. 1:06:23 AM Paul O'Brien: http://www.droidaftermarket.com/koush/motorola/sholes/cyanogen_sholes-ota-eng.koush_5.0.6.2.zip
  178. 1:06:25 AM Paul O'Brien: That's the dead one!
  179. 1:06:28 AM Koushik K. Dutta: haha
  180. 1:06:35 AM Paul O'Brien: Got a working one now
  181. 1:06:37 AM Paul O'Brien: 3 mins
  182. 1:06:40 AM Koushik K. Dutta: k
  183. 1:09:28 AM Paul O'Brien: Pushing...
  184. 1:10:16 AM Koushik K. Dutta: checkng to see what otapackage does.
  185. 1:11:05 AM Paul O'Brien: OK
  186. 1:11:07 AM Paul O'Brien: So that works!!!
  187. 1:11:10 AM Koushik K. Dutta: lol
  188. 1:11:12 AM Paul O'Brien: (well, it fails at the assser)
  189. 1:11:15 AM Paul O'Brien: *assert
  190. 1:11:17 AM Paul O'Brien: =
  191. 1:11:18 AM Paul O'Brien: WTF
  192. 1:11:20 AM Paul O'Brien:
  193. 1:11:26 AM Paul O'Brien: If we can suss this then, we can flash recovery!
  194. 1:11:31 AM Koushik K. Dutta: yup
  195. 1:11:37 AM Koushik K. Dutta: fake-flash
  196. 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']
  197.  
  198. 1:12:32 AM Koushik K. Dutta: whats -w ?
  199. 1:12:41 AM Paul O'Brien: Let me compare that to my script, 1 sec
  200. 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
  201. 1:13:14 AM Paul O'Brien: Hmmm
  202. 1:13:27 AM Koushik K. Dutta: testing..
  203. 1:14:27 AM Koushik K. Dutta: THAT WORKED.
  204. 1:14:31 AM Paul O'Brien: What?
  205. 1:14:34 AM Paul O'Brien: Using -w?
  206. 1:14:36 AM Koushik K. Dutta: yes
  207. 1:14:39 AM Koushik K. Dutta: it meansa whole file
  208. 1:14:41 AM Koushik K. Dutta: watever the fuck that is
  209. 1:14:41 AM Koushik K. Dutta: sec
  210. 1:14:45 AM Koushik K. Dutta: i'm gonna send u another recovery image
  211. 1:14:46 AM Paul O'Brien: OMG
  212. 1:14:52 AM Paul O'Brien: How could we not know this?
  213. 1:14:56 AM Paul O'Brien: Let me resign your foo update
  214. 1:16:02 AM Koushik K. Dutta: k
  215. 1:16:19 AM Paul O'Brien: My signapk.jar is b0rking when I pass a -w
  216. 1:16:30 AM Paul O'Brien:
  217. 1:16:32 AM Koushik K. Dutta: ok
  218. 1:16:37 AM Koushik K. Dutta: here comes a new signed update.zip
  219. 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
  220. 1:16:51 AM Paul O'Brien: ^^ that fails
  221. 1:16:55 AM Koushik K. Dutta: whats the error
  222. 1:17:02 AM Paul O'Brien: Usage: signapk publickey.x509[.pem] privatekey.pk8 input.jar output.jar
  223. 1:17:10 AM Koushik K. Dutta: you have an old one
  224. 1:17:13 AM Koushik K. Dutta: the one i ma using is from a build
  225. 1:17:22 AM Paul O'Brien: Could you drop it somewhere?
  226. 1:17:24 AM Koushik K. Dutta: sec sure
  227. 1:17:30 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/dashw.zip
  228.  
  229. 1:17:56 AM Koushik K. Dutta: if this works, let me prepare a rom manager release before you blog
  230. 1:18:01 AM Koushik K. Dutta: you can break the news
  231. 1:18:35 AM Paul O'Brien: Heh, I tweeted we're working on it
  232. 1:18:36 AM Paul O'Brien: lol
  233. 1:18:39 AM Koushik K. Dutta: hahaha
  234. 1:18:48 AM Paul O'Brien: Can you up that signapk.jar?
  235. 1:18:51 AM Paul O'Brien: Incidentally
  236. 1:18:55 AM Koushik K. Dutta: yip
  237. 1:18:57 AM Paul O'Brien: I have a test image for the Wildfire
  238. 1:19:03 AM Paul O'Brien: So we should be able to root that the minute it's released
  239. 1:19:03 AM Paul O'Brien:
  240. 1:19:21 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/signapk.jar
  241.  
  242. 1:19:25 AM Koushik K. Dutta: the cool part about this update.zip format..
  243. 1:19:28 AM Koushik K. Dutta: it works on any phone
  244. 1:19:30 AM Koushik K. Dutta: *any* phone
  245. 1:19:37 AM Paul O'Brien: It says it worked!
  246. 1:19:37 AM Koushik K. Dutta: the fstabs and everything are dynamically generated
  247. 1:19:53 AM Koushik K. Dutta: ok, so it got past sig check, but did it boot into cw?
  248. 1:20:01 AM Paul O'Brien: It says install from SDcard complete
  249. 1:20:03 AM Koushik K. Dutta: ok
  250. 1:20:06 AM Koushik K. Dutta: so it worked but failed
  251. 1:20:10 AM Koushik K. Dutta: lets get the recovery.log again
  252. 1:20:11 AM Paul O'Brien: heh
  253. 1:20:15 AM Paul O'Brien: Well
  254. 1:20:40 AM Paul O'Brien: Can't we just do a conventional flash recovery?
  255. 1:20:48 AM Koushik K. Dutta: no, that doesnt work
  256. 1:20:55 AM Paul O'Brien: Well
  257. 1:20:57 AM Koushik K. Dutta: obviosly
  258. 1:21:02 AM Paul O'Brien: It didn't work from our recovery
  259. 1:21:09 AM Paul O'Brien: I wonder if the 'burned in' recovery will be able to do it
  260. 1:21:20 AM Koushik K. Dutta: nah, i doubt it.
  261. 1:21:36 AM Koushik K. Dutta: its all the same shit runnig as root
  262. 1:21:48 AM Koushik K. Dutta: flash_imagae doesnt work in recovery mode
  263. 1:21:49 AM Koushik K. Dutta: erase fails.
  264. 1:22:16 AM Koushik K. Dutta: if ya really wanna try
  265. 1:22:21 AM Koushik K. Dutta: you can create an update package that doesnt use flash image
  266. 1:22:29 AM Koushik K. Dutta: rather, it uses the write_image_raw or whatever function
  267. 1:22:40 AM Koushik K. Dutta: assert(package_extract_file("boot.img", "/tmp/boot.img"),
  268. write_raw_image("/tmp/boot.img", "boot"),
  269. delete("/tmp/boot.img"));
  270. 1:22:41 AM Koushik K. Dutta: like this
  271. 1:22:48 AM Koushik K. Dutta: but i am 99.999999% sure that wont work.
  272. 1:22:58 AM Koushik K. Dutta: toss me the log when you have a change
  273. 1:22:59 AM Koushik K. Dutta: chance*
  274. 1:24:26 AM Paul O'Brien: -- Install from sdcard...
  275. I:Set boot command "boot-recovery"
  276. Finding update package...
  277. I:Update location: SDCARD:update.zip
  278. Opening update package...
  279. I:Update file path: /sdcard/update.zip
  280. I:1 key(s) loaded from /res/keys
  281. Verifying update package...
  282. I:comment is 1738 bytes; signature 1720 bytes from end
  283. I:whole-file signature verified
  284. I:verify_file returned 0
  285. Installing update...
  286. package_extract_file: can't open /sbin/adbd for write: Text file busy
  287. Replacing stock recovery with stock recovery...about to run program [/sbin/killrecovery.sh] with 1 args
  288. run_program: execv failed: No such file or directory
  289. run_program: child exited with status 1
  290. script result was [256]
  291. 1:24:48 AM Koushik K. Dutta: can you adb shell in?
  292. 1:24:57 AM Paul O'Brien: I can by pushing some files over
  293. 1:24:58 AM Koushik K. Dutta: it might let you
  294. 1:25:01 AM Koushik K. Dutta: try without pushing
  295. 1:25:03 AM Paul O'Brien: Ah OK
  296. 1:25:06 AM Paul O'Brien: Nope
  297. 1:25:13 AM Paul O'Brien: Paul-OBriens-iMac:Downloads paul$ adb shell
  298. - exec '/system/bin/sh' failed: No such file or directory (2) -
  299. 1:25:19 AM Koushik K. Dutta: ok push and check
  300. 1:26:04 AM Paul O'Brien: killrecovery.sh is in /sbin/
  301. 1:26:05 AM Paul O'Brien:
  302. 1:26:08 AM Koushik K. Dutta: whats the perms
  303. 1:26:14 AM Koushik K. Dutta: oh, there's no sh.
  304. 1:26:16 AM Paul O'Brien: # ls -l killrecovery.sh
  305. -rwxr-xr-x 1 0 0 43 Jun 9 08:18 killrecovery.sh
  306. 1:26:17 AM Koushik K. Dutta: thats why it failed haha.
  307. 1:26:19 AM Paul O'Brien: Ah
  308. 1:26:20 AM Paul O'Brien: heh
  309. 1:26:21 AM Paul O'Brien: Yeah
  310. 1:26:21 AM Paul O'Brien:
  311. 1:27:10 AM Koushik K. Dutta: ok try running killrecovery.sh from adb shell
  312. 1:27:35 AM Paul O'Brien: What's it supposed to do
  313. 1:27:37 AM Paul O'Brien: It killed the recovery
  314. 1:27:40 AM Koushik K. Dutta: ok
  315. 1:27:41 AM Koushik K. Dutta: good
  316. 1:27:43 AM Paul O'Brien: And it reopened
  317. 1:27:46 AM Koushik K. Dutta: as cw?
  318. 1:28:04 AM Paul O'Brien: No....
  319. 1:28:18 AM Paul O'Brien: But i've overwritten it remember
  320. 1:28:22 AM Paul O'Brien: With my push
  321. 1:28:36 AM Koushik K. Dutta: you overwrote recovery?
  322. 1:28:47 AM Koushik K. Dutta: are you still in stock recovery
  323. 1:28:51 AM Koushik K. Dutta: or amonra or something now
  324. 1:29:00 AM Paul O'Brien: No, I ran my desire-recovery script
  325. 1:29:04 AM Koushik K. Dutta: ok
  326. 1:29:07 AM Paul O'Brien: Which pushes the file for /sh and the AmonRA recovery
  327. 1:29:08 AM Koushik K. Dutta: makes sense
  328. 1:29:11 AM Paul O'Brien: So your script works basically
  329. 1:29:23 AM Paul O'Brien: Just i'd overwritten the recovery you flashed with the amonRA one
  330. 1:29:33 AM Paul O'Brien: So you need to include a bunch of files to let sh run
  331. 1:30:04 AM Paul O'Brien: This is what I push
  332. 1:30:04 AM Paul O'Brien: ./etc
  333. ./etc/fstab
  334. ./etc/mtab
  335. ./sbin
  336. ./sbin/adbd
  337. ./sbin/backuptool.sh
  338. ./sbin/busybox
  339. ./sbin/dump_image
  340. ./sbin/e2fsck
  341. ./sbin/fix_permissions
  342. ./sbin/flash_image
  343. ./sbin/fs
  344. ./sbin/log2sd
  345. ./sbin/mke2fs
  346. ./sbin/mkyaffs2image
  347. ./sbin/nandroid-mobile.sh
  348. ./sbin/parted
  349. ./sbin/reboot
  350. ./sbin/recovery
  351. ./sbin/sdparted
  352. ./sbin/toolbox
  353. ./sbin/tune2fs
  354. ./sbin/um
  355. ./sbin/ums_toggle
  356. ./sbin/unyaffs
  357. ./sbin/wipe
  358. ./system
  359. ./system/bin
  360. ./system/bin/linker
  361. ./system/bin/sh
  362. ./system/lib
  363. ./system/lib/libc.so
  364. ./system/lib/libcutils.so
  365. ./system/lib/liblog.so
  366. ./system/lib/libm.so
  367. ./system/lib/libstdc++.so
  368. 1:30:11 AM Paul O'Brien: To let AmonRA's recovery run
  369. 1:30:37 AM Paul O'Brien: The /system/bin and /system/lib stuff is the stuff that matters to you I guess
  370. 1:32:42 AM Paul O'Brien: http://content.modaco.net/dropzone/desirefiles.zip
  371. 1:32:46 AM Paul O'Brien: They are the files if you need them
  372. 1:44:51 AM Koushik K. Dutta: removed symlinks
  373. 1:44:57 AM Koushik K. Dutta: working on fixing up the problems writing certain files
  374. 1:45:08 AM Koushik K. Dutta: ok think i got it working
  375. 1:45:38 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/signingnoobs.zip
  376.  
  377. 1:47:22 AM Paul O'Brien: heh
  378. 1:49:48 AM Paul O'Brien: So to sanity check
  379. 1:49:54 AM Paul O'Brien: I made an update zip signed the new way
  380. 1:49:57 AM Paul O'Brien: With just this:
  381. 1:49:58 AM Paul O'Brien: show_progress 0.1 0
  382. write_raw_image PACKAGE:recovery.img RECOVERY:
  383. show_progress 0.1 10
  384. 1:50:01 AM Koushik K. Dutta: right
  385. 1:50:06 AM Paul O'Brien: It exited with 'installation aborted'
  386. 1:50:09 AM Paul O'Brien: Not very descriptive
  387. 1:50:11 AM Paul O'Brien:
  388. 1:50:15 AM Koushik K. Dutta: yeah you used update-script
  389. 1:50:22 AM Koushik K. Dutta: new recoveries cant handle update-script anymore
  390. 1:50:26 AM Koushik K. Dutta: amend is deprecated
  391. 1:50:30 AM Koushik K. Dutta: you need to use edify, updater-script
  392. 1:50:32 AM Koushik K. Dutta: and update-binary
  393. 1:50:38 AM Koushik K. Dutta: and use that blob i sent you
  394. 1:50:55 AM Paul O'Brien: Really? Didn't realise it was deprecated, that's rubbish!
  395. 1:50:56 AM Paul O'Brien:
  396. 1:51:02 AM Koushik K. Dutta: hehe
  397. 1:51:23 AM Koushik K. Dutta: amend realy sucked, when passing arguments that had multple "words" but was only one argument
  398. 1:51:30 AM Paul O'Brien: Yeah
  399. 1:51:37 AM Koushik K. Dutta: edify fixed that
  400. 1:52:06 AM Koushik K. Dutta: did the zip i sent work/
  401. 1:52:07 AM Koushik K. Dutta: http://www.droidaftermarket.com/koush//test/signingnoobs.zip
  402.  
  403. 1:52:15 AM Paul O'Brien: Testing now
  404. 1:52:17 AM Koushik K. Dutta: k
  405. 1:52:17 AM Paul O'Brien: Yup
  406. 1:52:20 AM Paul O'Brien: Now in clockword mod
  407. 1:52:21 AM Koushik K. Dutta: YESSSSSSSSSS
  408. 1:52:21 AM Paul O'Brien:
  409. 1:52:47 AM Paul O'Brien: Very cool
  410. 1:52:47 AM Paul O'Brien:
  411. 1:53:10 AM Paul O'Brien: I can haz Legend one too?
  412. 1:53:11 AM Paul O'Brien:
  413. 1:53:16 AM Koushik K. Dutta: haha that is the legend one
  414. 1:53:56 AM Koushik K. Dutta: actually go ahead and post it
  415. 1:53:58 AM Koushik K. Dutta: i need to sleep
  416. 1:54:07 AM Koushik K. Dutta: i'll work on RM suport tomorrow.
  417. 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
  418. 1:55:11 AM Paul O'Brien: Hmmmm, when I adb shell it fails
  419. 1:55:16 AM Koushik K. Dutta: whats it say
  420. 1:55:23 AM Paul O'Brien: - exec '/system/bin/sh' failed: No such file or directory (2) -
  421. 1:55:29 AM Koushik K. Dutta: sec i know how to fix it.
  422. 1:55:41 AM Paul O'Brien: Don't forget the streak recovery!
  423. 1:55:41 AM Paul O'Brien:
  424. 1:55:49 AM Koushik K. Dutta: do adb root
  425. 1:55:50 AM Paul O'Brien: Wanna hack 2.1 onto this bad boy
  426. 1:55:52 AM Koushik K. Dutta: and then retry
  427. 1:55:59 AM Paul O'Brien: 'adbd is already running as root'
  428. 1:56:01 AM Koushik K. Dutta: ok
  429. 1:56:02 AM Koushik K. Dutta: umm
  430. 1:56:11 AM Koushik K. Dutta: adb tcp
  431. 1:56:13 AM Koushik K. Dutta: adb usb
  432. 1:56:15 AM Koushik K. Dutta: adb shell
  433. 1:56:18 AM Koushik K. Dutta: that will force a restart
  434. 1:56:22 AM Koushik K. Dutta: err adb tcp 34343
  435. 1:56:25 AM Paul O'Brien: Hmmm, that worked
  436. 1:56:27 AM Koushik K. Dutta: yea
  437. 1:56:31 AM Paul O'Brien: Bizarre
  438. 1:56:32 AM Paul O'Brien:
  439. 1:56:34 AM Koushik K. Dutta: nah
  440. 1:56:35 AM Paul O'Brien: What's that all about?
  441. 1:56:38 AM Koushik K. Dutta: basically its the old adb listening
  442. 1:56:42 AM Koushik K. Dutta: which looks for shell in /system/bin/sh
  443. 1:56:48 AM Koushik K. Dutta: my recovery image has a patched adbd
  444. 1:56:51 AM Koushik K. Dutta: which looks in /sbin/sh
  445. 1:56:52 AM Paul O'Brien: Symlink it in your script?
  446. 1:56:59 AM Koushik K. Dutta: no
  447. 1:57:02 AM Koushik K. Dutta: because if system is mounted
  448. 1:57:05 AM Koushik K. Dutta: and someone runs adb shell
  449. 1:57:09 AM Koushik K. Dutta: then it uses the one in /system/bin
  450. 1:57:12 AM Koushik K. Dutta: and then you cant unmount
  451. 1:57:22 AM Koushik K. Dutta: quite problematic
  452. 1:57:26 AM Paul O'Brien: Ah I see
  453. 1:57:27 AM Koushik K. Dutta: noobs do funny things.
  454. 1:57:27 AM Paul O'Brien:
  455. 1:57:34 AM Paul O'Brien: Ok so this is cool
  456. 1:57:36 AM Koushik K. Dutta: i'll adjust killrecovery.sh
  457. 1:57:39 AM Paul O'Brien: Someone with a Desire / Legend
  458. 1:57:44 AM Koushik K. Dutta: to also restart adbd.
  459. 1:57:44 AM Paul O'Brien: Can get into recovery now without needed a PC
  460. 1:57:47 AM Koushik K. Dutta: yup
  461. 1:57:48 AM Paul O'Brien: By keeping update.zip on their SD
  462. 1:57:51 AM Koushik K. Dutta: yup
  463. 1:57:54 AM Paul O'Brien: That's cool
  464. 1:58:04 AM Paul O'Brien: Can't believe we'd missed that -w option
  465. 1:58:07 AM Paul O'Brien: Gah
  466. 1:58:08 AM Paul O'Brien:
  467. 1:58:10 AM Koushik K. Dutta: heh
  468. 1:58:13 AM Koushik K. Dutta: it wasnt around till eclair
  469. 1:58:19 AM Koushik K. Dutta: and amonra is using a cupcake recovery
  470. 1:58:20 AM Paul O'Brien: I just knew you couldn't sign for their test recovery
  471. 1:58:24 AM Paul O'Brien: Didn't realise why
  472. 1:58:25 AM Paul O'Brien:
  473. 1:58:27 AM Paul O'Brien: idd
  474. 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