+11
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Checks if logcat is enabled for a tag. If it is, logs directly to logcat from the stub class. Only applicable if REQUIRE_PROTOLOGTOOL is set to false which is only set in sysui studio based builds. Protolog tool does not run on the gradle based sysui studio build. Without the logcat fallback, sysui studio builds do not have any logging from protolog. This change does introduce a dependency on android.util.Log in ProtoLog class. This class is part of common sources for ProtoLog. And is imported in the protolog tool itself. Had to create a new filtered target of protolog common sources that excludes the ProtoLog class. Bug: 283499455 Test: m -j Test: build sysui from studio, enable ProtoLog to logcat for a tag, observe logs in logcat Change-Id: I9a085deaf39be1fb503c0df928a307e55c48ea4b