Cannot install Android app on second user account on Bean Jelly

In Android 4.2, I am trying to install the same application on two different user accounts. When I try to do this, I get “Application not installed” after I click “Install” on the permissions page. Here are the steps I used to receive this message:

1) Log in to the owner account on the tablet.
2) Download (using Chrome) app.apk and from the Download pop-up window, select it to install it.
3) Click "Install" on the permissions page
4) Logout
5) Log in to another user account on the tablet
6) Download (using Chrome) app.apk and the Download pop-up window, select it to install it.
7) Click "Install" on the permissions page

The dialog box does not appear with the useless message "Application X not installed."

How can I get this application to install on two different user accounts on the same tablet?

Here is the application manifest:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="121212" android:versionName="0.1" package="com.company.app"> <uses-sdk android:minSdkVersion="8" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.VIBRATE"/> <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true" > <activity android:name="Activity1" android:configChanges="keyboardHidden|orientation" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="Activity2" android:configChanges="keyboardHidden|orientation" /> <activity android:name="Activity3" android:configChanges="keyboardHidden|orientation" /> </application> 

+4
source share
1 answer

After further investigation, from logcat, I decided that I got an INSTALL_FAILED_UID_CHANGED error. This was caused by a version issue. We have a process where we send an old version of our application by email to users who want to install it. The first thing the application does is to check and install the new version, if available.

So the problem was that the first user installed the old version and then updated it to the latest version. Then, when the second user tried to install the old version, he was rejected because it was an older version, and then the application that vi installed.

It turns out on a multi-user tablet, only one version of the application can be installed. If I update the application for one user, all other users will also be updated.

Hope this helps other Android developers.

+3
source

All Articles