I tried to generate a .apk from a classes.dex generated by samli. But I get these erros:
Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] (when I try to install the .apk on the emulator)
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] (when I try to install the .apk on my phone).
Here are the steps what I have done:
- Extraced classes.dex from an existing .apk
- ./baksmali classes.dex
- ./smali out
- mv out.dex classes.dex
- Extracted the whole .apk content in a folder and replaced classes.dex which the new one
- Generated a .zip-file and renamed it to *.apk
- signed the app: jarsigner -verbose -keystore my-release-key.keystore MyFieldTest.apk mykey
Here is the beginning of the manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:sharedUserId="android.uid.phone"
package="com.htc.fieldtest"
android:versionCode="1"
android:versionName="1.0" >
<application android:label="Field Test">
<activity android:label="@string/app_name"
android:name="FieldTestActivity"
android:process="com.android.phone"
android:launchMode="singleInstance">
I know that the app was first signed by a HTC devloper and now by me. But is there as possibility to fix the problem?
Thanks! Felix