yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.71

Download: SEE OP!

Made MANY changes, but was a little lax on manually tracking them, sorry.

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

exit early when asked if to continue with the old version of a favourite, and select no

Fixed the filter on the results for a table result to include the header and the full row, instead of just the cell that matches.

many many other changes, see the updated menu items, and the added menu items (not many new items added) in the TeMeFI menu.

Battery History

(*) added many new auto level max drain graph

(*) correct horizontal axis to display label as discharge rate instead of battery level

(*) make the extra vertical tick invisible

(*) add value labels to every second horizontal lines

(*) look after some bad cases of source data

(*) added extra info such as time not covered by the graph

See the attached for a few other notable items/explanations.

I "massage" the data a lot to make up for questionable data, but I still see cases that need attention. Mostly where the data jumps 10years back, just after a reboot!

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

It is recommended that you delete ALL you existing favorites and re-create them, as they will run the old code/version.

Updated Menu Items: Mostly due to small changes/improvements in shared code.

Enjoy!
[Android Apps and Games] unibombz:
Hello, I tried method 03

And the method can be found in the menu at:

"Application Info / Manage>Detach Package from PlayStore>Select Package then Protection Level"

From there, I would select

"com.google.android.youtube"

and then

"3 - Invalidate the data / link, and block any attempted corrections"

Now, if you do not see "com.google.android.youtube" in the list, then YouTube is currently detached/not registered within the PlayStore. You will either have to wait (without the existing detach script running), or manually install then uninstall it the one time to enable the process to be kicked off.

This does not work for me, I have been having a hell of a time trying to detach Vanced <see attached>
[Android Apps and Games] DiamondJohn:
You have not clarified, however, YouTube will not appear in the list, if you have recently used the Detach method. Or, even worse, if you have the detach method currently running.

1. YOU CANNOT HAVE THE NORMAL DETACH METHOD RUNNING if you wish to use my detach

2. If you had the previous detach method running recently, then, you have two choices:

(i) Wait until Google "Fixes" the youtube record

(ii) Manually install youtube from Google play, then replace it with Vanced, then run my detach

Its very simple, if you do not have YouTube available to selected in my app, the n, YouTube is NOT registered in the playstore. Its a VERY simple list

Wait a sec, you should also have a list of ALL your other Playstore apps, but you have nothing. Have you checked that your ROM supports SQLite?

Within TeMeFI, use the menu item:

Database>SQLite 3 Test & Help

There is also as described above (https://xdaforums.com/showpost.php?p=81925337&postcount=227), a "Last error". After showing your empty menu:

Press the "Home" button on the fly-out menu, then select from the menu:

TeMeFI Configuration>Last TeMeFI Warnings and/or Error Log

Post the log from this item here.
[Android Apps and Games] DiamondJohn:
I also realised, that you would of received a toast message with a cut down version of the error, as a flag that something was not ok.

I don't remember explaining the "AUTO" sizing. So lets see how I go here.

The auto sizing does the horizontal and the vertical axis.

1. The horizontal axis. This is flagged by "AUTO-WIDTH". There are many in the list, and basically its all based around my screen width, in pixels, which is 1080x1920. Doing x2 means it will be 1080 * 2 = 2160 pixels wide, so the graph takes two screens in portrait. If you have a higher pixel count, then maybe use a bigger one. I tend to use x2 to x4. Maybe in the future I will base it on the devices actual pixel width. If someone with a higher pixel width could confirm the graph is undersized on their device?

2. The vertical axis. This is where it gets a little funky.;)

So, you will see the options like

What this means, is that the maximum percentage (ie vertical axis showing drain) will be set to display the lowest x"?" % of items/values. So, if you select "AUTO-DRAINx25" and there are 100 data points. the highest, of the lowest 25 data point will be used as the max value for the vertical axis. See, clear as mud....

I normally go for about 35 for normal daily use, and 75 to see the battery charging graphed.

To check on idle drain, I still use the fixed and explicit, 4%

Two bugs come out of this.

i) I actually have code that should round up the values to the nearest 5%, and it worked on the first few tests I ran, but it clearly now shows some unusual values like 7.2%:silly:

ii)Another thing which could theoretically happen, although I have not seen it for normal logs, is, if all the values are all the same, then a percentage of selected values makes no sense. I do not code for that case as it seems pretty unlikely if you graph more than an hour.
[Android Apps and Games] unibombz:
OK thanks.

This is a fresh build with a custom ROM has my previous build, I was able to use the Magisk detach script which worked well. This new version of vanced is kicking my butt trying to detatch it, I have never had such a hard time

01. I tried the enable_detach - in /data/cache

with

ytva_detach_from_playstore.plz - /sdcard/

no luck

02. Magisk module is gone

03. Trying this (your) method here, not successful yet, but i hope I can get it working

04. Maybe I will attempt to figure out how to downgrade vanced if I cannot get 03 working. I will try tonight when home from work its the last step to this ROM being 100%

I currently disable auto-update apps anyways so I am not worried about it 'breaking' that, I rather have it out of the market list so I can use update all if possible.

Thanks :)
[Android Apps and Games] DiamondJohn:
Its all about SQLite3. You do not need to downgrade vanced, it wont help if you simply don't have SQLite3. If you are 64bit, there is a magisk module.

What were your results from the SQLite3 Test I linked above?

You will not get a change/benefit if you downgrade vanced.

What were your results from the SQLite3 Test I linked above? (ie Database>SQLite 3 Test & Help)

The "trick" is that the existing detach script has SQLite3 distributed with it (which I cannot use). All my methods use SQLite3, but I expect the user to sort it out either by their ROM or through Magisk,using their preferred solution.

Do you have a 64b device? https://github.com/Magisk-Modules-Repo/sqlite3

You can install it from within Magisk

And simply to repeat myself, Downgrading Vanced will not solve your problem.
[Android Apps and Games] unibombz:
What were your results from the SQLite3 Test I linked above? (ie Database>SQLite 3 Test & Help)

/data/user/0/diamondjohndroid.utility.temefi/cache/temefi_runner.sh[56]: sqlite3: not found

Do you have a 64b device?

Yes 64bit w/ Pie (9.0)

And simply to repeat myself, Downgrading Vanced will not solve your problem.

OK, wanted to confirm.

So.... I downloaded sqlite3-master.zip from - https://github.com/Magisk-Modules-Repo/sqlite3

Would I flash this .zip from TWRP or Flash via magsik? Forgive me I haven't manually adding modules to magisk, always used their module 'store'

Its all about SQLite3. You do not need to downgrade vanced, it wont help if you simply don't have SQLite3. If you are 64bit, there is a magisk module.

I will try the magisk mod <see attached>

Thanks,
[Android Apps and Games] unibombz:
Edit:

You're the man! <see attached>

Let's see if it breaks Play Store downloads ;)
[Android Apps and Games] DiamondJohn:
It only breaks the auto update feature of the playstore, I use (and as you have also said that you also use) the "Update all" button. That works unbroken,and youtube is never in the list. I have 3 phones all running for about 3+ weeks now without an update. and no-one here has reported any issues, once they get SQLite up and running.

Edit: method 2 does allow auto updates. Next to try method 3.
[Android Apps and Games] unibombz:
Love it man! Yes I turn off auto-update.

Awesome fix and workaround. Thank you kept these instructions in my homemade readme file for future deployments
[Android Apps and Games] unibombz:
Good morning,

As much as I do appreciate the help and this fix, YouTube keeps reappearing on this device.

Device 01 -

my daily driver (using magisk module detach script) working fine

Device 02 (dev phone) - detech magisk has been removed :(

enable_detatch/detech.plz does not seem to 'take'

SQLlite3 method seems to work until the phone is rebooted, but also works after a few reboots, touch and go.

I'll keep working away on it. Thank you again for all the time and assistance. XDA community is awesome!
[Android Apps and Games] DiamondJohn:
STOP CLICKING ON RANDOM ITEMS YOU DO NOT UNDERSTAND!

It will not work because you have not read nor followed the instructions.

The image you have attached clearly tells me you have not read the thread (a rule of XDA). I explicitly explain what you are seeing, and it also explicitly tells you, and within this thread, it also explicitly explains how to see what has been run. You will break your phone if you randomly click on things. So, its clear the detach would possibly not work because you have broken that also with your random clicking.:rolleyes:

Every issue you have had has actually been explained before you posted your issue. ie if you had read previous posts, you could of solved the problem yourself. Instead you have consumed my time with previously answered questions, which wastes my dev time to supply improved functionality to all other users. This thread is about TeMeFI, its not all about [MENTION=4335664]unibombz[/MENTION]
[Android Apps and Games] unibombz:
All good, I haven't randomly clicked on things. However, I understand the reason why it re-populated in the market, to why I needed to undo detach and run the process again.

I only followed the one set of instructions you explained which I appreciate.

Cheers brother
[Android Apps and Games] DiamondJohn:
To all, you do not need to "undo" the detach, as part of the detach, it undoes the previous detach, so as to start "clean". But it also does not "hurt" the process either.

On your randomly clicking on things, your screen shot you attached as a prompt/question for me to explain, shows beyond a doubt you have clicked on an item (that was explicitly explained in the notes with that release) that you did not understand. and should not have been clicked on. You are kind of lucky that I have added extra explicit code, to handle when people accidentally click on the item, as it could of caused damage.

Now that you know what has gone wrong, it could be helpful to others and possibly for myself (and therefore all users of TeMeFI), to know exactly what went wrong? Please share.
[Android Apps and Games] unibombz:
Yes for sure, as deploying this new ROM and getting everything to the way I wanted it. I was running into some concerns with Google Assistant (which I have in the past) and it seems like a common issue.

To troubleshoot this concern users had created feedback about clearing cache, data, etc. and even uninstalling Google Services/Assistant/Playstore/Google app.

Through this course of this troubleshooting, I had done this to the Play Store. Being that TeMeFl had processed variables relating to the Play Store and YouTube, the Play Store repopulated YouTube, however, TeMeFl was in a state that it was detached. So I said OK let's try 'method 3' process again which was the screenshot I posted.

I thought, let's undo detach to revert the process and then detach it again. That worked.

So the theory of clicking within TeMeFl, that was stated, was incorrect, but understandable in regards to what little information you had to the "why" was fair.

Tinkering with other apps, data, cache, uninstalls that relate specifically to Play Store (in this case) <app data/cache/> was my bad.

Learn from mistakes, that's why pencils have erasers.

That was a little long-winded. I hope it helps.

Again thank you!
[Android Apps and Games] DiamondJohn:
Clearing data or uninstalling the playstore, will definitely undo the detach. Clearing cache would of been fine.

And no, once you clear the data for the playstore, TeMeFI is not in a state of detach. TeMeFI is NEVER in a "state of detach". It sets the playstore to a state of detach. As I stated above, once you have detached YouTube, you can even uninstall TeMeFI, and the detach sticks.

The screen shot you posted was definitely NOT detaching YouTube. It even explicitly states that it wasn't YouTube in the screenshot. You must of accidentally clicked on the item just below YouTube.
[Android Apps and Games] unibombz:
Correct, that's what I did, as I cleared data on the PS which it undid the detach to troubleshoot another issue. Being that PS was 'reset' I had to redo the process. I attempted to emulate this in another instance and had the same result.

The screen I posted was once I selected com.google.youtube, it prompted the following status was all.

Regardless, back in business. If PS data is ever reset in the future, which is doubtful now, it's known what to do. :good:
[Android Apps and Games] DiamondJohn:
No. The screen you posted will ONLY show if you selected anything other than YouTube. You don't seem to comprehend, I typed every single character of this code. It was not a copy paste from somewhere else. The actual switch to show that message is a very simple if statement. It just wont happen. The message even explicitly states it was not YouTube.

The reason I am so adamant about this, is if you can prove it did come up after clicking YouTube, then there is a serious bug I need to address, however, if it is as i suspect, that you accidentally clicked on another item, then repeatedly stating the misinformation is using up my time that would be better spent on enabling the next stage of detach (multiple methods against any PlayStore app. NB: One method per app, but each app could use the simplest method for that app). All the evidence you have shown thus far, explicitly confirms you did not click on YouTube.
[Android Apps and Games] DiamondJohn:
Just to further my obsession with the Battery graphing...:silly: and to help people understand how it can be used.

To generate the following graph, I charged my phone to 100% (the actual number is not important), ran the "Currently Running>Battery>Battery Reset", then turned the screen off and did not touch my phone (any movement will trigger battery drain) until I received an SMS at around 9:30 the following morning.

I did an "Idle Drain" check on my daily (similar to what is expected in BBS https://xdaforums.com/showthread.php?t=1179809). The battery graph displays the drain over time in a visual way and also shows how it changed over the time (in case something happened to create a high battery drain), and is "interactive" as you can click on each item in the graph, to get info to link into the very detailed and information rich Battery Stats report.

View attachment 4969377

Now, as you can see, my drain was less than 1% throughout the night:good:

Then at about 9:30 am (if you click on the vertical bar that jumps up, the message will show as below)

From that message box, we can see that the event occurred when the battery stepped down to 90% on the 739th line This line number should roughly correspond to the line number in "Currently Running>Battery>Battery Stats" report. I filter out redundant lines, so it wont actually be a direct one to one. Its easiest to simply use the % to find the right line anyway; which is also in the message box. in this case I searched for " 090 " ie 90%

Now, from the Battery Stats report, we can see the following. The phone woke from deep-idle, due to receiving an SMS, and hence the drain rate jumped up to over 5%, and hence above the top of the graph which is drawn as maxed at 4%.

View attachment 4969379

The above is a simple case, as I have my daily pretty much under control regarding battery drain. However, the above could be very useful if you find that it is randomly undergoing high drain periods.Using the above method to link back to the Battery Stats report could show up a errant process needlessly starting and causing a wake-lock.

The thing that does look "boring" in the graph, is that it is all green, with on;ly slight graduation down to a darker green. This fact IS because the drain was so low (<1%) that the battery level stays pretty constant, and hence the colours are all the same. In this case green as it was around 100% battery down to 89%. If the drain rate was higher, the colours would change quicker. Looks more interesting, but is a bad thing, as it indicates the battery is draining. Also, if the battery was draining faster, each vertical bar of the graph would be thinner, as the % steps down quicker.

Another thing to note, is that the hours of the horizontal (X Axis) are not on the hour, but relative to the starting hour of the report. So if you started at 12:59:34, then every hour will start on the 34th second of the 59th minute of every hour. Also, the hour markers are: every hour there is a small thin marker, every two hours a slightly larger marker and then every 4 hours a big thick tick/marker.

Hope this helps.
[Android Apps and Games] unibombz:
Roger that brother. I am not sure what to tell you nor am I am doubting anything. I am stating only what I performed, not trying to anger you, my apologies if that is the case.

The concern has been resolved since though. I do appreciate you and your work :)
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.72

Download: SEE OP!

This release is a fix of the detach from PlayStore method, for users where the PlayStore database may have a descriptive text for YouTube (and other random packages)

=============================================================

Yep, you were right! I was wrong:o

A couple of weird things here.

1. In my testing on my three devices (2 were Android 10 and one was Oreo), the YouTube record did not have any descriptive text, so my original code assumed that it would only retrieve the package name without any description. I forgot to go back and correct that fact when I added code to list ALL the available packages with their descriptive / name. None of my phones had that for youtube, so my tests never failed.

2. This is where it gets really strange. Obviously on one install/initialisation of the playstore you had a descriptor (and hence it did not work), but in another you didn't (and hence it worked). google were inconsistent, but I was wrong to assume that would always be the case, but it was a bit of a timing thing, in that I added the descriptor later, but didn't account for it in the rest of the code, after I did.:o

I have corrected the code to correctly expect some packages with, and some without, and that's what this release is all about.

Sorry for doubting you:angel: and thanks for finding this bug.

I knew there was a reason for putting that extra text in the menu bar....:silly:
[Android Apps and Games] unibombz:
Hey no problem man.

I have some bad news to report. I got my other device all setup and working, however running this application and detaching youtube seemed to mess up another app and make it FC.

The app is signal private messenger.

I verified this because I made a TWRP image of my phone before I loaded TeMeFI + SQLlite module on my phone. I reverted/restored to that image and the application worked without FC.

I do have to logcat pulled from the FC but I went back in my steps before I started altering the device.

Kinda sucks I have to start over from that state, so I will have to live with youtube attached to the PS so Signal works.

I am not putting the blame anywhere it's the only thing I have verified

Image one - before TeMeFI + SQLite (magisk) + detach = signal private messenger working

After the above -- signal FCs. the ONLY app of all the apps that FC.

I can only relate that it was on the above change :(

Oh well that's the game we play, pros and cons :)

Maybe you have some theories, i dunno. but I have to head to bed and rebuild over the weekend. I was so close too :)
[Android Apps and Games] DiamondJohn:
Logcat logcat LOGCAT!

It works fine on my phone (Android Q). I ran it up to the point it asked for my phone number (ie personal details).

There are a few moving parts here. The most suspicious to me would be the Magisk SQLite install. Once you run the detach method, you can uninstall SQLite and even TeMeFI. Nothing runs in the background apart from the playstore in regards to detachment, and I do not install, modify or leave any executable assemblies. The reason I do not ship SQLite with TeMeFI, is the possibility of a system wide change affecting any app that tries to use it; which most normal apps wont. The only other possibility (which would NOT be the case for a non-root app) is that it is in someway trying to modify the YouTube record specifically, then, it will get punched ....ummm... where it really hurts. Thats how the detach works for Method 3.

Until you get a logcat, nothing is verified, especially since you have SQLite from Magisk installed.
[Android Apps and Games] unibombz:
Gotcha. Yes the SQLlite I did attempt to disable to see if that fixed signal. I would like to keep signal working so I will look for an alternate detach method, or just leave YT in the play store.
[Android Apps and Games] DiamondJohn:
ORRRrrrr.... you could get me a logcat, and if it is an issue with TeMeFI you may help others.:angel:
[Android Apps and Games] unibombz:
Sent log in PM for you. I still haven't reverted to my previous build as I have had a busy weekend.

Thanks for looking into it, I am not sure if it will help :-/

I do appreciate it!
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.73

Download: SEE OP!

The BIG change here is the detach from PlayStore.

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

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

It is recommended that you delete ALL you existing favorites and re-create them, as they will run the old code/version.
[Android Apps and Games] unibombz:
Did you get the log ok?
[Android Apps and Games] unibombz:
Good morning,

I hope you're keeping safe. The app had an update in the play store a few days back. I thought sure why not, and what do you know, everything is back and working.

Thanks for looking into it. I was relating this concern from one image to another :)

You do good work man, solid!