yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
What? Do you expect me to read and do YOUR work for you!. Search the internet, Doze is documented everywhere.

TeMeFI has 000's of features, if I explained them all, it would be volumes of text for me to type. And clearly, we already have a reading problem here anyway.

Read the OP, this is not a lecture / tutorial thread . Its simply a share of an app I built for me. Not to tutor the world. I am no lecturer of Android, and only know what I have learnt by reading for myself, or through trial and error. Just as YOU should.

Thats for YOU to decide after doing YOUR research. You can also search the thread AND I have even included some doco within TeMeFI explaining the parameters.

READ about doze, and read what I have said just above./

I am NOT your mummy. READ & Research. If you have to ask, then you obviously do not understand, so the answer would be YES.

Any change carries some risk; not doing anything could also carry a risk.. Thats life. Its your choice for the level of risk you are willing OR able to manage/revert/correct.

This is a root app. It takes responsibility on your part. Remember what you paid for this app, and expect that level of support, and anything above that is a bonus.

I am guessing your only example is your specific and single case. I "find it weird" that anyone would assume because something doesn't work specifically for them, then it wont work for the rest of the world. I have not run A12, but I would be pretty sure that Doze works on A12, and its something specific to YOUR device that is broken/failing.

In English, (normally) words that mean different things are spelled differently. You are confusing "Deep Sleep" which is a CPU term/reference with "Deep-Idle" which is a Doze concept. They are not the same thing. Again, read / search to understand the difference. I think I actually may of mentioned this confusion only a few posts above.
[Android Apps and Games] krkhaha:
Hello guys. I hope you are well. I hope someone can help me. Why I can't see a lot of my app in temefi. I can't see YouTube here and lot else app.
[Android Apps and Games] DiamondJohn:
Where specifically in TeMeFI can you not "see" an app? Which method / menu location? there are literally hundreds of app list locations, and some explicitly exclude certain app types.

Also, do you understand that generally, its not the human friendly app name (as you may know and look for your app) that will appear in lists, but the unique system app code/identifier? The closest / best list by actual app name will be under AAPT Application Info / Manage>Android Asset Packaging Tool>List all App Names, Code, Version & APK Paths The other place I grab it from is the PlayStopre data, however, Google make a number of errors in their own data.

Lets count out youtube for now, in case you have detached it; although that should only hide it from the playstore and not TeMeFI.

You should be able to grab the script and run the script that lists your apps in a shell, or over ADB. ie run the TeMeFI script, outside of TeMeFI.

For example, run the following in a rooted shell cmd package list packages;, and check for a specific app code, not the human readable name.
[Android Apps and Games] rodken:
That is actually interesting considering that Google has a tendency of slipping and falling at a moment's notice.
[Android Apps and Games] DiamondJohn:
Did a quick search, and here is a post where someone else also noted YouTube got the wrong name.

https://xdaforums.com/t/app-tool-temefi-comprehensive-system-administration.3806260/post-86513587

I had it happen multiple times with YouTube when testing, as I deleted and re-instated it over and over again, and it failed often with the wrong name. I think it was consistent and not random, in that it said something to do with "languages". You can check by going to detach YouTube and check what name it shows for you. You dont need to run it to see it.
[Android Apps and Games] rodken:
I will definitely keep this in mind when dealing with that and any other scenario of mismanagement or incorrect unique system app code/identifier(s).
[Android Apps and Games] DiamondJohn:
To be clear, the unique identifier IS correct. Its only the label that is wrong. Thats kinda the thing. The correct code/identifier highlights that the label does not match. I look at the label as more of a bonus. From memory, some records in the PlayStore data don't even have a label/description. Which I guess is a similar error in another way.

PS: Everything I do in TeMeFI is based on the code.
[Android Apps and Games] krkhaha:
Look at this. There should be lot more app
[Android Apps and Games] DiamondJohn:
A number of important things stand out a mile.

"There should be a lot more apps" is not by any means a confirmable statement either way. I specifically asked and you even quoted (but ignored) that you provide where / which method or menu item you are talking of? remember >1000 locations. Showing me the list/screenshot you get, does not help me identify the issue. See point below.

What list are you showing? The app lists are specific lists that are restricted in what they will show, correctly; and there are many many many different ones. For example, using the detach method does not list apps you have installed from F-Droid, or manually installed and are not on the PlayStore, and there is often a delay by Google to linking it.

In the top right of the screen underneath, I can see you have a bomb icon, screaming out that you had an error / warning / issue. Have you checked what that error is? i cant tell by the image, YOU have to click on the bomb icon to see what it says. Long press to clear the error, as nothing can be fully trusted if you see this icon. Generally, view it, read it, understand it, take appropriate actions if necessary (sometimes its just a warning), clear it and only then start the next process.

Now, trying to *guess*, my best one is its the detach app list. If that does not show an app, It's most commonly

This list is not a list of "what is physicality installed on your device" it is explicitly a list of what the PlayStore has linked / registered from-to your device installations, to its private repository of apps. Technically, the app does not even need to be installed, just linked/registered. The PlayStore does not get that 100% correct, 100% of the time. Its beyond TeMeFI's job to correct google and their thousands and thousands of apps and private black-box data. The PlayStore is a closed sourced private corporate app, not a part of open Android source. Don't forget, I am doing something that they would prefer I didn't and do their best to stop me. So we have Google against little 'ol me.

The app is not from / hosted on the PlayStore. So detaching it is useless and not possible, and so it wont ever show up. For example, I have apps I installed years ago (and kept the APK) that have since been removed from the PlayStore, and hence they will no longer show up (as they cant be linked). And as I was typing, I realised that TeMeFI is not on the PlayStore, here we are discussing it, so you have it installed, and it will never show up in the detach list; but it will show up appropriately elsewhere, unrelated to the PlayStore.

The PlayStore has not registered the link between your on device install and the PlayStore reference. This issue has been covered multiple times and is a PlayStore issue, not TeMeFI. I build the list from the PlayStore data. So, if google has it wrong / missing an item in their data, the list in TeMeFI will be missing that item. I cant correct their data. If you search/read the thread, I have covered a technique I personally use (and it has worked for others) to correct the PlayStore data, multiple times. ...one example...
[Android Apps and Games] krkhaha:
I write about YouTube. I use vanced for root and I have that in Play store. So should be possible visible here on that list.
[Android Apps and Games] DiamondJohn:
READ the link I posted, do the steps, exit TeMeFI and try again.

Actually, I just remembered. YouTube is at the very top of your own posted screenshot, that you used to confirm it wasn't in the list. What am I not seeing?

Because a lot of users are here to detach YouTube (and I tested it over and over and over again, repeatedly looking for it in my loooong list), I put it at the top of the list for speed & simplicity, AND the fact that Google sometimes labels it incorrectly. Harder to miss (at least I thought) if it was at the top of the list.

PS: Technically, Vanced is NOT in the PlayStore. YouTube is, and the PlayStore thinks you have an older version (Vanced IS older) is an older version needing an update, and hence the problem.

PPS: Just because the PlayStore "sees" that you have it installed and are offering you an update, does NOT mean it is actually attached within your local PlayStore. They know they will have an opportunity to attach it when you accept the update, so do it then, and hence the trick I explained/linked/used above.
[Android Apps and Games] krkhaha:
I'm really sorry. I'm blind 😂😂😂 really. Thank you.
[Android Apps and Games] DiamondJohn:
Thanks for getting back to confirm it. It really bugs me when someone asks a question then does not comeback to confirm an answer has or hasn't resolved their issue.:mad:

Another way to double check, and its what I always do when faced with a long generated list to hunt through, is to use the menu-filter functionality.

Get the list by clicking on the menu item that generates the next menu list. These are identified by " ▪► " as a prefix in the menu. eg, "Application Info / Manage>Detach Package From PlayStore>DETACH: Select Package then Protection Level v5" there are a LOT of them, so its handy to use this feature

LONG press the "X", when the menu is out, this pops up a text entry box

Enter some partial text (it's not-case sensitive) of what you are seeking. In this example, you could enter "you"

If you have entered something unique, you will only have the one thing in the menu

To retrieve the whole unfiltered list back again, simply LONG press the "Home" icon in the toolbar ⌂
[Android Apps and Games] DiamondJohn:
FYI: New SQLite3 build is up

https://xdaforums.com/t/new-sqlite3-binary-v3-39-3-for-all-devices.4273049
[Android Apps and Games] Jbro129:
I've encountered a bug. I recently upgraded to Android 12 and I'm trying to detach some apps from the playstore, but TeMeFI is showing a blank app list and gives me an error toast.

I've also noticed that Titanium Backup gives me a blank app list as well. That app most likely gets the app list from the same db.

Both TeMeFI and Titanium Backup worked on my device before I upgraded from 11 to 12.

Edit:

I checked in /data/data/com.android.vending/databases and a library.db file does exist.
[Android Apps and Games] DiamondJohn:
Please oh please use thumbnails. I cant tread the whole post in a single screen so it makes it difficult to comprehend in one view thus making it more difficult to help you. You can go back and change to thumbnails.

You said "recently" upgraded, that may mean that the playstore has not fully instantiated itself yet. It does lag behind and pretend its all there, when it isn't; ie "fake it till you make it". Have you tried downloading or updating an app from the playstore?

The fact Titanium (which I read somewhere is no longer supported/developed) also has issues, I think you may have corrupt PlayStore data. Give the first idea a try and then if that does not help, wipe your playstore data, open the playstore, use it a ew times, and wait a little longer, then try again. Otherwise, you may need to contact google.

Another thing you could try is to PM me a link to your library.db file and I'll have a look; more our of interest.
[Android Apps and Games] Jbro129:
Changed the screenshots to thumbnails.

When I say I upgraded recently, I mean I upgraded to Android 12 a few days ago and I've updated a few apps since then.

How does TeMeFI use the library.db file? I opened the database in an SQLite editor and saw a whole bunch of info including a lot of package names, timestamps, and digests.

Is there any way I can send you a stacktrace? Or is sending you my library.db file the only thing I can provide you?
[Android Apps and Games] DiamondJohn:
Sincerely, thank you. its my own private bug-bear.(y)

Umm... to get the list of apps?:cool: I mean it IS the "library"

The library db file will let me hopefully duplicate the issue. A stack trace is more jibberish than I need to see. And, the error (if you click the bomb icon) would be more targeted to TeMeFI anyway. But, I dont think it will g9ie any more info than "its not valid"

I actually had some more ideas you could check/try so I came back here to post, and just noticed you already responded.

Check the version of sqlite3 you are currently using

switch to the TeMeFI internal sqlite binary Config>startup>Use Internal TeMeFI supplied SQLite

Make a copy of the library db onto your sdcard, then use TeMeFI's dynamic query against it Dynamic DB Query>All Table Data>/storage/emulated/0>/storage/emulated/0/.../library.db>ownership

Actually, you look like you already had a look with another app? which app? and to be clear, its probably not a shell app and so would not be using the sqlite3 binary.

Just had another idea, maybe something else is locking the db all to itself. Its finding the dB, but says it cant open it (my previous assumption is that its corrupt or the sqlite3 is old) I kill the playstore to stop it from stopping me (as a bonus its fun to "stick it to the man" ;)). I would try a reboot and go into TeMeFI first thing and try again.
[Android Apps and Games] DiamondJohn:
PS: It is obviously finding the library dB, as SQLite will create a new empty dB if the file is not found (but the path exists)
[Android Apps and Games] Jbro129:
Thank you for the response.

As for your ideas:

I selected the 'Use Internal TeMeFI supplied SQLite' and tried again, but now the toast mentioned localappstate.db instead of library.db.

I copied both both databases and used the Dynamic DB Query on them. Inside of ownership in library.db I saw all the table keys and inside of localappstate.db I clicked appstate and found similar data.

I used this SQLite editor app as well as Root Explorers built in SQL viewer.

I tried force stopping the playstore and opening TeMeFI right after a reboot and the issue still occurred
[Android Apps and Games] Jbro129:
The moment I first saw the error toast I checked to make sure the database files even existed on my device.
[Android Apps and Games] DiamondJohn:
Just to be clear, the toast is the old/original error system Its a cut down error message. Its just a "tap on the shoulder". Clicking the bomb icon should give MUCH more detailed info. Ill send you a cutdown script later, so you can actually check which line is causing the issue. (when you clarify where)

Also, as I said, if the db didn't exist, after you rub it once, sqlite3 automatically creates an empty file. Empty, but "a file" ie you will then find "a file"

It is on the first step? ie bringing up a list of packages?

Actually, now I am confused, the first step (by/when/after you click on DETACH: Select Package then Protection Level v6) does not reference the library db???? This is difficult unless you are specific about exactly at which step the error occurs.
[Android Apps and Games] DiamondJohn:
I previously had a pretty good on device SQL Editor, but it stopped working on newer android versions, and is no longer developed. Still searching for a replacement, I am guessing you are using MiX as your explorer. I do NOT want to develop my own, but there really seems to be a hole in the market. I have been using SQL 25+years, so have seen many interfaces/features across many platforms, and I dont see what the issue would be. I dont want to build another mouse trap, even though the current offerings seem poor. I think its just that I haven't come across it yet. Its not quantum mechanics; says the guy who hasn't built one... But I do have an app that queries its own internal dB, and that old app could be a good template/feature list...
[Android Apps and Games] chaoscreater:
@DiamondJohn - does your Doze profile disable the MotionSensor as well, just like how ForceDoze does it?

https://xdaforums.com/t/app-forcedo...creen-off-disable-motion-sensors-etc.3377694/
[Android Apps and Games] DiamondJohn:
No. It ONLY changes the parameters of the Doze settings that were available back in Oreo. The source code of exactly how/what it does is available for YOU to examine and compare with the other link. Also, I only created 1 of the profiles, all the rest were created by others, that I collected from github or such. I have not read your link, there is already too much to read. Motion sensors are not an issue for me, and reading the OP will explain why it is not therefore included.

If you search the thread, there are recent posts by another user, discussing this exact topic.
[Android Apps and Games] chaoscreater:
@varunpilankar - using your Doze profile settings, I'm getting this wakelock "com.android.server.MountServiceIdler" running at over 10+ minutes. This used to be around 3~4 minutes. This is on Android 11, rooted MIUI ROM.
[Android Apps and Games] varunpilankar:
I have just updated the profile, to the one I'm using currently.

Try it out

@chaoscreater
[Android Apps and Games] chaoscreater:
Thanks, I'll test it and see how it goes.

I noticed your code is very similar to the one from the section "limbo light doze" of this really awesome article:

Android Doze Tweaks

Do we need more power plants for mobile phones?

tsungi.medium.com

Except that you have this part at the end:

wait_for_unlock=true,quick_doze_delay_to=86400000

Could you briefly explain what that part does? I don't think I've seen this in any other doze profiles that others have provided.
[Android Apps and Games] DiamondJohn:
Yes you have. Its part of nearly every doze profile I have in TeMeFI. AND its even explained in the description of parameters that are included in TeMeFI.
[Android Apps and Games] bzz11g:
Hi There!

where i can download previous versions of TeMeFi?

Version v1.1.19 not showing all app's in Detach menu
[Android Apps and Games] DiamondJohn:
The TeMeFI version has nothing to do with which apps are displayed. It uses code to bring up a list; the exact same code in both versions. If any app is not in the list, then its not attached. Search the thread (or at least read the last few pages)

If you are not seeing an app in the list, then its your playstore data that is lacking. This has all been discussed many times, including the last few pages. We actually had someone complain they didn't find youtube in the list, when i put it at the top of the list (if its attached).

In summary, v1.1.20 is showing all apps available to be detached. ie only apps that are attached. installed or even showing in the playstore, does not mean they are attached.
[Android Apps and Games] DiamondJohn:
ummm.. YES IT IS. And the code you have shown as mine is 1000% percent incorrect. That IS NOT my doze profile. I cant believe you are doubting the person who not only has access to the code (and on this method you have access to the script code also), but wrote the code. It is clear that you do not know how to use TeMeFI or what you are looking at. I not only checked to confirm before I made the statement, but I also have been running it for a few years now. I would of thought at least you would ask yourself, how the heck would two parameters have such a huge effect on the doze behaviors?
[Android Apps and Games] rodken:
@DiamondJohn Is there a method within the app to disable or at least change the charging starting sound when plugging in device?

"adb shell settings put global charging_started_sound=/storage/emulated/0/Download/Silence.ogg" yields no results.
[Android Apps and Games] DiamondJohn:
Not specifically in TeMeFI. HOWEVER, I actually had started a whole thread on how to do this exact same task. To check without having to ask me, you could also use the search icon in the flyout toolbar (magnifying glass) and searched for "sound"

If you go to settings and filter the results for "sound" you can get a list of the different sounds, including ones not in your settings UI.

And when you say "no results" are you saying that a get shows no change? I also run under root & have the files in a more permanent location.

You may also (but not for charging sounds) be being hindered by another operating behavior of Android. That feature is that, some sounds use a file URI while other sounds use a media content link to the file from the Media DB. I hit this a few years ago, so I use the attached file as one of my many boot script to correct or reinstate when I flash an update or new ROM. I use to build from source, so I tested/flashed ROM after ROM. Its specific to me, and the includes that you care about, probably set up the SQLite location and the MediaDB filename/location. But for the charging sounds, I cover two settings in the script (wireless and wired) and also in the above thread.

I guess I could reuse a lot of the code from the sqlite Magisk module method and my boot script, but, right now (and the past few months I am bogged down in a new feature of TeMeFI, where it records a history of everything you run (user configurable), with the actual results that were returned at the time, so one would have a searchable history, of everything they run AND the results at the time. But I digress, cause Im getting close to finalising it. Also, i would have to know when to use a content link and when to use a file URI and in all ROMs and what sound events are supported, between Android versions, use the same settings tag etc etc etc. To many moving parts. And I already have a solution (boot script) to my personal issue, and this app is all about me ;)
[Android Apps and Games] rodken:
I mentioned 'no results' in my previous post as a less draconian way of expressing my displeasure of not hitting paydirt. I would agree that it could be a hindrance within Android and or OOS considering that I am on a OnePlus device.

Coincidentally, I visited your aforementioned thread which brought me back to the magic question.
[Android Apps and Games] DiamondJohn:
Did you try my suggestions? ie root & covering both settings? This method has worked for me across multiple ROMs, android versions and devices. But I have never had a OnePlus. And, on that other thread, it appears to have worked for others.

Did you explicitly check the setting is being saved, using a get? to see if it was being ignored? That can be done explicitly from within TeMeFI. If it is still failing ie the setting is saved, but it is ignored, maybe check your logcat for any clues when you try and set it.

I do love hearing the road runner every time I plug in my charger. And he has greeted me for a number of years now
[Android Apps and Games] LuckyStrike1695:
Hi,

Quick question about using TeMeFi on multi-user env.

I used TeMeFi from the owner's account to detach an app. It worked as expected.

But when using a secondary user account, the app is still listed in the Play Store "available updates" section (making the owner's detach useless since any secondary user can update the app for the whole system).

When I tried to detach it from the secondary user account, it seems to not be working as it still appears in Play Store updates list.

So, how should I proceed to detach an app for *every* users ?

Thanks.
[Android Apps and Games] rodken:
Which of the doze profiles listed within the app actually disables doze globally?
[Android Apps and Games] DiamondJohn:
Sorry, but I have NO experience/knowledge regarding multi user accounts, and hence no testing nor design for that case.

The detach techniques are heavily dependent on the PlayStore account. My phone only has a single account, so thats what I built & tested it for.

The best suggestion (ie GUESS) I can give you is to detach from both accounts🤔