[TIMOB-19854] Android: Prompt user to update installed app when installed with different cert
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | androidlib, cb-tooling |
Reporter | Christopher Williams |
Assignee | Unknown |
Created | 2015-11-03T21:24:55.000+0000 |
Updated | 2020-03-06T21:38:57.000+0000 |
Description
I'm not sure how often people will run into this, but I see it a lot switching back and forth between my hyperloop module/Android SDK app, and a different version of the app from Titanium SDK/Studio.
The ADT tooling is smart enough to know when the app is already installed with a different cert and allows me to force delete/overwrite it. Studio and our CLI just fail with:
[INFO] : Installing apk: /Users/cwilliams/Documents/Appcelerator_Studio_Workspace/TitaniumTest/build/android/bin/TitaniumTest.apk
[ERROR] : Failed to install apk on "emulator-5554"
[ERROR] : Error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/cwilliams/.appcelerator/install/5.0.4/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
TRACE | Sending exit signal to titanium process: 20858
No comments