Scanno, on 21 May 2012 - 07:06 PM, said:
The thing i want to do is to see if a certain file is on the sdcard so i can set a setting. Say the file /mnt/sdcard/vegacream/boot_usbhost_enable is there, then an echo 1 > /sys/usbbus/usb_host is done, so the usb port is set to host. This can help people who have touchscreen problems and want to recalibrate the screen.
Also i am thinking of something like: /mnt/sdcard/vegacream/set160dpi for people who want to have 160dpi instead of the 120dpi VegaCream standard has.... This can be done with a one-time script (editing the build.prop file).
I don't think that is going to work. What you can do is what we did on HoneyIce. Alter settings.apk and put the extra option in it and let it reboot after that. That's way easier and maybe even better for the users. Because where can they select that they want to get 160dpi (I run it btw and I like it a lot more then 120)?
Kind Regards,
Areo
Edit: About wifi, it seems to come back alive in about 5-6 seconds after sleep mode. This is only with a changed wpa_supplicant.conf.
Edit2: Wifi now stays alive at sleep but is killed on wake up, then after 6-10 sec it comes back... Will pull a logcat
Edit3: Ran out of time, here is the configured wpa_supplicant.conf, nothing special. It seem to help with short sleeps. You can also try ctrl_interface=eth0 I find it working better. The problem is that it is killed when it wakes up, but sometimes also when sleeping. Then it gives the well known out of reach statement. Well we are 1 tiny step closer to fixing it with a configured wpa_supplicant.conf
Edit4: As the .conf is now ok in my opinion. I think the problem lies with the wpa_supplicant (/system/bin). Maybe we need to take a look at the source. Or is this all ok? It could also be ar6000.ko as I only thought about wpa_supplicant because the .conf wasn't configured..
Edited by Areo, 21 May 2012 - 07:37 PM.