yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
New Build 1.0.6

New Build! With some MAJOR additions.

See OP for download link.

Version 1.0.6 is now available, and its a BIG release

this version now allows more than just reporting, but also actionable items. Like freezing and defrosting apps!

************************

These items have been added unrestricted, and therefore, if used incorrectly can render your phone inoperable. Any actions and results of such will be done at your own discretion and you are responsible for such action and results. You have been warned! and no need to say it, but I take no responsibility

************************

In Oreo, I have noticed that the reset battery stats function has been removed, it can be done within TeMeFI. YEAH! Find it under "Current State"

Find the following under the menu "Application info / Manage"

.... List Frozen apps

.... Freeze apps, including system apps

.... De-frost apps

.... Hibernate apps

.... Uninstall apps

.... Hide Apps (form the system)

.... Search for a package

Find the following under "Current State > SELinux"

.... Return and switch SELinux status

Find the following under "Configuration"

.... Manage TeMeFI log files (ie list / delete)

Get the root files ie the boot/statup sequence found in RAMDISK

Find the following under "Logcat"

.... Logcat, Last KMSG, DMesg and getting the logs are much easier than most other ways

many many MANY more items added.

And to make it even easier due to just how much there is, there is a "Search"functionality built into the menu. But note, it does not return results from Dynamic lists; ie ones built at runtime.
[Android Apps and Games] DiamondJohn:
New Build v1.0.8

Added a few items See OP for download link.

One of the items added enables post filtering any previous saved results. A very powerful and handy feature.

For example, you could save off 4 or 5 different unrelated reports, and then search all the reports/output for any mention of a single word/term eg "version" NB: the search is not case sensitive.

The above feature can be found in the menu under "TeMeFI Configuration>Search ALL Logfiles" or to check a single selected file "TeMeFI Configuration>Search a Logfile"

Cleaned up the menu a little.
[Android Apps and Games] DiamondJohn:
whoops... forgot to update the version number within the build itself. corrected. But if you downloaded the previous version, there will be no issues. And there are no new/extra features in this new build with the correct version number.
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.9 See OP for download

Added a few items

Corrected the log search functionality

Clean up the menu a little

Shortened the animation time (ie a few hundred milliseconds less waiting)

Added confirmations on some "dangerous" menu items
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.10 See OP for download

Fixed bug where id the menu was clicked before it first generated, it would never fully generate

Added a few items

Cleaned up the menu a little
[Android Apps and Games] DiamondJohn:
New build!

New Build!

See OP for download

The big change in this version is that the start-up time can be reduced significantly, by pre-setting the fact you have root and/or busybox. You can find these setting under

TeMeFI Configuration>Default Startup Config>

"Set ROOT available on Start-up"

"Set BUSYBOX available on Start-up"

"Remove Set ROOT on Start-up"

"Remove Set BUSYBOX on Start-up"

"Current Startup Config"

Added a few items (including the above)

Cleaned up the menu a little
[Android Apps and Games] DiamondJohn:
New build!

New Build!

New Version v1.0.12 See OP for download

New setting gives you the option to have the menu appear at the bottom, closer to where your fingers would be hovering over/near your nav bar etc. NB: You will need to exit (use the X in the menu) and restart the app for the setting to take effect.

PS: I would really suggest taking advantage of the start-up pre-config by pre-setting the fact you have root and/or busybox. You can find these setting under TeMeFI Configuration>Default Startup Config
[Android Apps and Games] yochananmarqos:
All I get is a dancing banana on my Pixel running Pie. Pressing back opens the menu and tapping Application Info / Manage makes it disappear. It does not prompt for root. I see it's targeting Jelly Bean 4.1, maybe that's why.
[Android Apps and Games] coldgin_:
It's working fine on Oreo.

Thanks mate for this very handy App!!!

Regards.
[Android Apps and Games] DiamondJohn:
Check your root management app if you accidentally let the root message expire the first time, and thereby default to no. It will only ask once. Also maybe try wiping the data (totally safe) and restarting the app, that should re-trigger the root request. And to ask the obvious, are you sure you are rooted...;) Out of interest, are you using Magisk or SuperSU or simply root built into your ROM?

As for "JellyBean", that's simply the minimum targeted API. I am actually building and testing only on Oreo myself, and havent actually tested it on anything less than Nougat. I know at least one of the many commands wont work on anything less than KitKat. Just too lazy to test/support changes between Android versions, and don't want to restrict the minimum android version, as at least some of the functions will work on JellyBean.

I built it to be handy for me, so am not too surprised it's handy for at least one other person.:D
[Android Apps and Games] yochananmarqos:
I'm using Magisk 17.2. No, I did not miss the root prompt, it never comes. Android complains the app was designed for an older version of Android because the target SDK actually is Jelly Bean.
[Android Apps and Games] DiamondJohn:
Then open the Magisk Manager, go into the Superuser menu item, find TeMeFI in the list, and select it over to allow Superuser. Let me know how you go.

That must be a new Pixel check. I know that the Playstore is now limiting new/updated apps to support a specific minimum android API, so it may be that they have added a test in their new version of android OS as well. I know there is some code I can change to change that, i'll look into it before the next release, but as a guess, its probably just a warning at this stage, but that's simply a guess, as I am on Oreo and haven't tested Pixel explicitly.
[Android Apps and Games] yochananmarqos:
Again, there was no root prompt and the app is not listed.
[Android Apps and Games] DiamondJohn:
I did a check. I ran "TeMeFI Configuration>Updated Menu Items", then filtered that output by long pressing the Magnifying glass, and entering "battery history" (case insensitive), and it pulled up four changes for that action; one of which may of fixed your previous issue.
[Android Apps and Games] crok.bic:
Yes, that's a specific thing but not needs to be run at every start: if .*GApps is installed and GMS is installed in a "vanilla" way and it includes that one line in phenotype.db only then it has to be modified once to alter GMS not to reset the settings (I'm using OpenGApps Nano with my own config, that's why it's there and it's there for everyone using OpenGApps as far as I can tell). Nevertheless it's fine with me, all ppl I tell to use TeMeFI for checking / setting doze settings I will just tell to do that single thing manually, it's a 3sec job ( :

I'm just sitting here and waiting for the fix!

I did see it, too, but since it disappeared I didn't mention it - but will do next time when I experience something like this.

..and thanks for the battery graph fix, too!
[Android Apps and Games] Oswald Boelcke:
[MENTION=5417899]DiamondJohn[/MENTION] Congratulations to your new title; the green colour suits you really well.:) Well deserved!:good:
[Android Apps and Games] crok.bic:
Another possible bug:

procrank binary - should it be included in the app or in the ROM?

I see this error message when I try to use the procrank function:

Errors/Warnings:

/data/user/0/diamondjohndroid.utility.temefi/cache/temefi_runner.sh[2]: procrank: not found

I't not included in the ROM I'm using (LineageOS 16 Pie for Redmi Note 4 Snapdragon - Mido)
[Android Apps and Games] DiamondJohn:
On my devices, its built into the ROM (all except for AAPT are built into your ROM)

As stated before, not ALL devices support ALL the actions that TeMeFI allows. Checking for what is enabled or not before running is not practical. I have simply enabled what is documented as working for most devices, and you have to try your luck. I see it better as enabling a feature for all, than disabling the feature because it is not enabled on a few selected ROMs.

procrank works on my two devices (LOS 17, and HavocOS Oreo) and actually looks to provide some possibly useful information, if you were specifically looking for that stuff.

However, its good to note when something does not work, as it may be because of typo on my behalf.:o There are over 540 scripts in here!:rolleyes:
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.62

Download: SEE OP!

My track of changes of note:

Fixed the duplicate menu items on very first startup bug.

removed unused extend_action_code field in internal data (ie cleanup of code), and a few other unused fields I originally provisioned for

fixed doze graph. Its a temporary fix for now, I realise its an old script, and there is a much better way I am already using elsewhere. Stay tuned.

added a logcat on boot. Using Magisk, which was the inspiration (original idea), but could be generally useful . You can also create the log into the TeMeFI log folder, and view the file using TeMeFI.

Added a shortcut menu to the logcat on boot from Magisk menu group, into the logcat group.

extended Magisk to include viewing of Magisk logs

Latest added Menu Items (NB: this list available under "TeMeFI Configuration>Latest Added Menu Items", seriously, its there so I dont need to write it here!

Latest updated Menu items: (NB: this new list available under "TeMeFI Configuration>Updated Menu Items", seriously, its there so I dont need to write it here!

Enjoy!

NB: somethings going wacky with XDA. Its shows some other random user as updating the OP.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.63

The big reason for this release was that I broke the handling of rotating the phone between portrait and landscape within TeMeFI, in the last release. Sorry.:o

Download: SEE OP!

My track of changes of note:

BUG FIX: The last release had issues with switching between portrait and landscape.

Improved the Magisk Logcat on boot script.

Latest added Menu Items (NB: this list available under "TeMeFI Configuration>Latest Added Menu Items", seriously, its there so I dont need to write it here!

Latest updated Menu items: (NB: this new list available under "TeMeFI Configuration>Updated Menu Items", seriously, its there so I dont need to write it here!

Enjoy!
[Android Apps and Games] crok.bic:
Thanks for the update!

One thing to mention:

battery history graph is broken, generating empty graph again. Tried to wipe data just in case, doesn't work. How can I help to identify the root cause? Do you need anything from me to look into this?
[Android Apps and Games] DiamondJohn:
Run the "Currently Running>Battery Stats", save off the results, zip them up and post them here.

That is the source data for the graph. If you give me copy of your results, I can push them through the graphing code to logically duplicate your results exactly; or lack there off.

As a general rule, wiping data should do nothing, wiping cache and restarting the app would have more of an effect, but I wouldn't expect it to help too much, as each method is built so as to not be dependent on any previous actions/reports run. The next step if the above doesn't help, would be to compress up your cache and post that, but there should be no need for that, as with your source data, it should give me the exact same results.
[Android Apps and Games] crok.bic:
Attached.

Understood.
[Android Apps and Games] crok.bic:
Indeed I did, that's when my little daughter wakes up usually (: I know everything is there, until I saw this wonderful app here on XDA I used Battery Historian exclusively (installed on my laptop running Manjaro) to look around ;) I used to help people out there when they have battery drain issues and evaluate their bugreports in Battery Historian.

I'm using the Official LineageOS Pie for my device (Mido) and indeed SQLite is not included. I said before that it workied and now everything makes sense: I used the SQLite Magisk module when I disabled the Google Play Services function to rewrite my doze settings (mentioned in #179) and I left it on the device but after some days I disabled it since I didn't use it - but never saw any error or complain from TeMeFI about a missing component thus I didn't see the two events correlating. Now I do! From now on SQLite is a standard component in my Magisk repository. Checked the other database related functions: obviously none of them worked - now all are fine.

Probably you are and were always using ROMs derived from the original AOSP source, and LineageOS team left SQLite out from the ROM.. Nevertheless you've found the issue, thank you!

I saved these steps for future reference in case debug data needed.

Sure-sure, ran it, attached the result!

I had to wipe the storage of the app after the test since it crashed.
[Android Apps and Games] DiamondJohn:
Although its strictly only for idle-screen-off-motionless-drain, BBS is also a good avenue. https://xdaforums.com/showthread.php?t=1179809 ie your battery draining, when not only are you not using it, but haven't used it for a few hours.

There is so much info available in TeMeFI that can help with identifying drain. Without knowing any explicitly right now, try searching the menu (the magnifying glass in the fly-out toolbar) for "battery" and "cpu" and "procstats".That may get you something

Yeah, it seams they must of dropped SQLite in Pie, but its back now in Android 10.:confused: I actually added it into my personal builds, but also created the Magisk module.

Actually the complete opposite, most of my ROMs have been LOS based. It appears that for some reason they dropped it from their Pie builds (its was in Oreo and all the way back at latest in GingerBread, dropped in Pie, and is now back in Android 10:confused:)

Those steps are very specific to the script file I gave you, and would not help with other issues (especially if you use the same sh file). The script I gave you also explicitly had a "DEBUG" flag set, that would keep a snapshot of the data modified at each step etc etc but would be based off your previous data; which I forgot to include:mad:

However, the single step as below, is what I often personally use to help debug new items, when I am first creating them. If you first run the method that is failing in TeMeFI (don't use a menu or anything after it), it should (most but not all) create the script file (temefi_runner.sh), which will also create the source data (but delete it when its done).

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

NB: I changed the HTML to log, since most output is simply text.

The above should hopefully provide better error reporting in the "TeMeFI_output_debug_errors.log" file.

Even if it doesn't create/update the temefi_runner.sh file, you can get the source from TeMeFI and create it yourself!

Oh, doh! I gave you the wrong data file:silly:

I think the missing SQLite explains it, so there is no real point to test it further. The root cause is clearly the missing SQLite binary. But I have also made a number of corrections and improvements to the battery history graph, which will be in the next release.

I think in the next release, I will also add a method to explicitly check if you have SQLite installed (Im using it more and more, and the most interesting stuff uses it), and maybe even handle it a LOT stricter when its not obviously available. Currently I explicitly check at about 4 possible locations I would expect to find it, but even if it is still not found, I continue on and hope for the best, leaving it up to the ROM to sort it out.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.64

Download: SEE OP!

This build is a big update.

My track of changes of note:

Added sorting of favourites. Up one, down one, to top & to bottom. The first time you go in, the order will look random, but its now based on the internal "SortOrder" parameter of each action.

Added the functionality to enable the user to add a seperator into their favourites, thus allowing a logical visual gouping

Fix: Favourites rename would jump to run a favourite

Many adjustments to the battery history. Should be a lot more sturdy, and also compatible with Android 10, which was passing some extra unexpected data. Also corrected the labeling of the items on the bottom ie the time, it was an hour out.

Improved the doze graphing code

Added check for availability of sqlite to all sqlite dependent methods, and a warning now if it does not find it.

Better handling of errors in joining ascii/text files

if the joining of text files exits early due to > 1000 files joined, it still provides an execution time

Corrected execution time in some cases. sometimes it randomly reported a -ve time

Fixed the display of HTML out from databases.Previously on non standard text fields it sometimes broke the table output.

Increased the max rows returned from all table data (since it so much faster now)

The HTML output of data from SQLite should be MUCH faster now where lots of rows are returned. My quick test of one item, went from 4 sec down to 0.4 seconds. It also has millisecond timing now.

Fixed some messages/confirmations before execution

Moved a few items around the menu

Cleaned up a couple non-root menu items

Better handle permissions not being granted. Why would you do that!;)

Better handling of screen rotation

Latest added Menu Items (NB: this list available under "TeMeFI Configuration>Latest Added Menu Items", seriously, its there so I don't need to write it here!)

Only 9 new items, mostly to do with Favourites​

Latest updated Menu items: (NB: this new list available under "TeMeFI Configuration>Updated Menu Items", seriously, its there so I don't need to write it here!)

Over 140 items affected, mostly by shared code changes.but some are specific changes (about 20)

Battery History and Doze have been upgraded individually​

The Favourite changes are pretty extensive in how useful they have become. To Run a Favourite, simply go off the root /startup menu.

However, to change the sort order, the name, add a separator etc etc That is found under "TeMeFI Configuration>Manage Favourites"

When you add a new Favourite, it should appear at the top of the favourites list, ready to be moved down

Enjoy!
[Android Apps and Games] crok.bic:
Thank you for the update!

I downloaded the new apk and installed it - first start: never ending banana dance.. peanut butter jelly time is funny but I had to wipe data to make the app start. But after that all things I tried to run in any random menu just works fine! :good: :cool:
[Android Apps and Games] DiamondJohn:
hmmmm..never ending wait the first time... would of been interesting to get a copy of your data and cache, but its spilt milk now. Generally speaking, I only specifically put things in the cache and the /sdcard/TeMeFI paths (the OS creates the other data for itself). Your root and allowed permissions are stored there by the OS.

As a side, to REALLY clear all remnants of TeMeFI, I would normally use the "TeMeFI Configuration>Self Destruct in ...1...2...3..." But that is of course dependent on the app starting... Otherwise, and uninstall of the app (that will also clear both data and cache) and a delete of the folder "/sdcard/TeMeFI". But that will delete any and all configuration and favourites.

I have noticed a bug (which is present in a couple of places), where by the menu does not clear before re-building;so the results are added to the bottom of the current menu items. Its very specifically in the Search menu function, and the long press of the"X" button to filter the dynamically built menu lists. I use both of these nearly every time I use TeMeFI; but obviously not when I was testing the last release... Its a very simple fix (a single word in a couple of places), and I have a fix and working version, but I thought I might as well leave it to see if anything else pops up unexpectedly.

So I am guessing the Battery History graph is working for you (now that you have SQLite installed)? I have added a stricter check, if you want to test for yourself, by temporarily removing the SQLite Magisk module.
[Android Apps and Games] crok.bic:
I will keep this in mind for the next time - I experienced some force closes, too, while actually exiting from the app with back button.. but forgot to save a logcat :\ Silly me.. will do next time!

Battery History graph is working perfectly since I installed SQLite module, yes, that's why I didnt's do the tests you've mentioned (probably I forgot to tell you that I didn't do them since installing the binary solved all problems based on SQLite) but I noticed that check you mentioned when SQLite is not available (yes, disabled the module, error comes, enabled the module and everythign is fine).

Thanks again for the app and all your work! :good: :highfive:
[Android Apps and Games] DiamondJohn:
The good thing abut a logcat, is that it occurs without you starting it, and basically sticks around until you power-down, or the time just gets soooo long it cleans off the older stuff. Also, TeMeFI will forcibly log errors; the logging of error does not have to be turned on (ie internal logging). There is also a method to filter down only to TeMeFI errors. You can find that in "Logcat>Logcats>Logcat - TeMeFI Internal"

I just tried exiting from a few menu levels deep, and didn't get any errors. From memory (ie without checking the code), the shut down is written in a way to not raise errors, I mean your leaving anyway. But I'll have a quick look before I release the next version.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.65

Download: SEE OP!

This is just a quick bug fix release. When using the menu search (magnifying glass icon in fly-out toolbar) or filtering a dynamically built menu (long press the X button), the current release would not clear the existing menu, before adding the results to the bottom of the existing menu.

It was annoying to me, because I use these features a lot; but I have been running a fixed version from the day after the last release ;). However, I was currently working on a new item, and was hoping to slide it in also, but it was taking longer than I hoped, so thought it would be better to rollback and get the above fixes out.

Enjoy!
[Android Apps and Games] DiamondJohn:
Just thought Iwould share the following.

The favourites allow renaming. This includes the "renaming" of the separators. This means, you can set these to any funky character (or mix of text) supported by the font of your ROM.

An example of a test fav menu I created, and an attached text file of some separators I played with. But note, your ROM font has to support the character. I know the old standard Roboto is pretty limited.
[Android Apps and Games] DiamondJohn:
Another feature I haven't truly explained is the scroll reset after you have panned right to be able to view the full menu text.

FYI: a new release is just having the final touches being added.:good:
[Android Apps and Games] crok.bic:
I discovered it by the hard way :D I realised that some menu items are having a long name and I (by accident) discovered that the menu is "scrollable" to the right.. and it's not that convenient to scroll back -> then noticed the arrow :D

Yaay! (: