logpersist: Remove the ro.debuggable check
This script really implements three functionalities using ${progname} to
decide what to do. Only one of them - logpersist.cat - requires the
build to be debuggable due to a dependency on the "su" binary.
Remove the check altogether, since arguably it's not really useful and
prevents us from using the script on user builds.
With this change "logpersist.cat" will now fail complaining about:
"/system/bin/logpersist.cat[166]: su: inaccessible or not found",
instead logging a "logpersist.cat - Permission denied" error message.
Bug: 390135414
Test: Verify that persistent logcat can be started on user build.
Change-Id: I7665d42de1ff8a4ad1ef0e32721ef892e9798c0b
1 file changed