• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[SOLVED] install failed shared user incompatible

Search This thread

tweakradje

Senior Member
Mar 18, 2005
1,071
538
Android
sites.google.com
EDIT 31aug2012: also this message appears if there is no "classes.dex" in the apk

Hi,

When you try to install certain apk you might get this error when using "adb install something.apk"

Andoid creates "shared users" like app_1 app_3 etc for packages you install. These UID's are like 10001, 10002, 10003 etc.

Sometimes the administration of these shared users gets messed up and you get error messages like:

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE


The shared user administration is kept in /data/system:

-rw-rw-r-- system system 129933 2011-08-15 12:08 packages.xml


How to solve? You need a rooted phone and adb:

adb shell chmod 666 /data/system/packages.xml

adb pull /data/system/packages.xml


Now edit (notepad++) and remove the shared user in question xml block from the file:
Code:
<shared-user name="com.navngo" userId="10000">
<sigs count="1">
<cert index="4" />
</sigs>
<perms>
<item name="android.permission.READ_PHONE_STATE" />
<item name="android.permission.DISABLE_KEYGUARD" />
<item name="android.permission.INTERNET" />
<item name="android.permission.WRITE_EXTERNAL_STORAGE" />
<item name="android.permission.ACCESS_FINE_LOCATION" />
<item name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<item name="android.permission.ACCESS_COARSE_LOCATION" />
<item name="android.permission.READ_CONTACTS" />
<item name="android.permission.WRITE_CONTACTS" />
<item name="android.permission.ACCESS_NETWORK_STATE" />
<item name="android.permission.WAKE_LOCK" />
<item name="android.permission.MODIFY_AUDIO_SETTINGS" />
</perms>
</shared-user>

adb push packages.xml /data/system

adb shell rm /data/dalvik-cache/*

adb reboot


Now you should be able to install that apk.

Cheers
 
Last edited:

tweakradje

Senior Member
Mar 18, 2005
1,071
538
Android
sites.google.com
This problem might also be solved using ad uninstall command. (only for user apps)

Lets keep the same program as above as an example the you type from a dos box:

adb uninstall com.navngo.igo.javaclient

Now install it again. You need to know the package name. You can open the apk with winrar/zip and view the AndroidManifest.xml file. There you see the package name.

Cheers
 

Star.Dust

Member
Oct 12, 2011
5
0
Hi,
I want to use android:sharedUserId="android.uid.system"

Then I get this error: Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

I removed the system uid following this procedure :p

It didn't work though :(

How to use system level privilege? I am working with hardware video codec, without system privilege. I am facing the same problem here : developer.nvidia.com/archived-tegra-forums/forum/android-how-call-libpvnvomxso-successfully

Any suggestion/idea would be welcome :)
 

mylifeisjourney

New member
Dec 8, 2011
1
0
The deleted "android.uid.system" in packages.xml comes back after reboot.

Hi,

I followed the instructions to remove section of android.uid.system in packages.xml. But after reboot, I felt that this file was re-generated and overwritten by system itself. I still can't install my app due to the same incompatible error.

Any help? Thanks!
 

pradeepcse

New member
Jan 31, 2012
4
3
Coimbatore
Comment out shared-user name="android.uid.shared" xml block

Hi,

I followed the instructions to remove section of android.uid.system in packages.xml. But after reboot, I felt that this file was re-generated and overwritten by system itself. I still can't install my app due to the same incompatible error.

Any help? Thanks!


Hi,

It worked for me... All you want to do is just comment out the block of XML elements under <shared-user name="android.uid.shared" userId="10012">

Note: I have "Su" permission in my Device.

This is is how i did

<!-- <shared-user name="android.uid.shared" userId="10012">
<sigs count="1">
<cert index="3" />
</sigs>
<perms>
<item name="android.permission.USE_CREDENTIALS" />
<item name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
<item name="android.permission.WRITE_EXTERNAL_STORAGE" />
<item name="com.google.android.googleapps.permission.GOOGLE_AUTH.cp" />
<item name="android.permission.GET_ACCOUNTS" />
<item name="android.permission.READ_CONTACTS" />
<item name="android.permission.WRITE_CONTACTS" />
<item name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
<item name="android.permission.READ_SYNC_STATS" />
<item name="android.permission.READ_PHONE_STATE" />
<item name="android.permission.READ_SMS" />
<item name="android.permission.MODIFY_PHONE_STATE" />
<item name="android.permission.WRITE_SETTINGS" />
<item name="android.permission.INTERNET" />
<item name="android.permission.SUBSCRIBED_FEEDS_READ" />
<item name="android.permission.VIBRATE" />
<item name="android.permission.SUBSCRIBED_FEEDS_WRITE" />
<item name="android.permission.WAKE_LOCK" />
<item name="android.permission.CALL_PRIVILEGED" />
</perms>
</shared-user> -->
 

it's

Member
Jun 10, 2011
47
3
Okey, I did a small research to find out why my app was force closing everytime after I removed android:sharedUserId="android.uid.system" from AndroidManifest.xml.

It turned out that it doesn't have permission to force stop packages(it's a system monitor).

I have checked the androidmanifest.xml and everything looks correct to me. When installing, only wake lock and internet permissions are granted. I have attached the txt file... I hope somebody can help me out of here. :p
 

Attachments

  • AndroidManifest.txt
    1 KB · Views: 1,622

vinodkbishnoi

Senior Member
Jul 14, 2012
132
36
Hisar
install failed shared user incompatible

Hi,

I have decompiled an APK using apktool. And changed one file "stings.xml" The language was in Chines and I just replaced all Chines text with English. Now I recompiled that APK using apktool. Then I signed that APK with JARSIGNER. Then I zipaligned the APK.
Even after that I was geeting "install failed shared user incompatible".

Then I used method told in this thread. But still having the same problem.
These are starting line of Menifist.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="android.uid.system" android:versionCode="1" android:versionName="1.0" package="com.android.ktcit"
xmlns:android="http://schemas.android.com/apk/res/android">
<application android:label="@string/app_name" android:icon="@drawable/icon" android:name="KTCITApp">
<receiver android:label="@string/app_name" android:name=".KTCITBootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>​

Could anyone help me out?
 
Last edited:

LEENO

Senior Member
Oct 7, 2008
329
168
not worked for me
installing google calendar on i9100 4.0.4 simplistic V i have error
"incompatible wit other apps using same user id"
 

striker223

New member
Dec 27, 2011
4
0
Hi, all. I'm desperately trying to understand what's going on here, but my programming/coding skills are nil. I've run into a shared user ID error with Google Calendar... How exactly would I use this technique to fix that?
 

msasbaly

Member
Mar 25, 2011
15
1
Same here, can anyone please explain what should I do in simple words? I have this same problem and i'll be glad if you explain what is adb and those other comands, I have rooted tablet
 

enigma99a

Senior Member
Sep 2, 2007
85
18
I was thinking that I could simply make the edit on boot, but it seems to regenerate every time an attempt is made to install. Everything can be hacked, there must be a way
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    EDIT 31aug2012: also this message appears if there is no "classes.dex" in the apk

    Hi,

    When you try to install certain apk you might get this error when using "adb install something.apk"

    Andoid creates "shared users" like app_1 app_3 etc for packages you install. These UID's are like 10001, 10002, 10003 etc.

    Sometimes the administration of these shared users gets messed up and you get error messages like:

    INSTALL_FAILED_SHARED_USER_INCOMPATIBLE


    The shared user administration is kept in /data/system:

    -rw-rw-r-- system system 129933 2011-08-15 12:08 packages.xml


    How to solve? You need a rooted phone and adb:

    adb shell chmod 666 /data/system/packages.xml

    adb pull /data/system/packages.xml


    Now edit (notepad++) and remove the shared user in question xml block from the file:
    Code:
    <shared-user name="com.navngo" userId="10000">
    <sigs count="1">
    <cert index="4" />
    </sigs>
    <perms>
    <item name="android.permission.READ_PHONE_STATE" />
    <item name="android.permission.DISABLE_KEYGUARD" />
    <item name="android.permission.INTERNET" />
    <item name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <item name="android.permission.ACCESS_FINE_LOCATION" />
    <item name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <item name="android.permission.ACCESS_COARSE_LOCATION" />
    <item name="android.permission.READ_CONTACTS" />
    <item name="android.permission.WRITE_CONTACTS" />
    <item name="android.permission.ACCESS_NETWORK_STATE" />
    <item name="android.permission.WAKE_LOCK" />
    <item name="android.permission.MODIFY_AUDIO_SETTINGS" />
    </perms>
    </shared-user>

    adb push packages.xml /data/system

    adb shell rm /data/dalvik-cache/*

    adb reboot


    Now you should be able to install that apk.

    Cheers
    4
    This problem might also be solved using ad uninstall command. (only for user apps)

    Lets keep the same program as above as an example the you type from a dos box:

    adb uninstall com.navngo.igo.javaclient

    Now install it again. You need to know the package name. You can open the apk with winrar/zip and view the AndroidManifest.xml file. There you see the package name.

    Cheers
    2
    Comment out shared-user name="android.uid.shared" xml block

    Hi,

    I followed the instructions to remove section of android.uid.system in packages.xml. But after reboot, I felt that this file was re-generated and overwritten by system itself. I still can't install my app due to the same incompatible error.

    Any help? Thanks!


    Hi,

    It worked for me... All you want to do is just comment out the block of XML elements under <shared-user name="android.uid.shared" userId="10012">

    Note: I have "Su" permission in my Device.

    This is is how i did

    <!-- <shared-user name="android.uid.shared" userId="10012">
    <sigs count="1">
    <cert index="3" />
    </sigs>
    <perms>
    <item name="android.permission.USE_CREDENTIALS" />
    <item name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
    <item name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <item name="com.google.android.googleapps.permission.GOOGLE_AUTH.cp" />
    <item name="android.permission.GET_ACCOUNTS" />
    <item name="android.permission.READ_CONTACTS" />
    <item name="android.permission.WRITE_CONTACTS" />
    <item name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
    <item name="android.permission.READ_SYNC_STATS" />
    <item name="android.permission.READ_PHONE_STATE" />
    <item name="android.permission.READ_SMS" />
    <item name="android.permission.MODIFY_PHONE_STATE" />
    <item name="android.permission.WRITE_SETTINGS" />
    <item name="android.permission.INTERNET" />
    <item name="android.permission.SUBSCRIBED_FEEDS_READ" />
    <item name="android.permission.VIBRATE" />
    <item name="android.permission.SUBSCRIBED_FEEDS_WRITE" />
    <item name="android.permission.WAKE_LOCK" />
    <item name="android.permission.CALL_PRIVILEGED" />
    </perms>
    </shared-user> -->
    2
    android.uid.system (id 1000) is used for installing packages and I think this trick only works for 10.000 and higher id's.

    Use google to find out more about the problem: https://www.google.com/search?num=40&hl=en&q=android.uid.system

    Cheers
    1
    LLegend thanks a ton buds... helped me fix gmaps :)