We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

Dalvik appears as rooted

asked 2019-04-16 16:58:35 +0200

pkuronen gravatar image

My OP Business mobile Android app is working 100% in my XA2 SFOS but the application says the Android is rooted and that is preventing the use of mobile key. This key becomes mandatory next month so this becomes an issue. Is there a way / patch to make Android app not detect the Dalvik environment as rooted?

edit retag flag offensive close delete

Comments

3

Actually your XA2 is rooted, not SFOS.

potski ( 2019-04-16 17:30:29 +0200 )edit

2 Answers

Sort by » oldest newest most voted
7

answered 2019-04-16 20:24:35 +0200

DrYak gravatar image

updated 2019-04-16 20:26:02 +0200

Something seems wrong with your app ascertaining that your Android is rooted : there is no su binary in the Android application compatibility layer (alien-dalvik) to begin with.

I would strongly suspect that the app makes a general "Is everything okay ?" test (e.g.: tries to run the SafetyNet feature), and displays this as a standard message whenever the test fail, because most often that's the problem (people installing some very suspect chinese spyware-ridden Android app to root their phones), nobody has made the effort to make a specific code to detect the relatively rare "You're running Sailfish OS" situation and display a corresponding message.

You would need to test further a couple of things :

Official Google solution

Maybe installing the official Google Play services (e.g.: using a source like openGAPPS) would solve the problem ? (make the Safetynet tester work ?) There are some tutorials here around on TJC to install this.

microG solution

( ^- my favourite )

  • try installing microG
  • some apps also test for the presence of Google Play Store and complain otherwise. There is a special package FakeStore in FDroid that simulates this. This comes handy when you only use other things instead: like using the Aptoid app provided by Jolla to install stuff from their aptoid repo, or using Yalp store to fetch stuff from Google (I use both of this)
  • then test options in the microG settings :
    • microG has multiple options that can be turned on or off like registering the smartphone at Google, to get a Google ID
    • they also implement Safety Net
      • use the top-right "three dots" menu to go to advanced to select the server (3rd party or Google).
      • their SafetyNet can contact 3rd party servers
      • they also have a special container (look for microG DroidGuard Helper in FDroid) that can isolate the DroidGuard system used to sign request so the official Google SafetyNet server can accept them.

I've done some quick test with my installation (I have microG+FDroid+Yalp+Aptoid+FakeStore) and turning on microG's SafetyNet after installing the microG DroidGuard Helper, seems to make the

"The device has root user rights or apps that use root rights. We recommend that you remove the root rights or apps that use them"

message - that otherwise appeard before when the app starts - to disappear on subsequent run.

Note that I don't use that bank (I don't even live in Finland to begin with) so I can't test much further. My banks happen to not give a damn about SafetyNet or whatever and happily run their app on my phone even with SafetyNet disabled.

edit flag offensive delete publish link more

Comments

I did some really quick testing. It seems that after installing FakeStore, OP-mobiili no longer complains about being rooted. It still complains about Google Services though.

vige ( 2019-04-17 09:55:59 +0200 )edit

Did I understood right that you installed microG with just FakeStore? My app stopped opening after microG install. Tried installing other microG packages too.

mSorvisto ( 2019-04-17 13:12:46 +0200 )edit

I run into that issue (app stopped opening) as well. Removing and reinstalling the app helped.

vige ( 2019-04-17 13:33:51 +0200 )edit

Mine still says rooted. Have you installed microG and FakeStore from FDroid? Tried SafetyNet on and off, with and without DroidGuard.

mSorvisto ( 2019-04-17 16:23:19 +0200 )edit

Yes I have both microG and FakeStore installed (from FDroid).

vige ( 2019-04-18 09:32:47 +0200 )edit
2

answered 2019-04-16 18:19:31 +0200

Filip K. gravatar image

DrYak gave a great explantion here. In short: you have options.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2019-04-16 16:58:35 +0200

Seen: 1,158 times

Last updated: Apr 16 '19