Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] Use wrapper function for all sysfs writes. JB#41748
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: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
3 changed files
with
70 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters