yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] AnonVendetta:
@DiamondJohn: I can't get any of the detach methods to work on my Galaxy Note 4 running stock Marshmallow. When I select the app to detach (NetShare, with package name 'kha.prog.mikrotik') and then the protection level, it crashes my phone (goes to the Samsung logo then to homescreen). No matter which protection level I choose, same result.

I'm rooted with Magisk 21.4, which is the latest version of Magisk I can run that doesn't have any issues. I've tested all stable and canary releases after that, none of them work properly. Other users have filed similar bug reports about this on GitHub, with varying devices, and after well over a year (possibly as long as 2), there has yet to be a fix. So you will just have to trust me on this.

Busybox 1.34.1 by @osm0sis is installed into /system/xbin/. I don't have sqlite3 installed systemwide, do I need it? Anything else I'm missing?

There are other packages I'd like to detach (YT Vanced and a few others), this one is just for testing. Play Store keeps listing updates for it, yet i dont want them because they dont work properly with Android 11/12 (the target device that I'm tethering data to while hiding it). I've had success detaching with Titanium, but it's short-lived and eventually these apps are listed as having updates again. What does TeMeFi do differently to make it more permanent? If i clear Play Store's data, will I need to do the detachments again? Next I'm going to test on my Tab S7+ to see if I get the same results.

I also wanted to apologize for our squabbling some time ago. Perhaps you don't remember, and if not that's OK. It had to do with me modifying your app to remove the Einstein icon and sounds. I was going through harsh life circumstances at the time, and when im feeling angry about things in general, that makes me much more prone to arguing and being non-cooperative. If you will let the past be the past, so will I.
[Android Apps and Games] DiamondJohn:
If I am to take what you said word for word, that makes absolutely no sense. The next step after "protection level" is simply a confirmation step, which is one of the most basic steps in the whole app!

TeMeFI does not use BusyBox, EXCEPT within the busybox sub-menu (read only a few posts above), which detach is not part of.

Now, without logs, I am going to project that the issue you are having, is with your SQLite binary. There are some really old and dodgy ones out there. TeMeFI comes with a built in SQLite binary, but you have to explicitly tell / configure TeMeFI to use that version.

► TeMeFI Configuration
► Default Startup Config
Use Internal TeMeFI supplied SQLite

PS: I am running A11 and have no issues; i have something like 10-20 apps detached. If anything, newer version of android should follow my instructions better. ;)
[Android Apps and Games] AnonVendetta:
Yes, I know this. After selecting the protection level and confirming, it just crashes the phone.

Select app > select protection level > confirm > crash

It doesn't matter which protection level, the crash happens with all 3.

Since I don't have a sqlite3 binary installed systemwide (I've never really had a use for it), then I'll look into getting TeMeFi to use its' internal version. I'm not convinced this will make the system crash go away, though.
[Android Apps and Games] DiamondJohn:
You nay know it, but not saying it , makles a WORLD of difference.

Whiuch makes it more suspicious you have a fauulty sqlite binary

If you are runnoing Android, then you may have an sqlite binary pre-installedwithout your knowledge.

TeMeFI has a method to tell you which (and thus if you have one pre-nstalled) and what version you are running. Somewhere obvious like >Database>SQLite Version and Location

ummm.. which device / ROM are you running. My prefab one is only ARM.

Also, if you still dont get any joy, TeMeFI has built in logging extreme logging which the user can turn on, which writes to the logcat (remember to turn it off when you have finished) Search for "Turn ALL Logging explicitly on"

PS: "and confirmation" is a just as valid/important step to TeMeFI as any other step; is not simply a message box, it runs code, just like the final step.
[Android Apps and Games] AnonVendetta:
I don't have a faulty sqlite3 binary...because I don't have one AT ALL. I'm 110% certain that Samsung doesn't bundle sqlite3 in the system partitions of their firmwares. And if they did, it would probably be in a common binary directory like bin or xbin.

Furthermore, entering 'which sqlite3' in a terminal emulator echoes back no output, it's just empty. Therefore, this binary isn't present on my device.

Using your app to try to locate a system wide sqlite3 binary returns this:

Using SQLite3 located at: /data/user/0/diamondjohndroid.utility.temefi/cache/sqlite3

So, it's like I said, I don't have one. It's using whatever you have built into the app, without any further manual configuration by me (in other words, I didn't manually specify to use the internal binary, it seems it is pre-selected by default).

As for my ROM, it's just the plain old stock Marshmallow provided by Samsung which hasn't been updated in years. The only additions I've made are Busybox, Xposed, Magisk, and minor debloating of apps I don't use (Facebook, WhatsApp, Evernote, some Google apps). Besides those, it's just bone stock. I'm pretty sure the firmware is ARM 32 bit, which means I can run apps/binaries that are armeabi and armv7a CPU-compatible.

Edit: I extracted the sqlite3 from your APK, copied it to /system/xbin/, chmod'ed to 777, then ran sqlite3 in a terminal without superuser permissions. I get this:

u0_a208@trlte:/ $ which sqlite3

/system/xbin/sqlite3

u0_a208@trlte:/ $ sqlite3

WARNING: linker: sqlite3: unsupported flags DT_FLAGS_1=0x8000001

SQLite version 3.37.2 2022-01-06 13:25:41

Enter ".help" for usage hints.

Connected to a transient in-memory database.

Use ".open FILENAME" to reopen on a persistent database.

sqlite>

It appears to execute fine. But perhaps the unsupported flags note is possibly an error and playing a role in this?
[Android Apps and Games] DiamondJohn:
Firstly, you do not need to extract and test the SQLite binary, TeMeFI has explicitly tested and told you it is using the one I ship with TeMeFI, and if it returns the version number, then your device is ARM, as I explicitly only built the sqlite binary for ARM. And for clarity, its not built into TeMeFI, but simply a file I include which I happen to have built from source. And hence its easy to extract as a superfluous random file. And did I mention it explicitly tells you where a copy of the file resides, which should also be set to execute.

Your running an old version of android, and although I dont "think" Samsung would be known for letting files in, it doesnt need, i did find it more prevalent in older ROMs (I usually run custom ROMs, many I built and modded my self for me). Now, even custom ROMs dont include it; hence I include one in TeMeFI.

Since its shutting down before it reports the results within TeMeFI, your only option to find out whats going wrong, is to run the logging as described above.

1 Turn all logging on in TeMeFI

2 Clear the logcat

3. run the method

4 run a logcat

5 Zp up the file and PM or attach it here

6 Turn off all TeMeFI Logging

Otherwise you have given me nothing to work with, and leaving me to guess, only for you to deny what I have guessed based on no information from you, until I ask for it explicitly; logcat is a standard/minimum step to debug android & its apps. Technically since it crashes, there should already be something in the Logs.

Just out of interest, not to help debug the situation, have you tried the Battery History reports? Although the linker error may hint at something else missing/broken in your ROM. Note, I personally built and tested TeMeFI starting on a Samsung S4 GT-i9506, although most but not all on custom ROMs.
[Android Apps and Games] DiamondJohn:
Hey AnonVendetta , I had another idea. Install the Magisk SQLite library and give that a whirl. It is also an older version, so maybe more likely to run on Marshmallow.
[Android Apps and Games] AnonVendetta:
@DiamondJohn: The Magisk sqlite3 binary (in the repo) wont work. it even says in its' description that it's compiled for aarch64. i tried it some months ago but it wasnt able to be executed. My CPU is ARM 32 bit.

Clearly your definition of "built into TeMeFi" is different from mine. AFAIC, it was compiled into the APK by you when you produced it, so by my definition that constitutes built-in/bundled. i think most logical, reasoning people would reach the same conclusion. But OK, whatever, we can agree to disagree.

i forgot to mention something else from before. Which is that, not only does my phone crash and return to the home screen, once there the mobile data is also disabled. if i try to toggle it on, i'm told to insert a SIM card. After up to a minute at most, the phone reboots yet again and is seemingly back to normal. The results are the same regardless of the method chosen. I believe your app is triggering a soft reboot, which is shortly followed after by a hard reboot.

The point i'm getting at is that i'm having trouble capturing a logcat from within the app.

My steps:

1. Enable all internal logging within the app (to the best of my knowledge, all logging has been turned on)

2. clear logcat from within the app (which always seem to result in "errors/warnings: failed to clear the log")

3. Go through the motions to detach the package name i mentioned in my earlier post, trying all 3 detach methods

4. Samsung logo appears, home screen appears, mobile data cant be toggled on, system crashes within a minute. in this timeframe i try to run the app to retrieve the logcat and figure out how to save out, but phone hard reboots before i can finish

That's all I have up until this point.
[Android Apps and Games] DiamondJohn:
I personally previously used the Magisk Module on my Samsung S3 GT-i9506. That is 32b ARCH, and the Magisk Module worked. It was simply a poor description. It also said it was "the latest" which was also very wrong, even when I first used it.

I take "nuilt" and "compiled" interchangeably. When compiling TeMeFI, I am NOT compiling the SQLite Binary, I simply include it as a pre-built. I go through complete separate steps to actually COMPILE the sqlite binary. I could of taken a binary compile by someone else, so I do not see how in that case I could ever claim that I compiled (or "built") SQlite, so logically the same is true if I compile the SQLite binary on another day, different to the day / instance I compile TeMeFI.

The more you explain the more it looks like your device has much bigger issues. No crash in my user app should disable the telephony device.

A logcat will still be all there after you restart TeMeFI. Even if you couldn't start TeMeFI after a crash (wehich you have not stated that you cant), then you can also retrieve it via a shell. Even if it was to reboot/shutdown while using it, you can have it running while you do whatever you do to make it crash. The point I am making is that you CAN get a logcat, multiple ways.

Step 2 should NEVER error! Something is seriously wrong with your device. Can you run su; logcat -c; in a shell? whats the output?

And you are missing step 5 & 6. Which should be either restart TeMeFI and save a logcat OR run a shell and get a logcat. OR have the shell logcat running while you are running the crash step.
[Android Apps and Games] AnonVendetta:
i'll try to address the rest of your post later. But i was able to try the logcat command in a terminal:

u0_a208@trlte:/ $ su

root@trlte:unreachable) # which logcat

/system/bin/logcat

root@trlte:unreachable) # logcat -c

root@trlte:unreachable) #

I get no output, it's just empty. Perhaps Samsung has disabled logcat on my firmware.
[Android Apps and Games] AnonVendetta:
@DiamondJohn: i just tried the sqlite3 which is available in the Magisk 21.4 modules repo. When i run it in a terminal i get:

u0_a208@trlte:/ $ su

root@trlte:unreachable) # which sqlite3

/system/xbin/sqlite3

root@trlte:unreachable) # sqlite3

/system/bin/sh: /system/xbin/sqlite3: not executable: 64-bit ELF file

1|root@trlte:unreachable) #

So, not compatible, uninstalling now. Perhaps there is some other sqlite3 module you are referencing? The one i just tried is by @ianmacd.
[Android Apps and Games] DiamondJohn:
The logcat -c command would not produce any output. It simple clears the log. If you run a logcat before and then after, it will only have the logcat's since you did the clear. MUCH easier to hone in on an issue.

ie. it appears to work! dodes it not work from TeMeFI?
[Android Apps and Games] DiamondJohn:
OK, its been a few years since I used it, so maybe he has compiled a new one. We could look further into it, but it would be a waste of both our times.

Do the logcat using my sqlite binary.

I have a suspicion that the stock Samsung ROM has been de-bloated to exclude some standard android common libraries, and hence a shell of sqlite fails. Marshmallow is now pretty damn old. I was running up to Oreo I think on my S4; at least Nougat. I see now that they have A12
[Android Apps and Games] AnonVendetta:
i'll keep trying your suggestions and post again when i can do a full response. until then, i'm considering doing a full Odin firmware reflash to be sure everything is clean and official. besides that, i would only flash TWRP and Magisk 21.4, to exclude the possibility of my changes interfering.

i'm aware that debloating with apps like Titanium, can also remove some shared system libraries used by multiple things. which is why i only use it for backups/restores. i once had an issue with auto rotate not working despite it being toggled on/off, and Titanium was the cause. My method of debloating is to just use a root file manager, deleting only the unwanted APKs, without touching their libraries (if any) or the top-level folder they live in. And i only delete obvious bloat like Facebook, WhatsApp, some non-essential Google apps, not much else. if something even remotely looks like it may be important to system operation in some way, i dont touch it.
[Android Apps and Games] DiamondJohn:
Sorry. to be clear, I did not mean the debloating by yourself, I was actually thinking of Samsung debloating the ROM from AOSP android, to what suits them and what they deem as necessary. As you found, they clearly thought the SQLite shell binary as not needed, and therefore, any dependencies only used by it may of also of been omitted. So they can fit more money generating bloat.

Even debloating system apps, should generally not remove shared libraries (apps in /system/apps or priv-apps etc while shared libraries are generally placed in system/bin or xbin etc). The app specific directories would generally not be in the execution path (also available to be seen in TeMeFI), making them unavailable to be used by other apps/shell. Also, even though your device allows modifying the system partition, it may be time to go with the latest methods and start systemlesly debloating. Which, low and behold, TeMeFI does ;)

EDIT:Maybe reach out to someone else running a rooted MMSamsung device, andhavethem check, before you wipe & rebuild the device. I know I am holding back on moving to my next A12 custom ROM.
[Android Apps and Games] Lucky_069:
Doesn't temifi detaches the apps permanently? Because after a reboot or two my YouTube and YouTube music would auto update irrespective of the temifi detach. It's almost like a reboot fixes whatever temifi took away. I have to always revert back. Even after I have turned off playstore auto update but after using temifi detach the app would get updated automatically
[Android Apps and Games] DiamondJohn:
A reboot will not undo the detach. I reboot every day.

An update to the playstore can sometimes rewrite / rebuild the playstore data and hence re-attach it. Also wiping the playstore data will remove my detach techniques. The check will let you know if this case has happened.

However, if you have NOT sorted out your SQLite issue, the detach wont work. I am unclear as you have quoted a post related to somone who didnt have a working SQLite. Quotes provide context. Have you run the provided check directly after you have detached? Did you read the results screen from the detach to see if there were any issues? there is no pop up message box on failure, you have to read the output. If you still have an issue, save off the output from the detach method and the detach check, and post it here; as text in a zip, NOT a screen shot.

Also, I have noticed that Vanced Youtube, once on my device, did not revert to GYT due to a playstore update, but because of a Magisk mounting failure. One big giveaway was that it revereted to the old firmware pre-installed one, and not the latest playstore version. TeMeFI also has a list of which apps have been updated by desc date order. If the detach failed, it should be near the top of that list. Run that report also to check if an update came from the playstore.
[Android Apps and Games] Lucky_069:
Okay will do and update on the same thanks!
[Android Apps and Games] DiamondJohn:
New Version v1.1.16

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

Clear of un-used/redundant installs of TriChrome library (Android System Webview)

These new items can be found at Application Info / Manage>Duplicate Installs>TriChrome>*

Report​

Graph>Width%>Height%>Font Size pt>Buffer at top to allow for summary table​

Text/Table>100%>100%>Text Size pt>0pt top buffer​

​

Purge​

No ==> it wont do the purge but list the actual code that would of been run to clear all but the latest installs​

Yes ==> This selection will delete all but the latest, and also display the code used to run the purge.​

The suggested menu options to select are marked with an asterix (*)

Doing the purge has the slightly obvious & expected result, that the report becomes VERY boring now that there is only one install. PS: while I was writing all this, a new update came through, so now I have two lines again! or one line to purge!

If you select 0pt for the text size in the graph, there will be no text displayed.

Some images of before & after running the purge.

If you click on the text after the year...maybe a bug in the webview library....hopefully fixed in an update...some extra details will be displayed for that line

Also note, its a existing standard feature of TeMeFI, to reload the current menu, simply long press the HOME icon in the toolbar, and that will also re-display the toast message. Which will tell you if you are setting the height or width.

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

Rebuild of SQLite, upgraded to v3.38.5. armeabi-v7a is shipped with TeMeFI. ie 32bit

A few steps from the last build

Also, I now have arm64 builds and x86 as well as x86_64. I will publish these at a later date win the SQLite update thread I have.

I am running the arm64 build personally, using a magisk module that I created myself.

I added a correction for bad output from Android that is used as the source for the battery history report. I found that on very rare occasions, the first few records were a few years behind in their date. I now trim these old dates which also removes results to anything happening more than about a month ago.

Download: SEE OP!

Enjoy and stay safe.
[Android Apps and Games] oldman20:
Great! Waiting long time. Thank DEV!

Ps: I checked MD5 doesn't match! Smt wrong?
[Android Apps and Games] Kippy51:
Wrong MD5 in OP for v1.1.16?
[Android Apps and Games] DiamondJohn:
yep. sorry. forgot to change that from the last version. Its been a while since the last update, and am a little out of practice. :sleep: fixed. (y)
[Android Apps and Games] patrickdrd:
I can't find the download link in the OP
[Android Apps and Games] AndrzejDwo:
yeah seems like it's missing @DiamondJohn
[Android Apps and Games] DiamondJohn:
Whoops, my mistake., again.... I must of accidentally deleted the link before I had a chance to update it. I think I also cut some other stuff, so will check if I can get a historical version.

Link has been added.

EDIT: Also updated/returned other missing parts using the WayBack machine.

I really need to get a new keyboard, this one doesn't react as expected, but I love its form/design.
[Android Apps and Games] HippoMan:
I don't mean to be a spoilsport, but I'm wondering if I could install a non-animated image. Or does the code depend on the image being animated?

I'm not complaining about the animation, and I know that many people will now enjoy installing their own animations. I'm glad that this capability has been added.

I'm just not an "animation" type of guy ... at least not on my mobile device.
[Android Apps and Games] DiamondJohn:
OF COURSE! any GIF will suffice.

Furthermore, you could of tested yourself, worst case senario, the waiting screen would of been balked, and you could of just used the reset to default option in the menu, to revert anything you had done.

Although there are methods that could "break" you device, I try to avoid options that would hurt TeMeFI ;) apart from the self destruct :(

edit: Added the note to the release post.

PPS: and "Im glad this capability has been added" now becomes "Im glad I can turn that damn annoying animation off!
[Android Apps and Games] HippoMan:
I know I could have tested, but I wanted to ask first. Thank you for being willing to answer, and thank you for all your continued work on this very useful utility!
[Android Apps and Games] DiamondJohn:
Would that also mean you would prefer the rotating wait icon (left of the fly-out menu) to not rotate during the run of a method? How would you know if something is running? an hourglass instead of a rotating icon? but to be honest, id be tempted to make the hourglass rotate and empty...
[Android Apps and Games] HippoMan:
I wouldn't want you to remove functionality. I just want the option to block or remove animation on my device, whenever that is feasible.

If removing the rotating icon is not feasible or not desirable for you, then I'm fine with it remaining.
[Android Apps and Games] DiamondJohn:
I would'nt "remove it", but with-out checking, I think it would be a pretty easy thing to turn off / disable it, as an option. Just as you can have the toolbar at the top or bottom, or now change the size of the animation (or in your case static image). I know when I chose a bad animation how annoying it was, and others may (and have) not liked the dancing banana; and then possibly the spinning waiting icon.

If you want it, maybe others wish for the same. And, if it isn't too hard, having the option of a spinning hourglass may be a third option. Although the way I do it, it would be severely restricted as compared to the GIF animation change code for the waiting icon.

Im basically asking out of interest just to understand others thoughts. Remember, I myself no longer use the dancing banana for my wait icon.
[Android Apps and Games] HippoMan:
For all I know, I might be the only person in the world who doesn't want any animations on my device.

If it's not too much trouble, I would appreciate having the option to disable all TeMeFI animations, but as I mentioned, I certainly could live without this capability.
[Android Apps and Games] DiamondJohn:
I actually coded it to parametise the animation control setting (such as time, amount of rotation [in three degrees of freedom!) etc etc etc), I planned in the future to give an interface to modify it; but never got around to it, an d actually forgot about it, till now. When I was developing it, I tried some radical values, and it was fun to watch... once.