yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
And surprise, surprise, I found the setting (in a database location) that has been eluding me for a couple of years:highfive: using the above steps.

Additionally, when I was about to post this detail, I read the above and noticed something strange in the adb shell script. It had some strange slashes in it. So I tested the commands, and then corrected them to not include the extra slashes, and low and behold, the statements worked.

In the below I queried it and saw the one I added previously. Then added their one using code, and queried the data to see it there. And then deleted the last one I added (_id=2) via the shell.

ks01ltexx:/ # su;
ks01ltexx:/ # content query --uri content://com.android.blockednumber/blocked
[COLOR="gray"]Row: 0 e164_number=, original_number=9999999999, _id=1[/COLOR]
ks01ltexx:/ # content insert --uri content://com.android.blockednumber/blocked --bind original_number:s:'6501002000'
ks01ltexx:/ # content query --uri content://com.android.blockednumber/blocked
[COLOR="gray"]Row: 0 e164_number=, original_number=9999999999, _id=1[/COLOR]
[COLOR="green"]Row: 1 e164_number=, original_number=6501002000, _id=2[/COLOR]
ks01ltexx:/ # content delete --uri content://com.android.blockednumber/blocked/2;
ks01ltexx:/ # content query --uri content://com.android.blockednumber/blocked
[COLOR="Gray"]Row: 0 e164_number=, original_number=9999999999, _id=1[/COLOR]
[Android Apps and Games] DiamondJohn:
yep, a 0 instead of a 1 :mad: Sorry:o. I should have a new build which includes with other items, with the fix for this derp, out soon. Just checking I haven't broke something else:silly:
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.21

Download: SEE OP!

Removed (fuzzy logic to ignore quick taps) tap tendency in menu scroll/slide

Added a number of new items

Added a "Self destruct" which cleans up the created folders on your SDCard and uninstalls TeMeFI-v1

Some menu restructure

Added content providers "Currently Running>Content Providers"

fix applied to generate selinux allows Thanks to [MENTION=5701712]shaqman89[/MENTION] for finding that boo-boo

Search current dynamic menu. iteratively. ie you can filter, then filter those results. eg filter to "google" then filter to "gms" etc etcTo acces it, long press on the close/menu button on the far left (top or bottom depending on your config, I really like the bottom personally)

add folder config for user scripts, allowing multiple sources for user scripts to be triggered by TeMeFI

NB: "Preview" of an XML out command is not working, but it executes and you can look at it after the fact. And that ones pretty dang plain as a simle cat anyway.

Other stuff...

The folder options, as in the previous release, are now also available for USER_SCRIPT_LOCATION as well as USER_LOG_LOCATION

echo "/sbin/.core/img/.core/post-fs-data.d,/sbin/.core/img/.core/service.d,/system/etc/init.d" > /storage/emulated/0/TeMeFI/.config/USER_SCRIPT_LOCATION;

The service.d and post-fs-data are script locations used by Magisk if you have user boot scripts. The /system/etc/init.d is the old init.d functionality of CM. NB: These scripts no longer actually run

To undo it

rm /storage/emulated/0/TeMeFI/.config/USER_SCRIPT_LOCATION;

I also updated the list of menu items in the OP
[Android Apps and Games] DiamondJohn:
New build! bug fix

New Version v1.0.22

Download: SEE OP!

This release is mostly a bug fix release over 1.0.21. You will only notice the bug if you did not have ROOT set to available on boot already.

Fixed derp in storage of root status. Sorry guys, my bad, and I didn't notice it because I set the default to assume root.

Same derp was causing trace logging to default to on

Removed dependency on ROOT, for setting default root setting on startup (confusing I know...)

every so slight change to root check. But, it may be enough to alter the way root check didn't work for some running the beta of Magisk, on some Pixel devices (worked ok for me with Pixel on Beta Magisk:silly:). Give it a go and let me know. Shout out to [MENTION=5124760]yochananmarqos[/MENTION] and [MENTION=5701712]shaqman89[/MENTION]
[Android Apps and Games] yochananmarqos:
I must have offended the dancing banana, now he's gone. The app now freezes instantly with no content, does not prompt for storage permissions and I get a ANR dialog pressing the Back button. Logcat attached.
[Android Apps and Games] DiamondJohn:
:crying::crying::crying: Oh, he's there, dancing on the inside, where it counts.

Its of course hard to tell, however, it appears to still be awaiting the root request response, with the ANR (Application not responding) and the

Application is not responding: AppWindowToken{fa5381c token=Token{7647d8f ActivityRecord{4b674ee u0 diamondjohndroid.utility.temefi/.main t14968}}} - Window{8d05d67 u0 diamondjohndroid.utility.temefi/diamondjohndroid.utility.temefi.main}. It has been 5007.3ms since event, 5006.0ms since wait started. Reason: Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 1.

Have you tried the above "set root to on"? setting?

mkdir -p /sdcard/TeMeFI/.config;
echo 0 > /sdcard/TeMeFI/.config/ROOT_CHECK;

After an install, shut it down, clear from recents (get it out of memory), Oh, and turn on storage permissions in Settings/App/TeMeFI, run the above, then attempt restarting. This should avoid/step over a root check on start-up. :fingers-crossed:

And thanks again for your time.:good:
[Android Apps and Games] DiamondJohn:
after I walked away from computer, it dawned on me that there was not a single explicit log from my code. Which is very close to the first thing it does. :confused: That is not a good sign. Yet there is no explicit android log of anything failing apart from an ANR (which is commonly basically a wait state). ie no fatals/crash reports etc. at least not from TeMeFI.
[Android Apps and Games] shaqman89:
In my case, at first update, without clearing data. It got stuck as well like described above no dancing banana.

I didn't wait it to go anr since I wasn't logging it and hit back and exit.

So I went on to clear data. This, turns out didn't revoke su access in magisk.

Upon opening, it granted su and showed the dancing banana. I think it got comfortable there and wouldn't go away, so I closed it back. This part, I logged:

https://drive.google.com/file/d/1oVcnylQlXsgAriGlTQpc17xj59wjP99h/view?usp=sharing

So I cleared data again and this time revoke su access from magisk. This time it asks for su access, storage permission and went into the app normally. The dancing banana only came for a moment before going.

Note, I'm using magisk 17.3 beta
[Android Apps and Games] DiamondJohn:
From what I'm reading, the ANR isn't giving a visual pop-up. So you may of already hit the ANR in the background.

Also, the logcat logs in the background, you don't need to "turn it on", its always on, but flushes the old when it reaches a certain size. Ironically, once you got TeMeFI up and running, you could even of used TeMeFI to capture the log of its first failure.

Thats weird, Every-time I have cleared data on any app, I will be re-prompted for root.:confused:

I checked the log, and I didnt see anything logged by Android that was a surprise. As for the internal app logging, it starts out with tracing turned on, but then loads your config (which by default turns tracing off)

10-23 12:28:00.404 I/TeMeFI (12233): [Trace] . . . . . . . LoadConfigItem<LOG_TRC_ON, false, 0>.Entry
10-23 12:28:00.421 I/TeMeFI (12233): [Trace] . . . . . . . [B]LoadConfigItem<LOG_TRC_ON, false, 0>='0'[/B].Exit
10-23 12:28:00.432 D/TeMeFI (12233): [Forced] [B]LOG_TRC_ON=false[/B]

And then TeMeFI goes silent, but would of logged if it had an internal error, which it doesn't appear to have struck.

To turn all the logging ON (Not recommended for day to day running), before you start the app, you can run the following script). And turn it back off within TeMeFI ;) or delete all the files in "/sdcard/TeMeFI/.config"

mkdir -p /sdcard/TeMeFI/.config;
echo 1 > /sdcard/TeMeFI/.config/LOG_INF_ON;
echo 1 > /sdcard/TeMeFI/.config/LOG_WRN_ON;
echo 1 > /sdcard/TeMeFI/.config/LOG_TRC_ON;
echo 1 > /sdcard/TeMeFI/.config/LOG_DBG_ON;

NB: You cannot switch error logging off.

Additionally, you can, by changing all the 1's to 0's in the above, turn it all off manually, but once your within TeMeFI, there is also a menu item to turn all logging off; ie no typing, which in a way is part of the point of this app.

My suggestions is set root to "ON" in the menu, set busybox to "ON" (if you have busybox), and set the menu/toolbar to be at the bottom (a personal preference), and all logging to "OFF". That will speed up the start-up time.

That's weird:confused: You would be a perfect case to log before and after (with all internal logs set on) If you have the time, I would be interested to know how you go with root set to ON on boot, and the data cleared and the app restarted. I am also guessing you actually deleted the SU line in Magisk, as simply switching it off should just revoke SU, and skip the request.

Oh, don't worry, he's a dancing, but just behind the menu! Use the menu hide ("<") to see him again
[Android Apps and Games] yochananmarqos:
What setting? The log said it was waiting for a key event. I noticed the Back button was a down arrow like the keyboard was active, but it wasn't there.

Good news! I updated to Magisk 17.3 this morning and I immediately got the root prompt for TeMeFi. I thought it was stuck on the dancing banana again, but I played around in the menus and functions worked. The next time I opened it the menu opened right away. Logcat attached.
[Android Apps and Games] DiamondJohn:
Sorry for not being clearer, https://xdaforums.com/showpost.php?p=77951386&postcount=45 But thats irrelevant now since it is working for you :highfive:

That actually just adds to the weirdness, as the keyboard is not opened on start, or on a root check prompt. But again, history.

The fact that TeMeFI doesn't work at first, but can be cajoled into working signifies something to me that either there is at least something wrong in my code, or at least something that could be done better.:( But its really hard to find/fix since I cannot duplicate it. But maybe, that whole saga is now history with Magisk 17.3?

When you say the menu "opened right away" are you sure it was killed from memory? If you want to speed up start-up, set the ROOT available and busybox (even if you don't have it) to true. ie in the menu >TeMeFI Configuration>Default Startup Config>Set ROOT available on Start-up. One bug/feature I havent mentioned is that i am lazy in regard to re-orientation and when Android semi-kills the activity. I simply restart the whoile app and recreate the menu from scratch :o ie you loose your place, and it looks like you restarted the app.

FYI: I recently was messing with one of the dumpsys db calls, and found some interesting info I can report on regarding Magisk. Next release.

This app really is a time sink, but a great source of info, even I am constantly finding interesting and useful info about my device/apps.

PPS: Thanks for the log, but as with [MENTION=5701712]shaqman89[/MENTION] , once the default config is loaded, tracing is turned off, and TeMeFI goes silent in the log (as designed). And there are no errors logged which cannot be turned off.
[Android Apps and Games] DiamondJohn:
Detach YouTube from Playstore

All care taken no responsibility assumed.

You must be Rooted!

You must have sqlite3 installed and in your path; I think most people can assume this is the case. Its installed by default in most modern ROMs

Install TeMeFI, and start the app (optional to install it, script can be used alone)

Download the attached zip file

Extract the detach_youtube.sh file from the zip

Copy the extracted sh file from the attached zip file to /sdcard/TeMeFI/scripts/

Run the script. Either using TeMeFI, or whatever method you prefer.

To run it using TeMeFI, you will now find it under the following location in the menu.

>Dynamic Lists>Run user scripts>/sdcard/TeMeFI/scripts/detach_youtube.sh

The way I personally use it, is when I go into the Play Store and see YouTube is saying it wants to be updated, I open TeMeFI, and run the script. When I go back into the Play store, its out of the update list, so I can do an update all. I have a similar script as part of my boot process, but as others have found, eventually it comes back.

NB: You do not have to install TeMeFI to use the attached script. You could schedule it to occur automatically at regular intervals using whatever app that can run the script under SU.
[Android Apps and Games] DiamondJohn:
Yep, found a bug. :o On first startup it doesn't appear to be working. Just exit and restart it OR press the back button to display the toolbar (or the menu button) and then click the "home" button to refresh the menu. Should have it fixed in the next update, but it only appears to occur for the very first start-up.:o
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.23

Download: SEE OP!

This is mostly a small bug fix release over v1.0.22.

fixed bug on "stall" seen on very first start-up

Added Magisk methods

Added some more config change items to bulk update log settings

Better handling of not being given permissions

Added more internal logging

other minor changes....
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.24

Download: SEE OP!

Menu persists through device physical reorientation (ie protrait <=> landscape)

Results persist through device physical reorientation (ie protrait <=> landscape)

I would not recommend re-orientating the device during a menu build or a report run.

Small adjustments to Magisk reporting

Small adjustments to some report formats/output

a few spelling typos

Added "latest menu items" listing (under "TeMeFI Configuration"/"Latest Added Menu Items")

Fixed/added Logcat statistic method

other minor changes...
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.25

Download: SEE OP!

Fixed a bug whereby clicking on a horizontally scrolled menu item caused it to not run and show a menu currently building toast

Added Favourites feature

Fixed checking on busybox and magisk. It was assuming NO unless you had it was explicitly set in the TeMeFI options.

other minor changes...

The Favourites allows you to "save off" a list of methods/actions that you have found useful, without having to navigate down the menu again, or await it to build a dynamic list of options. For example, you can save off the Setting of nice for a specific app without waiting for it to rebuild the list off all apps on your phone. The negative of the feature is that it may become stale, if I was top update the script behind it, you would still run the old version as at the time you saved off the favourite. You can use the menu item to delete a specific item, but you could also go into the folder "/sdcard/TeMeFI/.favourites" and manually select and delete them. Or, you can rename the files (the desc is stored within the file) to control the order in which they appear in the favourites menu.
[Android Apps and Games] DiamondJohn:
Forgot to mention, to create a new Favourite, simply press and hold the Write output button (ie the far right button in the toolbar, the pencil)

You can only save-off a favourite after running OR previewing the action item.
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.26

Download: SEE OP!

Added multiple Dexdump methods under "Application Info / Manage">"DexDump"

be careful, as these output some very very large files, they could of causes out of memory errors and crash TeMeFI, so most are run as async

Added "Process Details" under "Current Running">"Process Details"

Added a rotating wait icon where the menu button is during times it's building the menu or running a report to let you know its busy

If a favorite is loaded, use the latest version of the favorite ie don't use the saved version which may be stale. NB: only for non dynamic

Add ability to run service.d and post-fs-data scripts

see below for newly added items

other minor changes...

Some newly added items:

Current Running>Network>QTA GUID>QTA GUID Control Information
Current Running>Network>QTA GUID>QTA GUID Interfaces Info
Current Running>Network>QTA GUID>QTA GUID Interfaces Info Text
Current Running>Network>QTA GUID>QTA GUID Stats Information
Magisk>Run post-fs-data.d Scripts
Magisk>Run service.d Scripts
Current Running>Network>Checkin Netstats
Current Running>Network>NetStat nW
Current Running>Network>Network Dev Info
Current Running>Network>Network Diagnostic
Current Running>Network>Detailed Socket State
Current Running>Network>IP Network Interfaces
Current Running>Network>IP Tables XFRM Policy
Current Running>Network>Multicast Address
Current Running>Network>IP v4 Network>IP v4 Network Interfaces
Current Running>Network>IP v4 Network>IP v4 Rules
Current Running>Network>IP v4 Network>IP v4 Tables
Current Running>Network>IP v4 Network>IP v4 Tables Mangle
Current Running>Network>IP v4 Network>IP v4 Tables NAT
Current Running>Network>IP v4 Network>IP v4 Tables Raw
Current Running>Network>IP v4 Network>IPv4 App Cache
[COLOR="Red"]Current Running>Network>IP v4 Network>IP v4 rt_tables[/COLOR]
Current Running>Network>IP v6 Network>IP v6 Network Interfaces
Current Running>Network>IP v6 Network>IP v6 Tables
Current Running>Network>IP v6 Network>IP v6 Tables Mangle
Current Running>Network>IP v6 Network>IP v6 Tables Raw
Current Running>Network>IP v6 Network>IPv6 App Cache
Current Running>Network>IP v6 Network>IPv6 Rules
Current Running>ProcRank>ProcRank
Current Running>ProcRank>ProcRank - By OOM
Current Running>ProcRank>ProcRank - Cached
Current Running>ProcRank>ProcRank - Collapse by KSM
Current Running>ProcRank>ProcRank - Non-Cached
Current Running>ProcRank>ProcRank - Sort by PSS
Current Running>ProcRank>ProcRank - Sort by RSS
Current Running>ProcRank>ProcRank - Sort by Swap
Current Running>ProcRank>ProcRank - Sort by USS
Current Running>ProcRank>ProcRank - Sort by VSS
Application Info / Manage>DexDump>DexDump - All Apps List- Async
Application Info / Manage>DexDump>DexDump Disassemble - Async
Application Info / Manage>DexDump>DexDump Header - Async
Application Info / Manage>DexDump>DexDump Register Maps
Application Info / Manage>DexDump>DexDump Summary Info
Application Info / Manage>DexDump>DexDump Verify Checksum

And some of the above are dynamic, so are multiplied out by the number of apps you have installed.:eek:
[Android Apps and Games] DiamondJohn:
oops... just noticed a small copy paste error

The new menu item

Currently Running>Network>IP v4 Network>IP v4 rt_tables

Is actually showing IP v4 Rules
[Android Apps and Games] DiamondJohn:
New build!

New Version v1.0.27

Download: SEE OP!

corrected spelling within Nice script in output

corrected spelling within comments of Nice & OOM scripts

added "separators" in the menu

Moved some menu items around

Added New methods (see below)

other minor changes...

Some newly added items:

Current Running>Checkin Battery Stats
Current Running>Checkin Mem Info
Current Running>Checkin Package
Current Running>Checkin Proc Stats
Current Running>Checkin Usage Stats
Current Running>Network>IP v4 Network>IP v4 rt_tables
Current State>IP Tables List-Rules
Device Details>Kernel	MENU
Device Details>Kernel>Kernel Binder Failed Transactions Log
Device Details>Kernel>Kernel Binder State
Device Details>Kernel>Kernel Binder Stats
Device Details>Kernel>Kernel Binder Transactions
Device Details>Kernel>Kernel Binder Transactions Log
Device Details>Kernel>Kernel CPU Time in State
Device Details>Kernel>Kernel Info
Device Details>Kernel>Kernel Sync
Device Details>Kernel>Kernel Version
Device Details>Kernel>Kernel Wakelocks
Device Details>Kernel>SYS Kernel File join
Dynamic Lists>DumpSys>Dumpsys Activity App>DumpSys Activities All
Dynamic Lists>DumpSys>Dumpsys Activity App>DumpSys Activity Provider
Dynamic Lists>DumpSys>Dumpsys Activity App>DumpSys System App Crash
Dynamic Lists>DumpSys>Dumpsys Activity App>DumpSys System Server Crash
[Android Apps and Games] DiamondJohn:
From memory you are trying to set the OOM & NICE of a specific app. I am assuming you have ROOT. To do this.

1. Start TeMeFI

2. Grant Root & storage permissions when they are requested

3. From the slide-out menu, press "Application Info / Manage"

4. From the slide-out menu, press "State"

5. From the slide-out menu, press "OOM"

6. From the slide-out menu, press "OOM an app to Superman [-17]"

7. For Viper, From the slide-out menu, scroll down to find "com.pitvandewitt.viperfx" and click on it

The results pane will now show something like the following. Yours will be slightly different as i already have a boot script that does the above.

At step 7, you are presented with a list of all your running/installed apps. so the list you see will be dependent on your set-up / installed apps and running apps. ie you may need to start viper to see it in the list.

At step 7, if you did not wish to scroll looking for the app, you could alternatively, long press the "X" button at the bottom below the menu/ This action will bring up a text entry box where you could type in "viper" and then click OK, and the list will be filtered to only apps with "viper" in their name; in my case it limits the list to only 1 item.

The filter text you enter is not case sensitive. To clear the search press your back button (or the "up" arrow) to go up a menu level.

Similar steps to the above can be used for setting the NICE values.

Note, OOM and NICE gets reset when the app is killed/dies or the phone is rebooted.
[Android Apps and Games] unibombz:
edit : resolved
[Android Apps and Games] DiamondJohn:
when i see posts on other threads that are edited like yours, i wonder what the question was, or even more intriguing is when they have been cut back by a mod:cool:. i personally tend to edit my post, strike out the things i want to delete, and add the explanation of why. but of course, that's just me and my curiosity.

I will also be adding the above blocked numbers content query to the existing list in TeMeFI, in the next build. i checked and it wasnt there. it was hard to find the list I already had, which was built from multiple sources:mad:

This morning, i ran the battery history graph and found that the source included some error lines flagged as '*overflow*'; just the two. so if I do fix that, it would actually mean changing the definition line itself, which would invalidate any favs on that :p still not sure if i will bother.
[Android Apps and Games] unibombz:
Hello,

That makes sense. It was a user error, the device lost or didn't have root, so some menu options were not in TeMeFi. I caught the issue and re-root/rooted the device and all was well.

I only used this app to block youtube (playstore) from updating. I haven't unleashed the full potential of this app, so I am assuming.

Great app!

Thanks again!
[Android Apps and Games] ipdev:
I don't use TelMeFi for detaching but, for me YouTube - com.google.andriod.youtube shows at the top of the list in TelMeFi.

Cheers. :cowboy:
[Android Apps and Games] DiamondJohn:
Yeah, this may be a bit of a face palm moment. As I knew the most common reason for using the detach method of TeMeFI, would be for YouTube, I EXPLICITLY put it at the top of the list (if available) instead of in alphabetic order.