Camelia, the Perl 6 bug

IRC log for #motoactv, 2012-04-24

| Channels | #motoactv index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:10 CEnnis91 oh neat i got it working with wireshark
00:10 CEnnis91 cool
00:10 CEnnis91 ds2: thanks, that helped
00:10 CEnnis91 i think i was just looking at the hex
00:10 CEnnis91 without the ascii output
00:17 CEnnis91 [mbm]: these fxzs im looking at for the razr have the xml name the same as the zip
00:18 [mbm] yep
00:21 CEnnis91 i guess ill just use that format
00:21 CEnnis91 idk seems like it doesnt really matter
00:22 [mbm] long as it works I don't give a damn
00:28 CEnnis91 hmmm wireshark is really cool
00:28 CEnnis91 i need to find a use for this
00:29 CEnnis91 oh heres a zip without an ota folder
00:29 CEnnis91 also..
00:30 CEnnis91 it has a file
00:30 [mbm] yeah, don't think rsd cares about anything not mentioned in the xml
00:30 CEnnis91 allow-mbmloader-flashing-mbm.bin
00:30 [mbm] yep, seen that too
00:30 CEnnis91 i think this was for the atrix
00:30 CEnnis91 what is it?
00:30 CEnnis91 unlocks temporarily?
00:30 [mbm] it's on the bionic as well
00:31 [mbm] does pretty much what the name implies
00:31 [mbm] mbmloader holds the keys used to verify signatures
00:31 CEnnis91 oh
00:31 CEnnis91 cant this be utilized?
00:32 CEnnis91 file header is ".R"? *shrug*
00:33 [mbm] don't think it's of any particular use
00:35 CEnnis91 [mbm]: i should be able to keep software_version blank right?
00:38 [mbm] yep
00:44 CEnnis91 [mbm]: whats emstorage? sdcard?
00:45 CEnnis91 oh your wiki answers that
00:48 CEnnis91 lol wow thats all it is http://pastebin.com/v5C7rK5M
00:49 CEnnis91 this thing is gonna be huge
00:49 CEnnis91 ill have to make the preinstall a separate one
00:49 CEnnis91 i guess they're all big
00:50 CEnnis91 oh, only ~200mb
01:05 [mbm] if you get really creative you can even put some sort of script or executable at the start of the .zip
01:05 CEnnis91 really?
01:05 [mbm] yep
01:05 CEnnis91 like place it in, or hack it in?
01:05 [mbm] zip files are read from the end
01:06 [mbm] so anything at the start is fair game
01:06 [mbm] that's the bug that rooted the original droid and milestone
01:07 [mbm] they were doing a sig check on the start of the file and you could just append zip data to the end
01:07 CEnnis91 thats right
01:07 CEnnis91 meh ill pass on that
01:07 CEnnis91 this thing is gonna be torn apart anyawy
01:07 CEnnis91 seems to be working
01:07 [mbm] ?
01:08 CEnnis91 i can guarentee this zip will be used for other "CUSTOM ROMS OMG"
01:08 CEnnis91 [mbm]: does it matter that all device properties are N/a
01:09 [mbm] not sure what you're asking
01:10 CEnnis91 [mbm]: http://dl.dropbox.com/u/5849675/rsdlite.png
01:11 CEnnis91 sweet it worked
01:11 [mbm] oh, that's normal
01:11 CEnnis91 oh okay
01:11 CEnnis91 this is basically the end of the root tools now
01:12 CEnnis91 once a custom rom is released anyawy
01:13 [mbm] did you put the META-INF stuff in there so it can also be flashed via recovery?
01:14 CEnnis91 no,not sure if i wanna do that yet
01:14 CEnnis91 im concerned about the size
01:14 [mbm] hmm?
01:14 CEnnis91 right now its ~200mb
01:15 CEnnis91 but i wanted to make sure this works right without the recovery stuff
01:16 [mbm] all you need is a few k worth pointing at the existing files
01:17 CEnnis91 hmmm total size is gonna be about 270mb
01:17 CEnnis91 i suppose thats not bad
01:18 [mbm] zipped?
01:19 CEnnis91 assuming yes
01:19 CEnnis91 yea
01:19 CEnnis91 zipped
01:49 CEnnis91 unzipped 581mb
02:01 CEnnis91 [mbm]: are file permissions GUARENTEED to stay the same when you extract and  mount an .img?
02:03 CEnnis91 eh nvm the permissions in /preinstall are very basic
02:16 CEnnis91 [mbm]: can you check the uid and gid of 2 folders in /preinstall for me
02:22 CEnnis91 nvm got it
02:27 [mbm] should add a bash script to the zip file for the linux/mac users
02:29 CEnnis91 wouldn't i need to build a tool to build it in for me?
02:30 [mbm] huh?
02:30 CEnnis91 or dont i have a limited amount of space for the script too
02:31 [mbm] just thinking you'd list the fastboot commands to manually reflash
02:31 CEnnis91 yea but i would need to extract too
02:31 CEnnis91 how much space would i have
02:33 [mbm] suggest working under the assumption that if someone finds the script they've already extracted the zip file somewhere
02:33 CEnnis91 so....you
02:33 CEnnis91 =P
02:34 [mbm] you're saying I'm the only non-windows user?
02:34 CEnnis91 they have to find the script you said
02:35 [mbm] well, hand people a file that ends in .zip and they'll probably look inside :P
02:37 CEnnis91 but zip viewers cant see that script right?
02:37 [mbm] why not?
02:38 CEnnis91 idk, not quite sure how it works
02:38 CEnnis91 my idea of this is kinda like sbf_flash
02:38 CEnnis91 but i guess not?
02:38 [mbm] you're saying that if I put something called run_me.sh inside the zip file that nobody would find it?
02:38 CEnnis91 oh
02:38 CEnnis91 wow
02:38 CEnnis91 i was way over thinking that..
02:39 CEnnis91 [mbm]: anything different with mac's fastboot
02:39 CEnnis91 looks like its called fastboot-mac
02:40 [mbm] takes the same arguments as the linux one
02:40 CEnnis91 ./fastboot-mac -i 0xfce flash boot boot.img
02:40 CEnnis91 not sure what that is, might just be a bypass for udev thou
02:40 CEnnis91 The only thing to know is that you will need to use the "i" argument to specify the vendor id of the phone
02:41 [mbm] would think that you only need to do that for the really obscure vendors
02:44 CEnnis91 should i just assume that they were smart enough to put it in PATH somewhere?
02:44 CEnnis91 or should i check standard directories
02:45 [mbm] nothing to stop you from putting a copy of fastboot in the zip
02:45 CEnnis91 i suppose
02:45 CEnnis91 this thing is starting to feel ridiculous lol
02:46 CEnnis91 [mbm]: ill need both bins right? mac and linux?
02:47 CEnnis91 im guessing theyre not the same
02:48 CEnnis91 i wonder how everyone is gonna feel about this
02:49 [mbm] yeah you'd need both a linux and mac version
02:50 [mbm] who are you worried about?
02:50 CEnnis91 lol idk
02:50 CEnnis91 (clearly this was your intention) but this makes flashing in recovery a pita because you have to send a huge file to your device
02:54 [mbm] well, the smallest version only reflashes boot.img and system.img
02:54 CEnnis91 well preinstall as well now
02:54 CEnnis91 but yea that can be avoided likely
03:06 ds2 for added fun, name it 'virus.exe'
03:09 [mbm] heh
03:09 christefano joined #motoactv
03:10 ds2 guess one got to be plausible... call it 'trojan.exe'
03:12 ds2 [mbm]: btw, what do you do with your actv?
03:13 [mbm] not much
03:13 ds2 oh
03:14 ds2 I wonder how many people use the actv as an android phone accessory
03:15 CEnnis91 ds2: haha
03:16 CEnnis91 this thing has yet to leave my room
03:16 ds2 CEnnis91: what do you plan to do with it?
03:16 CEnnis91 (minus the first day when i showed my gf and she just stared at it blankly)
03:16 CEnnis91 ds2: might use it at the gym
03:16 CEnnis91 but not for cardio
03:17 CEnnis91 although small, it might be decent enoughfor jefit (if youve ever seen it)
03:17 ds2 CEnnis91: what are you waiting for before taking it to the gym?
03:18 ds2 ah..jefit.. basically the same intent as the actv but not tied to motorola
03:18 CEnnis91 for it to actually be bootable/usable when i goto the gym? lol
03:18 ds2 oh haha
03:19 ds2 still trying to understand wtf with the pebbles watch
03:19 CEnnis91 i typically leave this in an unstable state, for everyday use lol
03:19 CEnnis91 pebbles watch looks nice i have to say
03:19 CEnnis91 im guessing its all bt thou
03:19 ds2 but do people really want to sync it with their phone?
03:20 CEnnis91 to see messages? sure
03:21 CEnnis91 itll vibrate, you take a look and you see the message
03:21 CEnnis91 your phone never moved
03:21 ds2 then why not just wait for the Sony watch to drop in price?
03:21 CEnnis91 havent looks at that tbh
03:21 ds2 hmmm
03:23 CEnnis91 looks good
03:23 CEnnis91 actually i just thought of something when i watfched the video
03:23 CEnnis91 [mbm]: if this is bt, what happens when you're out of range? lol
03:32 CEnnis91 ugh i should probably deal with this issue before i continue: /dev/sda7             111G  104G  1.2G  99% /
03:33 ds2 eh?
03:33 CEnnis91 ./dev/sda7             111G  104G  1.2G  99% /
03:33 CEnnis91 df -h ^
03:35 Quietlyawesome94 joined #motoactv
03:36 CEnnis91 there we go down to 89%
03:48 ds2 111G?!
03:48 ds2 how did you get such a large partition
03:50 [mbm] guessing that's his pc
03:53 ds2 oh
03:53 CEnnis91 yea
03:53 CEnnis91 i am dual booted
03:54 CEnnis91 made this while i was still learning linux too
03:56 CEnnis91 down to 81% thats sufficient
03:56 CEnnis91 im wiping when the new ubuntu comes out anyway
03:57 CEnnis91 i need to allocate this space better
04:05 CEnnis91 [mbm]: how do you determine what OS you're using?
04:05 CEnnis91 uname?
04:11 [mbm] yep, without any arguments you get "Linux" and "Darwin"
04:13 CEnnis91 thought so, i analyzed your sbf_flash pretty well =P
04:14 CEnnis91 [mbm]: should i sleep a few seconds between each command?
04:14 CEnnis91 or no need because it waits anyway
04:22 CEnnis91 [mbm]: do you have a decent copy of fastboot for mac?
04:22 [mbm] no need
04:22 CEnnis91 this one i have is 3x the size of the linux version
04:23 [mbm] hmm not sure I do, I usually don't use macs
04:23 CEnnis91 oh here we go think i found a better one
04:23 CEnnis91 also, probably gonna do this:
04:23 CEnnis91 -rw-rw-r-- 1 ennis ennis      0 2012-04-24 00:21 DO_NOT_RENAME_FILES
04:23 CEnnis91 -rwxrwxr-x 1 ennis ennis 156592 2009-03-09 14:04 fastboot-Darwin
04:23 CEnnis91 -rwxrwxr-x 1 ennis ennis  55776 2012-01-03 15:33 fastboot-Linux
04:23 CEnnis91 ;)
04:28 [mbm] heh
04:29 CEnnis91 [mbm]: so if i have the fastboot files in a dir "bin"
04:29 CEnnis91 and the script is in the dir above it
04:30 CEnnis91 fastboot=$(pwd)/fastboot-$(uname) ?
04:30 CEnnis91 er
04:30 CEnnis91 fastboot=$(pwd)/bin/fastboot-$(uname) ?
04:31 [mbm] you can skip running the pwd program and just use the $PWD variable
04:31 CEnnis91 difference = faster?
04:32 CEnnis91 or one less command
04:32 CEnnis91 "command"
04:33 CEnnis91 now it has to be called .$fastboot instead of $fastboot
04:34 CEnnis91 i guess thats nbd
04:34 [mbm] huh?
04:35 CEnnis91 oh dont mind me
04:35 CEnnis91 i did $pwd instead of $PWD
04:35 CEnnis91 -_-
04:37 CEnnis91 [mbm]: i guess it would be smarter to put fastboot -w at the end rather then the beginning?
04:38 CEnnis91 although the stock fxzs put it first
04:48 CEnnis91 this is gonna be a pita to host
04:52 CEnnis91 [mbm]: 356mb
04:52 CEnnis91 ut oh
04:53 CEnnis91 signing issh
04:53 CEnnis91 issue
04:55 [mbm] huh?
04:56 CEnnis91 i think that was my fault
04:56 CEnnis91 tried to skip a step in my script
04:56 CEnnis91 but yea this is quite large
04:57 CEnnis91 pretty sure this is the first dual fxz/update.zip in android
05:04 christefano joined #motoactv
05:04 CEnnis91 hrm
05:05 CEnnis91 md5sums dont match in preinstall
05:05 CEnnis91 according to the otas
05:08 CEnnis91 ugh
05:10 CEnnis91 [mbm]: what does this mean
05:11 CEnnis91 ugh im dumb
05:11 CEnnis91 sha1 not md5
05:22 CEnnis91 [mbm]: when you unzip the zip, is there any way to have the script and fastboot bins retain +x?
05:24 [mbm] hmm .. seems to work fine for me if I create the zip under linux
05:25 CEnnis91 [mbm]: thats how i made it
05:26 [mbm] did you have the permissions right to begin with?
05:26 CEnnis91 yep
05:26 CEnnis91 and i just used zip -r
05:26 [mbm] and unzip is getting the wrong permissions?
05:27 CEnnis91 trying again
05:28 CEnnis91 yea everything lost it's x
05:29 CEnnis91 wow
05:29 CEnnis91 flashing just killed 20%
05:29 CEnnis91 flashing twice
05:29 CEnnis91 once in recovery / once with the script
05:30 CEnnis91 [mbm]: how do i view the permissions inside the zip?
05:31 [mbm] wondering that myself
05:31 CEnnis91 unzip -l?
05:32 CEnnis91 nope
05:32 CEnnis91 zipinfo -l <file>
05:32 CEnnis91 one sec
05:32 CEnnis91 -rw----     2.0 fat      266 bl      152 defN 12-Apr-24 00:57 flash-all.sh
05:33 CEnnis91 so it didnt get written
05:34 [mbm] unzip -Z ...
05:34 CEnnis91 heh, every file is -rw----
05:34 [mbm] -rwxr-xr-x  3.0 unx        0 bx stor 12-Apr-23 22:23 foo
05:34 [mbm] -rwxr-xr-x  3.0 unx        0 bx stor 12-Apr-23 22:23 bar
05:34 [mbm] -rw-r--r--  3.0 unx        0 bx stor 12-Apr-23 22:25 test
05:34 CEnnis91 -Z isnt documented?
05:34 CEnnis91 or manpage?
05:34 [mbm] unzip -hh
05:35 [mbm] why are yours listed as fat instead of unix?
05:35 CEnnis91 not sure
05:35 CEnnis91 that was in zipinfo
05:35 [mbm] you created the zip under linux right?
05:36 CEnnis91 yea...weird...
05:36 CEnnis91 [mbm]: its the signing
05:37 CEnnis91 [mbm]: my unsigned zip is correct with unx
05:37 [mbm] signing?
05:37 CEnnis91 i needed to sign it to be an update.zip
05:38 [mbm] thought cwm didn't check sigs
05:38 CEnnis91 testkeys
05:38 CEnnis91 i think it still needs to have some type of signature
05:39 CEnnis91 ill push the unsigned now and see
05:45 CEnnis91 god this takes forever to push
05:46 CEnnis91 1525 KB/s (361251789 bytes in 231.261s)
05:47 CEnnis91 wow...i guess it doesnt need signing
05:49 [mbm] so now you have a file that works as an fxz, update.zip or can be extrated and reflashed via script?
05:49 CEnnis91 only thing i need to test again is fxz
05:50 CEnnis91 this is for the 16gb btw right now
05:50 [mbm] you have a 16g to test it on?
05:50 CEnnis91 no
05:50 CEnnis91 like i said before 16gb works on the 8gb
05:51 [mbm] exept the cdt and ebr differ
05:51 CEnnis91 yep, but im not touching them
05:51 [mbm] ah
05:53 CEnnis91 this is actually kind of cool
05:53 CEnnis91 i have to admit
05:54 CEnnis91 [mbm]: do you think i can push the compression higher?
05:55 christefano_ joined #motoactv
05:55 christefano_ joined #motoactv
05:57 [mbm] probably
05:58 [mbm] did you use -9 when you created the zip?
06:00 CEnnis91 no, just w.e standard is
06:00 CEnnis91 isnt it like 3 or 5
06:01 CEnnis91 seeing whats gonna happen now
06:01 CEnnis91 the .xml within is nothing like the name of the zip this time either
06:01 CEnnis91 [mbm]: does -9 take longer to uncompress?
06:02 CEnnis91 i know it takes longer to compress but not sure the other way
06:02 [mbm] not really
06:03 CEnnis91 this still takes quite a bit to uncompressed
06:03 CEnnis91 ill just have to make a note to REALLY make sure battery is sufficient
06:04 CEnnis91 nice, it found the .xml no problem
06:04 [mbm] might want to look at the order you flash
06:04 [mbm] if there's non critical stuff do it at the end
06:04 CEnnis91 i did the order in the partition layout
06:04 CEnnis91 boot / system / preinstall
06:05 CEnnis91 so yea
06:05 CEnnis91 its good
06:05 CEnnis91 wipe / boot / system / preinstall
06:05 CEnnis91 but the script is boot / system / preinstall / wipe
06:06 CEnnis91 not really sure where the best place to wipe is tbh
06:07 [mbm] hmm dunno
06:08 CEnnis91 every other fxz wiped first, so i followed suit, and the aosp script for the galaxy nexus wiped last, so i followed that as well lol
06:08 [mbm] heh
06:08 CEnnis91 but yes, the fxz works
06:08 CEnnis91 so i have a dual (tri?) purpose zip
06:09 CEnnis91 ouch
06:09 CEnnis91 this really kills battery
06:09 CEnnis91 next flash i need to see
06:09 CEnnis91 im at 60 right now
06:10 [mbm] well, you can still add crap to the start of the zip for even more polyglotism
06:11 * CEnnis91 adds a root tool inside the zip
06:11 CEnnis91 oh shit we were trying to avoid that
06:14 CEnnis91 or maybe i should add some source within this zip
06:14 CEnnis91 and hide it
06:22 [mbm] nobody would ever find it unless you explicitly told them
06:23 CEnnis91 hehe
06:26 [mbm] you'd also need to be careful that the idiot you told didn't go out and blab it to everyone
08:48 JohnDoe___ joined #motoactv
11:25 Snoothy joined #motoactv
14:05 dproldan joined #motoactv
14:25 Lord_Data joined #motoactv
14:43 CEnnis91|Mobile joined #motoactv
14:44 CEnnis91|Mobile [mbm]: fxzs should be able to work on non-moto devices right?
14:44 CEnnis91|Mobile Or do their fastboots have something that works with rsdlite
15:31 [mbm] might work
15:32 [mbm] moto ha their on fastboot extension where large partitions like system and userdata get sent as chunks
15:32 [mbm] damn keyboard .
15:32 [mbm] moto has their own fastboot extension where large partitions like system and userdata get sent as chunks
15:41 CEnnis91|Mobile I think I might try it with my nexus should be an interesting alternative to recovery
17:09 christefano joined #motoactv
17:09 christefano joined #motoactv
19:11 dproldan joined #motoactv
20:05 Quietlyawesome94 joined #motoactv
21:03 [mbm] ...

| Channels | #motoactv index | Today | | Search | Google Search | Plain-Text | summary