yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
New Version v1.1.18

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

No distinctly new items

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

* Changed menu to show action/doing/executable stages in bold, while Menu and intermediate steps in Normal text. Its subtle, but still visible. See the image below.​

​

* Added the APK Badging information to the two TriChrome duplicate reports. As an extra colunn to the textural/table report, and as pop-up text when you click the hotspot in the graphical report. The hotspot is the leading text of each line in the graph.​

​

* Added a new "Charge Summaries" section to the Battery History graph. Its really good to give you an average of charge and/or discharge rates between two stages/states/events in your battery's daily life. I use to try and eyeball it, but now the numbers show just how bad at it I was. The _id columns is TeMeFI's own internal reference number. The "Row" is the row it is extrapolated from, from the battery Stats report; ie the source of the calcs/report.In the following, I did some funky things, which may be hard to understand at first, but it makes sense when I go through it. Like I commonly plugged the charger in, while the phone was off, OR I plugged it in while off, and restarted before I disconnected the charger.​

​

* Made the waiting image size to NOT require a TeMeFI restart to be enabled/visible.​

* Changed / removed the duplication in the Battery history Extras menu path​

Download: SEE OP!

Enjoy and stay safe.
[Android Apps and Games] DiamondJohn:
AAAAArrrrggggh! They just released a new version of SQLite source. But to be honest, I avoid using/depending on any new features, to avoid incompatibility, as most ROMs would not be running anywhere near the very latest builds. Although, the latest release does have some changes I would normally use/expect in server ended big-boy SQL. Maybe I will change TeMeFI to default to the internal TeMeFI one, unless explicitly configured to use the ROM supplied one.
[Android Apps and Games] DiamondJohn:
I did a build of the latest SQLite, v3.39.00, which can be found at

https://xdaforums.com/t/new-sqlite3-binary-v3-39-0-for-all-devices.4273049/post-87077105

You can get TeMeFI to use this new binary by default, by simply using the steps covered in the post:

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

Thery say to expect a 1.5% improvement. On the SINGLE test I did, my battery drain report execution time went down by 6.5%
[Android Apps and Games] Paz9:
How to create our own doze profile?
[Android Apps and Games] DiamondJohn:
READ about doze.

READ the script.

READ the extra info I have already given within the app.

The UI gives you the parameters and I also provide some info about what each one does, from my own web search. I didnt create Doze, it was created by Google.

Basically its a long string of

[param1]=[value1],[param2]=[value2],...,[param(n)]=[value(n)]

for example, in the code, you will find

'LineageOS151')
R="light_after_inactive_to=60000,light_pre_idle_to=60000,light_idle_to=300000,light_idle_factor=2.0,light_max_idle_to=900000,light_idle_maintenance_min_budget=60000,light_idle_maintenance_max_budget=300000,min_light_maintenance_time=5000,min_deep_maintenance_time=30000,inactive_to=60000,sensing_to=240000,locating_to=30000,location_accuracy=1200000,motion_inactive_to=600000,idle_after_inactive_to=1800000,idle_pending_to=300000,max_idle_pending_to=600000,idle_pending_factor=2.0,idle_to=60000,max_idle_to=900000,idle_factor=2.0,min_time_to_alarm=3600000,max_temp_app_whitelist_duration=300000,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000,notification_whitelist_duration=30000";
;;

The following two lines, which are already provided in the script AND also given as the script output, finally set your chosen values. ie your profile

settings put global device_idle_constants "[MY_DOZE_PROFILE]";
settings put global device_idle_constants_user "[MY_DOZE_PROFILE]";
[Android Apps and Games] Paz9:
I thought as much, seems custom settings don't stick on my pixel 6 they keep reverting back to stock
[Android Apps and Games] mabux.tidak.teler:
quite interested
[Android Apps and Games] DiamondJohn:
for "not sticking", you always have the option of boot-scripts to auto re-apply. I am going to take a guess that it *may* not be "reset", so much as set to the default on every reboot. The settings above should be sticky between reboots. Similar to if you have your wifi on or off.
[Android Apps and Games] Paz9:
Nope, doesn't stick even without reboots it just doesn't stick. It goes back to defaults after about 10 minutes
[Android Apps and Games] HippoMan:
Actually, I had that same "non-sticking" problem when I was trying this doze-profile mechanism on my OnePlus 7Pro running OOS 10.

I think that different OS's implement and control doze behavior in slightly different was.

Even setting it at startup didn't cause it to "stick" on my device, and after a period of time, it became "un-stuck".
[Android Apps and Games] MarkLev:
@DiamondJohn Hi, thank you very much for the app.

I have a question: can "detach function" work without root?
[Android Apps and Games] DiamondJohn:
No. Detach function can only work using root. I am messing with the another apps private code. That is not allowed without root, otherwise there would be virus's all over the place.
[Android Apps and Games] sachin karinki:
Errors/Warnings:

Error: near line 52: database is locked

Error: near line 53: database is locked

Error: near line 58: database is locked

Error: near line 59: database is locked

Error: near line 61: database is locked

Error: near line 62: trigger trg_DiamondJohn_TeMeFI_ownership_blockupdate_AI already exists

Error: near line 71: database is locked

Error: near line 72: trigger trg_DiamondJohn_TeMeFI_ownership_blockupdate_AU already exists

Error: near line 82: database is locked

Error: near line 83: trigger trg_DiamondJohn_TeMeFI_ownership_blockupdate_BD already exists

Error: near line 89: database is locked

Error: near line 90: trigger trg_DiamondJohn_TeMeFI_ownership_blockupdate_BI already exists

Error: near line 96: database is locked

Error: near line 97: trigger trg_DiamondJohn_TeMeFI_ownership_blockupdate_BU already exists

Error: near line 191: database is locked

Error: near line 195: database is locked

Error: near line 198: database is locked

temefi_runner.sh: Line No:575 - Run all the SQL for detaching an app

#################################################################

### DETACHING com.google.android.apps.photos USING METHOD 3 ###

#################################################################

Killed com.android.vending(26719) with signal 9

The Signal KILL has been sent to the PlayStore...

The Playstore appears to have been successfully killed at 2022-07-14 07:02:45

Disabling background services at 2022-07-14 07:02:45

Stopping service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android.vending/com.google.android.finsky.dailyhygiene.DailyHygiene$DailyHygieneService }

Service not stopped: was not running.

Stopping service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android.vending/com.google.android.finsky.hygiene.DailyHygiene$DailyHygieneService }

Service not stopped: was not running.

Disabling clean-up service at 2022-07-14 07:02:45

#####################################

### Detach registrations BEFORE ###

#####################################

Source Update_Date Create_Date Doc_ID Method Status Version Title

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

Library 2022-07-14 07:00:51 2022-07-14 07:00:51 com.google.android.apps.photos 3 A 5 Google Photos

App State 2022-07-14 06:59:24 2022-07-14 06:59:24 com.google.android.apps.photos 3 A 5 Google Photos

Install Queue 2022-07-14 06:59:24 2022-07-14 06:59:24 com.google.android.apps.photos 3 A 5 Google Photos

Auto Update 2022-07-14 06:59:24 2022-07-14 06:59:24 com.google.android.apps.photos 3 A 5 Google Photos

########################################################

### Applying the Protection at 2022-07-14 07:02:46 ###

########################################################
[Android Apps and Games] DiamondJohn:
The first line is the real issue, and everything that follows is simply caused by it.

Error: near line 52: database is locked​

sachin karinki

Reboot your device, and as the very first thing, go into TeMeFI and attempt the detach again. The errors you have listed imply that some other process is running against the playstore data at the exact same time. I kill the playstore to avoid the issue, but something seems to be happening beyond that.
[Android Apps and Games] DiamondJohn:
New SQLite build is available. v3.39.1 You can use the instruction in the posts above (linked below) to get TeMeFI to use it. No real tangible benefits, apart from just knowing you're running the latest stable version ;)

Get the file from

https://xdaforums.com/t/new-sqlite3-binary-v3-39-1-for-all-devices.4273049/

To use it, follow the steps at the following post.

https://xdaforums.com/t/app-tool-temefi-comprehensive-system-administration.3806260/post-87038211
[Android Apps and Games] DiamondJohn:
New SQLite build is available. v3.39.2 You can use the instruction in the posts above (linked below) to get TeMeFI to use it. No real tangible benefits, apart from just knowing you're running the latest stable version ;)

In the next release of TeMeFI, i have a method to automate installing/update of sqlite3 as a magisk module. You will still have to manually download the zip file with the new binary and place it on your sd card.

Get the file from

https://xdaforums.com/t/new-sqlite3-binary-v3-39-2-for-all-devices.4273049//

To use it, follow the steps at the following post.

https://xdaforums.com/t/app-tool-temefi-comprehensive-system-administration.3806260/post-87038211
[Android Apps and Games] varunpilankar:
Anyone has any idea about -

3246 +57m46s044ms (3) 093 +running +wake_lock=u0a403:"*walarm*:*job.deadline*" wake_reason=0:"557:qpnp_rtc_alarm" stats=0:"wakelock-change"

Have too many of them

@DiamondJohn

I tried using your doze profile for a while, I'm honestly I'm pretty impressed.

Few times I have noticed, the day I have a too much of movement due to busy day.. My battery is for a toss! Too many attempts by doze to put my phone into deep sleep which doesn't happen until my day ends.

Any changes or other profile you could recommend?
[Android Apps and Games] TurboLed:
The latest APK seems to be corrupt, it doesn't open...
[Android Apps and Games] DiamondJohn:
It has worked for everyone else, at least no other complaints. If so, then it sounds like you have a corrupt download. Have you checked the MD5?

I just downloaded from the link, and it matches byte for byte exactly with the APK I installed/tested.
[Android Apps and Games] HippoMan:
I'm looking for a way to force my Android kernel to use the "conservative" CPU governor. By default, my device always chooses the "schedutil" CPU governor upon reboot. I've tried a number of kernel-tweaking apps, and even those which offer to set the CPU governor upon reboot don't seem to be able to do that reliably on my device (OnePlus 7Pro running OOS 10.3.8).

I was hoping to find a way to set the CPU governor here via TeMeFI, but I couldn't find a way to to do that. I know that TeMeFI offers ways to set quite a few kernel parameters, but that seems to be at a much lower level and with a higher granularity than simply setting a CPU governor.

Given that I don't know much about these low-level kernel-tweaking parameters, I'm wondering if there might be some way that I could use TeMeFI to simply set a "conservative" CPU governor that goes into effect every time my device reboots.

Thank you in advance for any info you might be able to supply about this!

PS: I originally just searched for this info via a "kernel" search in TeMeFI and didn't find anything about CPU governors. But now it occurred to me to try a "cpu" search, and I do indeed now see something called "CPU Gov Details". But that only seems to be a report of kernel parameter values, and it doesn't appear to allow the selection of any particular CPU governor.
[Android Apps and Games] DiamondJohn:
From my experience, I use to compile a ROM where I added about 20 CPU govs and around 10 IO schedulers.

Selecting the gov

is device specific. location in file system/number of cpu's etc etc etc

requires it to be set on/after every reboot. TeMeFI does NOT run on every boot OR in the background, to reset it after its changed by the ROM on boot and/or another 3rd party app.

Various ROMs have "funky" internal optimisations (eg for battery optimisations), that may change settings such as the gov, outside of the initial boot. I recently tried a ROM that reset my DOZE profile, after I had set it to my own extremes.:mad:

There may be a "lazy" config in the ROM, where it gets set late in the boot sequence. So if you set it too early "on boot", it gets overwritten a few seconds later. Does it ever stick when u set it later?

My dual & quad core devices had settings to set different govs for each individual CPU :eek:? ie it took more than a single config change.

You can see these in the Current State>CPU Gov details. Just do a menu search (click on the magnify glass icon) for "CPU" (did you search for "kernel" for a "CPU" governor setting....). That should always be your first port of call (and maybe more than one term/attempt). I certainly dont remember everything in this app, and its where I went to find it. Then, from the results, long press the magnify icon and then enter "gov". That searches within / filters the current results.

You may also find some gov attributes for a more conservative behavior of the defaults gov. Also note the file permission changes required to change it and have it stick.

In the ROM I built with 20 govs, I used an asynchronous boot script runner (ie no blocking), with a delayed setting / change of the gov, for each CPU, and it worked/stuck for me.

Attached is an old script from a few years back, for a device which only had 2 cores (for more I would use a loop). As you can see, at the end of the script, I set it, slept, and then reset it a few times, and also switched back and forth to ensure it noticed and stuck, and changed the file permissions. This technique was safe, as i explicitly used an asynchronous boot script runner. The includes not given, simply set up bb=busybox and the default log file name & paths etc, and the exit include script just closes the scripts individual log file, with some date/time info

PS: If something else is changing it, maybe setting it, then changing the file permissions to only allow reads to every other process may stop them from changing it.
[Android Apps and Games] HippoMan:
Thank you very much for this script and for all that you took the time to write!!!

I made it clear in my original message that I did indeed search in TeMeFI both for "kernel" and for "gov", but as I mentioned, everything that I found is at a much more granular level than simply choosing between different "governors", and this low-level kernel parameter stuff is beyond my current knowledge level.

And of course I know that TeMeFI does not offer ways to get things like this to run at boot time ... while it does offer very useful tools for helping us to create our own scripts.

And so again, thank you *very* much for all you shared and especially for this script, which at least can help me get started on this task.
[Android Apps and Games] alboon2000:
Hi,

I'm trying to figure out what prevents my phone from deep sleeping (+/- 20% of screen off only...), and I found this very nice app. Unfortunately i get a blank screen when hitting the "wakeup reasons" button. Any idea ? Thank you !

PS : Oneplus 8T rooted, Nameless ROM.
[Android Apps and Games] DiamondJohn:
I do not understand what you are pressing? there is no "wakeup resaons" button. The only "buttons" are in the fly-out toolbar, of which there are only 7

I can only guess you are looking at the Battery History Extras Graphs? Even within there, there are many many different variations available. You would be best to give the full definition of the menu location of the method you are trying to run.

eg Currently Running>Battery>Battery History Extras>Graph>AUTO-WIDTHx4>Textural Even [TEXT]>60 Minute window *SUGGESTED*>Wake Reason [WAKE_REASON] etc etc etc

On saying that, this may not be the best way to determine YOUR specific battery drain/reasons. There are literally 10s of other graphs. I personally commonly look at WakeUp App. In saying that, i should point out this APP is HUGE, and its not really the aim of the app nor thread to explain all the intricacies and technicalities of all the 1000's of pieces of information it provides; just give easy access to them, for user to knowledgeably interpret. For simpler help, you may be best to run the BBS app, and post your log on there (read the op on how). Its a single purpose, targeted app. explicitly for battery drain, as opposed to the 1000's of details TeMeFI gives. And there are users there who are exceedingly helpful (and patient) to help guide you through and interpret your results.; such as @TNSMANI and @Oswald Boelcke

I personally usually look at the Battery History graph and the doze graph first, and their interplay.

Now, why you are getting a blank screen. If you run the battery sats report, and PM me a link to the download (not publicly post here). I can check if there is an issue with the method in TeMeFI, or in you source data; google have changed the format of this graph over the years, let alone what a manufacturer may do. Currently Running>Battery>Battery Stats This is the source data from which all the battery stuff is built.
[Android Apps and Games] DiamondJohn:
Actually, I realised when I walked away, I think you are getting more than a blank screen. Are you seeing the bomb icon in the top right, such as explained in the post

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

Clicking it will give you the error and long pressing will clear thee error.
[Android Apps and Games] Utini:
@DiamondJohn

Coming from the BBS thread:

I tried those options but I can't really see/understand what is causing the long delays that my phone has until it gets into deep sleep.

As reference, when in the office I have about 60% deep sleep (screen off) and 40% awake (screen off). When home its like 90/10.

Here are some screenshots attached. Does that help? :P
[Android Apps and Games] alboon2000:
I press Currently running>battery>battery stats summaries>Wakeup Reasons

And I get a blank screen, without the bomb.

I'm just desperate understanding why my phone sometimes never goes into deepsleep, I thought I could have a hint with this app (ZERO green area in the battery graphs...)

Thank you anyway :)
[Android Apps and Games] DiamondJohn:
Search the thread for Doze profile.

Run the report Currently Running>Doze>DumpsysDevice Idle History and look at your "settings" at the top. I would hazard a guess its not very aggressive. Generally, you want to see as much green (deep-idle) as you can. In the BBS thread, I am not clear when they speak of idle being either doze or simply CPU state. They are not the same thing, and I think people mix the two up on that thread.

PS: The last two images are simply static help/info/description pages, and are not specific to your device/situation.
[Android Apps and Games] DiamondJohn:
TeMeFI is not a yes/no answer app. It provides a heap of info, in many many places for the user to interpret and use.

When my old phone did not get into deep sleep, I created my aggressive doze profile. But even with that, if you have a really badly behaving app, then that would be the next check I would follow; battery history extras WakeUp App & wake reason.
[Android Apps and Games] Utini:
Attached is a screenshot from my settings.

Also a screenshot of the available doze profiles

Does that mean I would need to make my settings more aggressive and if so, which profile should I choose?

Is that safe or can it cause any troubles?

Also I find it weird that stock Android 12/13 just really never goes into Deep Sleep at all (according to TeMeFi).

According to BBS there is some kind of deep sleep.
[Android Apps and Games] fred_gaou:
How to convert an user installed package into a system one with TeMeFI?
[Android Apps and Games] Oswald Boelcke:
Out of respect to @veez21 we'd appreciate if you discuss TeMeFl in its own thread but not in another developer's one. Thanks for your cooperation.

Regards

Oswald Boelcke

Senior Moderator
[Android Apps and Games] DiamondJohn:
Time to learn "How to Fish". And there is "more than one way to skin a cat"

Search the thread (ie this thread), Its a rule of XDA

TeMeFI has a built in Menu Search. Its the Magnifying Glass 🔍Icon in the fly-out toolbar Covered in the first few posts of this thread

Then Type in a partial term for what you may be looking for. In This case, "systemize"

That will result in a list of possible matches that take you directly to that item.

After you run it, the full actual location will be shown in the bottom half of the status bar. My last attached image below may be confusing, as I switched to a search for GPS since i had nothing to systemize

In this case, I actually got caught out a little, as I generally tend to use English spelling, not the American spelling. So my first search was for "Systemise" which failed.

Also, if you retrieve the full menu of TeMeFi (not quick....), you can then search that. Start by running the menu item TeMeFI Configuration>Show Whole Menu

After running the full menu report, LONG click the search icon. This action will filter the results displayed.

Type in your search term. The syntax is [SEARCH TERM] OR [SEARCH TERM] |[LINES BELOW] OR [SEARCH TERM] |[LINES BELOW] |[LINES ABOVE] NB: The terms/parts are separated by the "piping" character ie I It took me a few goes to hit the sweet spot for above & below. Remember, to get back to the previous / full results, long press the left arrow n the toolbar, and try another term. You can also do an iterative search to search the last search results. This feature is really helpful for other results, so I took the opportunity to explain it again. The first method would be the best in this case by far. Apart from being much faster, it also searches within the method/code, as well as any comments or such I have placed in the code.