Page 1 of 1

instrumentation of keePass.apk fails

Posted: Fri Oct 06, 2017 12:04 am
by annnnn
instrumenting the demo apk file failed with the following error:

Instrumentation failed. Error:
Failed to deploy the application via USB. pkg: /data/local/tmp/KeePassDroid-instrumented.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]


2869 KB/s (1903640 bytes in 0.647s)


Info: Exec: C:\Program Files\Java\jre1.8.0_131\bin\java.exe -jar "C:\Program Files (x86)\Ranorex 6.1\Bin\RxEnv\Android\tools\apkTool\apktool.jar" d "C:\Users\name\AppData\Local\RanorexStudio6\RxEnv\Android\temp\KeePassDroid.apk" -f -o "C:\Users\name\AppData\Local\RANORE~1\RxEnv\Android\temp\decomp"
Info: Decompiling APK File.
Info: Processing file 'KeePass.smali' (Pass2).
Info: Processing file 'LockingActivity.smali' (Pass2).
Info: Processing file 'GroupActivityV3.smali' (Pass2).
Info: Processing file 'GroupActivityV4.smali' (Pass2).
Info: Processing file 'GroupEditActivity.smali' (Pass2).
Info: Processing file 'FileSelectActivity.smali' (Pass2).
Info: Processing file 'SearchResults.smali' (Pass2).
Info: Processing file 'AppSettingsActivity.smali' (Pass2).
Info: Recompiling APK File.
Info: Copying custom resources to instrumented APK...
Info: Signing APK File.
Info: Aligning APK File.
Info: Creating destination file in '\\corp-dc02\usersnew\name\Documents\Ranorex\InstrumentedApk\KeePassDroid-instrumented.apk'.
Info: Starting deployment via USB.

any ideas for what might be wrong is appreciated

Re: instrumentation of keePass.apk fails

Posted: Tue Oct 10, 2017 9:11 am
by odklizec
Hi,

Please do not post the same question multiple times. You already got an answer regarding your issue.
If the answer you got did not help you, please communicate it in your original post. Posting the same question again does not help with faster or better response. It just makes the forum cluttered with the same/similar posts ;) Thanks.

Re: instrumentation of keePass.apk fails

Posted: Tue Oct 10, 2017 9:16 am
by asdf
Just uninstall the application, before instrument and deploy it.
Afterwards, the instrumentation should work again.