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

Unable to change default app setting for android apps

asked 2014-02-15 14:01:27 +0200

Toxip gravatar image

Recently I downloaded 1mobile app store and sometimes apps would prompt whether to launch yandex store or 1mobile store. I accidentally pressed open always yandex and now I don't know how to change that again. Would be nice to have some settings for android support.

edit retag flag offensive close delete

Comments

Try reinstalling the program.

Victorious ( 2014-02-15 15:09:31 +0200 )edit

doesn't help, I even reinstalled the android support, which also deletes all android app data but the problem persists.

Toxip ( 2014-02-15 15:27:22 +0200 )edit

/data/data/YOUR.APP.DIR. - Delete the folder (where the configuration file)

Victorious ( 2014-02-15 15:32:09 +0200 )edit

1 Answer

Sort by » oldest newest most voted
6

answered 2014-06-27 15:54:10 +0200

icebox gravatar image

You can edit /data/system/packages.xml by hand. You need developer mode and be sure to make a backup.

For example I clicked by mistake to have packages installed by Google Play. All I had to do was to remove this section:

<item name="com.android.vending/com.google.android.vending.verifier.PackageVerificationActivity" match="600000" set="2">
<set name="com.android.packageinstaller/.PackageInstallerActivity" />
<set name="com.android.vending/com.google.android.vending.verifier.PackageVerificationActivity" />
<filter>
<action name="android.intent.action.VIEW" />
<cat name="android.intent.category.DEFAULT" />
<type name="application/vnd.android.package-archive" />
</filter>
</item>
edit flag offensive delete publish link more

Comments

I had to go the same rocky road for resetting the default PDF application. I think, the Alien Dalvik system needs a preferences panel similar to the original Android preferences panel.

epsilonijk ( 2014-11-15 15:21:40 +0200 )edit

/data/system/packages.xml does not exist any more. I can't find the file anywhere on the filesystem. Is there another workaround?

cuh7b5 ( 2016-08-10 11:52:32 +0200 )edit

Based on this answer, I found a section in the packages.xml file called "<preferred-applications>...</preferred-applications>" or something like that, which contained two items, which seemed to correspond to the two 'default' choices I made. I simply commented out the preferred applications block and restarted the android emulator. When I re-entered, I was given the menu to choose an app, and the commented out code had disappeared altogether and in its place was simply an empty preferred-applications tag.

Tasos P. ( 2018-05-21 15:04:52 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-02-15 14:01:27 +0200

Seen: 1,251 times

Last updated: Jun 27 '14