On Tue, Jan 27, 2009 at 16:48, Jim Ancona <[email protected]> wrote: > > Rather than System.exec(), how about using something like (warning: > untested code!): > > FileWriter fw = new > FileWriter("/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/force_usb_limit_dangerous"); > try { > fw.write("500"); > fw.flush(); > } finally { > fw.close(); > }
Yes I also planned to test this method. But since I was not sure it could work and since from adb shell it was ok I started with the shell way.... Anyway this should not change the permission problem so I have yet to try to modify init.rc ... What could be the best method to expose this kind of system properties ? For usb charge control, are there existing Android API where it could fit ? (And then there is also for example the management of usb host mode that should be exposed....) _______________________________________________ android-freerunner mailing list [email protected] http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org
