[BetterBatteryStats] DiamondJohn:
XDA Version Crash

I have two problems. The first problem is obviously a battery drain issue, and hence I am on this thread:crying: The second issue, I'll cover in this post.

I downloaded the latest version, the XDA version from the OP, and did a full run for a day from fully charged to near flat. That all went good (ignoring the fact there was a drain), so I went to get a log from BBS, and that's when I got an exception.:( I tried a couple more times, and the same happened again, so I was unable to get the results. I took a logcat, and the gist of the error appears to be:

--------- beginning of crash
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime: FATAL EXCEPTION: main
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime: Process: com.asksven.betterbatterystats_xdaedition, PID: 20624
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.asksven.betterbatterystats_xdaedition/files/Download/BetterBatteryStats-2018-09-09_170449789.txt exposed beyond app through ClipData.Item.getUri()
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.net.Uri.checkFileUriExposed(Uri.java:2357)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.content.ClipData.prepareToLeaveProcess(ClipData.java:942)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.content.Intent.prepareToLeaveProcess(Intent.java:9865)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.content.Intent.prepareToLeaveProcess(Intent.java:9871)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.content.Intent.prepareToLeaveProcess(Intent.java:9850)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1610)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.app.Activity.startActivityForResult(Activity.java:4487)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:50)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:79)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.app.Activity.startActivityForResult(Activity.java:4445)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:859)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.app.Activity.startActivity(Activity.java:4806)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.app.Activity.startActivity(Activity.java:4774)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at com.asksven.betterbatterystats.StatsActivity$6.onClick(StatsActivity.java:1235)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:106)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:164)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6578)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460)
09-09 17:04:50.213 10212 20624 20624 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
09-09 17:04:50.228 1000 619 2854 I am_crash: [20624,0,com.asksven.betterbatterystats_xdaedition,952680006,android.os.FileUriExposedException,file:///storage/emulated/0/Android/data/com.asksven.betterbatterystats_xdaedition/files/Download/BetterBatteryStats-2018-09-09_170449789.txt exposed beyond app through ClipData.Item.getUri(),StrictMode.java,1960]
09-09 17:04:50.231 1000 619 2854 W ActivityManager: Force finishing activity com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.StatsActivity
09-09 17:04:50.231 1000 619 2854 I am_finish_activity: [0,60318537,734,com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.StatsActivity,force-crash]
09-09 17:04:50.231 1000 619 2854 I am_focused_stack: [0,0,1,finishActivity adjustFocus]
09-09 17:04:50.231 1000 619 2854 I wm_task_moved: [730,1,0]
09-09 17:04:50.232 1000 619 2854 I am_pause_activity: [0,60318537,com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.StatsActivity]
09-09 17:04:50.235 1000 619 2854 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:966 com.android.server.am.AppErrors.crashApplicationInner:393 com.android.server.am.AppErrors.crashApplication:321 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:14505 com.android.server.am.ActivityManagerService.handleApplicationCrash:14487
09-09 17:04:50.236 1000 619 716 I sysui_count: [window_time_0,15]
09-09 17:04:50.236 1000 619 716 I sysui_multi_action: [757,803,799,window_time_0,802,15]
09-09 17:04:50.245 1000 619 720 I ActivityManager: Showing crash dialog for package com.asksven.betterbatterystats_xdaedition u0

The complete logcat is attached. I used the share to, and chose my file manager (MiX) to save off the log.

I have now re-downloaded and installed the previous version and am starting again to get a log.