**** BEGIN LOGGING AT Fri Jul 16 02:59:56 2010 Jul 16 03:20:14 hello, could someone please help me with setting up environment for creating android applications? Jul 16 12:59:43 hi Jul 16 13:00:09 I figured out I can do an Android application for AGPS help (i.e. fix in less than a minute) Jul 16 13:00:38 and if someone was interested in making it more helpful from the system side it could be 5 seconds Jul 16 13:01:04 I mean: if we had scripts to enable/disable GPS Jul 16 13:12:46 [15:00] I figured out I can do an Android application for AGPS help (i.e. fix in less than a minute) Jul 16 13:12:46 [15:00] and if someone was interested in making it more helpful from the system side it could be 5 seconds Jul 16 13:12:46 [15:01] I mean: if we had scripts to enable/disable GPS Jul 16 13:13:12 sounds neat, so you need a script for enabling/disabling gps? Jul 16 13:13:22 Serdar: there are a couple of tricks Jul 16 13:13:34 Serdar: by writing to /dev/s3....serial1 Jul 16 13:13:46 you can load AGPS data you read before Jul 16 13:14:05 that loads satellites info to GPS, so it can get a fix easier Jul 16 13:14:24 this can be done as an external application as the device is read-write for everyone Jul 16 13:14:53 I have stuff to do it already coded in C at http://github.com/gabrys/gta02-agps Jul 16 13:15:01 it can be compiled statically Jul 16 13:15:07 and called from some UI Jul 16 13:15:18 that would acquire GPS, then write that stuff Jul 16 13:15:28 and then you can run any app that needs GPS Jul 16 13:15:50 then after using it you can from my app dump the AGPS stuff and the app will free GPS Jul 16 13:16:12 but if we have a script to poweron/off GPS we can put the GPS into sleep mode, which will drain some small current Jul 16 13:16:23 but make fix as fast as 7-8 seconds after waking up Jul 16 13:16:42 instead of full 5 minutes without any help or about 1 minute with AGPS help Jul 16 13:26:21 hm Jul 16 13:27:52 how hard can that be to add a script? Jul 16 13:28:10 in fact, if we had scripts to enable/disable GPS (just like QtMoko has) you could have all this things (both faster and damn-fast TTFF) without any android APK Jul 16 13:30:24 Serdar: what do you mean? to add a script to android that disables/enables GPS? Jul 16 13:30:32 yes Jul 16 13:30:37 I believe it does so by writing 0/1 to /sys/something Jul 16 13:30:45 and instead it should just System.exec() something Jul 16 13:30:46 it must be exist, because it is used Jul 16 13:31:22 (that can for now just echo 0/1 > /sys) Jul 16 13:32:00 there is something like that Jul 16 13:32:08 let's find it then :-) Jul 16 13:32:10 but I can't remember atm Jul 16 13:32:16 I'll do find Jul 16 13:33:49 cd /sys/bus/platform/devices/neo1973-pm-gps.0/ Jul 16 13:33:51 Serdar http://gitorious.org/android-on-freerunner/freerunner_platform_hardware_hw/blobs/master/gps/gps_freerunner.c Jul 16 13:34:03 power_on Jul 16 13:34:06 cat Jul 16 13:34:08 I think it's writing directly to file, not calling any script Jul 16 13:35:25 and this should call a command to enable/disable, that would enable us to do AGPS magic stuff :-) Jul 16 13:35:34 I guess it's similar in cupcake Jul 16 13:40:28 this is cupcake Jul 16 13:40:42 that file I told you Jul 16 13:41:13 I know where is the sys file to control the enabling and disabling GPS hardware Jul 16 13:41:15 I guess it's the same for eclair or froyo Jul 16 13:41:25 it depends on kernel version Jul 16 13:41:28 only Jul 16 13:42:02 the question is how Android writes "1" to that file Jul 16 13:42:12 I found that eclair just opens that file and writes "1" to it Jul 16 13:42:27 while it would be more flexible if it called a script to do it Jul 16 13:42:34 because we could add extra init stuff to it Jul 16 13:43:19 Serdar: http://gitorious.org/android-on-freerunner/freerunner_platform_hardware_hw/blobs/master/gps/gps_freerunner.c#line1332 Jul 16 13:45:07 hm Jul 16 20:04:23 is anyone having cookie issues with FF 3.6.6 mac? Jul 16 20:04:39 oops, wrong room :) **** ENDING LOGGING AT Sat Jul 17 02:59:56 2010