androidloggingapkrelease-builds

how to enable logger in specific screen of release-build in android?


how to enable logger in specific screen of release-build in android?

I Realeased an APK in playstore which is obfuscated apk and Logger are disabled , When customers find some issues in that apk in specific screen. So i want to Enable Logger in that specific screen of release-build. Is it possible, If Yes how can i acheive..??

Updated Question:

Apk release build - Obfuscated by DexGuard

Thanks


Solution

  • You could use Log.i. Information logs are always showed to users. See more.
    If you used ProGuard to remove all logs from your application you should remove clearing of public static int i(...); from rules.

    If it wasn't enough flexibility try Timber And setup ReleaseTree for your release versions