yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
To test if the Detach is the actual cause, run the:

Application Info / Manage.>Detach Package from PlayStore>Remove ALL TeMeFI detach artifacts

Which will remove all the detach changes, then install the update from YouTube.

If this re-enables your passing of SafetyNet, then the detach method could be a cause.

Next, you may wish to try Method 1 and see if that also breaks SafetyNet. If not, try Method 2.
[Android Apps and Games] DiamondJohn:
Safety net is causing all sorts of almost random issues. This poster also installed then uninstalled xposed, and did not get his safetynet pass back, without TeMeFI.

https://xdaforums.com/showpost.php?p=82286647&postcount=39460

Another thing which may help (since no one knows whats going on) is to uninstall TeMeFI and see if your pass comes back.

NB: if you were to enable the detach of youtube, you can uninstall TeMeFI and Youtube will still be detached. TeMeFI does not run in the background.

Use the "self destruct" method to uninstall TeMeFI.
[Android Apps and Games] TrippyEngine:
Thank you for the new update! Do we have to remove detach artifacts and then detach again the apps we had already detached before updating TeMeFi?
[Android Apps and Games] DiamondJohn:
No! Using the remove all artifacts is an extreme move, and will mean you will need to install all the updates for the apps you have detached; although you can cancel them just before they actually install.

If you already have detached an app using Method 2 or 3 in version 2, you should be good to go with applying the new version 3. Just do all of them, if you have more than one, although they still should work, its just not tested.
[Android Apps and Games] crok.bic:
Your problem in this thread is totally offtopic.

Your log links are broken because you've copypasted it from somewhere here on XDA (probably you already posted it to some threads I guess?) but you didn't even mention basic info, like device name (a Mi A1, or?), ROM (V10.0.12.0.PDHMIXM (Pie), or?SELinux status, anything..?) or anything relevant.. your phone is probably running Android Pie or higher and since Google just activated new SafetyNet methods then probably your phone is failing now, XDA and lots of forums are full of this, the dev of Magisk tweeted it way too many times.. here are some tweets:

https://twitter.com/topjohnwu/status/1245956080779198464

https://twitter.com/topjohnwu/status/1237830555523149824

https://twitter.com/topjohnwu/status/1245963069643051009

https://twitter.com/topjohnwu/status/1245956818397835265

[This thread] - even though it's offtopic for your problem, but - contains huge amount of info and complaints like yours and advises, too, so please use the thread search tool.

My two cents, generally speaking: first uninstall Magisk with Magisk Uninstaller ZIP in a custom recovery and check whether your ROM passes SafetyNet without Magisk or not. Then move one step further and install Magisk and test again.. and if it is still okay move further.. narrow down at which point it is failing. But not in this thread, please.
[Android Apps and Games] Jinzuken:
sorry for not posting my device info,

here's my device info

Device Information:

Mi A1 running on Android 10

ROM: Evolution X Version 4.20

Android OS Version: 10.0_r33

Security Patch Level: April 2020

ROM Kernel: Linux 4.x

Based on AOSP

Magisk Log: https://xdaforums.com/showpost.php?p=82293785&postcount=39515

i know that my post is off-topic i just want to share with you guys xd

ive already posted the reason why im posting this information with magisk, i think you dont read that part i understand my topic went off

also with your suggestion in the last part of your post, i did that and i think you didn't read my post yeah totally you dont. i am sorry for posting off-topic i already posted the reason and i accept if my replies/post will be deleted in this thread :)
[Android Apps and Games] crok.bic:
You are wrong. I did, unfortunately I did and spent time on it. And in the meantime - while I was writing - you changed the text, too. But still, that's why I said what I've said. You provided null info about your ROM and device, so my advise was as general as your provided info. Successfully hiding root from an app is not the same as passing a SafetyNet check - recent changes on Google's side (see the Twitter links) can flip the CTSProfile check from one minute to the other - but without knowing that your ROM is actually "clean" and does not break SafetyNet anyway (without Magisk, in "vanilla" shape) all I wanted to say that probably your issue is caused by Google not by Magisk itself and advise from the bottom of my heart to you that you must make sure that your ROM is clean and only then start to troubleshoot your problem, section by section. That's what you are not knowing, structured troubleshooting from the info. Now you deleted those apps' data and probably you've caused more harm to yourself (just doesn't know or feel yet), like you've lost some service data, thus I would expect some CPU hogs here and there in the near future -- but it will be okay for some time. Next day or next hour it will break again when the Google servers will do a different test. Cheers.
[Android Apps and Games] Jinzuken:
its resolved now by clearing data of google play store and play services - safetynet passed xd thanks for the tips and help sir|

also for staying to the topic of this thread - i detached the youtube using the app, still the safetynet still intact with the passed result
[Android Apps and Games] DiamondJohn:
Just an FYI, my free/dummy link shortner account expired (well, really they wanted my real personal details :cyclops:), so I created another one, and changed the shortened link for download, and updated the OP. Its the exact same APK, just a different shortened link.

Are people simply using the safetynet check in the Magisk Manager? I dont need it for anything, but I pass both tests, and have

Unlocked Bootloader

TWRP (I haven't even deleted the TWRP path off my internal storage, but I use USB OTG for TWRP)

Magisk

ViperFX

A fairly large Modified Hosts file

and lots of other changes, but I still pass Safety Net within Magisk.
[Android Apps and Games] crok.bic:
Strongly depends on the ROM and the hardware (key storage implementation), some ppl with some modern phones are actually reporting SafetyNet failing and the only modification was: they unlocked their bootloader.. and their NFC paying apps starting to fail - SafetyNet CTSProfile and basicintegrity goes red.. phone not certified, etc. In the Twitter links I posted here topjonwu explained what's going on in the background if you are interested. A module that can help in some cases is the MagiskHidePropsConf module that can change the phone's fingerprint string systemlessly - and it is working just because in the past Google did a weak job with the fingerprint testing (simple string check..) but now it is using a much sophisticated method (hw key attestation), older hardware thus would fail, but the module can help, newer models are just failing badly..
[Android Apps and Games] mrjuniork:
Would you mind sharing your fairly large modified hosts file? :)
[Android Apps and Games] DiamondJohn:
A little OT, but Its not anything too big, its 2mb. It was larger, but one of my host sources recently died. But size is not the goal. I built my list of selected host sources a while ago, based on that they appeared to be the most active ie regularly updated with newer hosts, while not being too large.

But there is no point sharing my host file, as it changes every few days. I use the following scripts

https://xdaforums.com/android/software-hacking/hosts-diamondjohn-host-builder-script-t3872728b

with the list of hosts in the file attached.The file format of the hosts list aligns to the above script (RE fallbacks)

If you want a ridiculously big host file, then use the config file attached as host_sources_ALL.zip (but don't, use that as a reference for possible host sources)

If you want big, then https://adblock.mahakala.is is about 6mb alone.

And to bring it back to TeMeFI, I actually use TeMeFI's "Dynamic List>Run User Script" feature to rebuild the file by kicking off the script.;)

You just need to configure it to let it know where the scripts are

for eg:

echo "/data/local/DiamondJohnHostManager,/data/local/userasynch.e,/data/adb/post-fs-data,/data/adb/service.d" > /storage/emulated/0/TeMeFI/.config/USER_SCRIPT_LOCATION
[Android Apps and Games] iPAQ 6515a User:
Would KeWeOn not be a better (the best) solution?

Sorry for off-topic
[Android Apps and Games] crok.bic:
If you want big hosts list consider to check the lists of energized.pro, some of them **are** big :D

Blu (a mid size one) is 6MB, the Basic is 13MB, the Unified is 30MB (but I feel that this last one is for linux firewalls and such since it will need a lot of fs cache).

I'm really not sure, something phishy is going around that project.. And it's working in a whole different way. A classic man-in-the-middle kind of attack done by traffic diversion (resolving DNS names via a trusted DNS server to data sniffing servers and after saving info forwarding them to the original destination) is not that hard to do with that setup.. and you won't see anything because you've trusted the root CA cert.. huge cloud proxy service providers are doing something like this (Zscaler for example; with a lot of other services) but those are enterprise level and really big, wordwide scaled, trusted solutions for hell a lot of money..
[Android Apps and Games] DiamondJohn:
Its a TOTALLY different solution. Like comparing apples to oranges. And no one solution could ever be considered "the best", as different users have different requirements.
[Android Apps and Games] Philnicolls89:
Thank you [MENTION=5417899]DiamondJohn[/MENTION] for you detach app methods, I have been using method 3 now for multiple apps for a few weeks now and no issue with the selected apps showing up in play store (I still have auto updates disabled because I'm paranoid of them updating lol). But being able to select update all is very handy and doesn't take much time or effort at all!

Simply out of curiosity I have a question, why are there 3 different methods if they all do the same thing? Is it just the coding/script is different and certain methods may not work on certain phones or roms? Again this is just to satisfy my curiosity sorry for the noob or uneducated question! Again thank you, it's developers like you that makes everyone's life easier with these amazing free apps. Please never feel unappreciated or stop your amazing work.
[Android Apps and Games] DiamondJohn:
Live on the wild side, turn auto-update on!

But, that was how I originally used to personally run it also, and when I went to auto updates, I got annoyed how slow the updates came through automatically, as opposed to forcing the updates with an update all. Now, I am mixing it up with auto-updates on and with a force all when I see an app I want to get the updates for, now.

The three methods are very different:

Method 1: Very Very polite to Google Play. Think of it as your device telling the Playstore, "I don't Have the app installed, so nothing for you to update":angel:. But of course, Google are very protective of their own apps such as YouTube, and will not believe you, and thus do a check, and correct your device. So it would sometimes fail. I *think* google only does this dance with their own apps; such as YouTube, Maps etc etc

Method 2: Semi polite. Think of it as saying to the PlayStore, "These are not the droids you are looking for";). and if/when google corrects your device, a few milliseconds later, it undoes googles attempted corrections.

Method 3: similar to all the above, but when google tries to correct your device, it kicks google where it hurts :eek::crying: for its trouble.:p
[Android Apps and Games] Philnicolls89:
I shall turn auto updates on...But be warned your jedi mind tricks will not fool me if it fails...I am no droid ;)
[Android Apps and Games] DiamondJohn:
In your status report, you have two failures. ie the detach is not complete. Was this the results before or after an update. You should check it before.

During my testing, I normally corrected these cases by accepting an update from google play and then detaching, and then uninstalling the updated (leaving Vanced) and then checking the status again.

I just checked my source, and failing check 2.0 is VERY serious and would thereby explain why the detachment is not working. Your Playstore would appear to have been questionable before. (You did run the report straight after detaching....)

Were you using a different detachment methodology prior? or even worse, in combination?

Also check 8.0 appears to be a strange failure.

Run the detach, and then directly after that run the check and save off the results. ie BEFORE and not after an update has come through.

Also note, if an update does come through (which may actually put you in a state to properly detach), you have to re-run the detach (followed by a check).

And further, if you actually save off the report, and attach the report instead of a screenshot, there is extra information hidden in the file which would of helped me understand what is going on better.
[Android Apps and Games] DiamondJohn:
What did you mean by this?
[Android Apps and Games] DiamondJohn:
Actually, I just realised there was something I have assumed as "common knowledge" but realise now that is was a big assumption on my part.

After you detach an app from the PlayStore. Never Never NEVER NEVER go to that apps download/install page in the PlayStore. Or, even search for the app.

The whole concept of detaching is about hiding the fact that the app is installed. By opening the app page in the PlayStore you are asking the PlayStore to check if the app is already installed on your device:mad:.

Because TeMeFI does NOT run in the background, once the PlayStore "corrects"/undoes anything I have performed, TeMeFI does not have an opportunity to re-adjust the corrections made by the PlayStore.

So, let me repeat, NEVER go to a detached apps download/install page in the PlayStore.

If you accidentally do, then go and re-apply the detach for that app.

As a general rule, immediately after you detach an app, run and save off the check for that app.
[Android Apps and Games] Jinzuken:
alright sir, now i've done unbloating youtube

installing youtube vanced apks through sai installer - done

detach via temefi app - done

checks status of detach - all are passed except 2.0

lets see if my youtube app will auto update or not

later on ill submit my before and after checking detach status and the report
[Android Apps and Games] DiamondJohn:
How did you debloat?

If ANY of the checks fail, then I would expect it to fail; ie let an update through.

I do not understand how you would think a fail on any item would leave you in any kind of protected state:confused:

I just checked, and 2 is a very important check not to fail. All of them should pass.

==edit==

Actually I told you this before and you have the exact same issue again!

==edit==

Accepting an update BEFORE detaching may return your install to a valid state in the eyes of the PlayStore; ie a valid starting point. Thats what worked for me during testing.

From what I read of your install, you installed YouTube unbeknownst to the PlayStore. The PlayStore needs to know about your YouTube install, before TeMeFI can detach it; and hence your failure.
[Android Apps and Games] Jinzuken:
Welp, ive done unbloaating YouTube app via ADB

And yeah i do have still problem on 2.0

See the image in the attachment

Ps: before doing installation and detaching youtube vanced apk, ive already set the play store to not auto updates app and since then ive never visited the youtube app or the play store
[Android Apps and Games] DiamondJohn:
I keep repeating myself.

1. You should not have any failures.

2. You may need to accept an update to correct the failure / what is missing in your PlayStore attachment of YouTube. Visiting the playstore page for YouTube may actually fix your state before you detach. Its after you detach that your should not visit the page.

3. A screenshot tells me close to nothing. Save off the results and attach the file.

Saying "ive done unbloaating YouTube app via ADB" tells me nothing. There are many many ways you may of used ADB. 99% of what TeMeFI does can be duplicated over ADB, and it has over 580 commands. Without the command I do not know what you have done nor what state your phone was in before you ran the commands; eg was it already installed as a system app.

I repeat (again) you should not have any failures, and I have explained how you may fix it.
[Android Apps and Games] Jinzuken:
okay sir ill try your suggestion and i'll update you when there's a result. Thanks again for your helping me! :D
[Android Apps and Games] Jinzuken:
How to generate a report again sir? Ive already updated my youtube and doing right now detach youtube app. Thanks!
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.80

Download: SEE OP!

Notable changes OR ones not in the lists below:

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

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

I also noticed I had a typo in the OP from the previous release that showed the version was 1.0.70 instead of 1.0,79.This version is 1.0.80 and I've corrected it:o

Enjoy and stay safe.
[Android Apps and Games] DiamondJohn:
I've been meaning to post this for a while.It shows a possible actual numeric comparison between different discharge and/or charge rates. This image shows the actual difference between two different cables and chargers. With the latest version, you are also given the actual numerics so can do a mathematical comparison between chargers and/or cables.

View attachment 5008777

The thing that I am really interested in testing is the actual numeric difference in discharge rate between full brightness and the lowest screen brightness.:confused: I know just using the phone I have not really noticed the difference as it would also depend on how often and how long the screen is on during the day.
[Android Apps and Games] crok.bic:
Thank you for mentioning this kind of comparison, I will use it for prooving to guys on Telegram that high battery temp. and PMIC control and|or using cheap cable and a cheap charger is always results in low current.. some kids never been in physics class at school :\

Since way too many people are thinking that simply the screen on time (or SoT) means something useful without knowing what's been running on the screen (and what screen is actually built in to the device.. LCD or LED..) I wrote an article a year ago with the title SoT / screen on time - why it is *not* a universal measurement for ROM / kernel battery management and also (for the same reason..) I wrote about how the charging current is depending on some factors (title says it is written for my actual phone but 75% of it is general). If you are interested here you can find some other writings from me, too. Cheers!
[Android Apps and Games] DiamondJohn:
Sorry, didn't read any of your links :o

However, one thing that might interest you is that the battery temp data is actually available in my source data, and its part of the data I "throw away". If you look at the last screen shot in the example, I start with 19865 rows but only use 106 to generate the graph. So I throw away 99.46% of the data! and some of that is the temp data.

When I was building it, I was considering allow selecting one of the different parameters (such as mobile signal strength, wifi strength, battery temp etc etc etc) to add to the plot, but I did not get around to it, but its always a future possibility.;)

You can get this data yourself in the "Currently Running>Battery>Battery Stats" report, then long press the magnifying glass, and enter "temp=". I am not certain what the units are; possibly Celsius and just divide by 10:confused: that gets it within 1 degree of what is reported by a sensor app i use, and the 1 degree difference could be simply a timing thing.
[Android Apps and Games] fire_of_mind:
Hello. I did detach YouTube app from play store (use venced) and want to detach more apps but "DETACH : Select package" is now showing only YouTube package... Did clean app data but didn't help. Any suggestions? TIA

Redmi K20
[Android Apps and Games] DiamondJohn:
Which version of TeMeFI are you running?

Cleaning app data of TeMeFI or the app you wish to detach has no effect. Clearing App data of the PlayStore will wipe all your app registrations out as well as your login info.

Is your PlayStore working? because TeMeFI uses its data.

Maybe going into your PlayStore may clean it up. As if you are running the latest version of TeMeFI, then it should show all your apps that are registered in the PlayStore. If not, then sounds like your PlayStore is a little mixed up.

To check what your device thinks is registered in the PlayStore:

Use the following menu item path Database>Dynamic DB Queries>All Table Data>/data/data and then wait a little bit while it generates a list to fill the menu

Long press the "X" on the far left of the fly-out menu (ie the Exit button)

in the popup entry field, type in appstate and click OK

There should only be one menu item now (ie /data/data/con.android.vending/databases/localappstate.db), click on it

Then click on appstate in the menu

Click on the last item (ie 10000) in the menu

Click on package_name

Click on ASC

The results window should now show a list of ALL your registered apps/packages. If you cant find your app in the results, then the problem is somewhere with your PlayStore, not TeMeFI.
[Android Apps and Games] fire_of_mind:
I'm running the newest version. Thank you for the extensive instruction. I don't know why, but now everything works fine - I cleaned TeMeFI data again. A brilliant app. cheers

Redmi K20
[Android Apps and Games] DiamondJohn:
Clearing TeMeFI data in itself should not fix or change anything I can think of. I hardly have anything in the data partition, keep most of the TeMeFI app data in /sdcard/TeMeFI/* However, I have seen on my phone where the Cache can get it self into a bad state, but I do all sorts of weird and wonderful things while building and testing new releases. But glad its worked for you.

One thing I forgot about that may of given a clue as to what was going wrong, is the menu item:

TeMeFI Configuration>Last TeMeFI Warnings and/or Error log
[Android Apps and Games] fire_of_mind:
*** NO ERROR LOG AVAILABLE ***

Now I remember I did force close play store... Maybe that helped?

Redmi K20
[Android Apps and Games] DiamondJohn:
The error log needs to be run directly after the error occurred, not after other things have been run (including navigating the menu)

The "Reboot Now" would of done the same thing.
[Android Apps and Games] Ashish Gupta1999:
Youtube Vanced Detaching Working Great , using from 20 days now , no issue at all , no auto update of vanced , Thanks dev for your amazing work :)
[Android Apps and Games] shadowstep:
[MENTION=5417899]DiamondJohn[/MENTION] Been using TeMeFI for a while now (only for detaching apps from the Play Store), and it's been working great. However, I am facing an issue when I have to re-attach an app I had detached. For example, I had detached WhatsApp using Level 1, and that went alright. However, after re-attaching WhatsApp, I'm unable to see if in the Play Store (after rebooting, etc.). Checking the detached apps section in your app, I see one entry of WhatsApp still present, and I can't remove that (because the app doesn't show WhatsApp as detached anymore). The only thing that's worked for me is clearing Play Store's data, but I would like to avoid doing that every time I re-attach an app. Thanks for your time!