{ "id": "89805", "key": "TIMOB-8665", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:19:10.000+0000", "created": "2012-04-10T16:26:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "androidbuild", "ay-verified", "cb-verified", "core", "parity", "qe-and040912", "usability" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "31427", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "119168", "key": "TIMOB-14982", "fields": { "summary": "Android Build: Run Hook", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-12T10:01:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "When an android app is installed, and that app is already installed using a different deploy type (i.e., production vs. testing), or a different app is installed with the same app id, there is an error INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES logged to the console.\r\n\r\nI would expect the script to fail with a meaningful error message (and Titanium Studio to have an error prompt if necessary) indicating an app with the same app id and a different certificate is already installed on device, remove this app to continue installation.\r\n\r\nSteps to Reproduce (Scenario 1):\r\n\r\n1. Create a new Android project.\r\n2. Distribute for production and install to device.\r\n3. Deploy again to device from studio.\r\n\r\nSteps to Reproduce (Scenario 2):\r\n\r\n1. Create a new Android project.\r\n2. Install to device in development mode.\r\n3. Create another Android project with the same app id.\r\n4. Deploy second app to device.\r\n\r\nExpected Result:\r\n\r\nScript fails with meaningful error message, studio prompts error if necessary.\r\n\r\nActual Result:\r\n\r\nFailure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] logs to console, difficult to know exactly what the problem is.", "attachment": [], "flagged": false, "summary": "Android: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES when installing different app with same app id", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.2, 2.0.0.GA, 2.0.1.v20120410103239, 2.1.0.v20120410105657\r\nAndroid: V8, Rhino\r\nStudio: 1.0.9, 2.0.0, 2.0.1.201204091535\r\nOS: Snow Leopard, Windows 8\r\nDevices Tested: Galaxy Nexus 4.0.4, Nexus One 2.2.2", "comment": { "comments": [ { "id": "233310", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket may require Titanium Studio involvement.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T16:02:10.000+0000", "updated": "2013-01-04T16:02:10.000+0000" }, { "id": "275715", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is actually an issue with development builds having a different keystore than the one installed by a production build. In the new CLI, you can specify a keystore even in a device build. This can be resolved if they specify a keystore for all their builds.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T20:17:13.000+0000", "updated": "2013-10-18T20:17:13.000+0000" }, { "id": "275803", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:19:10.000+0000", "updated": "2013-10-19T01:19:10.000+0000" }, { "id": "279089", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201311112306\r\nSDK:3.2.0.v20131111174605\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0\r\ntitanium-code-processor: 1.0.3\r\nXcode:5.0.1\r\nDevice: Google nexus 7(v4.3)\r\nOS: Mac OSX 10.9\r\n\r\nNot getting the INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES when installing different app with same app id.\r\n\r\nTried for both the above mentioned Scenarios:\r\nResult for Scenario 1 was proper meaningful error message, studio prompts error as \r\n{code}\r\n[ERROR] : Failed to install apk on \"058429ec\"\r\n[ERROR] : The app is already installed, but signed with a different certificate\r\n[ERROR] : You need to either manually uninstall the app or rebuild using the same certificate that was used to sign the installed app\r\n{code}\r\n\r\nResult for Scenario 2 was it overrides the app as app ids are same.\r\n\r\nHence Closing as working as expected and not getting the above mentioned error.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-12T10:01:54.000+0000", "updated": "2013-11-12T10:01:54.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }