yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
I use an on device SQL Editor, and it cant do any database changes, but I like the sql/results interface, so its my one of choice. It thinks it can, but they dont stick.

Your issue (and mine with the app I am using) is that there are bugs, or there is something that neither of us know of. :confused:

As you may guess by TeMeFI, my real update SQL workload is done directly in scripting.

As I stated before, you can create a script and run that from TeMeFI. Use the delete (do not run it, just preview it) as a template, and change the SQL to an update.

In the next version of TeMeFI, I have actually built an update SQL method. :cyclops:

And thats the exact same bug I have with my GUI SQL editor, and a few others I tried.

I just tested the new update feature of TeMeFI, and the changes stuck when I checked in MiX.:highfive:

To a marksman, hitting a bulls eye is not difficult.

I have found, the apps I tried, dont appear to work with updates:crying:, but shell scripting does.:cool: and thats how TeMeFI does its thing

PS: You didnt say so, but if you dont get the ownership and permissions right, you could break things when copying files between your device and PC. Personally, I never do it both ways, only from device to PC, but never back. Except for my own dB's I created and are used by my boot scripts.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.87

Download: SEE OP!

The new items are interesting.

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

Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"

Enjoy and stay safe.
[Android Apps and Games] ErbDroid:
Thank you for this app! its like a shell wrapper, VERY nice! it contains most of the things that I use Termux for (aapt, pm/cmd etc etc)

There are a few bugs for my OnePlus device I'd like to fix, do you accept PR's? Its just a few directories that differ is all, and reboots when trying to access charging info (I have a logcat saved!) Actually is this open source?? If not, this app would get alot of attention/downloads on Github for sure, plus more hands make light work! I noticed it contains no ads or trackers! **THANK YOU!!!**

Just thought I'd message to say awesome job! And thanks, I love it! And if you can check out the OnePlus bugs GREAT! If not, I'd be glad to help! (Bash is kinda my thing! :cool: ...Java?? Not so much!! :( )

Thanks again :good: a great app executed almost perfectly! :highfive:
[Android Apps and Games] DiamondJohn:
Its not "like" a shell wrapper, its 100% a shell wrapper! that was the whole original concept. Creating a visual GUI to run shell scripts and not have to type all the param's and folder text, nor remember the well over 600+ different commands and their parameters, and complexity to run, or getting a live/dynamic list to run things against; eg a list of all installed apps. For example, when re-nicing an app, you have to first get its current nice value, and apply the delta; not the simple value.

As for Termux, I haven't used it myself, but on a slight tangent, I am surprised the Tasker crowds haven't hopped on board.:confused:

Not familiar with what "PR" means in this context (to me it means "public relations". What I do assume, is that you mean Personal Request?

I think my latest ROM for my phone also reboots on either that one or something else (my previous phone did not, and hence its in there). Its an issue with the ROM, and not TeMeFI. View the code and try running it from a terminal window, you will get the same result, i think.

For battery info, there are a LOT of other things including the battery history graph, which also shows the times it was charging. Ive forgotten what the charging commands use to output.

There are two sides to the app. The GUI and the shell scripts it runs. The GUI is NOT opensource. However, the shell scripts it run are viewable. It would kind of fall over as a guthub project, as the APP/ GUI builds the shell scrips on the fly based on your selections. Their not the kind of thing you could simply check-in a single copy of in github. Also the storage of the scripts are really not conducive to github. AND it would mean extra work for me to add something or maintain everyone else's additions.

Yeah, I also HATE HATE HATE ads. As for tracking, you just posted here. Consider yourself tracked!:p

I like to make the things I add as generic as possible, and not device specific. And I also spend WAAAY to much time on it as it is. So if you think something could be added, post an example of the shell script here (since its your thing), and a brief explanation of what it does, and how it helps, and I may consider it. I have only so many ideas myself, and would welcome any inspiration. But

remember the generic multiple device re-usable principle.

If you already have the scripts, TeMeFI can run user scripts already, from its menu GUI. I have a TON of bootscripts and utility scripts very specific to my device and how I use it. see this release post to tell TeMeFI where to find your personal scripts: https://xdaforums.com/showpost.php?p=77942711&postcount=42

And you will find them (after a restart of TeMeFI) under the menu at

Dynamic Lists>Run User Scripts

Thanks, but...ummm is that a backhanded compliment? "almost perfect"means there is something wrong?:p:D:silly:
[Android Apps and Games] ErbDroid:
Great explanation and I totally get it. :good:

Yes I'm sure I have a few commands/functions that may be of use to you.

...and a backhanded compliment?!?!?

Perfection is pretty rare wouldn't you agree?? And I said you are very close to it!!!

(Quite a compliment I thought???) :confused:

Thank you again for this unique app :highfive:

Subscribed to the thread so I can keep-to-date!
[Android Apps and Games] DiamondJohn:
I guess the sarcasm didnt come through as clearly as I hoped. And hence all the extraneous emoticons at the end of the sentance. I was joking, playing offended.

I notice you haven't put forward any scripts? did the dynamic script run satisfy your needs?
[Android Apps and Games] DiamondJohn:
As an FYI, the last release included a new method to do simple database updates.

Also, if you want to run the same again at a later date, you can save your defined method (ie SQL Update) as a favourite to run again later with a single click.
[Android Apps and Games] deusfaux:
Does TeMeFI need to remain installed / have superuser access after the vanced detach method is applied?
[Android Apps and Games] DiamondJohn:
I have provided the answer to this idea multiple times.

https://xdaforums.com/showpost.php?p=82112215&postcount=2

https://xdaforums.com/android/apps-...umentation-t3806260/post82676663#post82676663

and more.

But in those posts and others it also explains how you can break the detach (or disable) and will need to re-run the detach.

EDIT: also, there is a ":check detach" which you can run to check that the detach has not been broken. Make sure to run this check after detaching an app, and ensure there are no failures
[Android Apps and Games] DiamondJohn:
Also, if uninstalling:crying:, its best to use the built-in uninstall menu item, as it also clears your sdcard of any remnants, which a normal android uninstall does not do.

TeMeFI Configuration>Self Destruct in ...3...2...1...

But, dont forget, come for the detach, but stay for the 600+ other things;)
[Android Apps and Games] DiamondJohn:
Just an interesting personal experience, with my own app:silly:

The OS on my phone recently died, so I had to clean flash and re-instate everything. I last clean flashed a long long time ago before many of the features now available in TeMeFI were there; explicitly the Magisk and detach stuff.

Anyway, So I clean flashed my phone, and then used TeMeFI to system-lessly replace the boot animation :highfive:

Another thing I have in my phone, is that I extensively use widgets from an app called Elixir. These widgets have a supporting APK, which requires root and converts itself to a system app (directly not system-less). Anyway, that failed. So I used the TeMeFI systemize method to make it a priv-app, and that also worked!

After detaching YouTube (I have Vanced installed), I also detached Waze, as I have made some changes to stop the ads whenever I stop at traffic lights, and also, I have in the past lost my recent destinations at random times, which I would guess would happen during an update.
[Android Apps and Games] marcusdre:
Wrong forum
[Android Apps and Games] DiamondJohn:
But was possibly related to detaching, so I answered in the other thread

https://xdaforums.com/showpost.php?p=82933681&postcount=15916
[Android Apps and Games] DiamondJohn:
Another thing I forgot to mention and was surprised by.

I have a large music collection (>3000 files) on a 64GB external SDCard. One of my big uses of my phone is as an MP3 player, so until all the files are registered in the Media dB I cant set up some other things. I have another app I built which scans each file using Java, which takes probably around 20-30min to scan all my MP3's. I also know I have built a media scanner into TeMeFI, but I thought it would be slow for a large number of files. However, I used the media scanner in TeMeFI and it managed to scan all my MP3's in a minute or so:highfive:

its under

Databases>Media dB>Media scan (I used via date)

I set via a year range of 0-49 with a depth of about 10 (I have files in artist and album etc), and to my surprise it returned in no time, and when I checked, all the files had been scanned:eek:
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.88

Download: SEE OP!

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

Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"

Most of these are due to some shared scripting components being updated

The most interesting update is to the "Screen Record and Logcat". It now gives you the option of landscape or portrait, as well as "Square" which covers the screen resolution for switching between the two.

Enjoy and stay safe.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.89

Interesting things in this release:

display images when viewing TeMeFI logs - eg the new screenshots/capture

vibrate on asynch tasks - eg screen record has a small buzz when the countdown starts, then a big buzz when screen record starts and another big buzz at the end of the record time

upgrade java/compiler/sdk

fixed a serious internal bug. The old java compiler didn't show it as an error

better handling of error log recording. Added date and time, and now it will be produced on menu errors as well as runs. View it from themenu, or long press the bottom half of the text under the flyout menu bar

enhanced the internal screen record - landscape and also a "both" with the "square" formats handling device rotation at no loss of resolution

The old bug where the menu sometimes doubles up on first load has re-appeared, rarely, but sometimes. Simply click the home icon in the flyout toolbar to correct it. I didnt want to hold back this release, so will hopefully get a chance before the next release.

Download: SEE OP!

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

Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"

Enjoy and stay safe.
[Android Apps and Games] jaggillararla:
Possible to systemize apps with this ?
[Android Apps and Games] DiamondJohn:
Yes. This feature has already been stated in the release notes of a previous release:

https://xdaforums.com/showpost.php?p=82862181&postcount=472

And also in the full menu in the OP:

https://xdaforums.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260

And you would find multiple references to the feature with a simple thread search.
[Android Apps and Games] jaggillararla:
Im sorry for that. I didn't sleep well.

Thanks again for this! I love this app due to all the features in a UI and not a terminal emulator.

But is it possible to add app search to the systemizer? And built-in app updates ?

If not it's still cool I'm a fan and I will recommend this to my friends
[Android Apps and Games] DiamondJohn:
If you are talking about a search for your app from the list of apps presented, then its already there.See the second post, last image. Spoiler: Long press "X"

https://xdaforums.com/showpost.php?p=76860050&postcount=2

This filter can be used on all the dynamically built lists. The only extra difficulty is that it is based on the app id/code, and not the description. eg "com.google.youtube" instead of "YouTube"

To reset it back to the full list, that's also in the last image. Spoiler: Long press "home"

Not going to happen, sorry.
[Android Apps and Games] rodken:
Is there a method in which I can utilize to determine if I am on Partition Slot A or Slot B without using TWRP or fastboot?
[Android Apps and Games] DiamondJohn:
I do not own a device with A/B slots. However, if I did, I would be looking at the partition info scripts/methods. I would project (ie a fancy word for guess;)) that there will be two system partitions, but only one will be mounted as system or root (ie "/")

So, if you run the following, I would expect something will be in the output telling you which of the two partitions IS mounted, and possibly also show you the unmounted partition (ie B if you are currently on A)

► Device Details
► Partition Info
DF
DF All in Human Readable
FDisk All
Mounts
Mounts Info
Partitions Info
Pedantic DF all

There are also block and DF methods within the busybox menu as well that might hold more info.

Please come back and post your findings, as not only am I interested, but others who actually have an A/B device might find it useful.
[Android Apps and Games] rodken:
I understand that fully answering my question would require a ton of information, so unless someone else can provide an insight with a great rundown of this unofficial investigation, my findings have been possibly pin-pointed to the "/dev/block/platform/soc/" info under 'Mounts Info'.
[Android Apps and Games] DiamondJohn:
In the future, I would recommend using the save off results as a text file, rather than screenshots, which are harder to read/search, and are also missing information that's off the screen.

In this case, the lines you are pointing to appear to be mounts of your data and modem, not system. Read the second word on the lines I think you are talking about, its "/data" and "/firmware/radio" and "/persist" and "/vendor". You are looking for "/system" or "/" (ie root) or similar

Run all the above reports, save the results off (NOT screen shots), and zip them up and post them here.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.90

Interesting things in this release:

Fixed the menu duplication on first starts

Fixed the display of info toasts on some steps of dynamic items

Download: SEE OP!

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

Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"

Enjoy and stay safe.
[Android Apps and Games] unibombz:
Props to the developer!

Installed a new ROM. Installed TeMeFI

Detatched youtube from play store doing the following:

Detatch package from playstore > DETACH: Select package then Protection Level 3 > com.google.android.youtube > 3- invalidate the data, block any attempted correction

Seemed to work perfect.

Clean, easy, simple app.

I will monitor more over the updates as they come.

Again great work!
[Android Apps and Games] DiamondJohn:
I would assume that you have tested the detach using the built in check method?

► Application Info / Manage
► Detach Package from Playstore
List all configured detached apps
[COLOR="Red"]▪► CHECK: The Detach of a single package *[/COLOR]

And when you say "I will monitor more over the updates as they come.", what you really mean is "I will monitor more over the updates as they DO NOT come.";)
[Android Apps and Games] unibombz:
I didn't check as I was unaware :)

Following your instructions, I checked the youtube app and on the detach status report result is pass on all occurrences. Nice job here, sweet and clear report. Clean looking.

As for the updates, I meant the Google Play Store updates, to see if YT ever pops up. I know now it won't with this status report check.

Awesome work man!
[Android Apps and Games] galatei:
Looks interesting, but no source code link ?
[Android Apps and Games] DiamondJohn:
All the source for the shell scripts run are available from the app. That's what does everything.

As for the GUI, the fact there is no source code links tells you that is closed source. The GUI is basically a tool to access the shell scripts and simplify running them. And again, the shell script source is available from the app. So the download link is the link to the source.

EDIT: I also answered the same question in a previous post: https://xdaforums.com/showpost.php?p=82868929&postcount=475
[Android Apps and Games] galatei:
Thanks, I just don't trust anything that doesn't have its source code included. Considering that it's a SU app, it could be doing anything on my phone - the fact that it's free and closed source is just dodgy to me.
[Android Apps and Games] DiamondJohn:
Then this app is simply not for you. ummm from what you have said, if you paid for it, but it was SU, that would make it trustworthy. This is not a thread to discuss the trustworthyness of closed source apps.

PS: "anything" would mean the device you are using now. Your bootloader and modem is also closed source.

PPS: I almost forgot, you can also run it without root.
[Android Apps and Games] DB126:
Whelp - that's a self satisfying albeit ignorant perspective. Reputation is a far better predictor of (potential) nefarious behavior than open source. The latter requires active, skilled and reoccurring peer review to afford any meaningful benefit from a security/trust perspective.
[Android Apps and Games] DiamondJohn:
System as Root?

see post two down.

I am working on a new release, and one of the things I wanted to include was more consideration for "system as root" devices. My problem is that I don't have such a device to investigate let alone test on. I am working on the little information I can garner from other posts on this forum.

Could people with these devices, please post the results from the attached script? Since there appears to be multiple implementations of system as root, multiple posts from different

devices would be much appreciated.
[Android Apps and Games] m0han:
Attachment missing

the attachment is missing. is it 'cos of 'the xda issue'?
[Android Apps and Games] DiamondJohn:
must of been, as I definitely attached it:mad: ahh. just tried to attach it again, and it appears sh file is not accepted.:o

Here's two copies of it this time. Just save the file as find_system_root.sh , execute it, save off the results and please post here.

https://hastebin.com/avuqenaxas.bash

#!/system/bin/sh

echo "==== SCRIPT ENTRY ====";
# attempt to determine System as root
SYSTEM_PATH="";

if [ -d "/system/etc/permissions" ]; then
SYSTEM_PATH="system";
echo "Case 1 - true";
fi;

if [ -d "/system_root/system/etc/permissions" ]; then
SYSTEM_PATH="system_root/system";
echo "Case 2 - true";
fi;

if [ -d "/system/system/etc/permissions" ]; then
SYSTEM_PATH="system/system";
echo "Case 3 - true";
fi;

if [ -d "/system/system_root/etc/permissions" ]; then
SYSTEM_PATH="system/system_root";
echo "Case 4 - true";
fi;

if [ -d "/system_root/etc/permissions" ]; then
SYSTEM_PATH="system_root";
echo "Case 5 - true";
fi;

if [ "$SYSTEM_PATH" == "" ]; then
echo "Unable to determine the devices system path, script will abort.";
else
echo "$SYSTEM_PATH";
fi;
echo "==== SCRIPT EXIT ====";
[Android Apps and Games] dr4go:
Galaxy S10 (SM-G973F)View attachment 5066189
[Android Apps and Games] DiamondJohn:
Thanks, but XDA currently has an issue with images. So I cannot see what you have posted.:crying:

Best to post the text, or host the image elsewhere.

eg https://filebin.net/
[Android Apps and Games] dr4go:
Sorry for the late answer...

https://filebin.net/mg21inbhi1pusasu
[Android Apps and Games] DiamondJohn:
no, not late at all.

Are you certain you have a system as root device/ROM? i don't know if the S10 is one way or the other.

hmmm... assuming yes, not what i expected, as it safely fell back to the default case ie non system as root behavior

I decided to add the above script (slightly beefed up) into the next release, so hopefully I will get more responses since it will be easier to run.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.91

Interesting things in this release:

New version of detach i.e. v4. Previous one wasn't actually failing to block an update, but TeMeFI's internal check method did find a weakness. if you have multiple apps detached, running the method on one single app, will automatically update ALL the detached apps to the improved process, even though they will remain recorded as being v3, they will run v4 detach code.

Added code to better handle system as root devices

Fixed the menu handling after a physical device rotation

Download: SEE OP!

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

A lot of the following updates relate to code added to better handle system as root devices. And of course the improvements applied to the detach method.

Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"

As usual after an update, its strongly recommended to delete and re-create your favourites.

Enjoy and stay safe.
[Android Apps and Games] dr4go:
Definitely - nearly stock rom, no twrp. As there is still no initramfs for this device, Magisk resides on the recovery partition and you need to press a button combo to be able to boot rooted.
[Android Apps and Games] DiamondJohn:
Try the new

Device Details>System ROOT Locations

Its a slightly beefed up version of the script you ran above. Actually, thinking about it, it should return the same as before.:silly:

Run it for yourself, and post back if you do get a different result. If you don't post back, I will assume its not different to before.

I would be interest if anyone gets anything different than "/system/" when running this new method.
[Android Apps and Games] Oswald Boelcke:
My result...

(Samsung SM-G955F, LOS 16.0, Magisk v20.4)
[Android Apps and Games] DiamondJohn:
My bad, my firewall must be blocking new servers used by XDA.:o

Thanks, but XDA attached images are not working of late. At least not for me, but many complaints by others can also be found.

Lots of alternatives available, an easy one I found (for even more than image) is https://filebin.net/
[Android Apps and Games] lucfig:
Hi, after trying to generate a battery usage graph, the app got stuck and even after force closing it, it keeps using a lot of cpu and draining battery.

Never happened before.

Enviado de meu HD1903 usando o Tapatalk

View attachment 5068775
[Android Apps and Games] ipdev:
Hi.

If you boot into recovery, it may change depending on the device and recovery used.

Slot device, older device that was brought up to system-as-root, ..

Once the device is booted into system (rom) the mounts will be the same.

/system is switched to / during initial boot, so /system/system/bin would become /system/bin

The ramdisk part explains the process. source.android.com - Link

Cheers. :cowboy:
[Android Apps and Games] DiamondJohn:
I don't think anything changed within TeMeFI for this process.

As for the high CPU (and therefore battery drain), that's kind of expected, as running the graph is a LOT of processing of the raw data. However, it should finish. One of the "killers" of how long it takes, is how many days since your battery history was reset. My phone automatically resets the history when I charge over 90%; every day or two. Otherwise I could have 4 or 5 days of history, which equates to 000's of rows to be processed.

Run the following report (the source data for the graph), save the results, zip up the results and attach to a post here. I can run your graph using your source data :good:

► Currently Running
► Battery
[COLOR="Blue"]Battery Stats[/COLOR]