App will not run, says device is rooted

Hi!

I recently installed /e/ on my Fairphone 3 following this guide. Yay for offering /e/ on this phone!

However, I have a problem that a payment app (“Vipps”, a Norwegian payment app) detects the device as “rooted” and will not run. I do not think this is an issue with microG, as I had this app running previously on an LG3 with microG and LOS16.

I did check this thread on a similar issue, but I couldn’t find a solution there.

Not having this app is really painful. So, any ideas on how to fix it?

Yeah, it’s very crazy. A lot of banking apps aren’t working on eOS because of missing goolag services (the error message regarding root is a ‘global’ error message)
you can try this way [HOWTO] Installing Banking Apps

For some banking apps it es working

Great, thanks for this pointer!

I think I will first try wiping caches and reinstall /e/, as that worked for a user on FP2 and seems a simpler thing to try, but if it doesn’t work, I’ll try the magisk stuff you linked to.

I’ll let you know how it goes.

UPDATE

First I have to enable developer mode and enable usb debugging again, no problem.

First real problem comes when wanting to flash TWRP. Guides (e.g. here on /e/ community) say to
fastboot flash recovery twrp.img, but that gives error

FAILED (remote: partition table doesn’t exist).

The reason, as I found out via searching, is that Fairphone 3 supports A/B partitioning, which led me to this explanation and guide - there is no separate recovery partition on Fairphone 3.

I don’t think I’ll have more time for this today, so new update (and hopefully success) tomorrow.

(I may also add that, as I do this from MX Linux, I have to do sudo on all fastboot commands, e.g. sudo fastboot devices. If not, I get an error: no permissions (verify udev rules) )

As you found out, the guide does not apply to FP3 because of the A/B partitioning.
But you can boot twrp via
fastboot boot <twrp.img>
(or in your case sudo fastboot boot twrp.img)

1 Like

Got any further , trond? I have the same phone, want to use the same app, but won’t flash if this doesn’t work.

@lalala, @trond.

I’ve done some digging and found the root checking library that vipps is using, called Rootbeer. I am pretty sure that the specific check that is failing is this one:

I’ve checked and getprop ro.debuggable does indeed return 1 on my device. I think that is because the builds are created in “userdebug” mode instead of a cleaner production build without extra debugging info included.

I’m not sure where to go from here. We could try to raise an issue with the Rootbeer guys and argue that it’s a false positive maybe? (My device is not rooted). It could take a while before that change makes it into vipps though.

Hi,
could you try to flash « magisk » with TWRP, it is a paradoxal advise,
because root is not your intention.
magisk allow some apps to get root permission, but it hide to others apps that the device can be rooted

Thanks @piero, I already know about magisk but I’m not interested in rooting my phone, so I won’t be doing that even if it could work. Maybe someone else will try it and report back.

I’d be more interested in finding ways to allow apps that use libraries such as Rootbeer to work flawlessly out of the box on /e/. I think the only problem standing in the way of that is the ro.debuggable flag.

1 Like

Digging a little deeper, I found this thread (now closed) which advocates for switching the build mode from userdebug to user, and based on the android guidelines linked within that thread I believe that would indeed solve this issue.

I dug around the issue backlog at gitlab.e.foundation without finding any requests or discussions about the build mode, so i opened a new issue. Let’s see what happens. :slight_smile:

2 Likes