Flash notifications: rewrite sysfs writer

the legacy torch apk is no longer necessary

Change-Id: I7c421d7009b27197f84ddf5766a13567d51cf2f3