{ "id": "118135", "key": "TIMOB-14784", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15645", "description": "2013 Sprint 18 Core", "name": "2013 Sprint 18 Core", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "15646", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "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-08-28T23:18:44.000+0000", "created": "2013-08-08T16:47:58.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "androidbuild", "ay-verified", "cb-verified", "module_CLI", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "30726", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "109242", "key": "TIMOB-12600", "fields": { "summary": "CLI: building for Android device while the emulator is open generates a wrong Error Message", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "30728", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "94307", "key": "TIMOB-9859", "fields": { "summary": "Android: increase AVD storage size to reduce [FAILED_INSUFFICIENT_STORAGE] errors", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "30727", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "117780", "key": "TIMOB-14701", "fields": { "summary": "CLI: Android: For emulator builds, check that emulator has sufficient space", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "30729", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "111330", "key": "TIMOB-13105", "fields": { "summary": "CLI: Add build support for building android apps on emulator without starting the app", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-02-12T01:51:42.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": "We need an ADB library that provides the following functions:\r\n\r\n* devices\r\n* start-server\r\n* kill-server\r\n* install\r\n** allow installation to a specific device/emulator (TIMOB-12600 CLI: building for Android device while the emulator open generates a wrong Error Message)\r\n** gracefully handle FAILED_INSUFFICIENT_STORAGE errors (TIMOB-14701 CLI: Android: For emulator builds, check that emulator has sufficient space)\r\n*** if insufficient storage space, display instructions on how to resolve (TIMOB-9859 Android: increase AVD storage size to reduce \\[FAILED_INSUFFICIENT_STORAGE\\] errors)\r\n* shell\r\n* push\r\n* forward\r\n* start app (TIMOB-13105 CLI: Add build support for building android apps on emulator without starting the app)\r\n* kill running app", "attachment": [], "flagged": false, "summary": "CLI: Create ADB Library", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "268261", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Summary log from chat recorded on poker session CLI Sprint 18 poker planning:\n\n[11:23:29 PM] Matt Langston: 1/4 to 1/3 is calling adb shell. The remainder is using the adb TCP protocol.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-26T23:27:14.000+0000", "updated": "2013-08-26T23:27:14.000+0000" }, { "id": "268468", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4612", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-27T22:10:45.000+0000", "updated": "2013-08-27T22:10:45.000+0000" }, { "id": "268473", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test:\n\n{code}\ncd titanium_mobile/support/node_modules/titanium-sdk/tests\n{code}\n\nOpen the \"test-adb.js\" file in an editor and uncomment a test to run. I recommend 1 test at a time. You will need to run \"adb devices\" to find various device ids to test with, then update the test-adb.js file with the ids. You can do all the testing with a single emulator, but it might be slower.\n\nTo run the test, run:\n\n{code}\nnode test-adb.js\n{code}\n\nTests:\n\n*testVersion()*\n\nJust uncomment and run. If the adb server is not running, it will start it up.\n\n*testDevices()*\n\nJust uncomment and run. It will print all devices and emulators. You can start/plug in more devices, then rerun. You should see details for each device.\n\n*testTrackDevices()*\n\nJust uncomment and run. It will print all devices and emulators. While it's running, continue to add and remove devices/emulators and watch the output update the list of connected devices.\n\n*testShell()*\n\nUncomment, then update the device id in the test function with your id, then run. It should dump the build.prop file.\n\n*testStartApp()*\n\nUncomment, then update the device id in the test function with your id. If you are testing with a device, then change the app id to run to something that actually exists on your device, then run. App should start.\n\n*testStopApp()*\n\nUncomment, then update the device id in the test function with your id. If you are testing with a device, then change the app id to run to something that actually exists on your device, then run. App should stop (assuming it's running).\n\n*testInstallApp()*\n\nYou will need to build an Android app to get the build/android/bin/app.apk file. Next uncomment the test function call and update the test function with the correct device id and path to the apk file. It may take a few seconds to install. If the device has insufficient space, then display the appropriate error.\n\n*testGetPid()*\n\nUncomment, update device id and app id, then run the test. Test with the app running and not running.\n\n*testForward()*\n\nUncommnent, update device id and run. If there's no errors, it must have worked. Right?\n\n*testPull()*\n\nUncomment, update device id and update the 3rd arg to specify the local file to write (must be a file and not a directory). Run test and check the file was written.\n\n*testPush()*\n\nUncomment, update device id, then run test. Next run \"adb -s shell ls /mnt/sdcard/tmp/test-adb.js\" to verify the file was written to the device.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-27T22:35:26.000+0000", "updated": "2013-08-27T22:35:26.000+0000" }, { "id": "282655", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test this you might need to clone the timob repo and run the test from there.\r\n\r\nPlease see me for instructions on running the test.\r\n\r\nThe path is SDK/node_modules/titanium-sdk/tests/test-adb.js", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T18:57:56.000+0000", "updated": "2013-12-05T19:02:22.000+0000" }, { "id": "282761", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested following the test steps mentioned.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201312042306\r\nTi SDK : 3.2.0.v20131204220843\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0-beta\r\nCLI - 3.2.0-beta\r\nSamsung Galaxy S4 running android 4.2.2\r\nNexus 5 - android 4.4", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T00:09:05.000+0000", "updated": "2013-12-06T00:09:05.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }