yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Oswald Boelcke:
[MENTION=5417899]DiamondJohn[/MENTION]: Thanks very much for this excellent tool. Excellent work; job well done!:D Unbelievable, how many information is easily retrievable by teMeFl.:good: No issues at all; neither during installation or root request nor when in use.

*****

Samsung SM-G901F, RR-N-v5.8.5, Magisk v18.1, Xposed
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.30

Download: SEE OP!

New items

NB: The new power-off does not work on my phone/ROM. But no error is returned, so I will guess the ROM does not fully support it. I left it in anyway in case it does work for others.

Also regarding IO Nice, the assembly help actually states 5 as the default, but my phone has every app set to 4 [default], and it makes more sense being closer to the center value. My phone also shows "unknown" for all apps IO nice class that have not been explicitly set. I can only assume that 2 "best effort {default}" as stated in the doco from the assembly. To see the doco, go down to set the IO nice of an app, hold down the menu item and select preview. I included the doco in the generated script.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.31

Download: SEE OP!

New items- All about doze (see the next post for details)
[Android Apps and Games] DiamondJohn:
OK, so the big addition this release is in regards to Doze. And I think it is a big addition to TeMeFI's abilities. Doze configuration can make a huge impact on battery life.

This release adds the following:

1. Able to view the existing doze configuration

2. Compare the current Doze config with 14 others

3. Set the Doze config to 1 of 14 pre-builts

4. Visually Graph the historical doze states the phone has undergone. After running this feature, zoom and pan to bring the graph into view.

These new doze features can be found under:

Currently Running>Doze

This screen-shot shows the Doze menu

This screen-shot shows the list of available doze profiles to compare your current one against, or actually set you profile/config to

This screen-shot shows an example output of the comparison of a currently enabled doze profile and a selected pre-built profile

The next two screen-shot shows an example of a section of two different doze graphs, while under different doze configs. The second one is using my very aggressive "DiamondJohnDroid-Comatosed", while the first is "Lineage 15.1". As you can see in the graph, my one (on the right) is configured so that as soon as the screen goes off, it jumps into a deep-idle (very low battery drain), while the other goes to a light idle.

If you save off the doze graph, copy it to a computer, rename it to have an extension of HTML instead of LOG, you can open the graph in your desktop browser. Apart from being a bigger screen, it also enables the functionality of details coming up as tool-tips when you move over items in the graph, and when you click on a specific block.

--===EDIT===--

Download available in OP: https://xdaforums.com/showpost.php?p=76859729&postcount=1
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.32

Download: SEE OP!

Apply a small Fix to doze graph. When doze is forced

Add legend to doze graph

Add ticks every 15 minutes to doze graph, with bigger tick on the hour

Added BusyBox>Busybox Install Path

Added BusyBox>Busybox Version
[Android Apps and Games] Lughnasadh:
Thank you very much for this app. Looks really interesting. I did a search on how to save the current doze settings so when we switch to another we can revert back to our original settings but can't seem to figure out how ( or backing up profile as the prompt asks). Its probably right in front of my face, but :silly:

Could you please enlighten me? Thanks.

Oh, and what does the Un-Force and Force Idle refer to?

And one last thing. My current doze settings reads "null". Is it just not reading my settings or does that indicate something else?
[Android Apps and Games] DiamondJohn:
5 ways.

1. A nandroid

2. Running the "Current Running>Doze>pre-View / Compare Doze>*CURRENT*", and then save off the results. See above somewhere for instructions. Basically the Pencil Icon in the fly-out toolbar.

3. By running a graph, the details below the graph are your doze settings. And save off your results

4. By running "Dynamic Lists>Dumpsys Service Calls>Svc: deviceidle" and save off the results

5. Actually running the change and saving off the results, as the previous/current values are displayed, as well as the new values (they are also saved as a comment in the html source when the results are saved)

NB: methods 2 to 5 require a little more knowledge & effort to restore.

Its no secret. https://duckduckgo.com/?q=android+forcedoze+unforcedoze&t=h_&ia=web

Personally, when I tried it, it did not seem to work as suggested. That would most likely be my ROM.

I only have two phones, and they are the same, but one is running Oreo and the other Pie, but both Havoc-OS which by chance has its own interface for Doze settings. I think the "null" return may be a ROM specific issue.

I could only suggest, if you wish to try (remember, you are responsible for your own phone)

1. Make a nandroid

2. Run "Dynamic Lists>Dumpsys Service Calls>Svc: deviceidle" and save off the results

3. Select a different doze profile (eg "DiamondJhnDroid-Comatosed", save off the results

4. Run "Dynamic Lists>Dumpsys Service Calls>Svc: deviceidle" and save off the results again

5. Restore your nandroid

Compare the values between Step 2 and Step 4, and see if the top section (ie the Settings portion) have changed.

If it does work, then you could add a step of maybe 2.5 after using your mobile for a few hours (screen off and on etc) and run the graph, and then do the same as step 4.5. As you can see in one of my above posts, for one profile it jumps straight down from normal toi deep idle, while in the other, its goes back to light-idle. ie My DiamondJohnDroid-Comatosed profile has been tweaked to set the phone into deep-idle soon after the screen goes off.:highfive:
[Android Apps and Games] Lughnasadh:
Thank you very much for your detailed response :good: . Yeah, I tried on 2 different roms (both Pie) and both get the "null" response. Neither has its own doze settings so I suspect you are correct about it being rom related.

1 more quick question?

Where are the doze settings located if not available through rom settings?

Thanks again for your response and this app. Can tell you put a lot of work into it :good:
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.33

Download: SEE OP!

Make the set doze parameters work with more ROMs

Add scripts to rollback and apply the changes to doze configuration

Many (mostly background) adjustments to doze graph.

Many background adjustments to using non-deprecated list retrieval of apps (ie use newer way of listing apps in menu's);)

Added
[Android Apps and Games] DiamondJohn:
Good news, I found a ROM that behaved the same on my test phone, and the latest release works on that ROM (vanilla LOS 16.0)

There are MANY MANY configurations that are not available for configuration through the UI of most ROMs. Devs have to code the feature and the UI separately. For example, you can lower the max CPU clock speed on most devices, but you can only access the adjustment through 3rd party apps.

PS: If anyone wants to understand how TeMeFI goes about doing anything, you can see the source code used by simply either:

1. Press and hold the menu item, then select preview (https://xdaforums.com/showpost.php?p=77905972&postcount=38)

2. After running the process, press and hold the "title" section at the top or bottom (depending on your config)
[Android Apps and Games] DiamondJohn:
No. Titanium backup detach does not work, from what I have read on multiple users posts here on XDA. including the post just above this one ;)

Also, the techniques that I have used in TeMeFI detach are completely unique to TeMeFI. It is not something I have devised based on any other methods you could find. It was my own ideas and concepts that I tested, and found to work. The fact that it force closes the playstore was a littler unexpected, as it shows that even google did not expect for anyone to use this technique/technology.

EDIT: as for the "do more", I would be pretty sure it does, as the check has around 25 different steps/components to check.
[Android Apps and Games] DiamondJohn:
Regarding the "Auto-Update" in the PlayStore. Yes, TeMeFI's detach will work even with the Auto-Update feature on. Thats how I have always run it.

When I had ONLY YouTube detached, everything was apparently running fine. However, now that I have a Pixel4a , google try to push a big bunch of useless bloat through the playstore, so I detatch all this bloat ... err ... I mean apps, so that they never get installed! which would also mean that you can even detach apps BEFORE they are actually installed!

The negative of having around 14 apps detached is that the auto updates, although turned on, do not actually work automatically. But I usually get a lock-screen notification near the end of every day saying I have 5 or so apps to be updated. I simply click on this and click the update all, as none of my detached apps ever appear in the list of apps to update.
[Android Apps and Games] DiamondJohn:
That was NOT the actual report I was asking for. I wanted the "Check Detach" report. I assumed you knew that was what I meant, as it was the screen shot you had presented earlier.

However, what you have provided makes it pretty clear that your YouTube is NOT FULLY ATTACHED, and the detach methods can only work on apps that ARE FULLY ATTACHED.

If you simply READ the report, it clearly states a WARNING in BIG text with

----------------------------------------------------------------------------------------------------

▒█░░▒█ ░█▀▀█ ▒█▀▀█ ▒█▄░▒█ ▀█▀ ▒█▄░▒█ ▒█▀▀█
▒█▒█▒█ ▒█▄▄█ ▒█▄▄▀ ▒█▒█▒█ ▒█░ ▒█▒█▒█ ▒█░▄▄
▒█▄▀▄█ ▒█░▒█ ▒█░▒█ ▒█░░▀█ ▄█▄ ▒█░░▀█ ▒█▄▄█

----------------------------------------------------------------------------------------------------
Your Playstore data for com.google.android.youtube is not valid to be detached.

If you have previously detached com.google.android.youtube, you may need to wait
sometime for the PlayStore to correct itslef.
Or maybe you could try uninstalling and reinstalling the app.
----------------------------------------------------------------------------------------------------

How / why did you think everything was fine from TeMeFI's respect with such a big warning?

There are many reasons/methods/ways that you have wound up in that state. The technique I used during testing to correct the above inconsistencies with my PlayStore have been documented above, but I recently also took another user through the steps on the vanced thread at:

https://xdaforums.com/t/app-mod-root-nonroot-youtube-vanced-edition.3758757/post-84860019
[Android Apps and Games] HippoMan:
Thanks to @ipdev and @DiamondJohn for explaining the difference between TeMeFi "Detach" and Titantium Backup's "Detach from Market". It's now clear that I should be using the TeMeFi version ... and maybe even to always use method 3.
[Android Apps and Games] DiamondJohn:
Regarding Method 3, I use it for everything, but I think it also blocks the Auto Updates if you have too many on Method 3. When I only had YouTube, the auto updates would occur. For YouTube, Method 3 is the only one that is dependable, but for non Google ones, I *think* Method 2 would suffice.

The difference between the two is that when the playstore trys and re-attaches a selected item, Method 3 induces an error internally within the playstore code BEFORE it is actioned (ie the error occurs on the attempt) , while Method 2 allows it to occur, but automatically detaches it again milliseconds after, thus when it "turns around and has another look" to see what needs to be updated, its not attached. "Move along, nothing to see here" ;)

Method 1 actually does similar, but method 1 will try to make it look like you never downloaded it, while method 2 basically replies "these are not the droids you are looking for" ie it uses "the force" ;)

Remember, when I was looking into it, the detach methods I saw were even "looser" than Method 1 in TeMeFI.
[Android Apps and Games] freakerload:
So here it comes a new message under all apps with updates YouTube will update.

Mothod 3 without an error now.

But not for long time it comes back under all updates.

I never go to the YouTube page on Playstore.
[Android Apps and Games] DiamondJohn:
Run the test.
[Android Apps and Games] Goku1992:
Hey mate here we meet again. I have an s21 ultra now. Used your app on the oneplus 7t pro for a while it was amazing. I dont want to root the device now. Can i use the app with adb or can i use adb lines to get a good aggresive doze undee Android 11? Or dont you recomend it? The standby on s21 ultra exynos isnt that good for a 5000mah battery... Always looking forward to tweak doze to the max :) thanks mate
[Android Apps and Games] DiamondJohn:
The set doze is delegated to root only within TeMeFI. However, that could be simply me being too lazy to test if it would work for non-root.

From memory, the actual setting of doze is down to two lines, which I *think* would work for non-root. So, if you save off the set doze script on a root phone by selecting which doze, just preview it and save it off, then find the two set commands, you could try running them in a non root shell.

below are an example of the commands to set my very aggressive DiamondJohnDroid-Comatosed profile (its the one I have used previously and am currently using it on my Pixel4a running A11:

first dont forget to save off your current settings: just in case

settings get global device_idle_constants;
settings get global device_idle_constants_user;

and now the magic.

settings put global device_idle_constants "light_after_inactive_to=30000,light_pre_idle_to=35000,light_idle_to=30000,light_idle_factor=1.7,light_max_idle_to=50000,light_idle_maintenance_min_budget=28000,light_idle_maintenance_max_budget=300000,min_light_maintenance_time=5000,min_deep_maintenance_time=10000,inactive_to=30000,sensing_to=0,locating_to=0,location_accuracy=1000,motion_inactive_to=5000,idle_after_inactive_to=0,idle_pending_to=30000,max_idle_pending_to=60000,idle_pending_factor=2.1,idle_to=3600000,max_idle_to=21600000,idle_factor=1.7,min_time_to_alarm=1800000,max_temp_app_whitelist_duration=20000,mms_temp_app_whitelist_duration=20000,sms_temp_app_whitelist_duration=10000,notification_whitelist_duration=20000";
settings put global device_idle_constants_user "light_after_inactive_to=30000,light_pre_idle_to=35000,light_idle_to=30000,light_idle_factor=1.7,light_max_idle_to=50000,light_idle_maintenance_min_budget=28000,light_idle_maintenance_max_budget=300000,min_light_maintenance_time=5000,min_deep_maintenance_time=10000,inactive_to=30000,sensing_to=0,locating_to=0,location_accuracy=1000,motion_inactive_to=5000,idle_after_inactive_to=0,idle_pending_to=30000,max_idle_pending_to=60000,idle_pending_factor=2.1,idle_to=3600000,max_idle_to=21600000,idle_factor=1.7,min_time_to_alarm=1800000,max_temp_app_whitelist_duration=20000,mms_temp_app_whitelist_duration=20000,sms_temp_app_whitelist_duration=10000,notification_whitelist_duration=20000";

This profile goes to deep idle in seconds after the screen goes off.
[Android Apps and Games] Goku1992:
Thank you very much mate. Yes was using the same on 7t pro mclaren and standby was amazing. Will try to use this as adb command but dont know how. Im dumb sorry mate🤣

Edit: seems like i only need to add "adb shell" in front and should be possible to use this Code till the next restart that only happens once a week nice mate😍
[Android Apps and Games] DiamondJohn:
I found that once I set it, it survived a reboot. Simply check by booting and then running the "get"commands to see if they are using the original values OR the new values.

The real check is running the "dumpsys device idle" command, and checking the values at the top.
[Android Apps and Games] Goku1992:
Thank you for your help mate :)
[Android Apps and Games] DiamondJohn:
New Version v1.1.02

Interesting things in this release:

a LOT of work has been done to the battery history graph

Made the Battery history graph much faster. On my phone I have also updated the sqlite3 binary, and they now generate in about 7 seconds for 4 days, on a pixel4a

enabled being ble to run the battery hoistory report using a historic battery stats report

Download: SEE OP!

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

The onky really new item is the use of a historic battery stats report, including ones you may have saved off from years ago!

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

a LOT of these items will be triggered because of small improvements/corrections within shared code.

Enjoy and stay safe.
[Android Apps and Games] Goku1992:
Using your doze settings now via adb on s21 ultra. Will make feedback after a few days :) this profile will disable motion right?
[Android Apps and Games] DiamondJohn:
NO it does not "disable" motion. Everything still works as before. HOWEVER normally there is like a (yes, I can talk like a 13 year old girl) 30 minute delay after motion, before the phone will enter deep doze. I have cut that down to something like 30 seconds.
[Android Apps and Games] DiamondJohn:
You can see some graphical representation of what I am taking about in the following post, and the post after it

https://xdaforums.com/t/app-tool-temefi-comprehensive-system-administration.3806260/post-84304357
[Android Apps and Games] HippoMan:
Please forgive me if I have forgotten, missed, or misunderstood some information about the "Detach Package from Play Store" function.

There is an app from Google that I want to delete and also detach, so that it will never be offered to me again from the Play Store. I don't want the app on my device, and I never want Google to try to offer it to me again nor try to force it to be downloaded again.

I have used Method 2 for detaching the app, and ithis appears to have worked. However, what I'm confused about is this: what will happen if I now uninstall the app? Will this detachment from the Play Store disappear, or will the Play Store indeed continue to not offer that app to me?

I know that I can freeze the app, and I have done so. But I want to go further, if possible, and totally, unequivocally, and permanently remove this app from my device.

Thank you very much.
[Android Apps and Games] DiamondJohn:
I posted a related concept above. I have a Pixel 4a, and Google try and push all the bloat through the Market instead of installing it directly on the phone; I am guessing for differences in markets (ie US, AUS etc, but I still had to debloat spirit stuff on an AUS mobile) So, the app(s) is not installed on my phone, but I have it detached, so it disappears from my list of queued updates. The benefit of this, is that I have a log (in the detached list) of what I am blocking, in case I have been too aggressive and need to install it later. So, its not installed and it is not attached.

For apps that are already installed in my system (RO), i detach it from the playstore, and then freeze it (after uninstalling any updates). I also HIDE it, as on previous versions of android, I found that frozen apps still appeared in the list of processes in memory, while hidden apps did not. And hence there is a method in TeMeFI that freezes and then Hides the app. To be extra cautious. If you to treat pre-installed (system/vendor etc) differently to user apps.

On a slight tangent, the detach was meant to stop the PlayStore from updating the app. its simply a bonus that it also disappears from being offered as an update; though completely understandable why it is no longer even offered.

One thing to watch out for, once you detach an app, using the PlayStore to uninstall will fail, and crash the playstore if using method 3, as to the code I inject, an install or uninstall are indistinguishable, as in both cases the PlayStore tries to attach or appears to attempt to do so.

Did that answer your question?
[Android Apps and Games] HippoMan:
This more than answered my question. Thank you very much!

By the way, I couldn't find any kind of "freeze and hide" method in TeMeFI. I see "Freeze App". Does that hide the app as well as freezing it?
[Android Apps and Games] HippoMan:
Never mind. I found it: "hibernate-freeze-hide".
[Android Apps and Games] DiamondJohn:
whenever looking for something, simply click (ie short press) the magnifying glass in the fly-out menu. That search of the menu is VERY broad. Searching for "freeze" or "hide" would of pulled up the item.

PS. The hibernate is really redundant, but if you can, why not. It basically kills the app from memory before freezing & hiding.
[Android Apps and Games] HippoMan:
Yes, I know. I was looking for "hide" originally, and although "hibernate-freeze-hide" showed up, I was in landscape mode, and it was scrolled off the screen and I forgot to scroll down. Anyway, I found it when searching for "freeze". Thank you again.
[Android Apps and Games] HippoMan:
Another question: is there any way to get the output of "List all App Names, Code, Version & APK Paths" to show up in sorted order by App Name? I want to find the package name for a specified app, and there is no magnifying glass search pop-up on the screen with the unsorted output of that command.

Alternatively, is there another way to look up the package name for an app, given its App Name?

PS: I decided to try to alter the script for List all App Names, Code, Version & APK Paths in order to implement a sort. I believe this can be done by writing the calculated values of $app_label, $app_code, $version, and $path into a second temp file, sorting that second temp file appropriately, and then looping through that sorted output to generate what gets ultimately written into $TEMP_FILE. I'll post my results a little later.
[Android Apps and Games] DiamondJohn:
the goal can be achieved multiple ways. From memory, either I dont sort or the sorting is via the package code (ie not name, which can be blank).

1. After you run a report, if you click the menu button to show the fly-out menu, LONG pressing the magnifying glass pops up an entry box, whereby you can enter a non case sensitive string to filter the results by.

2. Save off the report, open it in a text editor, and use the text editors built in search functionality

3. Save off the report, transfer it to a PC and open the report in an app such as excel (or whatever you use) and search/filter etc etc etc on your desktop

Most of the long press actions (and short press actions) can be found in the second post. I try to limit the number of on screen UI Elements (avoiding a menu), so all elements have long-press actions, or hidden hot-spots.

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

I have added 1 or 2 since I created the 2nd post, but it covers most of them.