{ "id": "172885", "key": "TIMOB-26743", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2019-11-07T17:33:48.000+0000", "created": "2019-01-17T16:40:04.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-11-07T17:33:48.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": "I have created xml file in platform/android/res/xml/device_filter.xml (refer to the first screenshot) but in not get applied after building an App.\r\ndevice_filter.xml (in platform/android/res/xml/device_filter.xml)\r\n\r\n{code:java}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\nAfter building the Appcelerator project, it becomes blank in the build folder. (refer second screenshot)\r\n\r\n{code:java}\r\n\r\n\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\n\r\n{code: title=tiapp.xml}\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\n\r\nPlease find below download link for test code\r\n- https://we.tl/t-UafUiEAun1\r\n\r\nYou can check device_filter.xml in Platform folder.\r\nAnd after building the project it becomes blank in build folder.\r\n\r\nThe functionality I have to achieve is\r\n\r\n1) When I connect the specific device to USB port of android box(mentioning its vendor id , product id in Xml file)\r\nthen it's not asking permission again & again for device connection.\r\n\r\nOtherwise, it's asking me for permission again & again.\r\n\r\nWe tried this with native, it is working as per expected but in Appcelerator, it's not working because it is not processing xml file in XML folder.\r\n\r\nThanks!\r\n\r\n", "attachment": [ { "id": "66100", "filename": "first.png", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-01-17T16:37:31.000+0000", "size": 9767, "mimeType": "image/png" }, { "id": "66099", "filename": "second.png", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-01-17T16:37:32.000+0000", "size": 67778, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti SDK not able to recognize usb-device tag. Making it disappears after build", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Ti SDK 7.5.0.GA", "comment": { "comments": [ { "id": "445439", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I was able to verify the issue with the sample code provided. During build the xml file becomes blank in the build folder. What seems to be the issue here? Tested in Android with SDK 7.5.0.GA. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-01-17T17:56:30.000+0000", "updated": "2019-01-17T17:56:30.000+0000" }, { "id": "445782", "author": { "name": "sandeep14790", "key": "sandeep14790", "displayName": "sandeep", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue is usb-device tag become blank after build . due to which my connected usb devices is not getting auto permission. it asking me permission again again after each device launch in appcelerator.\r\n\r\n\r\n\r\n\r\nIn native, with above code usb-device tag not becoming blank. Usb connected device will get auto permission & not asking me permission again & again\r\n\r\ndevice_filter.xml is contain vendor id & product id device. as per android functionality. This devices become whitelist for my app then it should not asking permission again & again.\r\n\r\nbut in applecelerator, this usb-device tag are not processing during build and it become blank after build. hence this usb device not become whitelist for app & asking permission again & again.\r\n@Sharif AbuDarda ad\r\n\r\n", "updateAuthor": { "name": "sandeep14790", "key": "sandeep14790", "displayName": "sandeep", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-31T04:32:54.000+0000", "updated": "2019-01-31T04:32:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }