• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP][TOOL] TeMeFI comprehensive system Administration

Search This thread

zgfg

Senior Member
Oct 10, 2016
5,727
3,180
Hi. :)

I figured I would reply over here in the TeMeFI thread instead of the Magisk thread.

The detach scripts in TeMeFI are excellent. :sneaky:

DiamondJohn gives an example (happens to be YouTube) back in post # 291 on detaching an app from PlayStore.
Post # 291 - Link

You can also search this thread for detach and YouTube there is quite a bit about it in this thread.

DiamondJohn is always updating and improving TeMeFI.

Cheers. :cowboy:
In fact, there was a slightly different convo in Magisk thread where some Magisk modules were mentioned, Detach being one of them

Anyway, I know for the TeMeFI app. Personally I'm not a fan of detaching (simple disabling Auto Update per apps is good for me) but once again I tested TeMeFI-v1.1.10 and yes, I can successfully detach four apps. It finds YT under the strange name YouTube Language app, but the package name is correct and YT is detached
 

Attachments

  • Screenshot_2021-07-29-08-42-41-275_com.android.vending.jpg
    Screenshot_2021-07-29-08-42-41-275_com.android.vending.jpg
    153.5 KB · Views: 26
  • IMG_20210729_094458.jpg
    IMG_20210729_094458.jpg
    269.2 KB · Views: 27

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
In fact, there was a slightly different convo in Magisk thread where some Magisk modules were mentioned, Detach being one of them

Anyway, I know for the TeMeFI app. Personally I'm not a fan of detaching (simple disabling Auto Update per apps is good for me) but once again I tested TeMeFI-v1.1.10 and yes, I can successfully detach four apps. It finds YT under the strange name YouTube Language app, but the package name is correct and YT is detached
Yeah, I got "YouTube Language App" on one of my phones, but that's what is stored in the Vending dB, its not me. More common is just blanks. I thought of breaking out to AAPT, but I didn't want to add any dependencies. The AAPT methods always return the correct name from the APK.

Its strange that you can get away with simply turning off updates. That is a veeeeeery small part of TeMeFI detach, but alone, it failed for me, and for many others. You dont have anything else weird going on? running the latest Vendor/playstore I assume?

Looking at your detach list, FYI, I tested using Method 2 (significantly gentler than Method 3) and only youtube and youtube music failed. So All mine are method 2, except those two. To give you some context, when I had all at Method 3, I have had situations where I was using the playstore, and it just disappeared on me. Method 3 induces an internal crash if the playstore even starts to try and attach any detached apps, which the playstore does not handle or trap, at all. Bad Google ;)
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
5,727
3,180
Yeah, I got "YouTube Language App" on one of my phones, but that's what is stored in the Vending dB, its not me. More common is just blanks. I thought of breaking out to AAPT, but I didn't want to add any dependencies. The AAPT methods always return the correct name from the APK.

Its strange that you can get away with simply turning off updates. That is a veeeeeery small part of TeMeFI detach, but alone, it failed for me, and for many others. You dont have anything else weird going on? running the latest Vendor/playstore I assume?

Looking at your detach list, FYI, I tested using Method 2 (significantly gentler than Method 3) and only youtube and youtube music failed. So All mine are method 2, except those two. To give you some context, when I had all at Method 3, I have had situations where I was using the playstore, and it just disappeared on me. Method 3 triggers an internal crash if the playstore even starts to try and attach any detached apps, which the playstore does not handle or trap, at all. Bad Google ;)
Ok, so I wanted to change method from 3 to 2 for my three apps (all except YT)

I tried: Remove All TeMeFl Artefacts, I confirmed what was asked and it finished

It told me that I have to re-link the apps to Playstore - how should I do it?

Currently, TeMeFl says that the detached list is empty but it doesn't offer any of those four apps to detach again

Also, Playstore still says that all apps are up-to-date (acting like when the apps were detached) but if I e.g. search for YT, it offers me to Uninstall or Update (as if knowing that YT is installed but needing to be updated)

In short, I first want to 're-link' my four apps that were previiusly detached, to get them properly listed in Google Play as needing the updates (please how to do it), then I will detach them again (little playing with your app and learning to use) but this time putting YT to the method 3, the other three apps to method 2

Thanks for your help

PS: My phone is Xiaoni Mi 9T and I'm currently running A11 with MIUI 12.6 (Xiaomi.eu, unofficial weekly builds).
Previously I had stock A9 and A10 with MIUI 10-11, always rooted with Magisk (Canary, various versions).
Also, I always used Vanced YT root
All these ROMs come with the preinstalled GApps, Device is certified, I always pass SafetyNet and I never had any issue with Google Play

And indeed, for me it was enough to have Auto-update disabled for YT - YT (and the other apps like those three others) were showing as Update needed, I was sometimes notified that some apps were needing update, but I never made a mistake to do Update All or e.g. Update YT.
On the other side, Playstore did not (by itself) update my YT
 

Attachments

  • Screenshot_2021-07-29-13-24-34-030_diamondjohndroid.utility.temefi.jpg
    Screenshot_2021-07-29-13-24-34-030_diamondjohndroid.utility.temefi.jpg
    211.9 KB · Views: 21
  • Screenshot_2021-07-29-13-24-19-164_diamondjohndroid.utility.temefi.jpg
    Screenshot_2021-07-29-13-24-19-164_diamondjohndroid.utility.temefi.jpg
    387.1 KB · Views: 23
  • Screenshot_2021-07-29-13-24-53-516_com.android.vending.jpg
    Screenshot_2021-07-29-13-24-53-516_com.android.vending.jpg
    153.3 KB · Views: 22
  • Screenshot_2021-07-29-13-25-12-228_com.android.vending.jpg
    Screenshot_2021-07-29-13-25-12-228_com.android.vending.jpg
    306.1 KB · Views: 22
  • Like
Reactions: ipdev

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
Ok, so I wanted to change method from 3 to 2 for my three apps (all except YT)

I tried: Remove All TeMeFl Artefacts, I confirmed what was asked and it finished

...snip...
Im on my way out, so stopped reading when I saw the above.

"Remove All TeMeFI Artifacts" is a nuclear approach. I have written here before, one of the benefits of methods 2 & 3, is you can safely switch between the two! without removing the previous detachment. Hindsight's a b%@$#

I'lll need to read the other stuff later, probably tomorrow, if I get a chance.

Again, for everyone else, you can switch between Method 2 & Method 3 willy-nilly. You can also re-apply the same method over the top of an existing detachment. I think the playstore has had some major and regular updates of recent, so I would really suggest doing such.
 

ipdev

Recognized Contributor
Feb 14, 2016
1,504
1
1,893
Google Nexus 10
Nexus 7 (2013)
Ok, so I wanted to change method from 3 to 2 for my three apps (all except YT)

I tried: Remove All TeMeFl Artefacts, I confirmed what was asked and it finished

It told me that I have to re-link the apps to Playstore - how should I do it?

Currently, TeMeFl says that the detached list is empty but it doesn't offer any of those four apps to detach again

Also, Playstore still says that all apps are up-to-date (acting like when the apps were detached) but if I e.g. search for YT, it offers me to Uninstall or Update (as if knowing that YT is installed but needing to be updated)

In short, I first want to 're-link' my four apps that were previiusly detached, to get them properly listed in Google Play as needing the updates (please how to do it), then I will detach them again (little playing with your app and learning to use) but this time putting YT to the method 3, the other three apps to method 2

Thanks for your help

PS: My phone is Xiaoni Mi 9T and I'm currently running A11 with MIUI 12.6 (Xiaomi.eu, unofficial weekly builds).
Previously I had stock A9 and A10 with MIUI 10-11, always rooted with Magisk (Canary, various versions).
Also, I always used Vanced YT root
All these ROMs come with the preinstalled GApps, Device is certified, I always pass SafetyNet and I never had any issue with Google Play

And indeed, for me it was enough to have Auto-update disabled for YT - YT (and the other apps like those three others) were showing as Update needed, I was sometimes notified that some apps were needing update, but I never made a mistake to do Update All or e.g. Update YT.
On the other side, Playstore did not (by itself) update my YT
Clear the cache and storage for PlayStore.
This will revert PlayStore back to system installed version.
This will also revert to Auto-update.
Make sure to turn off Auto-update on all the apps you do not want to auto-update.

Note: This will effect you Google account.
If you have other devices logged into the same Google account, Google might sneak the update to one of them before you turn off the Auto-update.
Make sure Auto-Update is still turned off on all device linked to the account.​

Cheers. :cowboy:

PS.
I utilize the Auto-Update option.
I have been kicked in the butt a few times when testing/clean flashing a device.
Collateral damage on a different device since it shares my Google login.​

PPS.
I am guessing that is why some have issues utilizing the Auto-Update option in PlayStore.
All it takes is one device (logged in) to default PlayStore settings.

PPPS.
I am signed up for a lot of beta apps that I install from PlayStore but, I choose when I install them.
I do not let beta apps Auto-Update.
 
  • Like
Reactions: pocketrule

zgfg

Senior Member
Oct 10, 2016
5,727
3,180
Im on my way out, so stopped reading when I saw the above.

"Remove All TeMeFI Artifacts" is a nuclear approach. I have written here before, one of the benefits of methods 2 & 3, is you can safely switch between the two! without removing the previous detachment. Hindsight's a b%@$#

I'lll need to read the other stuff later, probably tomorrow, if I get a chance.

Again, for everyone else, you can switch between Method 2 & Method 3 willy-nilly. You can also re-apply the same method over the top of an existing detachment. I think the playstore has had some major and regular updates of recent, so I would really suggest doing such.
Clear the cache and storage for PlayStore.
This will revert PlayStore back to system installed version.
This will also revert to Auto-update.
Make sure to turn off Auto-update on all the apps you do not want to auto-update.

Note: This will effect you Google account.
If you have other devices logged into the same Google account, Google might sneak the update to one of them before you turn off the Auto-update.
Make sure Auto-Update is still turned off on all device linked to the account.

Cheers. :cowboy:
Sorry but I did not see how can I switch from 3 to 2 - by which practical steps/options in TeMeFl

And also, frankly, I expected TeMeFl to provide its way for user to easily un-detach apps - doing automatically 're-linking' or whatever is necessary to return back to the original position, as before detaching

Anyway, I manually un-detached/re-linked three apps successfully - in a nutshell:
- I searched for them in Playstore
- then I used Update (that 're-linked' those apps back to Playstore), and then Uninstall
- after that installed them manually again but their older versions (downloaded from ApkMirror)

For those three apps I am back now in the original position (as before trying the TeMeFl):
Playstore shows them, offers Update but I have disabled Auto update (and this time I will no more detaching them)

For YT it was little bit more complicated/different (because of Vanced root and its mounting), but no need to elaborate here - I have YT Vanced root now back (with YT listed again in Playstore, asking for Update - but with Auto update disabled) - hence also fully back to as before detaching

In short, those three apps I 're-linked' as above

For the forth app I will play today or over the weekend. That's the dual-authentication app for my work - I don't want to uninstall because I will loose credentials given by our IT. Maybe I could simply update (I prevented its updates since I didn't want to risk issues with that app detecting root - for the older version Magisk hide was enough to shut it up complaining about the root)
 
Last edited:
  • Like
Reactions: pocketrule

ipdev

Recognized Contributor
Feb 14, 2016
1,504
1
1,893
Google Nexus 10
Nexus 7 (2013)
Sorry but I did not see how can I switch from 3 to 2 - by which practical steps/options in TeMeFl

And also, frankly, I expected TeMeFl to provide its way for user to easily un-detach apps - doing automatically 're-linking' or whatever is necessary to return back to the original position, as before detaching

Anyway, I manually un-detached/re-linked three apps successfully - in a nutshell:
- I searched for them in Playstore
- then I used Update (that 're-linked' those apps back to Playstore), and then Uninstall
- after that installed them manually again but their older versions (downloaded from ApkMirror)

For those three apps I am back now in the original position (as before trying the TeMeFl):
Playstore shows them, offers Update but I have disabled Auto update (and this time I will no more detaching them)

For YT it was little bit more complicated/different (because of Vanced root and its mounting), but no need to elaborate here - I have YT Vanced root now back (with YT listed again in Playstore, asking for Update - but with Auto update disabled) - hence also fully back to as before detaching

In short, those three apps I 're-linked' as above

For the forth app I will play today or over the weekend. That's the dual-authentication app for my work - I don't want to uninstall because I will loose credentials given by our IT. Maybe I could simply update (I prevented its updates since I didn't want to risk issues with that app detecting root - for the older version Magisk hide was enough to shut it up complaining about the root)
All you need to do is clear PlayStore.
Occasionally PlayServices if PlayStore does not update and/or re-scanning your device.

TeMeFI's detach will not survive a PlayStore reset. ;)
I am not sure if any detach method would.

By clearing and resetting PlayStore, Google will once again take over updating every app it can.
Even if it was installed from Amazon or Samsung.
Google being Google, if the package name is the same, Google will take over.
You might not be able to initially install an app from PlayStore but, if it is installed Google will claim it.

This will return PlayStore to default settings (Auto-Update).
That is why the majority of my previous post was a warning about resetting PlayStore.
I have reset PlayStore many times so I know what to watch out for, I did not want to suggest something without full disclosure. ;)

Cheers. :cowboy:
 

zgfg

Senior Member
Oct 10, 2016
5,727
3,180
PS.
I utilize the Auto-Update option.
I have been kicked in the butt a few times when testing/clean flashing a device.
Collateral damage on a different device since it shares my Google login.

PPS.
I am guessing that is why some have issues utilizing the Auto-Update option in PlayStore.
All it takes is one device (logged in) to default PlayStore settings
When I had several Android devices logged in to the same G account, I always had coherent Playstore settings accross all of them:

If an app had Auto-Update disabled on one device, that app was either not installed on other device(s) or it had also Auto update disabled on the other device(s)

E.g., two devices were rooted and both had Vanced YT root (and YT disabled for Auto update).
Third device was not rooted, hence I had Vanced non-root YT (and the official YT was not installed to that device)
 
  • Like
Reactions: pocketrule

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
...snip...

Anyway, I manually un-detached/re-linked three apps successfully - in a nutshell:
- I searched for them in Playstore
- then I used Update (that 're-linked' those apps back to Playstore), and then Uninstall
- after that installed them manually again but their older versions (downloaded from ApkMirror)

...snip...
Its late, so I will address only the point above.

You were close. What I have used (and presented above a few times I think) is that I have pressed the Update button in the playstore BUT click the cancel before it finishes downloading. That appears to get the app attached in the playstore, and then I can quickly detach it before it goes into its forced auto update mode. NB: for most, YT updates even with updates turned off.

Doing the above, means you dont have to uninstall any updates and/or reinstall your older version.

PS: Clearing the playstore data is nuclear with a side of antimatter approach. My "remove artifacts", basically tries to clear the cache/data for only the detached apps (as well as all my injected stuff), as opposed to everything.
 

zgfg

Senior Member
Oct 10, 2016
5,727
3,180
Its late, so I will address only the point above.

You were close. What I have used (and presented above a few times I think) is that I have pressed the Update button in the playstore BUT click the cancel before it finishes downloading. That appears to get the app attached in the playstore, and then I can quickly detach it before it goes into its forced auto update mode. NB: for most, YT updates even with updates turned off.

Doing the above, means you dont have to uninstall any updates and/or reinstall your older version.

PS: Clearing the playstore data is nuclear with a side of antimatter approach. My "remove artifacts", basically tries to clear the cache/data for only the detached apps (as well as all my injected stuff), as opposed to everything.
Brilliant. Yes, I was close but didn't think that 'dirty'🤩

Anyway. It worked for my fourth app, it takes all together few seconds, it's easy, and without loosing the app data/settings (as if updating and then uninstalling) - thanks for the tip👍
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
A LOT to cover in a very small window, i'll try to catch as much as I can
I tried: Remove All TeMeFl Artefacts, I confirmed what was asked and it finished
There is a "hint" in the confirmation and also, its an opportunity for people to confirm in their own minds, they understand what they are about to do and the associated risks and consequences.

For the remove all artifacts, I do mention that YOU will need to re-attach all apps, so obviously TeMeFI wont do it for you. You cant expect me to also document every step to revert, in the confirmation.
Are you certain you wish to remove ALL Detach mechanisms for ALL detached apps?

NB: You will need to re-link the apps you have previously detached.


It told me that I have to re-link the apps to Playstore - how should I do it?
Patience, by letting Google catch up, OR as described above; which you can now see is pretty darn quick, easy and painless. ahhh.... and undocumented by google.

Currently, TeMeFl says that the detached list is empty but it doesn't offer any of those four apps to detach again
Come-on, you cant expect TeMeFI to make you breakfast. And again, the little trick above, does the job, and much better than I could ever hope to do. Thats what re-attaching apps is all about, so you can detach them.

Also, Playstore still says that all apps are up-to-date (acting like when the apps were detached) but if I e.g. search for YT, it offers me to Uninstall or Update (as if knowing that YT is installed but needing to be updated)
And THAT would be a sidestep by google. They use the ommission to imply its up tpo date, when in reality they dont know about it yet. They are far from perfect. The fact I can do the detach shows at least one of their failings, and even more so, that they do not trap the error I induce; which adds to the strength of my detach. I do not replace the playstore, this behaviour is part of the smoke and mirrors google use.

.... and I never had any issue with Google PlayAll apps "work" up until they do not. What we are doing is pushing the PlayStore to a boundary condition, and its at this point the cracks begin to show, Remember, most serious car accidents are when people drive the car beyond the car (or their own) limits. In programming and engineering, boundary conditions are the most common points of failure, for things that appear perfectly fine to the average ma & pa user

PPS.
I am guessing that is why some have issues utilizing the Auto-Update option in PlayStore.
All it takes is one device (logged in) to default PlayStore settings.

PPPS.
I am signed up for a lot of beta apps that I install from PlayStore but, I choose when I install them.
I do not let beta apps Auto-Update.
I and many others have found turning auto-updates is NOT nearly enough for a few apps, YouTube being one. What version of the PlayStore are you running? I dont think you would be allowed to connect with too old a version, but its an entry point to maybe understand your particular case. It is the exception rather than the rule.

Sorry but I did not see how can I switch from 3 to 2 - by which practical steps/options in TeMeFl
This may be one of those forehead slapping moments. In TeMeFI, you can detach an app that is already detached. Its a method I used originally to correct any failures that may of occurred over time (especially during dev as I built it up or changed it). Within the process, you can select which method, but there is nothing (etc M1) stopping you from selecting a different method to whatever it currently is. So, you can select to detach App1 that is currently method 3, but then select method 2! or vice-versa. For switching between Method 2 & 3, its totally safe. However, once you go method 1, you have to manually re-attach, AFTER you first remove method 1 from the app.

And also, frankly, I expected TeMeFl to provide its way for user to easily un-detach apps - doing automatically 're-linking' or whatever is necessary to return back to the original position, as before detaching
Are you serious?!
1. I have shown (and you now understand) that there is an easy way to get google to do it, and better than I could ever hope to do
2. The detach is only 1 of >500 methods, and I am only a single dev, not a team like google.
3. The attachment is VERY complex (its a BIG job) and completely undocumented by google. "return back to the original position" would be very complex if at all possible (returning back to original would possibly be incorrect, as google have moved), prone to errors since its undocumented, and again, google does it for you.
4. All children are taught that its MUCH easier to push Humpty Dumpty over the wall, than it is for all the kings men to put him back together again! ;) There are around 30 layers to the detachment, with each needing to be "undone" / reverted, and again, its a big undocumented black box as to what it should be.
5. Read the OP, this is an app I built for me, that I share, and do not charge for it. ie your looking in the mouth of a "Gift Horse"

edit: think the word you were looking for was "like" not "expect" ;)

For the forth app I will play today or over the weekend. That's the dual-authentication app for my work - I don't want to uninstall because I will loose credentials given by our IT. Maybe I could simply update (I prevented its updates since I didn't want to risk issues with that app detecting root - for the older version Magisk hide was enough to shut it up complaining about the root)
This app sounds important to you not to risk updating it. As its not google, I doubt they will be too protective (so Method 2 should suffice), but I personally would suggest Method 3, as it sounds like it might screw you badly if it does get updated.

Brilliant. Yes, I was close but didn't think that 'dirty'🤩
But doesn't it feel goooood to roll around in the filth... You walked into the shadows as soon as you detached your first app. Actually, rooting your phone was an even earlier infraction, you cant play all sweet and innocent.

Anyway. It worked for my fourth app, it takes all together few seconds, it's easy, and without loosing the app data/settings (as if updating and then uninstalling) - thanks for the tip👍
And now why, I do not do an attempt to re-attach becomes abundantly clear, with how easy it is to get google to do the heavy lifting, and minimise any risk of dropping something fragile.
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
5,727
3,180
A LOT to cover in a very small window, i'll try to catch as much as I can

There is a "hint" in the confirmation and also, its an opportunity for people to confirm in their own minds, they understand what they are about to do and the associated risks and consequences.

For the remove all artifacts, I do mention that YOU will need to re-attach all apps, so obviously TeMeFI wont do it for you. You cant expect me to also document every step to revert, in the confirmation.




Patience, by letting Google catch up, OR as described above; which you can now see is pretty darn quick, easy and painless. ahhh.... and undocumented by google.


Come-on, you cant expect TeMeFI to make you breakfast. And again, the little trick above, does the job, and much better than I could ever hope to do. Thats what re-attaching apps is all about, so you can detach them.


And THAT would be a sidestep by google. They use the ommission to imply its up tpo date, when in reality they dont know about it yet. They are far from perfect. The fact I can do the detach shows at least one of their failings, and even more so, that they do not trap the error I induce; which adds to the strength of my detach. I do not replace the playstore, this behaviour is part of the smoke and mirrors google use.




I and many others have found turning auto-updates is NOT nearly enough for a few apps, YouTube being one. What version of the PlayStore are you running? I dont think you would be allowed to connect with too old a version, but its an entry point to maybe understand your particular case. It is the exception rather than the rule.


This may be one of those forehead slapping moments. In TeMeFI, you can detach an app that is already detached. Its a method I used originally to correct any failures that may of occurred over time (especially during dev as I built it up or changed it). Within the process, you can select which method, but there is nothing (etc M1) stopping you from selecting a different method to whatever it currently is. So, you can select to detach App1 that is currently method 3, but then select method 2! or vice-versa. For switching between Method 2 & 3, its totally safe. However, once you go method 1, you have to manually re-attach, AFTER you first remove method 1 from the app.


Are you serious?!
1. I have shown (and you now understand) that there is an easy way to get google to do it, and better than I could ever hope to do
2. The detach is only 1 of >500 methods, and I am only a single dev, not a team like google.
3. The attachment is VERY complex (its a BIG job) and completely undocumented by google. "return back to the original position" would be very complex if at all possible (returning back to original would possibly be incorrect, as google have moved), prone to errors since its undocumented, and again, google does it for you.
4. All children are taught that its MUCH easier to push Humpty Dumpty over the wall, than it is for all the kings men to put him back together again! ;) There are around 30 layers to the detachment, with each needing to be "undone" / reverted, and again, its a big undocumented black box as to what it should be.
5. Read the OP, this is an app I built for me, that I share, and do not charge for it. ie your looking in the mouth of a "Gift Horse"

edit: think the word you were looking for was "like" not "expect" ;)


This app sounds important to you not to risk updating it. As its not google, I doubt they will be too protective (so Method 2 should suffice), but I personally would suggest Method 3, as it sounds like it might screw you badly if it does get updated.


But doesn't it feel goooood to roll around in the filth... You walked into the shadows as soon as you detached your first app. Actually, rooting your phone was an even earlier infraction, you cant play all sweet and innocent.


And now why, I do not do an attempt to re-attach becomes abundantly clear, with how easy it is to get google to do the heavy lifting, and minimise any risk of dropping something fragile.
You really not needed to answer that long story

Your trick with update/cancel was enough. All the rest can be derived from (like the Lego pieces - the other cornerstone piece is of course the TeMeFl detach mechanism)
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
You really not needed to answer that long story

Your trick with update/cancel was enough. All the rest can be derived from (like the Lego pieces - the other cornerstone piece is of course the TeMeFl detach mechanism)
it was not just for you, but you asked the questions / statements that many others are probably thinking. I saw by the history, that you now understood the way to re-attach. And I know I repeated myself a few times, but it was easier than reading and sorting out the whole response.
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
New Version v1.1.11

The following items are of special interest
  • Bug fix, battery history can now display more hours (prev limit around vertical bars) and a few other more minor items
  • Added some summary info to the battery history (see below)
  • Added "System Apps Privileged Permissions" & "Updated System Packages"

More than 3 days
00 more than 3 days.PNG


The added summary at the end of the battery history report

01 new summary info.PNG

Download: SEE OP!

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

Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"
All should be the ones mentioned above.

*** DETACH INFO ***
Google have had a major update and numerous minor updates to the playstore, one (or more) of which have damaged the things I do to detach apps. When I recently ran a check on my detachments, they had multiple failures in the report, the report actually had its own crash, however, I did NOT have any updates sneak through from the playstore.

I ran the re-detachment of a single app, and that fixed all of my detachments. There is a lot of shared code, and i also do a little clean up every time you detach an app.

However, because I did the above before saving off the errors / issues, I lost what was actually wrong. So, before you run the detach to fix them all, if you habve the issues, could someone post the saved off report (not a screenshot) and also the error. Simply press the bomb icon and then save that off.


Enjoy and stay safe.
 
Last edited:

pocketrule

Senior Member
Sep 23, 2016
305
381
Proposal: In battery history graph number not only segments of the y axis, but also time elapsed on x-axis
 

Attachments

  • BatteryStat.png
    BatteryStat.png
    22.8 KB · Views: 19

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
Proposal: In battery history graph number not only segments of the y axis, but also time elapsed on x-axis
EDIT: Huh? I dont understand your question or is it a statement?
Thanks for your suggestion, but its already been through my head, many times.

The data provided by android is really NOT in any easily switchable to human readible time format; I do a lot of tap dancing to convert the times as it is. I DO provide the starting time (which could be down to a second break) in the table below the graph, but each X-Axis marker is exactly one hour, regardless of the start time. The interval/times ares based from the perspective of the phone, which in its head, existence started at the start of the graph. To aid the estimation even further, the ticks are Biggest every 4 hours, smallest every hour and the 2Hr tick is medium size. Makes it very easy to quickly estimate the interval. So, your marked interval is around 6 hours. Also, in the summary tables below the graph, I give the exact timings for a few things, in human readable format; which is NOT in the data, I had to convert it between milliseconds to days, hours, minutes, seconds and milliseconds. You will see below the graph it will say something like Shutdown 6:05:00.00

Additionally, if you click on a bar in the graph, an info box pops up with the start time, end time, duration and plotted value.

So the interval is covered by the tick marks, and the actual times are covered by the info box. Doing otherwise would be a LOT more development, for in my eyes smaller respective gains.

FYI: I have done a bit of further work on the graph with the summary info
Capture.PNG

PS: While doing/testing this work, it occurred to me it may be possible to do a quick and dirty time shift on all the data before plotting it, to bring the start time back to the nearest whole clean hour. So if the graph starts at 09:05:23.765 It MAY be easy to shift all the times 00:05:23.765 forward, so it actually starts at 09:00:00.000. Again, I repeat, haven't check if it would be easy, but even then, it will start at some"random" whole hour, so if its 9, the 4 hour breaks would be at 9am, 1pm, 5pm, 9pm, 1am etc etc etc
 
Last edited:

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,556
5,309
Sydney
It's a wish. Maybe you wanna implement additional information about elapsed time like in the attached image - in green colour.
edit: added running hours and / or time - in blue colour
I thought u may of caught my rubbish post before I corrected it. Sorry for misinterpreting it the first time.

Also, when you click on a time interval marker, that also brings up a message window. As for marking the numbers on the graph, it got VERY messy when I ran the graph for a few days of history with not much width, with the text overlapping and thereby being completely unreadable and visually distracting. Imagine the mess if the following graph had the text on every tick; or even every 4th tick.

Screenshot_20210804-110944.png

If you click on a graph bar, you will get:
Screenshot_20210804-111234.png

And clicking on a tick already gives you the same info your edited image provides.

Additionally, if you save off the graph, and transfer the file to your desktop, these extra info boxes will appear as hover text.

PS: I PERSONALLY find the "4 - Discharge rate ...." graph a lot more informative. But its a personal preference, as they both show the same amount of data.
 
Last edited:
  • Like
Reactions: pocketrule

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    As for the number being greater, the list also includes items the playstore has attached in the background, but keeps as a secret from the user. For example, the playstore itself!
    It also include apps that have recently been uninstalled and all of the Google Play system updates.
    2
    Cheers! I just restarted my system and it does appear in the list now. Detach worked smooth as always. Any reason why only 47 items are visible in that list? I have over 270 PS apps installed.
    As I have said many times. You can only detach items that are attached in the playstore data. The list presented by TeMeFI is what the playstore records as attached. Just because they are installed, does not guarantee the playstore has attached it in its own records. For example, if you clear the playstore data, all your apps would still be installed. But it will take some time before it catches up with its house-keeping. NB: deleting the data will also clear all your detachments (as there is nothing attached anymore).

    No idea, I have183 apps listed and only 130 installed.
    As for the number being greater, the list also includes items the playstore has attached in the background, but keeps as a secret from the user. For example, the playstore itself!
    2
    Good morning! Detach worked fine for YT but can't find YT Music (both Vanced). I just can't see its proper package name (com.google.android.youtube.music?). Does it have another name in TeMeFi? The list seems to be very limited when selecting 'DETACH: Select Package then Protection level v5'. Using version 1.1.12
    It should be listed as: com.google.android.apps.youtube.music
    You also probably experienced the lag in time between having the app installed (NOT through the playstore) and the playstore assimilating the link with your installed app(s), I have vanced youtube installed, but have the music one detatched and frozen.
    2
    Thank you again for turning me onto this application, I can't believe I've been so dense to let this slip under my radar for so long, but to be fair up until I got the Pixel 5 I more or less only entered the HTC 10 threads. You're a true gem. The lifeblood of XDA. And the more I use TeMeFi, the more I'm finding! and the more I'm loving, it's truly awesome.
    Alright, so quick question regarding the booloop blocker module. I've read up, and I see you mainly use it for new module testing which is a wonderful idea, especially for us Pixel users on A11 without TWRP, and something I will certainly be getting into the habit of AND allow me to test my own and other Modules with much less fear.
    OK, so I'm having a little bit of an issue following just exactly how it works, and will include my other question along the way. I *think* the way to use it would be to flash the Module in Magisk, then, over to TeMeFi, and choose your Module, and then your options from their. I apologize if I'm wrong.
    Now onto my question. So I see that you have the *NONE* option in the beginning of the Module section., and I'm curious if it works the way that I'm thinking. Will this remove ALL my modules if I am hit with a bootloop, after my chosen selecting. Like say I'm out and about and I've chosen *NONE* for Modules, then Disable on *NONE*, Flag removal on *NONE*, Delete on 8. Will this remove all my Modules after the 8 bootloops?
    Thank you for your time!
    Andrew
    And again from a PM. Please, unless there is something specifically private, this thread is a better option than a PM, where only you would be helped.

    No, *NONE* literally means *NONE* and not *ALL*. They are complete opposites in the english language. You may choose to only disable, and let Magisk handle it. The delete is the "big guns" with a physical delete of the files. And hence its the "last resort".

    I *try * to include a toast explaining what each step of all methods actually mean/do. If you miss the toast the first time, if you long press the home icon, it reloads the current step/menu, and thus also re-displays the toast, giving you a another/better opportunity to read what you may have missed. the first time, for whatever reason. I personally use this feature all the time. You can also long press the menu item and "Preview" the code, or what is used to fill the following sub-menu. On a side, everything has a short AND a long click action in the UI. And hence the second post in this thread, although its outdated. The code tells you EXACTLY what it does and how.

    As for this method and A11. As I said previously, it doesn't work for me in A11. I havent spent the time investigating as to why not.
    2
    I'm a bit confused about the A11 part as initially in the post explanation of bootloop blocker, you mention the use on A11.
    Unless I'm not understanding something correctly.
    I updated the post. My daily is a P4 running A11 and I built it with that n mind, but the dev and testingwas done on my old device,, runnoing oreo. I didnt see why it wouldnt (and stilldont) work in A11. I have updated that post to make note of the issue. Thanks.

    I guess the way I interpreted the Module was more of a "Random Bootloop Blocker", which is my fault, as you mentioned in the post explanation, having no TWRP, makes it difficult when on the go, running into a bootloop, and it would be interesting, if could setup (not asking you just stating) a sort of protection against these bootloops, and have it go ahead and delete ALL the modules fully when the device bootloops more than your desired X number. Can't say I'd be good at trying to accomplish this, but that's half the fun, I think, right?
    Its not really a "RAndom Bootloop" stoper, as running it all the time, would eventrually disable the selected module, unless you reset it every few boots, before it went into action.

    To disable ALL modules, thats already handled by Magisk built in features. The idea of this feature was to automaiclly disable one, without haviongto reconfigure all the others.
  • 103
    TeMeFI

    icon_source3.png

    This app provides/returns a bucket load of information regarding your device and the currently running ROM, and much, much more. And hence the name "TeMeFI"; as its Too Much F????? Information. The F stands for whatever your comfortable with.;)

    TeMeFI v1.1.12
    MD5: ea4011eda6519300c65337355faaf592

    Simply download the APK and install as normal, and allow root when asked, and grant storage permissions. I *think* the very first time you run it, there possibly may be an issue with the menu. Simply stop and restart the app.

    You can use it without root, but you will be HEAVILY limited in what you can do. Also, installing busybox opens another menu for you, and so does Magisk (17.*+). SQLite3 is also a HUGE feature adder (ie if you have it, it enables many many methods). Can be installed via Magisk if your ROM does not have it by default.

    If you are unrooted, have a read of the following post, regarding a recently added feature for non-root users

    The "search" function is very useful for finding what you need, but it does not search inside dynamic menu's. Its the magnifying glass in the slide out toolbar/menu

    The current menu can be viewed within the app at TeMeFI Configuration>Show Whole Menu or a historic example at: CURRENT MENU [as at 2021-08-07]

    XDA:DevDB Information
    [APP][TOOL] TeMeFI comprehensive system documentation & action, App for all devices (see above for details)

    Contributors
    DiamondJohn

    Version Information
    Status:
    Stable
    Current Stable Version: 1.1.12
    Stable Release Date / Last Updated: 7 Aug 2021
    Current Beta Version: 1.0.3
    Beta Release Date: 2018-06-21

    Created 2018-06-19

    I will fill in this page as I get around to it.
    18
    Fly-out Toolbar items and their Actions

    The fly out toolbar has had its buttons and their corresponding actions change over time. However of recent, they have been pretty stable, and as they have changed over time, and I probably said what / how their function changed, its probably all over the thread. So, I thought it might be best to have a single location / doco of what the current buttons actually do.

    Firstly, to display the toolbar, simply click on the menu. If it isn't already showing.
    MenuButton.png

    EVERY button, has both a "short-press" and "long-press" action.

    The icons kind-of relate to their short press action.

    NB The following are from v1.0..19 The main difference are a long press on the [<] arrow goes back to the previous results, and a long press of the [HOME} icon reloads the current menu (useful if you filtered the menu items), and a long press on the pencil icon saves off the action as a favourite. Also, the long press on the exit icon [X] acts to filter a menu list that was generated by code. eg any list of installed apps
    For Short-press actions:
    Shortpress menu actions.png

    For Long press actions
    Longpress menu actions.png

    If you get an error, a toast will be shown which is HEAVILY CUT DOWN, so please no screen shots! :mad: Also, in a recent release a Bomb Icon will appear on the screen after an error. Short press to display then FULL error, or long press the bomb to clear the error. It will not clear by itself.

    And again, NOT a screen shot of the results. Save off the results using the save button (ie the pencil icon explained above), then get the log text file from /sdcard/TeMeFI, and attach it to a post.

    please stop with the screenshots of a cut down error message :cry::cry::cry:
    16
    New Build!

    New Version v1.0.77

    Download: SEE OP!

    Notable changes are:
    v2 of detach apps from playstore NB: If you are already using it, simply reapply the method. Method 3 is recommended for YouTube, but all 3 have been upgraded
    Added touchable hot-spots to the mem info graph
    Added Timezone view and setting
    corrected the loading of the previous results when displaying the covid pages

    Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"
    Application Info / Manage>Detach Package from Playstore>Select Package then Protection Level v2
    Application Info / Manage>Detach Package from Playstore>List all configured detached apps
    Currently Running>Memory>Meminfo Usage Graph by Category
    Currently Running>Memory>Meminfo Usage Graph by Process
    Currently Running>Memory>Meminfo Usage Graph by OOM
    Various Ungrouped Extras>COVID-19 Status Update
    Various Ungrouped Extras>COVID-19 Status Update>COVID-19 Status Update Desktop

    New Items. within the menu at "TeMeFI Configuration>Latest Added Menu Items"
    Current State>Timezone>Set Current Timestamp (ROOT)
    Current State>Timezone>Set Current Timezone
    Current State>Timezone>Get Current Timezone
    Current State>Timezone
    Current State>Timezone>Get Current Timezone (ROOT)

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

    Enjoy and stay safe.
    14
    New Build!

    New Version v1.0.66

    This release is a major update.:eek:

    Download: SEE OP!

    • Added a new type of battery history graph. Type 4. This new one plots the battery drain % per hour (user selectable max range) with the colour of the block as the battery level %.
    • corrected spelling of "Manage Permission" to "Manage Permissions"
    • Removed duplicate battery reset, changed it to a short cut
    • Moved a bunch of battery stuff into a new menu of "Currently Running>Battery" INCLUDING the battery history graph
    • moved running processes into a sub menu
    • moved a bunch of dumpsys commands from various location to mostly be under the single menu item "Current State>Dumpsys"
    • Added LMK details
    • Added Setting of LMK min memory values
    • Added Setting of LMK min memory break OOM levels and their mod
    • On the new battery history graph, the horizontal ruler count depends on the % (4-4 lines, 25=5 lines, 50=5 lines 100=4 lines and 200 = 10 lines)
    • added a colour map/legend to battery history graphs that use it
    • Added a few other menu items/actions
    • Improved handling of device rotation/orientation and switching to another app and back again

    As you can see below, there have been a lot of changes to the internal code that run reports, and perform the actions.

    However, the BIG new feature is the "Currently Running>Battery>Battery History Graph", I have now added a new way to look at your battery history.
    "4. Discharge Rate as vertical height and Battery Level as the Gradient Colour (Green=100%, Red=0%)"​

    THIS NEW GRAPH IS THE BIG ADDITION! It is truly my latest obsession. It displays your battery discharge rate / hour as the vertical height (so the lower the better), and the colour of the graph shows your battery level (it should basically fade from green to red, left to right) And logically, the higher the graph, the faster the change in colours. NB: My phone has a removable battery, so you can see jumps where I changed battery, instead of charging the one in the device. Another interesting fact that comes out in the graph, is the jump in discharge (ie the height) during a boot and shutdown, which makes totally logical sense.:good:

    This graph is an early build, so should be considered a WIP:p. 90% of the time, it appears OK:victory:, but I have seen some questionable results (minor) if the device is rebooted and switched between charging often. I thought it was good enough for a first release :highfive:

    It takes some time in getting a firm grasp of exactly what you are looking at, but once you do, its like you can see the "Matrix" :cool:

    NB: This graph is in addition to the previously provided graphs.

    You can view the new graph at 4%/hour (with each horizontal line at 0.5% intervals), 25%/hour (with each horizontal line at 5% intervals), 50%/hour (with each horizontal line at 10% intervals), 100% (with each horizontal line at 25% intervals) and 200% (with each horizontal line at 10% intervals). (and a few others I added at the last minute:rolleyes:)

    An important concept to understand, is the 100% / hour would mean your battery would be dead in an hour, IIIFFFF the graph showed that it was running at full tilt for the full hour.

    There is also a colour chart/grid below the graph to help translate the colours to actual battery levels. But again, if you transfer the file to a pc, the mouse hover should give you the details (I didn't test it, but I did not change it either)

    When its charging, it may appear to flip up and down. This is due to the source data being in whole numbers (ie integers, eg 1 instead of 1.5), so it it charges at 3% per 2 minutes, it will report 1 minute at 1% and then the next minute at 2%, and then back again, and hence the flip/jumping up and down.

    Its good to use the 4% to check your idle drain (mine goes below .5%! which would mean theoretically 200hrs if it stayed like that; but I normally get about 25hrs due to actually using the phone). I switch to one of the higher (ie 25-200%) graphs to see just how high the peaks go for a very short time.

    The other BIG thing is the Low Memory Killer (ie LMK) items.


    Also, its been there a while, but wake-locks are under the new battery menu as well.

    Totally New Items. within the menu at "TeMeFI Configuration>Latest Added Menu Items"
    Code:
    These first two are simply shortcuts to the original items found in a different location within the menu. Just saves navigating back and forth when investigating/correcting the MediaDB
    	Database>MediaDB SQL>Extend Shortcut: Media Scan File(s) [Java] - Date Range
    	Database>MediaDB SQL>Extend Shortcut: Media Scan File(s) [Java] - Start Character
    
    General info regarding the internal action items. I mainly use this for info and as an integrity check of the menu system before I do a release, in case of a typo.
    For example, The first one is a listing of where I have used shortcuts, which in a way are a duplicate, but only as an entry point. There is only a single version of the code.
    	TeMeFI Configuration>TeMeFI Internal Database Information>Menu / Action Shortcuts
    	TeMeFI Configuration>TeMeFI Internal Database Information>Action Type Breakdown
    	TeMeFI Configuration>TeMeFI Internal Database Information>Count of Child Menu Items
    	TeMeFI Configuration>TeMeFI Internal Database Information>Duplicate Sort Order
    	TeMeFI Configuration>TeMeFI Internal Database Information>Missing Parent Menu Item
    	TeMeFI Configuration>TeMeFI Internal Database Information>Missing Expand Prefix
    	TeMeFI Configuration>TeMeFI Internal Database Information>Menu with No Children
    	TeMeFI Configuration>TeMeFI Internal Database Information>Missing Action Command
    	TeMeFI Configuration>TeMeFI Internal Database Information
    
    These allow you to view AND modify your LMK. NB: The third item in the list actually has ALL the config detils (mem va;lsand OOM val's) while the first has a bit of textural background explaining LMK values somewhat.
    	Currently Running>Memory Info>Low Memory Killer (LMK)>Current OOM to LMK Min Memory
    	Currently Running>Memory Info>Low Memory Killer (LMK)>Current LMK Min Memory Free Values
    	Currently Running>Memory Info>Low Memory Killer (LMK)>Set OOM to LMK Min Memory Free Break Points
    	Currently Running>Memory Info>Low Memory Killer (LMK)>Set LMK Min Memory Free Values
    	Currently Running>Memory Info>Low Memory Killer (LMK)
    
    	Currently Running>Battery>Battery Files /sys/class/power_supply/battery
    	
    	Currently Running>Broadcasted Activity Intents
    	Currently Running>Battery>Battery Properties & Health
    	Currently Running>Battery>Battery Reset
    	Device Details>Kernel>CPU Scheduler Features
    	Dynamic Lists>Files>Data System
    
    	Currently Running>Running Processes
    	Currently Running>Battery

    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"
    Code:
    TeMeFI Configuration>TeMeFI Internal Database Information>Count of Child Menu Items
    TeMeFI Configuration>Get default Blob Config      
    Currently Running>Memory Info>Low Memory Killer (LMK)>Current OOM to LMK Min Memory
    Currently Running>Memory Info>Low Memory Killer (LMK)>Set OOM to LMK Min Memory Fre
    Database>Dynamic DB Queries>Two Field Table Filter
    Database>Dynamic DB Queries>Filtered Delete Table Data
    Database>Admin Actions>Individual PRAGMA statements against a Table
    Database>Dynamic DB Queries>Complex Filtered Table Data
    Database>Dynamic DB Queries>Filtered Delete Table Data
    Database>Dynamic DB Queries>Filtered & Grouped Table Data
    Database>Dynamic DB Queries>Filtered Table Data   
    Database>Dynamic DB Queries>Grouped Table Data    
    Database>Dynamic DB Queries>Two Field Table Filter
    Database>Dynamic DB Queries>All Table data        
    TeMeFI Configuration>TeMeFI Internal Database Information>Action Type Breakdown
    TeMeFI Configuration>TeMeFI Internal Database Information>Duplicate Sort Order
    TeMeFI Configuration>TeMeFI Internal Database Information>Missing Action Command
    TeMeFI Configuration>TeMeFI Internal Database Information>Menu with No Children
    TeMeFI Configuration>TeMeFI Internal Database Information>Missing Expand Prefix
    TeMeFI Configuration>TeMeFI Internal Database Information>Missing Parent Menu Item
    TeMeFI Configuration>TeMeFI Internal Database Information>Count of Child Menu Items
    TeMeFI Configuration>TeMeFI Internal Database Information>Menu / Action Shortcuts
    Database>Dynamic DB Queries>All Table data        
    Database>Dynamic DB Queries>Grouped Table Data    
    Database>Dynamic DB Queries>Filtered Table Data   
    Database>Dynamic DB Queries>Filtered & Grouped Table Data
    Database>Dynamic DB Queries>Complex Filtered Table Data
    Device Details>Display Size                       
    Currently Running>Memory Info>Low Memory Killer (LMK)>Current OOM to LMK Min Memory
    Database>Admin Actions>Run ALL PRAGMA statements for a Database
    Database>Admin Actions>Individual PRAGMA statements against a Table
    Database>Dynamic DB Queries>Complex Filtered Table Data
    Database>Dynamic DB Queries>Filtered Delete Table Data
    Database>Dynamic DB Queries>Filtered & Grouped Table Data
    Database>Dynamic DB Queries>Filtered Table Data   
    Database>Dynamic DB Queries>Grouped Table Data    
    Database>Dynamic DB Queries>Two Field Table Filter
    Database>Dynamic DB Queries>All Table data        
    TeMeFI Configuration>TeMeFI Internal Database Information>Action Type Breakdown
    TeMeFI Configuration>TeMeFI Internal Database Information>Duplicate Sort Order
    TeMeFI Configuration>TeMeFI Internal Database Information>Missing Action Command
    TeMeFI Configuration>TeMeFI Internal Database Information>Menu with No Children
    TeMeFI Configuration>TeMeFI Internal Database Information>Missing Expand Prefix
    TeMeFI Configuration>TeMeFI Internal Database Information>Missing Parent Menu Item
    TeMeFI Configuration>TeMeFI Internal Database Information>Count of Child Menu Items
    TeMeFI Configuration>TeMeFI Internal Database Information>Menu / Action Shortcuts
    Currently Running>Battery>Battery History Graph   
    Device Details>Kernel>SYS Kernel File join        
    Currently Running>Battery>Battery Simulate>Battery Reset

    Enjoy!
    14
    New Build!

    New Version v1.0.82

    Download: SEE OP!

    Notable changes:
    NB: the changes made to the detach methods, are only spelling and extra info. There are no structural/technical changes to the detach methods.
    The battery history changes are covering two aspects.
    1. The formatting is now more in-line with the doze graph (black on white table text for headers/labels)
    2. The Auto-Height has been corrected. I think it currently runs off of a % of items by count, not by time at that discharge rate. Previously it rounded the max up so much, it basically included nearly everything every time.

    Updated Items. within the menu at "TeMeFI Configuration>Latest Updated Menu Items"
    Currently Running>Battery>Battery History Graph
    Application Info / Manage>Detach Package from Playstore>ENABLE ATT: One App for re-attachment
    Application Info / Manage>Detach Package from Playstore>List all configured detached apps

    New Items. within the menu at "TeMeFI Configuration>Latest Added Menu Items"
    Currently Running>Doze>Doze Parameter Description

    Enjoy and stay safe.