In my case, I mark auto brightness option in one of my apk..... This would send some byte stream to "/sys/class/lightsensor/switch_cmd/ lightsensor_file_cmd"..... And auto brightness will be activated once this byte stream is delivered....
However, the auto brightness capability should be ON even if I reboot..... BUt since data in the file is getting deleted, auto brightness feature is failing...... How can i overcome this???? Xie xie. Diego Torres Milano wrote: > /sys is a virtual filesystem, it doesn't persist reboots. > > On Jun 26, 12:18 pm, Shang Hao <[email protected]> wrote: > > Hi, > > > > I am storing a byte stream @ > > > > "/sys/class/lightsensor/switch_cmd/lightsensor_file_cmd" > > > > but on reboot, the value over here is getting lost..... How do i > > recover???? > > > > Xie xie. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

