Comdirect photoTAN app detecting root

Search This thread

bgsdeluxe

Senior Member
Feb 23, 2013
134
42
Short update. With the module "Core patch" i downgraded the APP and i works fine now.
Hi Killerbaer,

since my phototan app updated to 8.10 as well I'm facing same issues. Although I'm not a fan of using older apps, for me it's more convenient than installing magisk delta, therefor I decided to give the CorePatch workaround a try.
Am using Lygisk (magisk fork) and installed LSPosed and CorePatch. When in CorePatch settings a warning is telling me that the phototan app is still on denylist and changes in CorePatch might not have an effect.
Disabled force denylist in Lygisk/Magisk and even removed the phototan app from denylist before performing a reboot.
Now I'm trying to downgrade the phototan app, but am not sure how to do this. I disabled automated updates in playstore and optimized app in corepatch, but when opening the app now it forcecloses instantly.
Would you mind guiding me on how to proceed?
Thanks in advance!
EDIT: Should have refreshed page before posting. :)
Regarding downgrade: Any trustworthy sites to download old apk from you'd suggest?
EDIT 2: Done and working.
 
Last edited:
  • Like
Reactions: Killerbaer

Killerbaer

Member
Mar 28, 2023
13
2
Hi Killerbaer,

since my phototan app updated to 8.10 as well I'm facing same issues. Although I'm not a fan of using older apps, for me it's more convenient than installing magisk delta, therefor I decided to give the CorePatch workaround a try.
Am using Lygisk (magisk fork) and installed LSPosed and CorePatch. When in CorePatch settings a warning is telling me that the phototan app is still on denylist and changes in CorePatch might not have an effect.
Disabled force denylist in Lygisk/Magisk and even removed the phototan app from denylist before performing a reboot.
Now I'm trying to downgrade the phototan app, but am not sure how to do this. I disabled automated updates in playstore and optimized app in corepatch, but when opening the app now it forcecloses instantly.
Would you mind guiding me on how to proceed?
Thanks in advance!
EDIT: Should have refreshed page before posting. :)
Regarding downgrade: Any trustworthy sites to download old apk from you'd suggest?
EDIT 2: Done and working.
hehe :D . i downloaded it from APKmonk works fine
 

swour

Senior Member
Jan 22, 2012
63
41
The key step is to change the filename of /system/addon.d/99-magisk.sh. So basically just add it to magiskhide list (enforce sulist disabled), change the filename, reboot, and it works!

Thanks for the workaround! Just wondering does changing the filename would affect functionality?
It appears that renaming the file is the only step necessary on my device running Lineage 16, no reboot required. That brings up the question why non root apps can read files inside /system/addon.d/ at all. And if there is a more elegant way of denying access to those files.

However on another device running stock ROM Android 13 there is no addon.d folder from Magisk. Most files reside in /data/adb/magisk. There must be other files the phototan app is scanning for.
 
Last edited:

System23

Senior Member
Jun 30, 2012
302
85
Bernau
Samsung Galaxy Tab 10.1
HTC 10
i am on magisk delta 25210 (system crdroid 8.14) and it works with the new phototan version 8.10.0.
this is a result of try and error, maybe this wont work for you guys but you can give it a try.

-first you need magisk delta 25210 (canary) and setup in a usual way
-enable "Enforce SuList" and add photontan app to deny list.
-restart phone
-check phototan app -> it still detects root
-disable "Enforce SuList" and add photontan app to MagiskHideList
-restart phone
-phototan app is working again

i also renamed the file under /system/addon.d/99-magisk.sh to something like 99-helloworld.sh
Thats one of the Intressting thing i would testing out, thx your knowledge let me learn New ways to do!! thats very intressting me to know a second or third way to do so!! 😁😉
 

nixchecka

Member
Feb 18, 2022
14
34
Downloadlink PhotoTAN 8.9.0:
sha256: 91fc677505cb1b8b82c91bc842e5627fc8600450f72022c297335f2f45a23e5d
 

Asellus

Senior Member
Sep 12, 2008
164
30
Aachen
The problem is, after a while we are forced to use the most recent version.
I guess the main Comdirect App also will get an update soon, which will occur in same problem like the photo tan app now..
The comdirect app never was a problem. W/o the phototan app this is only a viewer.

But you are right, at a certain point in time they will force us tp upgrade. So it would be great to have a working solution.

Because the phototan app is not the only banking app I use I would want to avoid to switch to Magisk Delta and want to stay with Magisk.
 
  • Like
Reactions: System23

Asellus

Senior Member
Sep 12, 2008
164
30
Aachen
i am on magisk delta 25210 (system crdroid 8.14) and it works with the new phototan version 8.10.0.
this is a result of try and error, maybe this wont work for you guys but you can give it a try.

-first you need magisk delta 25210 (canary) and setup in a usual way
-enable "Enforce SuList" and add photontan app to deny list.
-restart phone
-check phototan app -> it still detects root
-disable "Enforce SuList" and add photontan app to MagiskHideList
-restart phone
-phototan app is working again

i also renamed the file under /system/addon.d/99-magisk.sh to something like 99-helloworld.sh
Because I did not succeed using Magisk and HidePropsConfig on my phone to play with, I gave Magisk Delta Canary (25210) a try on this phone. The only module I installed was Displax' safetynet fix mod 1.2.

To my understanding one need to put only a few apps on SuList, only those who shall be able to get root access. So putting the phototan app on the SuList is supposed to be wrong.

Do I tried this with three different apps. SdMaid asked for standard permissions if I have not put it on the SuList, but asked for root permissions on the SuList. The other two apps detect root only if the have been put on the SuList.
So the SuList seems to be the better choice, at least for me and for now.

At the end both configurations work, MagiskHide (phototan app on the list) and SuList (phototan app not on the list).

Also further banking apps start without complaining.

As I mentioned this phone is not my daily driver. Therefore I will not gain any experience with Magisk Delta.
 

nik2011555

Member
Mar 17, 2015
16
2
I'm still on app version 8.6.0 but there must have been server side changes somewhere in the beginning of March when it stopped working with Shamiko, switching to Magisk Delta canary made it work again.
 

masi79

Member
Oct 31, 2012
40
4
i am on magisk delta 25210 (system crdroid 8.14) and it works with the new phototan version 8.10.0.
this is a result of try and error, maybe this wont work for you guys but you can give it a try.

-first you need magisk delta 25210 (canary) and setup in a usual way
-enable "Enforce SuList" and add photontan app to deny list.
-restart phone
-check phototan app -> it still detects root
-disable "Enforce SuList" and add photontan app to MagiskHideList
-restart phone
-phototan app is working again

i also renamed the file under /system/addon.d/99-magisk.sh to something like 99-helloworld.sh

How did you rename the file under system as /system ist mounted as read only?
 

srothe

New member
Jun 24, 2013
2
2
I'm using Magisk 25200 with with Zygisk, Enforce DenyList and PhotoTAN App in DenyList.
Like everybody else I got an error msg since the last update.

My Workaround: Wrote a little frida script, which will deny access to "/proc/". That's all, app works again as expected :)

Code:
Java.perform(function() {
    var jFile = Java.use("java.io.File");
    var oFile = jFile.$init.overload("java.lang.String");
    oFile.implementation = function(a0) {
        if (a0.indexOf("proc/") >= 0) {
            console.log("fopen + LOL: " + a0);
            var ret = oFile.call(this, "/proc/lol");
        } else {
            console.log("fopen: " + a0);
            var ret = oFile.call(this, a0);
        }
        return ret;
    }
});
 
Last edited:

diemadedrei

Senior Member
Mar 13, 2012
692
258
OnePlus 6
Google Pixel 6 Pro
I'm using Magisk 25200 with with Zygisk, Enforce DenyList and PhotoTAN App in DenyList.
Like everybody else I got an error msg since the last update.

My Workaround: Wrote a little frida script, which will deny access to "/proc/". That's all, app works again as expected :)

Code:
Java.perform(function() {
    var jFile = Java.use("java.io.File");
    var oFile = jFile.$init.overload("java.lang.String");
    oFile.implementation = function(a0) {
        if (a0.indexOf("proc/") >= 0) {
            console.log("fopen + LOL: " + a0);
            var ret = oFile.call(this, "/proc/lol");
        } else {
            console.log("fopen: " + a0);
            var ret = oFile.call(this, a0);
        }
        return ret;
    }
});
May I ask what to do with that script?
 
  • Like
Reactions: masi79

srothe

New member
Jun 24, 2013
2
2
May I ask what to do with that script?
Frida is a dynamic instrumentation toolkit. So it can influence/modify the behavior of apps during runtime.

Main purpose is for debugging or sth like that. So you will have to start it each time you want to use it. It's not some kind of magisk module, which does some "magic" in the background.

  1. Download frida-server and deploy it to your android device
    1. Source: https://github.com/frida/frida/releases: frida-server-16.0.11-android-arm64.xz
    2. Extract archive
    3. connect android device via usb with enabled adb
    4. start adb as root on PC: adb root
    5. Deploy frida-server from PC to device: adb push frida-server /data/
  2. Install frida tools on PC
    1. I'm using linux, so: pip install frida-tools
  3. Start frida-server on android device
    1. adb shell
    2. /data/frida-server -l 192.168.13.37 (replace with IP of your android device in same local network / WiFi)
  4. Run app with script (lol.js) on PC
    1. frida -H 192.168.13.37 -f com.comdirect.phototan -l lol.js

So in the end my workaround is more like PoC, no persistent solution. Either you use it like that or someone is going to implement e.g. some magisk module. Maybe there are some other (easier) workarounds too, pls tell me :)
 
Last edited:

schalli110

Member
Dec 12, 2009
14
6
@srothe , what files under /proc is the phototan app trying to access?
It's probably another way of detecting Magisk, and locking that down might be helpful not only for this app, but for hiding Magisk in general..
 

booyakax

Member
Dec 16, 2021
5
3
i know this is not the right place but did anyone manage to make the techniker krankenkasse app work? the old trick was to rename the 99-magisk.sh into something else, actually the same procedure for the photo tan app, but apparently this wont work anymore.
 

r4p70r

Senior Member
I'm using Magisk 25200 with with Zygisk, Enforce DenyList and PhotoTAN App in DenyList.
Like everybody else I got an error msg since the last update.

My Workaround: Wrote a little frida script, which will deny access to "/proc/". That's all, app works again as expected :)

Code:
Java.perform(function() {
    var jFile = Java.use("java.io.File");
    var oFile = jFile.$init.overload("java.lang.String");
    oFile.implementation = function(a0) {
        if (a0.indexOf("proc/") >= 0) {
            console.log("fopen + LOL: " + a0);
            var ret = oFile.call(this, "/proc/lol");
        } else {
            console.log("fopen: " + a0);
            var ret = oFile.call(this, a0);
        }
        return ret;
    }
});

Could this Magisk Module be used to do the same but on App launch und without frida?

 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Since version 8.3.0 additional measures to detect root have been added, do not update as MagiskHide won't be able to prevent detection. Until a solution is found I would recommend staying on the previous version for as long as possible.

    Finding out what exactly is causing the root detection is beyond my technical abilities but I would provide as much information needed to those willing to help.

    ---

    Update: December 14th 2021 - Method no longer sufficient

    ---

    The solution found by @pxrave appears to be working:


    Hey fellas I got it working and others apps detect magisk before.

    Update to latest v23
    Install modules riru and riru unshare
    Remove data from tan app
    Go to magisk hide and tick all process to hide included the isolated
    Start the tan app and do the activation again.

    Problem you need wait 2 days to activate because comdirect use new activation process for photo tan app.

    Working fine all version 8.3


    Link to the Riru Unshare module:
    11
    1. deinstall old magisk-app
    2. install canary.apk
    https://raw.githubusercontent.com/topjohnwu/magisk-files/canary/app-debug.apk
    2.1 install safenet-fix modul
    https://github.com/kdrag0n/safetynet-fix/releases/download/v2.2.1/safetynet-fix-v2.2.1.zip
    (will not be active until you finished step 3.)
    3. repatch boot.rom with "install" & "direct" (installieren & direkte installation)
    4. after that reboot, etc... it should look sth like this
    1.jpg

    5. go to settings (red arrow)
    6. hide app (2.), enable zygisk (if not allready running) 3, enable deny-list (4), config deny-list (5)
    2.jpg

    7. enable all 3 processes
    3.jpg

    8. add other apps you may need in deny-list... like google pay & google play services

    during the hole process you may have to reboot your phone
    9
    Hey fellas I got it working and others apps detect magisk before.

    Update to latest v23
    Install modules riru and riru unshare
    Remove data from tan app
    Go to magisk hide and tick all process to hide included the isolated
    Start the tan app and do the activation again.

    Problem you need wait 2 days to activate because comdirect use new activation process for photo tan app.

    Working fine all version 8.3
    6
    To get rid of the Airplane mode (or toggling data off/on) I figured how to block the connection to the upgrade service right on the phone. The requests go to 'api.comdirect.de'.

    Use blacklist in TrackerControl
    -> Settings / Advanced options / Import hosts file (append)

    Create a file on the phone with this content:
    0.0.0.0 api.comdirect.de

    This way I can leave the connection to the internet on when starting/using the app.
    No version check can be performed, so the app should work forever ...

    One cannot use the TAN push service anymore but only the „photoTAN Grafik“.
    6
    So guys
    My favorite solution:
    Magisk canary
    Riru
    Riru unshare
    Riru lsposed
    Xprivacilua 1.30

    Safety net is ok
    Phototan working