{ "id": "171016", "key": "TIMOB-25742", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-02-16T22:02:56.000+0000", "created": "2018-02-02T01:17:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "appc", "cli" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-01T19:24:50.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" } ], "description": "*Summary:*\r\nThe \"appc\" command line tool always fails to install a built APK to an Android 4.1 device. It can only successfully install to Android 4.2 and higher.\r\n\r\n*How to Reproduce:*\r\n# Connect an Android 4.1 device to your machine.\r\n# In the top-left corner of Appcelerator Studio, select \"Run\" and the Android 4.1 device from the drop-down UI.\r\n# Click the \"Run\" button.\r\n# Observe the \"Console\" log.\r\n\r\n_Alternatively, you can do this at the command line via..._\r\n{code}appc run -p android{code}\r\n\r\n*Result:*\r\nThe install fails after the build with the following error messages...\r\n{code}\r\n[ERROR] : Failed to install apk on \"014E05E01600E012\"\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\n*Cause:*\r\nThe CLI is installing the APK using Google's \"adb\" command line tool with the \"-d\" argument. Android 4.1 does not support the \"-d\" argument.\r\nhttps://github.com/appcelerator/node-titanium-sdk/blob/master/lib/adb.js#L548\r\n\r\n*Recommended Solution:*\r\nThe \"adb\" command line does not return an error until near the end of the install, which can take a lot of time for large APKs. So, it would be best to fetch the API Level from the device first via the \"adb shell getprop\" command and then only use \"adb install\" with argument \"-d\" if the API Level is 17 or higher.", "attachment": [], "flagged": false, "summary": "CLI: Fails to install APK to Android 4.1 devices", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "433963", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/node-titanium-sdk/pull/22", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-02T03:53:14.000+0000", "updated": "2018-02-02T03:53:14.000+0000" }, { "id": "434588", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Need to validate the fix before closing after next CLI release (CLI 7.0.3 or later).", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-16T22:05:35.000+0000", "updated": "2018-02-16T22:05:35.000+0000" }, { "id": "435073", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Validated with 7.0.2 from the CLI.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-01T19:24:50.000+0000", "updated": "2018-03-01T19:24:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }