[Android Apps and Games] DiamondJohn:
So, I tested your data, and it works!

The following is a wide graph

View attachment 4931735

This one is the standard output using the defaults. What it also shows, is that if you save off the results, transfer the HTML file to a PC, you can move the mouse over the graph to get the details of each graphed area.

View attachment 4931737

When I ran the test my self, I learnt some more and hence Attempt 2, but Attempt 1 still has some useful info, including the instructions

ATTEMPT 1

From the HTML, I can see that you turned the phone on, or stopped charging at 2020-01-18 07:12:34, put the phone down at about 8pm, then picked it up/turned the screen back on at around 7:42AM the next day;)

Now, the fact that it does not work on your device, makes me think that you possibly do not have SQLite installed as part of your ROM. Do the other SQL type functions work on your phone? eg "Database>MediaDB SQL>Last 100 files added to MediaDB" ? I was originally thinking that the text output from your battery stats was different to all my test cases, but my test above showed that was not the cause.

Ever since GB I have been using custom ROMs that have ALWAYS had SQLite installed by default, except for one (a recent Pie HavocOS:silly:) If your device is 64bit, then there is a Magisk module in the repo to enable it, and if your running 32bit, I have made a Magisk module for that.

Either way, doing the following, and attaching the results should hopefully give more info as to why it does not work on your device specifically.

0. Start TeMeFI at least once (you should of already have done that step)

1. Copy and extract the attached zip contents, directly to the TeMeFI cache path (/data/user/0/diamondjohndroid.utility.temefi/cache/)

2. Open a terminal (or ADB over WiFi like I prefer, thus enabling the use of a keyboard and and copy paste)

3. Run the following, line by line

su;
CODE_PATH="/data/user/0/diamondjohndroid.utility.temefi/cache";
sh $CODE_PATH/temefi_runner.sh > $CODE_PATH/TeMeFI_output_debug.html 2> $CODE_PATH/TeMeFI_output_debug_errors.log;

3. Wait for it to finished

4. Zip up the /data/user/0/diamondjohndroid.utility.temefi/cache/ directory

5. attach it to this thread.

6. Close TeMeFI and clear it from your recents

6. Delete the /data/user/0/diamondjohndroid.utility.temefi/cache path (it will be re-created on the next start if TeMeFI)

The above (step 3) creates a heap of debug files/data, for which I should get the exact same

It creates two main files at step 3 (as well as a bunch of intermediary working files),

TeMeFI_output_debug.html - You can open this file in a browser (on the device or on your PC, where you get the added benefit of mouse hover and clicking on items)

TeMeFI_output_debug_errors.log - This is a log of all errors and warnings, and I would hope and expect it to be empty

ATTEMPT 2

OK,so I ran the above tests myself on the original version of the script, and found a bunch of warnings:o, including one that should of been an error! Maybe your ROM is a little less forgiving on the warnings than mine, and actually bailed out on the warning I saw, that I think should of been an error.

Anyway, I made the adjustments, and the attached testing zip has those in it. As well as a few extra features/corrections to be included in the next release, if you don't experience anything else

[MENTION=3365228]crok.bic[/MENTION], If you could please run it as explained above, and post your results, that would be of great assistance.

Thanks, in advance