Camelia, the Perl 6 bug

IRC log for #motoactv, 2012-05-16

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

All times shown according to UTC.

Time Nick Message
00:05 Quietlyawesome94 joined #motoactv
00:17 christefano joined #motoactv
02:31 christefano joined #motoactv
04:07 christefano joined #motoactv
05:05 [mbm] aww, dropped my motoactv and now there's small chunks missing from two corners of the glass
06:41 CEnnis91 [mbm]: bummer
06:42 [mbm] yep
06:42 [mbm] kinda surprised; less than 4ft onto a wooden deck
06:43 ds2 anyone know of a bluetooth PAN access point ?
06:44 [mbm] phone does a bluetooth PAN mode, same with my computer
06:44 ds2 i mean a small box with battery that can speak PAN and WiFi (and translate btwn them)
06:45 [mbm] sorta failing to see how that's any better than just using wifi directly
06:45 CEnnis91 ^
06:45 ds2 sharing connections in a mobile environment
06:46 ds2 where some devices are WiFi only and others are BT only
06:47 [mbm] well, running both wifi and bt in a pocket device that's busy routing between the two isn't going to be kind to the battery of the device
06:47 ds2 yes
06:47 christefano joined #motoactv
06:48 CEnnis91 [mbm]: if i manually edit an .img should i try to optimize it again?
06:48 CEnnis91 no right?
06:49 [mbm] won't hurt; probably won't save much though
06:50 CEnnis91 yea, the image compressed 57%
06:50 CEnnis91 which is what i was getting anyway
06:50 CEnnis91 had to make the rooted variants of the fxzs
06:52 CEnnis91 now to see if i know my android permissions...
06:55 CEnnis91 [mbm]: question: whats the difference between 04755 and 06755
06:55 [mbm] 02000
06:55 CEnnis91 heh
06:55 [mbm] sticky bits
06:56 ds2 sguid
06:56 ds2 sgid I mean
06:56 CEnnis91 if you're going to be a dick its -2000 =P
06:56 ds2 sticky is 01000
06:57 [mbm] the last 3 octal digits are the rwxrwxrwx for owner, group, world, bits before are sticky for owner, group, world
06:57 CEnnis91 so permissions can be up to 6 "characters" then?
06:57 CEnnis91 chmod ###### foo?
06:58 [mbm] only 4 and I think they just put the 0 prefix to specify octal
06:59 CEnnis91 ah
06:59 [mbm] 0sxxx where the s is 0-7, which is three bits, one for each owner, group, world
07:00 [mbm] eg, you can do 01755 and that sets the world sticky bit which means that you can't delete a file unless you're the owner
07:00 [mbm] useful for things like /tmp where you want it to be writable with some restrictions
07:01 CEnnis91 ah, i see
07:02 CEnnis91 [mbm]: you dont remember seeing any /system/vendor dir in the motoactv right?
07:03 [mbm] nope
07:04 CEnnis91 okay, good...lazy bastards are still symlinking it i just noticed
07:04 [mbm] huh?
07:04 [mbm] who what?
07:04 CEnnis91 lrwxrwxrwx    1 0        0               14 May  2 19:55 vendor -> /system/vendor
07:05 [mbm] oh
07:06 [mbm] if I remember right the library search path is set up so it tries /vendor first
07:06 CEnnis91 probably
07:06 CEnnis91 darn, messed up 2 things
07:06 CEnnis91 (had to chown su and busybox differently)
07:08 [mbm] busybox doesn't really need permissions past 755
07:08 [mbm] and su only needs 4755
07:08 ds2 ~
07:09 [mbm] `
07:09 CEnnis91 [mbm]: the files in *bin are root:2000 for w.e reason
07:10 CEnnis91 i got the permissions right
07:11 CEnnis91 android is basically 644 everything, 755 *bin, and at s to su/ping/net-cfg/and maybe one more
07:11 CEnnis91 s/at/add/
07:11 CEnnis91 run-as
07:11 CEnnis91 would be that one more
07:12 [mbm] 2000 = "shell"
07:12 CEnnis91 is that standard or can you check that somewhere
07:13 [mbm] android standard
07:13 [mbm] system/core/include/private/​android_filesystem_config.h if you have an aosp tree somewhere
07:14 CEnnis91 netcfg is 3003 and ping is 3004
07:14 CEnnis91 oh that helps
07:14 [mbm] 3003 = "inet"
07:14 [mbm] and 3004 is "net raw"
07:15 CEnnis91 hmmm
07:15 CEnnis91 moto uids are hardcoded in?
07:16 CEnnis91 [mbm]: im still a little blah when it comes to groups/ownership, but would something not work if i kept everything as root:root?
07:17 CEnnis91 id think it'd be fine (probably less secure)
07:17 ds2 it should work but insecure... might have to make it 777
07:17 [mbm] on a normal linux system uids are mapped via /etc/passwd and /etc/group; android has everything hardcoded until you get to 10000 which is the first app
07:18 [mbm] well, they're playing games with the gid and setgid bits to give permissions without giving out root access
07:18 CEnnis91 yea that i noticed
07:18 CEnnis91 thats why i was confused when you knew what 2000 was
07:19 [mbm] the android version of ls will show the correct user/group but the busybox version will just show numbers
07:20 CEnnis91 oh,
07:20 CEnnis91 neat
07:21 [mbm] unfortunately the android version tends to be a bit braindead and if you tell it "ls -la" it will yell at you that there's no file named "-la" but then it'll happily take "ls -l -a" :P
07:21 CEnnis91 oh
07:22 CEnnis91 why did i never try thta
09:49 christefano joined #motoactv
12:13 AdnroidFreak joined #motoactv
12:13 AdnroidFreak Herro!
16:40 CEnnis91 wtf...
16:40 CEnnis91 [mbm]: does mounting an img change it's md5sum?
16:46 [mbm] yep
16:46 CEnnis91 er now you answer, why is that?
16:46 [mbm] unless you explicitly mount it readonly
16:46 CEnnis91 hmmm
16:47 [mbm] there's an internal counter of how many times the filesystem has been mounted, used for determining when fsck needs to be run
16:48 CEnnis91 hmmm guess ill need to keep that in mind
16:48 CEnnis91 good thing i double checked the md5s before i packaged
16:53 [mbm] the md5s aren't meaningful in that there's no right/wrong md5
16:58 CEnnis91 yea that i know
17:04 CEnnis91 ugh this command took me too long to figure out: find ./ -type d -maxdepth 1 -regex "./.*[-].*" -exec sh -c "cd {}; zip -r9 {}.zip *" \;
17:11 [mbm] some phones are annoying in that system is signed but the first bootup they copy preinstall crap to system making it impossible to grab a flashable dump from the phone due to the sig mismatch
17:12 [mbm] uh, wtf is that find for?
17:13 CEnnis91 i zipped up all the fxzs i had
17:13 CEnnis91 (4)
17:15 CEnnis91 [mbm]: oh wow, is that done on purpose? or just a convenient side effect? (copying to system)
17:16 [mbm] side effect, annoying one at that
18:57 dproldan joined #motoactv
19:23 AndroiFreak joined #motoactv
20:39 christefano joined #motoactv
22:05 Quietlyawesome94 joined #motoactv
22:25 Larry94 joined #motoactv
22:28 christefano joined #motoactv
23:00 christefano joined #motoactv
23:25 Quietlyawesome94 joined #motoactv

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