Magisk General Support / Discussion

Search This thread

pndwal

Senior Member
After today's TB checker app update from Google Play, the app is not working, any solution ?
After updating opened fine for me but on running Play Integrity Check I got:
IMG_20230401_203839.jpg

... Cleared all app data... Seem to get more invasive (annoying) adds now, plus is this new?:
IMG_20230401_204553.jpg


... Selected Don't Allow and ran Play Integrity Check again... All fine now... (Only strongIntegrity and virtualIntegrity red... All green for Root and Xposed checks.)

Suggest clearing data as seems updated app may not play nicely with old config data... PW
 
Last edited:
  • Like
Reactions: J.Michael

m0han

Senior Member
Apr 30, 2012
5,560
2,672

Attachments

  • 20230401-160449.jpg
    20230401-160449.jpg
    463.6 KB · Views: 32

Spartacus500

Senior Member
Nov 6, 2014
690
134
After updating opened fine for me but on running Play Integrity Check I got:
View attachment 5877831
... Cleared all app data... Seem to get more invasive (annoying) adds now, plus is this new?:
View attachment 5877835

... Selected Don't Allow and ran Play Integrity Check again... All fine now... (Only strongIntegrity and virtualIntegrity red... All green for Root and Xposed checks.)

Suggest clearing data as seems updated app may not play nicely with old config data... PW
I did everything, TB checker still doesn't work, open error, I found this info in the Cat log 🤷
 

Attachments

  • Screenshot_20230401-122903_Gallery.jpg
    Screenshot_20230401-122903_Gallery.jpg
    420.4 KB · Views: 30

m0han

Senior Member
Apr 30, 2012
5,560
2,672
Updated yesterday to v2.5.5.... after getting Play Store notification. After a while, just ran the app and everything was okay. (Cleared nothing.)
But today, got a message saying 'app is not official'. Went to Play Store and updated again to v2.5.7.... All fine now. WTH!
 

Attachments

  • 20230401-155954.jpg
    20230401-155954.jpg
    767.1 KB · Views: 33

pndwal

Senior Member
I did everything, TB checker still doesn't work, open error, I found this info in the Cat log 🤷
Assuming Play Store is still working fine, are you running Hide My Applist, PrivacySpace or similar Xposed/Magisk modules?... Are you hiding Play Store in any templates, in 'apps invisible' or in other hide lists? PW
 
  • Like
Reactions: J.Michael

Spartacus500

Senior Member
Nov 6, 2014
690
134
Assuming Play Store is still working fine, are you running Hide My Applist, PrivacySpace or similar Xposed/Magisk modules?... Are you hiding Play Store in any templates, in 'apps invisible' or in other hide lists? PW
In HMA, I only have 2 apps hidden in the Google Play Store, Lucky Pacher and HManager, nothing else. I completely do not understand why after today's update of TB checker the application does not work at all, error open app ... Yesterday on the previous version it worked normally 🤔
 

pndwal

Senior Member
In HMA, I only have 2 apps hidden in the Google Play Store, Lucky Pacher and HManager, nothing else. I completely do not understand why after today's update of TB checker the application does not work at all, error open app ... Yesterday on the previous version it worked normally 🤔
I'm not clear what "hidden in the Google Play Store" means... As I asked, do you have Play Store itself in any templates or 'apps invisible' lists?...

Clearly from your screenshot, TB Checker can't find Play Store... That's why I suspected app hiding... May be some other mod setting or anomaly on your system also... PW
 
Last edited:
  • Like
Reactions: J.Michael

Spartacus500

Senior Member
Nov 6, 2014
690
134
I'm not clear what "hidden in the Google Play Store" means... As I asked, do you have Play Store itself in any templates or 'apps invisible' lists?...

Clearly from your screenshot, TB Checker can't find Play Store... That's why I suspected app hiding... May be some other mod setting or anomaly on your system also... PW
Now it sees google play store but TB checker still not working 🤕. It remains to wait for the next update, and if there is still an error open TB checker, it remains to completely remove Magisk root and check if this application will start working🤕. Unfortunately, I don't see any other option 🤷.
 

HippoMan

Senior Member
May 5, 2009
2,160
938
Hippoland
I had a suspicion this was going to happen.
This was posted in the Delta Telegram group:
Assuming that the TG message is not an April fool's joke ...

This would be very sad news! Magisk Delta seems to be the most reliable and functional version.

Because of the complexities and headaches involved with trying to use later versions of Magisk and Android, I have been holding off on upgrading beyond Android 11, where I can still run TWRP and Magisk 23.0. However, I have been considering going to Android 12 or 13, and Magisk Delta would have been my Magisk choice.

If this situation remains the same on April 2nd, I will have then lost my desire to upgrade.
 
Last edited:
  • Like
Reactions: duttyend

J.Michael

Recognized Contributor
Jan 20, 2018
1,812
2,049
Samsung Galaxy Tab A series
Now it sees google play store but TB checker still not working 🤕. It remains to wait for the next update, and if there is still an error open TB checker, it remains to completely remove Magisk root and check if this application will start working🤕. Unfortunately, I don't see any other option 🤷.
Please explain "2 apps hidden in the Google Play Store".
 

Spartacus500

Senior Member
Nov 6, 2014
690
134
Please explain "2 apps hidden in the Google Play Store".
The HManager app for the Huawei router and Lucky Patcher is detected as a malicious app in the Google Play store, so I hide these two apps in the HMA for the Google Play store.
What version of TB Checker do you have? v2.5.7.r289.a8dd9b9 seems to work fine.
I have installed exactly the same version as you, I have open TB checker error all the time... Something is blocking the application from starting, but I have no idea what.
 
  • Like
Reactions: J.Michael

Nergal di Cuthah

Senior Member
Sep 20, 2013
2,111
1,156
Google Pixel 6 Pro
The HManager app for the Huawei router and Lucky Patcher is detected as a malicious app in the Google Play store, so I hide these two apps in the HMA for the Google Play store.

I have installed exactly the same version as you, I have open TB checker error all the time... Something is blocking the application from starting, but I have no idea what.
Try without lucky patcher installed it's known to be a factor in root detection (i know it's in HMA but might still be an issue.
 
  • Like
Reactions: J.Michael

Top Liked Posts

  • 6
    Yeah, if I want to run a custom kernel (Pixel 7) then I need to wipe. Should have sideloaded (not booted up), then gone into bootloader and run fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img to that slot. Once booted after sideload/flashing the firmware it's too late as it's enabled after booting. Don't think it matters if you do it before or after flashing the patched image, just as long as you do it before you boot up. Oh well, lol...

    Nothing to do with what we were testing, just custom kernel related. Seems to also help to avoid getting the red eio corrupt message when things may not go as expected.
    Thanks, I realize it is only needed for custom Kernel cases.
    I should add extracting vbmeta from payload.bin then in addition to boot.img / init_boot.img so that the step can be performed if the options are selected.
    5
    Did that affect anything?
    No. Only needed on the Pixel 7 series if you want to flash a custom kernel.
    5
    Ouch, sorry to hear that, now you need a wipe?

    So at what point you should have done that?
    When flashing the patched image? just add the extra flags?
    Yeah, if I want to run a custom kernel (Pixel 7) then I need to wipe. Should have sideloaded (not booted up), then gone into bootloader and run fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img to that slot. Once booted after sideload/flashing the firmware it's too late as it's enabled after booting. Don't think it matters if you do it before or after flashing the patched image, just as long as you do it before you boot up. Oh well, lol...

    Nothing to do with what we were testing, just custom kernel related. Seems to also help to avoid getting the red eio corrupt message when things may not go as expected.
    4
    Update:

    On a Pixel 5 device, I managed to have both slots bootable.
    One slot rooted, and the other not, both on the same 2023-05 firmware.

    The process is as follows (which PF will support OOB in the next release)
    - Sideload full OTA
    - Reboot to bootloader
    - Flash patched image.
    - reboot to system (observe root)
    - Sideload full OTA
    - Reboot to System (no patching, observe no root)
    - Switch slot (observe root)

    With Pixel 5, one is able to make changes to boot after sideload but before reboot.
    It still needs to be tested if this works on Pixel 6, 7 * devices

    I find flashing full OTA is slower than flashing full factory, but the benefit of having both slots bootable is a big bonus.
    Okay, did some testing on my Pixel 6 Pro:

    Started with:
    Platform Tools 33.0.3
    A14 Beta 2.1 (installed using flash-all.bat)
    Rooted with Canary Magisk 26102
    Active slot=b

    Sideloaded the A14 Beta 2.1 OTA
    Booted up
    Not rooted (of course)
    Active slot=a
    Then rooted with Canary Magisk 26102

    Switched slots to b
    Did not boot (as expected)
    Booted back into bootloader
    Set slot back to a
    Sideloaded the A14 Beta 2.1 OTA

    Booted up
    Not rooted
    Active slot=b

    Then switched slots to a and booted successfully
    Slot a still rooted

    Then switched slots to b and booted successfully
    Slot b still not rooted

    Then switched slots again back to a and booted successfully
    Slot a still rooted
    4
    It's been a while since I sideloaded an OTA, but if I remember correctly once the sideloading is complete you'll still be in recovery mode and you have to choose "Reboot to system now" (or something like that) before it reboots. But like I said, it's been a while...
    Right, I had forgotten as well,
    I just tested this,
    When you sideload OTA, you have the option to reboot to bootloader or system. (y)
    And when you successfully reboot to system, the slot is switched.
    I will test next to flash a patched image before rebooting and see if it will complain.
  • 8
    Hello!
    How do you know?
    You must be an expert or something

    Nigerian-Meme.jpg 😜 PW
    7
    If the "issue" is that you have not yet been able to reproduce the Magisk manager app's "Ramdisk: Yes/No":

    Did you try a "wrapper" for the shell script function you found? At the time you reported several script fragments, there was talk of needing to call other functions first to set up environment variables.

    Look up the "echo" command. There is a form that causes the shell to echo all lines as they are executed. Do this, redirect output to a log file, and you can crawl through and maybe spot where it first disappoints you.

    I believe "needing to call other functions first to set up environment variables" is exactly why he is getting a different result from the app. 👍

    I could gut out all the relevant bits for him to run, but, not trying to offend here, I kind of don't see what the point of all this has been, so I don't think I can justify putting in that amount of effort when I've got my own stuff to be doing... 🫤

    Edit: One final thought. It could also be that he needs to use Magisk's busybox and busybox ash env for some of the commands like Magisk would be to get the intended output.

    I'm running into an interesting problem that I can't put my fingers on, and am open to ideas / suggestions.
    As you may already know, Magisk embeds the SHA1 of the stock boot image used to create the patch into the patched image, this is great because one can easily determine the source image that was used and validate if it is what it is supposed to be.

    And this is exactly what PF does, it extracts the SHA1 from the patched image.
    Here's the function code
    Python:
    def extract_sha1(binfile, length = 8):
        with open(binfile, 'rb') as f:
            s = f.read()
            # Find SHA1=
            pos = s.find(b'\x53\x48\x41\x31\x3D')
            # Move to that location
            if pos != -1:
                # move to 5 characters from the found position
                f.seek(pos + 5, 0)
                # read length bytes
                res = f.read(length)
                return res.decode("utf-8")

    Unlike magiskboot and Android Kitchen Tools by @osm0sis which extracts the ramdisk.cpio and performs magiskboot cpio <ramdisk.cpio> sha1 on it, PF (to keep it lightweight) it just looks for the string SHA1= directly on the patched file and then reads the next 8 hex characters and converts them to ascii.
    And this has worked flawlessly so far, until this.
    Basically what is happening is:
    The expected embedded SHA1 is: 40100d6b9512f6dffbb6f6b67c1b878f3bd82d18

    With the exception of the red part of the SHA1, everything matches.
    In one case 0100 part which is expected to be 30 31 30 30 hex it is instead 89 00 FB 33, and in the other case it is 72 00 FC 15

    View attachment 5902493View attachment 5902495


    I don't understand why this is happening, my first guess would be some kind of encoding, but then why now and only with this image, my other guess / fear is that perhaps the writing is not clean which would be a bug in Magisk.
    Obviously I can skip over the first few bytes and do the validation with the remaining bytes, but I'd hate to take a path like that without understanding why this is happening, who's to say that this thing can't happen on the other portions of the SHA1 string.

    If you have any ideas, I'm all ears.

    The boot.img contains the ramdisk.cpio.gz/.lz4/.lzma/.xz and while text strings may get stored as-is in a compression format, that isn't guaranteed and the compression might find something it thinks it can "optimize" for space savings. That's why `magiskboot cpio <file> sha1` is run on the uncompressed ramdisk.cpio. 🙂
    7
    As I expected in advance, problems with Magisk occurred after the OTA update of LineageOS (Pixel 6a).
    Updated from a 20.0 build to lineage-20.0-20230429-nightly-bluejay

    After the update it was necessary to flash the new boot image again. I have done that. But Magisk simply does not root. Magisk patched the downloaded LineageOS boot-image, saved it in the download folder and that was it.

    Magisk was hidden before I did OTA update.
    Simply very beautiful. All this after setting up LineageOS to my liking.
    And what can I do now except re-flash ROM?

    You might be interested in this.

    If you are using the current Magisk canary build, addon.d support was fixed.
    A few weeks ago, I tested it on my Pixel 3a and made a post in The Age of Zygisk thread.
    Post #3,128

    Since I did not install Magisk via recovery, I made a module that overlays Magisk's addon.d script into the system/addon.d directory.
    The module is not necessary after the first OTA.
    - The OTA updater will actually restore the Magisk script into system with the others.

    Magisk Survival Module - [GitHub] - Link
    Please read all of the readme if you decide to use it.
    - This only works with addon.d-v2 (A/B slot devices).

    Cheers. :cowboy:

    PS.
    I have updated my 3a using the OTA updater 4/5 times now and Magisk is retained each time.
    No need to manually patch and flash the new boot image after update.
    6
    You guys still aren't using ASH_STANDALONE=1 which forces busybox to use its own applets above what's in the path. Either export it or specify it as a command prefix. It has to be Magisk's busybox or my SELinux busybox to have the patch required for standalone mode.

    export ASH_STANDALONE=1
    /data/adb/magisk/busybox ash /data/local/tmp/test2.sh

    or

    ASH_STANDALONE=1 /data/adb/magisk/busybox ash /data/local/tmp/test2.sh

    P.S. `` (backticks) are just a lazy way to suggest a code/command block since that's what they are when used in markdown, plus if copied whole directly to a shell it just dumps it into a subshell, like $() does, and unlike "".
    6
    I think it would be good to support, and I posted disambiguation due to some confusion above.

    Rather than being 'highly discouraged' (it's not; it's plum necessary 🤪) patching recovery partition is actually the only option for most A-only devices launched with Android 9 (legacy SAR, circa 2018, 2019) other than Xiaomi models!

    Hope you reconsider... 👍 PW
    Your wish is my command :)
    1684447283639.png

    1684447305575.png


    Although with one caveat,
    Yes I can tell if it is Ramdisk yes or no by running a script, but that requires unpacked Magisk, (for not rooted phone, I would need to unpack)
    And although it is true that PF eventually unpacks to create a patch, but within the workflow, that stage is much later, and that stage is dependent on choices a user makes in the above screen.

    Of course it could be worked out and workflow changed to automatically offer / not offer the choice.
    Considering that the target audience is really minute if at all existent, specially considering that the tool has Pixel in its name, and people who have Pixel phone don't need it, and people who need them wouldn't be looking to tools for Pixel Phones ... lol
    I decided the leave it up to the user the choice to have that option visible or not. (no auto detection)
    The tooltip on option suggests not to turn it on unless ...
    1684447779077.png


    I hope that should be enough.
  • 1094
    This is the place for general support and discussion regarding "Public Releases", which includes both stable and beta releases.
    All information, including troubleshoot guides and notes, are in the Announcement Thread
    156
    Hello, I haven't given much support on XDA lately. It can be resulted from
    • University started and I have limited free time. In fact, I mostly develop during midnight
    • I live in Taiwan, which has large time zone differences between my European/American contributors/testers, which usually forces me to stay up late at night to discuss/test stuffs.
    • The new version is about to come, I don't want to spend effort on supporting old releases
    The planned update is delayed again and again, to some point I think I'll shed some light about what has been happening lately, also along with some announcements.

    New Forum!
    As you might have already discovered, Magisk got its own subforum on XDA! Many thanks to all the support you gave me, and much more information/features/support is about to come!
    **For developers supporting all the devices that are not using standard Android boot format, feel free to create threads in this section (actually, PLEASE do so) for your favorite devices after v7 is out. As I currently know, Asus devices require signing the boot image before flashing, and is model dependant; Sony devices seems to use ELF kernel that is unpatchable, or some has two ramdisks (inner + outer), both requires different workarounds; LG bootloader locked devices has to manually "BUMP" the boot image after flashing Magisk..... and there may be lots of other crazy boot image formats that haven't come up to my attention yet.
    It is impossible for me to support all these non-standard boot images, and I hope the community can collaborate to make Magisk running across all the devices. Overall, community collaboration is what XDA about :D

    The Pixel Phone
    Some of you might already know this news, that the next Pixel Phone right around the corner seems like it does not have ramdisk in boot image, which pretty much wrecked Magisk in all ways. However, it pretty much doomed root itself too. Kernel modifications is inevitable IMO, so I'll try to migrate my scripts to C programs that could possibly be included into the kernel itself. Note that I'm not familiar with linux kernel, I'm not even sure if my idea and concept is correct or not. But once the device is available, I think developers will find a way to bypass all the difficulties, and I'll do my best to learn things ;)

    Current Progress
    In the past month, I've spent quite some time learning SELinux, so that I can avoid using SuperSU's sepolicy patches. Thanks to the helps and tips from @phhusson and @Chainfire, I finally have a much clearer understanding of how SELinux works. The Magisk core parts (the scripts, boot image patches, new features, more supports) are actually done some time ago. What is causing all the delays is the Magisk Manager.
    To be completely honest, although I can code in Java without much issues, Magisk Manager is actually my first Android application, I had to reach out for assistance, and fortunately awesome developers like @DVDandroid and @digitalhigh contributed a lot, which makes the current Manager awesome.
    After the repo system and module management is mostly done, I was about to do some adjustments and release, but what we really done is decided to add another feature: auto-unroot with per-app settings. I decided to wait for it to be finished, and then do my adjustments. Due to reasons that'll be mentioned later, this feature will likely not be available for the next release (should come in future updates)

    Safety Net Disaster
    Those who are using Magisk for Safety Net bypass purposes must have known that Google recently updated the detection method of my Systemless Xposed. I still have no idea what Safety Net is detecting, so currently I cannot fix it on my side (also because I'm busy working on the next update). However, suhide developed by @Chainfire is able to hide Xposed and worked fine.
    However, only my Systemless Xposed v86.2, which is based on SuperSU's su.d, is supported using that method. v86.2 and v86.5 (latest, Magisk based) have nearly identical binaries, and the only difference is the path where the binaries are stored.
    I'm still not sure what's the real issue for it not being supported, I just hope it is not done intentionally.

    Conclusion
    Due to the fact that my Safety Net bypass is not 100% perfect now, I do not want to spend any more time waiting for auto-unroot to be polished. What I'm doing now is finishing up all the things I'd like to change in Magisk Manager (it has been a while since I last contributed to Manager, my fellow developers are doing all the heavy job), which might take a little more time, after that, packed with tons of information to be announced in Magisk Section, I'll release the long awaited update.

    Hope this lengthy post gives you the idea of the whole situation, and again thanks for all your support!!
    121
    Ah, some Chainfire bashing, I hope it is not too late for me to exercise additional villainy.

    First, let me make clear I have nothing against @topjohnwu, nor against Magisk. Magisk is an interesting project and it certainly displays @topjohnwu ingenuity and persistence. I don't doubt we will see more interesting things from his hands.

    -------------------------

    What has happened here is not all that dark and complicated, from either end. I returned from holidays, and someone pointed me at Magisk. My first thought: interesting!

    Among other things, the thread lists some issues with SuperSU, which in combination with the phrase The developer also requests users to not bug Chainfire with compatibility requests for SuperSU with Magisk from the portal article, raised my left eyebrow by nigh half an inch. The popular systemless xposed mod is apparently now based on it, and apparently it now no longer works with SuperSU, and apparently I'm not supposed to fix that, nor any of the other found issues. I found that a bit weird. So yes, I have told @topjohnwu that I was a bit surprised he was posting about issues with SuperSU without notifying me about them (I can't fix or help fix issues I'm not aware of, after all).

    He's also spreading a modified version of the SuperSU package, which is not all that uncommon, nor necessarily a problem. I have not looked into what he modified, I only ran a few quick tests on one of my devices, and found some commonly used commands run as root to be broken. I have informed him of this as well.

    It appears the tool of choice for Magisk is phh's Superuser, because of some of the mentioned issues with SuperSU. That's fine by itself, but fixing issues in that superuser by incorporating SuperSU's binaries into it is a somewhat questionable practise. After all, SuperSU is a commercial closed-source package that helps pay for my dinner, and superuser is a direct competitor. I have informed him that I was surprised he did this without asking for permission. I have expressed similar surprise on him spreading a modified version of LiveBoot (which helps pay for a snack now and then).
    @topjohnwu has also stated that Magisk's scripts are largely influenced by mine (I have not checked). Scripts based on mine are used all over the place on XDA, some people have crafted amazing things based on them, I have never made an issue of this (otherwise I would have just made them binaries). But yes, I have also stated to him that I don't think it's very nice to base something on one program, and then using that to (almost exclusively) push something directly competing with that program.

    tl;dr Towards @topjohnwu, I have:
    - expressed surprise he has issues getting Magisk to work with SuperSU, and has chosen not to inform me about those
    - expressed surprise he is using SuperSU binaries in a competing superuser without permission
    - expressed surprise he is posting a modified LiveBoot without permission
    - informed him of issues with the modified SuperSU he has posted
    - let him know I thought it wasn't very nice to be applying my scripts to benefit seemingly exclusively that same competing superuser

    To be crystal clear:
    - I have not asked for an apology
    - I have not asked for Magisk to be abandoned, neither the root hiding nor systemless module parts, and certainly not systemless xposed
    - I have not made an issue of any of this anywhere, until this post
    - I have not even specifically asked for anything to be taken down (though obviously in my opinion the other superuser package mixed with SuperSU's binaries, as well as the LiveBoot package, should go)
    - I have not reported this thread to XDA moderators for copyright violations or otherwise

    While my conversation with @topjohnwu may not win any awards for being friendly (though it may win some for brevity), I think all things considered my response has been rather mild. To be perfectly honest, until the apology post, I thought this was over with already. I think the apology post was triggered because I haven't replied to his last PM for a while - I was in the zone, it happens.

    To emphasize again, I have nothing against @topjohnwu, Magisk, or systemless xposed, and it is certainly not my goal to see any of them go. If it can be made to work together with SuperSU, great.

    I get it though: you think of something, you want to see if you can make it work, you finally get it to work, you publish it, it takes off - enthusiasm gets the better of you. Maybe in the rush some mistakes are made. That doesn't mean you have to just drop it and run. None of my stuff would make it past 0.1 if I stopped at the first big mistake :)

    Aside from said being in the zone coding, I usually regret actually responding to these sort of things the day after, which has made me hesitant to reply. Surprise me.
    76
    Thread temporarily closed so everyone sees this.

    The flood of "SafetyNet isn't working for me either!" posts are not helpful, at all. Please refrain from posting further, it will be looked into. Please do not forget that not passing SafetyNet is 100% NORMAL AND INTENDED when you have an unlocked booloader or running custom firmware. These are workarounds and they will be worked around in turn.

    The Flash
    Forum Moderator

    EDIT: Thread is reopened... I will be cleaning any SafetyNet posts for a while to keep the thread clean for real issues.
    75
    Hello everyone!

    I am aware that Google has updated Safety Net that makes Magisk itself a no go for Android Pay. In fact, I witnessed the change live while I am developing the new magiskhide, which should hide all Magisk modules and Magisk installed root.

    Google is serious about Safety Net now, clearly hunting down all possibility to run Xposed with Safety Net passed. I spend quite some time examining the new security measures last midnight, and fortunately it seems that it is possible to run Magisk and root along with Safety Net if no Xposed is running. I'm glad I removed the old root toggle at the right time lol, that is no longer feasible with the latest detection.

    So stay tuned for the next update, it will come with bug fixes, along with the new magiskhide to bypass that Safety Net.

    Google, how will a few systemless mods do any harm :p:p