Any chance android app running 2 times with different data dir?

asked 2020-06-26 13:47:49 +0300

nas gravatar image

updated 2020-06-26 13:49:20 +0300


I have an android app that uses profiles and connects to a server. Since it doesn't support an easy way to switch accounts, I was wondering if there is any way to have it installed two times and run each one as totally separate from the other. Or even installed once, but having a way to set the "data dir" on the start - even from command line. The desired result will be two instances that can run simultaneously.

Any ideas welcome. I am interested for XperiaX (android 4.4)

P.S. sorry for the title of the question, fill free to suggest any better one

edit retag flag offensive close delete


Multiuser support is coming to SailfishOS. That would mean probably also user custom android settings. But we have to see and wait. Could be that your Alien Dalvik version on the Xperia X will not support this feature

leszek ( 2020-06-26 14:44:28 +0300 )edit

As aliendalvik user data folder is located in home directory, it would seem possible to support profiles for Android apps, too. (It wouldn't really make sense to support profiles for native apps only...)

It's interesting to see if aliendalvik 4.4 gets profiles or not, as it is no longer actively developed... We're have to wait and see!

Direc ( 2020-06-28 23:09:47 +0300 )edit

thank you for the idea @leszek , I did "adduser" and made a new user, but as expected the new user couldn't use wayland ;) for X I know xhost + but where isn't in SailfishOS.

@Direc do you have any idea how can I run an android app from command line?

nas ( 2020-06-28 23:59:55 +0300 )edit

@nas Have a look at apkd_launcher_*.desktop files in /usr/share/applications/.

Direc ( 2020-06-29 00:07:10 +0300 )edit