Search code examples
androidfirebaseadbfirebase-analytics

Android: Enable Firebase DebugView without ADB


We are using Firebase DebugView and currently we enable it via ADB, as described in the documentation:

adb shell setprop debug.firebase.analytics.app package_name

This works fine but it is a little bit tedious for QA since many of them do not have ADB installed.

First idea was to set the property via System.setProperty() but I realised quickly that this will not work, its scope is limited to my app.

Do you have any idea how to enable it programatically or part of the delivery process? I mean, is there a way to run some extra ADB commands when delivering an APP via Firebase App Tester?


Solution

  • Apps can't run adb commands or set system properties. That would be a security problem.

    Analytics debug view is only meant for use during development and testing when you control the device being used to test. It's not meant to be used with apps that get published to stores or distribution services.