yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
Nothing special, but the following post in another thread gives some ideas on how I personally use TeMeFI as a UI to run custom scripts, and setting up Favourites.

https://xdaforums.com/showpost.php?p=81735441&postcount=7

Just to give some insight on what to expect next (hopefully soon :fingers-crossed:)

1. Detach YouTube (for Vanced YouTube users) from the google play store, without installing xposed and a lot more effective than the current detach method for the root install. (first revision will only do YouTube, but it will be able to be extended to detach any app from the market. Funny thing when I was building it, the Google Core came up as an option :eek: which I explicitly exclude, for safety :angel:

2. Fix the battery history graph.
[Android Apps and Games] DiamondJohn:
Moved a bunch of posts from another thread to here where I think the questions are more appropriate.

However, I lost my original responses, so have to go through it all again, from memory...:mad:

1. Yes, TeMeFI relies heavily on SQLite3. So you will basically need it to use a lot of its features, especially the good ones (like detach)

2. I think the SQLite module in the Magisk Repo is 64b. I made a 32b one and its on my disk if anyone needs it

3. The existing Detach module hides the fact by including the SQLite3 binary as part of the module.

4. Detach method 3 is the way to go if you want it to be detached and stay detached. The only problem is that it breaks the auto update of all other apps. However, if you go into the playstore, the list of updates are there, and YouTube will not be one of them, so you can safely click "update all"

And as an FYI, I am just about to release a new build ;)

It only breaks the auto update feature of the playstore, I use (and as you have also said that you also use) the "Update all" button. That works unbroken,and youtube is never in the list. I have 3 phones all running for about 3+ weeks now without an update. and no-one here has reported any issues, once they get SQLite up and running.

Edit: method 2 does allow auto updates. Next to try method 3.
[Android Apps and Games] MartK87:
Hello there

Thanks very much for the reply it was very helpful to me.

I was lucky to get SQLite3 from the modules without any problems. Yes it certainly enabled me to do a lot more within your app.

I am not too worried about the fact it makes things difficult to update because I rarely am even signed into the play store anyway. I am just glad to get rid of the annoyance of YTV constantly reverting back to its original YouTube.

Looks like a really good app very advanced and I would only understand a fraction of what there is to do on there but as time goes on I learn more and I am sure that many features within it will come in handy for me.

Thanks for the hard work put into these things. :good::good::good::good::good::good:
[Android Apps and Games] chooks06:
New things for me to learn! Thanks mate!
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.68

Download: SEE OP!

The big changes / additions are:

1. MANY Improvements / bug fixes to the battery history graph

2. Virtual memory (ZRam) NB: Changing or switching off can take considerable time as it re-allocates/un-compresses the memory from ZRam to hardware RAM

Some of the changes to the battery history graph include:

Many bug fixes

A red bar under the horizontal axis showing shutdown

Fixed a rounding / visual display issue where the top line and the top of a graph bar did not align

Alternative light/dark horizontal lines for each % step

Added a few more options to the horizontal scale and vertical scales

Its still not 100%, but its getting pretty close

On thing that I found useful by surprise, was by looking at the charge rate (graph 4) using different charging cables, I could see how good / bad / compare the different cables charge rate.

Totally New Items. within the menu at "TeMeFI Configuration>Latest Added Menu Items"

Currently Running>Memory>Virtual>Swap Details
Currently Running>Memory>Virtual>Swap Partition Enable (*place holder)
Currently Running>Memory>Virtual>Swap Partition Disable (*place holder)
Currently Running>Memory>Virtual>Swap File Enable (*place holder)
Currently Running>Memory>Virtual>Swap File Disable (*place holder)
Currently Running>Memory>Virtual
Currently Running>Memory>Virtual>ZRam Enable
Currently Running>Memory>Virtual>ZRam Disable

You will see some "New Items" in this list, as I had major upgrade/fixes after my initial cut of code.

Modified Menu Items within the menu at "TeMeFI Configuration>Updated Menu Items"

Currently Running>Memory>Virtual>ZRam Enable
Currently Running>Battery>Battery History Graph
Currently Running>Battery>Battery History Graph
Currently Running>Memory>Virtual>Swap Details
Currently Running>Memory>Virtual>ZRam Enable

Enjoy!
[Android Apps and Games] crok.bic:
Thank you for the update! Much appreciate it, really!

I would like to show some bugs here and there:

ps related commands giving errors like:

bad pid '-ATw'

and

bad pid '-AlZf'

su detailed top is giving these errors: batch mode is not implemented in top:

Errors/Warnings:

Invalid argument "-b".

I'm using the latest Busybox Magisk module and the latest SQLite3 module, both are installed from the official Magisk repo.

While generating some graphs I receive a toast saying: temefi_runner.sh[211]: 3N: bad number '3N'

I attached some logs and a screenshot of the toast msg.
[Android Apps and Games] DiamondJohn:
In the release before this last one, I specifically improved the error logging and the retrieval of the errors. You do not need to take a screen shot of the toast, as even more important information will be caught in the error log file. This log file can be accessed from the menu at:

"TeMeFI Configuration>Last TeMeFI Warnings an/or Error Log"

The toast is basically a quick and truncated message just to let you know something could be found in the above file.

This file includes not only the line number but also a copy of the code line that triggered the error and also the 5 lines above and below!

NB: This full error handler (with the code included) is only engaged on the battery hist report (so perfect for you!) and the new swap file things I am working on for the next release.

Also, it would help if you let me know which exact method you are running. Get the source (in addition to the error), I think it would have the full path at the top.

As for using the latest busybox, I explicitly avoid using busybox as much as possible (and hence the specific busybox menu tree) to avoid the extra dependency when not needed.

Now, for the battery histiory report, when you get the error, apart from the above points (ie the specific error log file), It would also help great;ly if you run the standard text battery hoistory report, and include your results. I can run the report based on your data, on my device, and hopefully see what makes your data trigger an error.

"Currently Running>Battery>Battery Stats"

Save that off, and attach a zip, thanks.:good:

Now, back to the first issue. The following is causing you an error. Obviously our two ROMs support different features/parameters for ps.

su;
ps -AlZf;

Run each of the following, individually, and let me know which works and which fails.

su;
ps;
ps -A;
ps -l;
ps -Z;
ps -f;

And actually, the results of both of:

su;
ps ---help;
top --help;
[Android Apps and Games] Philnicolls89:
Sorry guys first time user of this app, I am trying to install TeMeFi so that I can detach utube vanced from the play store. I installed sqlite3 binary module from magisk but on start up and when I try to click on a menu item I get these error messages. Any ideas??!
[Android Apps and Games] crok.bic:
Thanks for the prompt response!

This is what is visible in the error log after running

Currently running > Doze > Doze Cycle Graph for example:

ACT_DOZE_CYCLE_DISPLAY Doze Cycle Graph /data/user/0/diamondjohndroid.utility.temefi/cache/temefi_runner.sh[209]: 3N: bad number '3N' /data/user/0/diamondjohndroid.utility.temefi/cache/temefi_runner.sh[211]: 3N: bad number '3N'

Oh, I didn't know this fact, this explains some things here and there.. the thing is: I'm using busybox because I'm actively using the MagiskHidePropsConf Magisk module (and the Energized module, too) and it's mandatory. I will try to workaround this somehow, probably I will delete the symlinks to ps and top (none of them are needed by these two modules - probably Energized's function to update the hosts file is an easy task to be moved to TeMeFI but MagiskHidePropsConf won't work without Busybox unfortunately).

Data file attached!

Indeed, for ps and for top, too.. (it's a MIUI now btw).

Only ps -Z works with this actual ROM.

During writing.. I realised that ps and top are used from the ROM - not from busybox - and the busybox ps generates some output with -AlZf.. not sure, probably the busybox ps and top is better for me.. okay, I think you can ignore my issue, my environment is very different from what TeMeFI expects, I will try to workaround this with some trickery / symlinking (probably I will modify the busybox module and let it do some more symlinking to mask the ROMs own top and ps.)
[Android Apps and Games] DiamondJohn:
Your android looks pretty heavily modified, and/or a very old version.:confused:

What ROM and version of Android are you running?

First exit TeMeFI. Then run the following from a shell/adb

su;
echo 1 > /sdcard/TeMeFI/.config/LOG_INF_ON;
echo 1 > /sdcard/TeMeFI/.config/LOG_DBG_ON;
echo 1 > /sdcard/TeMeFI/.config/LOG_TRC_ON;
echo 1 > /sdcard/TeMeFI/.config/LOG_WRN_ON;
logcat -c;

Now go and start the app so as to trigger the error, then back in the shell

logcat -d | grep " TeMeFI " > /sdcard/temefi_error_log.log;

Then zip and attach the file /sdcard/temefi_error_log.log
[Android Apps and Games] DiamondJohn:
Yeah, your PS supports very different params to my LineageOS based (one Havoc-OS Oreo, the other crDroid Q/10). which I would guess is closer to AOSP than yours.

However, have you looked under the BusyBox menu? Maybe, I could simply duplicate the other stuff into the busybox way. I'll put it on the list of possible things to look at, as it may just be duplicating the menu, with a "busybox" call added to the front.
[Android Apps and Games] crok.bic:
Yes, I checked it now (I mean the Busybox menu) and a lot of stuff I would like to check is available there!

If you have some spare time - and bored - I would appreciate to have those menu items implemented with a busybox call!
[Android Apps and Games] DiamondJohn:
umm...lt ran perfectly on my phone.

And now that I think of it, I know exactly where I am using the "3N". Its simply used ONCE to format a date with milliseconds, and the biggest twist is that it is only used when the script is run in debug mode, by me. So your ROM its simply pre-interpreting something, that is not going to actually run. Its only used when I am debugging.

So, I guess I could live without knowing the exact millisecond something happened at :angel:, so i'll remove it and maybe do a quick build. As you may just be the tip of the iceberg.

Anyway, I ran a few graphs to check, and attached them for you.

You didnt log for very long, I go for about 3 days worth of history while testing, before my ROM puts its foot down, and clears the history.:mad:

PS: In case anyone is wondering what the "1200 - Wide (default)" actually means, it is simply that the first number is the number of milliseconds that equate to one pixel horizontally; so in that graph, each pixel horizontally is 1.2 seconds.:cyclops:
[Android Apps and Games] Philnicolls89:
Thank you for the response, I managed to get TeMeFi working properly on my phone. Something must have gone wrong during the installation process as it's fine now.

I am running an s10 with carhd mod and theme based on Android 9 firmware.

however i now have the following issue.

when I select 'detach package from play store' then 'select package then detection level' I am prompted with this error. Is there some sort of log I can provide which may help find the cause of the issue?

Also thank you for providing us all with this amazing free app, the name really does it justice;)
[Android Apps and Games] DiamondJohn:
I am guessing its a stock firmware Android 10ooops 9 (pie:o). Not the best/most functional of android builds normally.

It would be good if you could take the time to document what was wrong that you changed to fix your error, in case others get the same or similar issue. I am a little interested to know what went wrong? Maybe it will help future dev or its something I could/should explicitly check or add a check method for, just as I have an SQLite3 test.

The toast is a seriously cut down version of the full error message, simply to flag a better one has been recorded. As explained above, to access the full error message, go to the following menu item, and post your results.

Even though it wont provide the full code in the detach script (like it does in the battery history graph), it will display the full un-truncated error message. The one in the toast is cryptic to say the least.

It was named a number of years ago, when its functionality was very different. It has close to 600 entry points now with many of this allowing drill downs with over 100x10x.... options. Something this big is something different to everyone. I would find it hard to find a single name for it.

Anyway, maybe TeMeFI will be the word that makes the meaning... Like those one-word products like "Hoover" now means vacuum and "Xerox it" now means to photocopy.;)
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.69

Download: SEE OP!

The big changes / additions are:

1. Improvements / bug fixes to the battery history graph

2. Virtual memory (previously only ZRam) now also supports a swapfile

3. the front page had the wrong version in the project details, not the link, but the correct MD5

Some of the changes to the battery history graph include:

Bug fixes

added a few more horizontal scale options

added a few more vertical axis options to the discharge graph

corrected the scale to show the actual ms / pixel values

added an extra width to allow scroll past the right most of graph

removed the 3N reference that caused one user an issue

converted the display of the horizontal widths and locations down to sub pixel widths. Now time intervals les than a pixel are drawn, and can be zoomed in on.

Totally New Items. within the menu at "TeMeFI Configuration>Latest Added Menu Items"

Currently Running>Memory>Virtual>Disable ALL Swap Files
Currently Running>Memory>Virtual>Swap File Disable One
BusyBox>PS All With Threads Detailed (best mimic of toybox version)
Currently Running>Memory>Virtual>Swap Details
Currently Running>Memory>Virtual>Swap Partition Enable
Currently Running>Memory>Virtual>Swap Partition Disable
Currently Running>Memory>Virtual>Swap File Enable

You will see some "New Items" in this list, as I had major upgrade/fixes after my initial cut of code.

Modified Menu Items within the menu at "TeMeFI Configuration>Updated Menu Items"

Currently Running>Battery>Battery History Graph
Currently Running>Memory>Virtual>Swap File Enable
Currently Running>Memory>Virtual>ZRam Enable
Currently Running>Battery>Battery History Graph
Currently Running>Memory>Virtual>Disable ALL Swap Files
Currently Running>Memory>Virtual>Swap Details
Currently Running>Memory>Virtual>Swap File Enable
Currently Running>Memory>Virtual>ZRam Enable
Currently Running>Memory>Virtual>Swap File Disable One

Enjoy!
[Android Apps and Games] DiamondJohn:
The only thing I can think of is that the busybox is questionable (or my test is questionable...), and it failed during the test to check if you had busybox, in deciding to show or not show you the busybox menu. I have tested it with sterikson and [MENTION=4544860]osm0sis[/MENTION] 's Magisk module.

I am a little confused, you appear to be mixing up your local computer, which has a C drive, and your device, which does not. I never posted that you should use C:\internal. You need to be clear in your head which commands are running locally on your PC and which are running on your device. Additionally, on your device you use "/" while on a windows PC its a backslash, they are not interchangeable.

Another thing, you are using /internal[SPACE]storage The space breaks the line up into two separate commands.It would obviously fail, and it did. Maybe something like /data/media/0/TeMeFI may of been better, but it depends on which version of android and which ROM may also affect it.

But, at least its good to know you have it up and running now.:highfive:
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.70

Download: SEE OP!

The big changes / additions are:

1. Major improvements in speed on preparing scripts. When you click a menu item it will be MUCH more reactive than beofre

2. fix 1 character typo in battery hist graph. I couldn't see any created issues, except it was logging a warning/error

3. You can now click on almost any element on the battery hist and get the details of that element

4. Major internal fix reducing time and memory requirements for formatting large outputted standard text

5. Battery History

(*) added clickable interface to get visual element details

(*) added charging colours (NB: shows the bat level by colour, and the charging rate as item height, and its clickable!)

(*) fixed many issues trying to correct bad source data (eg I had it jump back to 2014 and then back to 2020!)

(*) added some more summary data

(*) I think its getting to a point of diminishing returns for now, so will leave it be for a while. Its now at over 1000 lines of shell script code! You can also see it filters the line count of the source data down to about 2% of what it started out with.

Totally New Items. within the menu at "TeMeFI Configuration>Latest Added Menu Items"

Currently Running>Memory>Virtual>Disable ALL Swap Files
BusyBox>PS All With Threads Detailed

You will see some "New Items" in this list, as I had major upgrade/fixes after my initial cut of code.

Modified Menu Items within the menu at "TeMeFI Configuration>Updated Menu Items"

Currently Running>Battery>Battery History Graph
Currently Running>Battery>Battery History Graph
Magisk>Modules>TeMeFI Hide System Apps>Add or Remove - Hide System Aps using a TeMeFI Module
Magisk>Modules>TeMeFI Hide System Apps>Current State

It is recommended that you delete ALL you existing favorites and re-create them, as they will run the old code/version.

Enjoy!
[Android Apps and Games] Oswald Boelcke:
OP contains v1.0.70!
[Android Apps and Games] DiamondJohn:
Yep, your right. Copy paste of the previous release post to save time and forgot to update that one thing.:o (and now fixed)
[Android Apps and Games] Philnicolls89:
[MENTION=5417899]DiamondJohn[/MENTION] I am still not having any luck using the detach from play store feature for utube vanced. I managed to get a logcat using the 'logcat extreme' app. This log is just from opening the app and trying to select detach from play store from the menu. I seem to be getting a lot of warnings and errors and I can't make any sense of it! I am using a custom rom maybe it is conflicting with TeMeFi?
[Android Apps and Games] DiamondJohn:
A number of points:

1. TeMeFI has a built in Logcat feature, you do not need another app. Its off the main menu, called "Logcat". The logcat you supplied looks very short.

2. TeMeFI also has an even more useful logging feature (which is logged to the standard Logcat), that explicitly logs everything that occurs specifically within TeMeFI. However, this feature is off by default. (and should be returned to off when you have finished). You can turn this special logging ON by using the menu:

TeMeFI Configuration>Default Startup Config>Internal TeMeFI Logging>Turn ALL logging to explicitly ON

3. after selecting detach, that fails, the output displayed to you, would generally return some useful information as to what went wrong. Additionally, you can check for the last error using the menu:

TeMeFI Configuration>Last TeMeFI Warnings and/or Error Log

But you have to go straight there as any step in between (including navigating down some menu trees) could wipe that log.

4. Many ROMs no longer include SQLite3 by default. Did you test the SQLite support of your ROM. You can do that using the menu item:

Database>SQLite 3 Test & Help

So, in summary, I would go down this path, and save off the results from each step, zip them up (/sdcard/TeMeFI/*.log) and post here. After each step below, save off the results! the pencil icon in the fly-out toolbar

i. Do point 4 from above. If it fails, then stop, thats your problem, your ROM does not support SQLite3. Read above, another user had the same issue.

ii. Do point 2 from above

iii. Use then menu item

Logcat>Logcats>Logcat Clear

iv. Run the detach using the menu item.

Application Info / Manage>Detach Package From Playstore>Select Package then Protection Level>com.google.android.youtube>Detach: 3 - Invalidate the data / link, and block any attempted corrections (EXPERIMENTAL - may block other auto-updates)

v. Assuming it fails, save the output

vi. Get a log of the last error/warning using menu item from point 3 above.

vii. Get the logcat using menu item

Logcat>Logcats>Logcat Default

viii. turn off the TeMeFI internal logging.

TeMeFI Configuration>Default Startup Config>Internal TeMeFI Logging>Turn ALL logging to default (OFF)

ix. Zip up all the logs, and attach here.

The other thing which may confuse people, is if they had recently been using the standard detach method, there will be no YouTube record for TeMeFI to detach. NB: The existing one will still allow a YouTube update, even without a record anyway, but TeMeFI needs the record to start the detach.
[Android Apps and Games] dingsaller:
Thx for your explanation; had the same prob with detaching YT, after deleting the standard detach method TeMeFI did it's job well !:good:

Mighty tool at all - greatest respect for your development!
[Android Apps and Games] TiTiB:
Yep! And detach works much easier/better than the Magisk module method. ?
[Android Apps and Games] DiamondJohn:
Method 1 is very similar in "concept" to the current detach, and as such, I think auto updates still function. Except it does not run every X seconds, and TeMeFI can be removed after it is applied

However, method 2 and 3 will disable auto-updates. Method 3 is my suggestion, and has yet to fail me personally.

Which one did you go with? are you running the new split APKS?

Edit: method 2 does allow auto updates. Next to try method 3.
[Android Apps and Games] TiTiB:
I used Method 1 successfully. Unfortunately I was/am having trouble with Play Store not installing apps (preexisting condition), so have undone anything from detach with my efforts to get it working again.

I've used SAI's app for split apks, if that's what you mean.

I'll revisit TeMeFI once I get things sorted with Play Store, and try Method 3 then.
[Android Apps and Games] DiamondJohn:
And of course, you are using TeMeFI's logcat features;) which also provide clearing in preparation and filtering ie long press the magnifying glass to include lines containing specific text, or long press the one to the right to exclude the lines with specific text

yes, thats what I meant.
[Android Apps and Games] TiTiB:
Uh, yeah. ? Actually, I will now. Thanks for the tip.