yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
Its going to be tough to prove a negative. I have tried detaching and removing the detach of a second app to see if it is repeatable. Its an easy test as I just kick it off, and leave that phone alone.

I wouldn't hold your breath. The detach is around 10 methods, while TeMeFI has over 650 methods in total. The odds are against it.
[Android Apps and Games] replica88:
1. SQLite is the bundled one, 3.14.1 at /data/user/0/diamondjohndroid.utility.temefi/cache/sqlite3

2. I will try it.

3. Is there any way to run the detach script automatically upon reboot? Rebooting is inevitable with my usage.

4. 20.0.20, latest as always. Maybe there's something done every time play store get updated? Last time Youtube get updated I notice the play store version increased too.

5. Method 3 always.

Here are the reports, all passed (before reboot, and after detaching script has run for a while, still all passed), after reboot (check 9.0 failed)

EDIT: I've recognized that my phone has a secondary account, and the play store on that account does not disable update for YT yet :) Disabled it and now wait & see. Unfortunately on secondary account I can't have magisk manager & therefore no temefi to detach it properly.

EDIT 2: After check 9.0 failed I detach it again right away without re-attach, and this time it survives the reboot (multiple times too), hopefully for good! Hope this will be a good exp for others like me.
[Android Apps and Games] lucfig:
Hi, just installed your app after reading some of your comments about doze k another thread.

I liked that there are several doze profiles built in the app. I will start playing with them, my intention is to have agressive doze during night and work hours and more relaxed ones during the rest of the day. Will use Tasker for that.

Would be interesting if the profiles had a small description to them in your app. Would make easy to remember how each one is set.

Best regards,

Enviado de meu HD1903 usando o Tapatalk
[Android Apps and Games] DiamondJohn:
Yep, the second app re-attached all by itself in under 24hrs :highfive:. The phone was on WiFI all the time, and on the charger for some of that time.

I played with doze a few years ago now, and it is very complicated. Especially since the doze profiles are actually from people who disagree on their understanding and thus many very different profiles. I am not joining that party, and hence I created my own, for me. Use your favourite web search to find the meaning of each parameter. Well beyond the scope of TeMeFI. Its not a training app, its an action and reporting app.
[Android Apps and Games] Robot76:
Firstly, this app is so cool!!! ?

17.1 CrDroid Enforcing xzp

This worked on Los17.1, Arrow 17.1 etc.

Not sure what I've done wrong, or what's missing etc2.

After installing, I get this message in the screenshot.
[Android Apps and Games] DiamondJohn:
hmmm...not sure. One thing I have experienced personally with the menu, is that sometimes, on a clean install, the menu crashes on first start-up. Exiting and restarting TeMeFI usually means it works ok (after setting all the permissions/answer the questions on first start). The first start is very complex with initialising all the permissions required by android, in the correct sequence/order:mad:

The fact you say "this app is so cool" leads me to believe that maybe you have got it working on a second start (or just from previous use). If not, try the following through/using ADB/terminal and attach the resultant logcat.

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;

logcat -c;

[B][I][COLOR="Green"]# *** START TEMEFI and wait for the crash ****[/COLOR][/I][/B]

logcat -d > /sdcard/$(date +"%Y%m%d%H%M%S")_logcat.log;

rm /sdcard/TeMeFI/.config/LOG_INF_ON;
rm /sdcard/TeMeFI/.config/LOG_WRN_ON;
rm /sdcard/TeMeFI/.config/LOG_TRC_ON;
rm /sdcard/TeMeFI/.config/LOG_DBG_ON;

Because I always have TeMeFI already installed when I do a new build, the startup errors slip by:o Chances are you have done nothing wrong, but I have accidentally introduced a start-up bug via a newer build.
[Android Apps and Games] Robot76:
Oh man, you are so awesome, and I really appreciate your feedback. I have switched rom's as my own work profile also didn't work on that rom. I nandroid baked up the rom for a future update.

I am bookmarking this for my future reference, and will give you the log if this happens again...

Thank you so much!!! ?
[Android Apps and Games] replica88:
[MENTION=5417899]DiamondJohn[/MENTION] do we have any way to have root and run temefi on secondary account? The play store there obviously has violated the detach I did in primary account :( I dont really know how magisk components communicate but magisk manager installed on secondary account only tell magisk is not installed, but it is (on primary account everything is fine)
[Android Apps and Games] DiamondJohn:
I don't think I understand what you are telling me.

I have a rooted device,and I can add a second account, then both accounts would be on a rooted device.

If you have some kind of dual boot device, if it shares the same boot image, then both instances are rooted, even if you have not installed the manager on the "un-rooted" instance. If so, then I would (I dont know your device,so its your decision) temporarily install the manager.

You cannot run the detach methods on an un-rooted device.
[Android Apps and Games] replica88:
You understand it perfectly :) but nevermind, I have found the magisk option to allow the magisk manager on primary account to approve root request on secondary account, or even have the separate magisk manager on secondary account too (magisk multiuser mode). By default, apps on secondary accounts cannot request root access, install magisk manager on secondary account would show error "magisk not installed" too, until I switch the multiuser mode in the magisk manager of the primary account to allow other account to request root access.
[Android Apps and Games] replica88:
[MENTION=5417899]DiamondJohn[/MENTION] unfortunately temefi running on the secondary account wont detach youtube from the play store on secondary account, it still targets the play store in the primary account I guess. Even though every check passes, the secondary play store still see youtube appears in auto-update section and installed apps section
[Android Apps and Games] DiamondJohn:
You have explained nada regarding how you are running/setup your two accounts. Remember, this is a free app that I built for me, and I do not run two accounts. and I repeat, I have no idea how you are running your two accounts.

Maybe unzip the attachment, copy them both to /sdcard/TeMeFI/.favourite), run each (you should now have two new favourites in TeMeFI) and save off your output, upload output to https://filebin.net/ and PM me the link (do not post publicly). Passwords are NOT outputted, but it will display your two account email addresses.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.82

Download: SEE OP!

Notable changes:

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

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

Enjoy and stay safe.
[Android Apps and Games] krus5:
Can't open file.
[Android Apps and Games] dingsaller:
Can't explain exactly......
[Android Apps and Games] DiamondJohn:
What???

Huh? cant open what file? TeMeFI doesn't have a "file open" function:confused:
[Android Apps and Games] krus5:
it saves in my downloads and when i press on this apk file it says cant open file, but when i downloaded magisk manager apk and press on it it install without problems. In my files i dont know why next to your apk it says - file but next to let say magisk apk it says android application.
[Android Apps and Games] DiamondJohn:
the "-" in the file name is a valid file name character. You will also see that its up to V82. I have all 82 versions (plus the next one) of this app on my disk and I need to differentiate between them, so the version number in the file name is a must. And I repeat, its valid. And no-one else has had an issue.

That sounds like an issue with your file manager or with your download manager. I would really suggest MiX https://xdaforums.com/showthread.php?t=1523691

To understand what issue you have will depend on your ROM and /or your file manager etc. To understand exactly what is going wrong at your end would be best if you run a logcat capturing the install. And since it is a valid file name, post the issue up with your ROM and/or file manager provider/builder

EDIT: The other thing you should look at is what the filename really is on your device. This detail would best be checked in a shell or over adb.

ls -l /sdcard/Download
[Android Apps and Games] patrickdrd:
amazing! this app doesn't get detached from the play store by any method (I tried all 3 of them):

https://play.google.com/store/apps/details?id=gr.cosmote.whatsup
[Android Apps and Games] DiamondJohn:
Did you run the test after detaching?

Running method 1 basically breaks your ability to run methods 2 or 3. The test will confirm it. So telling me you tried all three, makes me question if you would pass the test. For other methods. Especially since it isn't a google app.

someone above noted they had to reboot, re-detach and then youtube was detached.
[Android Apps and Games] patrickdrd:
I don't know the test you're talking about,

I only checked the results and it showed as successful,

anyway, I rebooted as well,

and the order I run the methods was 3-> 1-> 2,

I ended up signing it with a different key and it worked,

so I solved my problem, it just seemed strange that's why I reported it
[Android Apps and Games] DiamondJohn:
The test (check) has been discussed above, and was in the release post/notes of v1.0.80

Application Info / Manage>Detach package from PlayStore>CHECK: The detach of a single package

Further more, its the item directly above the detach. Its pretty hard to miss if any attention was paid. You would of had to read it, before you read the "detach" menu item.

Switching from 1 to 2 (or 3 from 1, but flipping between 2 & 3 is OK) is pretty much a no-go. Once you selected 3, you should of stopped there (IF it passed the test) and it would of worked. You would of broke it with the switch between 1 to 2. How badly we wouldn't know without running the check.
[Android Apps and Games] diehard2013:
This is what I get.
[Android Apps and Games] DiamondJohn:
Huh? you get what about what when and where?:confused:

Can I buy a vowel?
[Android Apps and Games] patrickdrd:
there you go,

I had detached chrome beta and it was working fine before today's google play store update (20.3.12),

now I'm trying to detach using method 3 again but it doesn't work,

I run the check and it says 3.0, 4.0 and 9.0 fail
[Android Apps and Games] DiamondJohn:
A playstore update can be an opportunity for the Playstore to reverse the detachment things that are done. I have been running the detach of YouTube for a few months, and if the playstore has been updated since, it did not break my detach of YouTube, where it still passes every check.

What?!? check 3.0 AND 4.0 fails? They are probably the two most important and basic checks. Without a pass for them, you have no chance of detach working. The only reason I can think these would fail, is if the playstore is running while the detach is being done (or possibly started too soon after, before a reboot). However, the detach process explicitly kills the playstore before running.

Run the detach again, save off that specific HTML output (reboot) & afterwards the results HTML from a check, zip both files and attach here.

Also, read and do the steps from the post https://xdaforums.com/showpost.php?p=82610735&postcount=398
[Android Apps and Games] patrickdrd:
ok, there you go
[Android Apps and Games] DiamondJohn:
I have not received the PM with the data /files from the two favorites?

As for what I do see, it is still failing check 3 & 4. which as I said was very bad. The favorite output would give me a much better idea why it fails the test.

Actually, one more thing that may give some more info; but I dont know how to explicitly use it.

I also noticed, not that it would make a difference to chrome, but your com.google.android.calendar detachment is using version 2. You should update that to the current version 3, by simply re-detaching it with the current version of TeMeFI.
[Android Apps and Games] patrickdrd:
excuse me, what favorites do you mean?

I can see no files in /sdcard/TeMeFI/.favourite,

only a .nomedia
[Android Apps and Games] DiamondJohn:
Mmmmm... just noticed something.

The DOC_ID for some of your apps don't look correct. For example

The DOC_ID for Calendar is as expected as "com.google.android.calendar". However, the DOC_ID for Chrome Beta is "Chrome Beta":confused: This applies to all your items except for calendar and contacts.

That looks like a possible bug in extracting the DOC_ID or from running a previous version and now having a wrong and a right version (or having the correct version blown away by running method 1). My spare device is downstairs, so I wont be able to test it personally till tomorrow. However, the favorite results will be helpful until then.

Did you by any chance run the detach of chrome beta using a previous version such as V1 or V2 of detach? or I think you said you used method 1.

Another thing which may work if you have done the detach before on a previous version, is if you look down the list for a reference specifically to "com.chrome.beta", and detach that one. You can use long press on the "X" at the left most of the fly-out menu to filter the list to "com.chrome.beta". However, if you ran Method 1 against "com.chrome.beta", then you may of shot yourself in the foot, and its no longer in the list for detachment (experience from above says time will correct that. or re-installing it from the playstore). The more I think of it, this is your problem. You have detached "Chrome Beta" and not "com.chrome.beta"
[Android Apps and Games] patrickdrd:
maybe you're right,

so I deleted google play store's data and I'm trying to start over,

I will post my results in a short while

now it doesn't run I'm getting error extra protection part 4 (line no: 429)

(I even deleted temefi cache and detach artifacts and rebooted and the message didn't go away)

success! despite this error, I managed to detach chrome beta using "1", and chrome stable and google calendar using method "3"
[Android Apps and Games] DiamondJohn:
And maybe that's the time element I saw where the play store needs to be given time before it corrects all its data, and its only then that you can use TeMeFI's detach. The error you received was probably due to Play store data/structure not having re instanced itself completely. Another option would of been the "Remove All TeMeFI detach artifacts", and then wait for the playstore to re-create itself, but it may be slower than clearing all playstore data, thus forcing it to recreate all, possibly ASAP.:confused:

Just for extra info, as the detach has nothing to do with TeMeFI once it is action-ed. ie clearing TeMeFI data makes no difference, you can even uninstall TeMeFI:crying: TeMeFI does not run in the background at all.

You should only need to clear the cache in cases where errors occur during the running of TeMeFI. I personally do not explicitly store data in your data partition, but Android keeps your allowed permissions (ie SDCard write-ability) and root. I do explicitly store data on your SDcard at /sdcard/TeMeFI/*

So, I guess the other way to look at it is, you don't have much to loose by doing it. Just make sure to close TeMeFI before clearing the cache, and it will re-instance all it needs on next startup.
[Android Apps and Games] patrickdrd:
this is the error actually:

Error: no such table: install_source temefi_runner.sh: Line No:429 - Extra Protection Part 3 ====================== 5 Lines above and below... ====================== error_exit "$LINENO" "Extra Protection Part 2"; # install_source sDB_FILE="${DB_LOC}/install_source.db"; sSQL="DELETE FROM install_source WHERE pk='$DOC_ID';"; $sSQLEXEC "$sDB_FILE" "$sSQL"; error_exit "$LINENO" "Extra Protection Part 3"; # frosting sDB_FILE="${DB_LOC}/frosting.db"; sSQL="UPDATE frosting SET last_updated=9999999999999 WHERE pk='$DOC_ID';"; $sSQLEXEC "$sDB_FILE" "$sSQL"; error_exit "$LINENO" "Extra Protection Part 4"; ======================

I'm still getting it
[Android Apps and Games] DiamondJohn:
By "i'm, still getting it" implies that you have reported this specific error before, but its the first i have heard of this issue. Has anyone else seen the above or something similar?

The above issue is a problem in my source, which assumes that a specific data object will always be present, based on the fact its on my phone:cool:, but clearly it must only be created at the point the PlayStore needs it:mad:. The old assumption issue:o

I have made a correction to the source and will get out a new release when I have finished testing, as I also added a few more adjustments in case of similar assumptions failing; and I also need to make the change to the check method as well. Hopefully that will be as easy a fix as the detach was :fingers-crossed:
[Android Apps and Games] DiamondJohn:
oops... I missed this post.

The favourites are from the previous post I linked to, in the post i referred you to.
[Android Apps and Games] patrickdrd:
I meant it started happening after I cleared play store's data and,

according to your explanation I understood that it should go away soon afterwards,

my bad

yes, I read this and the other post and I replied that there is no file in my "./favourites" folder,

only a .nomedia one, I checked with a couple file explorers
[Android Apps and Games] krus5:
Yes you are right it was problem with my file manager, now it works so is time to learn how your temefi works, thank you.
[Android Apps and Games] DiamondJohn:
I have a new release that can better handle your situation. I manually modified the playstore data to duplicate your issue to test my fix. Every time i did it, within a few ,minutes, the playstore undid my dirty work.

Read the instructions in the post, and there is an attached zip file which has 2 favourites to place in your folder. Use the contents of the ZIP.
[Android Apps and Games] patrickdrd:
ok, I now got it but the 2nd command halted my phone for good, only way was to reboot it, I'll send you the output of the first in a bit
[Android Apps and Games] DiamondJohn:
What? by command, do you mean the second favourite? If thats the case, then you have bigger issues, there is no way that the shell command that is run would "halt" (whatever that means) your phone.
[Android Apps and Games] DiamondJohn:
New Build!

New Version v1.0.83

I have kept v1.0.82 available in the OP. Things just fell into place too easy, so it concerns me that it was that easy...

Download: SEE OP!

Notable changes:

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

in the menu item there are a HEAP of changes due to a change to a shared method

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

Enjoy and stay safe.
[Android Apps and Games] diehard2013:
ops.......

Screenshot attsched.

Just stays there, nothing happens.

-29 02:44:55.662 1904 1984 I ActivityManager: Start proc 11734:diamondjohndroid.utility.temefi/u0a247 for activelaunch diamondjohndroid.utility.temefi/.main

05-29 02:44:55.666 11734 11734 E Zygote : isWhitelistProcess - Process is Whitelisted

05-29 02:44:55.666 11734 11734 E Zygote : accessInfo : 1

05-29 02:44:55.680 11734 11734 E .utility.temef: Not starting debugger since process cannot load the jdwp agent.

05-29 02:44:56.192 11734 11734 E TeMeFI : Activity_Resume<HTML_RESULTS_SHOWING=false, bIsBusy=false, STATE_IN_BUILD_MENU=false, lstActions.Size=: java.lang.RuntimeException: Object should first be initialized (Button).

05-29 02:44:56.192 11734 11734 E TeMeFI : Did you forget to call Activity.LoadLayout?

05-29 02:44:56.192 11734 11734 E TeMeFI : dalvik.system.VMStack.getThreadStackTrace(Native Method)

05-29 02:44:56.192 11734 11734 E TeMeFI : java.lang.Thread.getStackTrace(Thread.java:1538)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.main.logError(main.java:15685)

05-29 02:44:56.193 11734 11734 E TeMeFI : java.lang.reflect.Method.invoke(Native Method)

05-29 02:44:56.193 11734 11734 E TeMeFI : anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.globals._vv2(globals.java:416)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.globals._vv3(globals.java:436)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.main._activity_resume(main.java:1135)

05-29 02:44:56.193 11734 11734 E TeMeFI : java.lang.reflect.Method.invoke(Native Method)

05-29 02:44:56.193 11734 11734 E TeMeFI : anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)

05-29 02:44:56.193 11734 11734 E TeMeFI : anywheresoftware.b4a.BA.raiseEvent(BA.java:171)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.main.afterFirstLayout(main.java:121)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.main.access$000(main.java:28)

05-29 02:44:56.193 11734 11734 E TeMeFI : diamondjohndroid.utility.temefi.main$WaitForLayout.run(main.java:93)

05-29 02:44:56.193 11734 11734 E TeMeFI : android.os.Handler.handleCallback(Handler.java:873)

05-29 02:44:56.193 11734 11734 E TeMeFI : android.os.Handler.dispatchMessage(Handler.java:99)

05-29 02:44:56.193 11734 11734 E TeMeFI : android.os.Looper.loop(Looper.java:214)

05-29 02:44:56.193 11734 11734 E TeMeFI : android.app.ActivityThread.main(ActivityThread.java:7080)

05-29 02:44:56.193 11734 11734 E TeMeFI : java.lang.reflect.Method.invoke(Native Method)

05-29 02:44:56.193 11734 11734 E TeMeFI : com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)

05-29 02:44:56.193 11734 11734 E TeMeFI : com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

05-29 02:44:56.
[Android Apps and Games] DiamondJohn:
Do what it says to do in the post:

https://xdaforums.com/showpost.php?p=82591017&postcount=392

Since it's not an obvious crash, give it about 10 whole seconds before running the second batch of commands.

And paste the full logcat (the code cuts it down for you already) on a text hosting website such as www.hastebin.com

Without the actual log, my only stab in the dark would be that it is either waiting for a response to either a root request or permission to write to your SDCard. Are you by any chance running a canary build of Magisk:confused:
[Android Apps and Games] diehard2013:
https://hastebin.com/ekixuqayon.coffeescript

root granted by magisk.

sm-t830

pie

magisk 20.4

exposed
[Android Apps and Games] DiamondJohn:
All log issues point to exposed as the trigger for your issue. You will get better help in the exposed forum/thread, with the full log.

this log is totally different to your previous log, which was also incomplete
[Android Apps and Games] diehard2013:
the first log was my own copy and paste of what I believed was relevant.

the second log was generated following your instructions (pastebin).

anyway, you are right about exposed. I also have a tab s6 with magisk and android X, however, without expose.

Temefi works like a charm. It's also working on an old rootless lg v20.

your app is very good, it's showing me stuff I couldn't see before.
[Android Apps and Games] Davy49:
Hi,

I'm typing this on my lg v30 phone, of course I would like to fix the issue of the 'real' youtube app from continually re-enabling itself and wanting to update. I much prefer using the vanced app instead. I'm just going to continue to to read some more about the issue.