• spiiroin's avatar
    [android] Use wrapper function for all sysfs writes. JB#41748 · 7896a728
    spiiroin authored
    Writing empty string gets ignored. This causes problems for example
    when switching from mass-storage mode to charging only as the
    lua/file attribute does not get cleared.
    
    Use a wrapper function to append a linefeed to strings written to sysfs.
    This avoids zero length writes and makes behavior similar to how
    redirected echo from command line works.
    
    Also tweak unexpected-sysfs-content-change tracker so that it ignores
    changes in whitespace.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    7896a728
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...