{ "id": "170468", "key": "AC-5410", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-12-08T22:52:54.000+0000", "created": "2017-11-27T16:15:23.000+0000", "labels": [ "android", "apn", "crash", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-08T22:52:54.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "When starting an Activity in order to open the APN_SETTINGS a new Activity is opened and immediately closed on Android API 24 (Android 7) and up. The same code works perfectly in lower Android API versions.\r\n\r\nThe code to reproduce this is the following:\r\n{code:java}\r\nintent = Ti.Android.createIntent({ action : 'android.settings.APN_SETTINGS' });\r\nintent.addFlags(Ti.Android.FLAG_ACTIVITY_NEW_TASK);\r\nTi.Android.currentActivity.startActivity(intent);\r\n{code}\r\n\r\n\r\nAppcelerator console doesn't give any information about the failure, but tracking it with the adb logcat, I got the following snippet:\r\n{code:java}\r\n11-27 14:36:46.498 1408 1408 W ContextImpl: Failed to ensure /data/user_de/0/com.android.settings/shared_prefs: mkdir failed: EACCES (Permission denied)\r\n11-27 14:36:46.534 1408 1408 E MPlugin : Unsupported class: com.mediatek.settings.ext.IApnSettingsExt\r\n11-27 14:36:46.534 1408 1408 E MPlugin : Unsupported class: com.mediatek.settings.ext.IRcseOnlyApnExt\r\n11-27 14:36:46.687 1117 1862 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@351f8d3 attribute=null, token = android.os.BinderProxy@daa15cf\r\n11-27 14:36:47.366 1117 1171 W WindowManager: Failed looking up window\r\n11-27 14:36:47.366 1117 1171 W WindowManager: java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@deb4747 does not exist\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9471)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9462)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2460)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat com.android.server.wm.Session.remove(Session.java:196)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3700)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat android.view.ViewRootImpl.doDie(ViewRootImpl.java:6429)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4052)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat android.os.Handler.dispatchMessage(Handler.java:110)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat android.os.Looper.loop(Looper.java:203)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n11-27 14:36:47.366 1117 1171 W WindowManager: \tat com.android.server.ServiceThread.run(ServiceThread.java:46)\r\n{code}\r\n", "attachment": [ { "id": "63711", "filename": "app.js", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2017-12-01T08:31:35.000+0000", "size": 461, "mimeType": "text/javascript" } ], "flagged": false, "summary": "IllegalArgumentException on APN_SETTINGS (Android API 24 and up)", "creator": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "subtasks": [], "reporter": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "environment": "Android API 24 and up. Tested in several Android devices.", "comment": { "comments": [ { "id": "431330", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~dfalcon], \r\nThanks for sharing with us. Please provide a full sample test code that regenerates the issue. Better to provide a sample app as an attachment here. Can you please test in latest SDK and android api(27) and let us know how it goes.\r\nBest", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-28T04:27:01.000+0000", "updated": "2017-11-28T04:27:01.000+0000" }, { "id": "431512", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "[~dfalcon],\r\n\r\nI just wanted to follow up here. Did you manage to follow the instructions provided earlier? Let us know if you still experience any issue. We would be happy to assist you.\r\nBest Regards!\r\n\r\nBest", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-30T07:57:47.000+0000", "updated": "2017-11-30T07:57:47.000+0000" }, { "id": "431584", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Hi Mostafizur Rahman,\r\n\r\nApologies for the late answer, I made an extensive test in several devices and emulators. All the emulators I've tested are working, and I've had the oportunity to test in an Android 8 device (API 26), with successful results.\r\n\r\nWhat I found in this testing is the following:\r\nThis code works in the majority of the devices and emulators, however there are some that are not working or doing complete different things. Some examples:\r\n\r\n- Gigaset GS170, with Android 7.0 (API 24): The phone tries to open the activity, but it fails and closes it, with the result of the error stack that I have added to the ticket.\r\n\r\n- Nokia 8, with Android 7.1.1 (API 25): The phone goes to \"About phone\" instead of \"APN Settings\".\r\n\r\nI've added a simple app.js file to the ticket in order to test this.\r\n\r\nThanks for your attention.\r\n\r\nBest regards.", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2017-12-01T08:38:18.000+0000", "updated": "2017-12-01T08:38:29.000+0000" }, { "id": "431603", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~dfalcon] This can happen when vendors create their own custom {{Settings}} navigator; some actions can become invalid like {{android.settings.APN_SETTINGS}}.\r\n\r\nIt's hard to get this to work for all devices, unless you figure out the correct actions for problematic vendors.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-01T18:38:07.000+0000", "updated": "2017-12-01T18:38:07.000+0000" }, { "id": "431659", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Hi Gary Mathews,\r\n\r\nFor the Gigaset and other \"not-so-well-known\" brands, your sentence is for sure correct. I've experienced this before: Vendors modifying Android in their phones, which can lead to funny situations.\r\n\r\nBut in the case of the Nokia I'm not so sure. They even claim in their website that they have \"Pure Android\" in their phones. Could be that they are lying about this?\r\n\r\nThank you for your answers.\r\n\r\nBest regards", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2017-12-04T12:17:15.000+0000", "updated": "2017-12-04T12:17:15.000+0000" }, { "id": "431700", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~dfalcon], I believe this is most certainly a vender issue. Since I can reproduce the issue with your code in Nokia 6 (Android 7.1.2) device. So, I think the issue here is with Nokia or Gigaset or such. The vendors decided not to update the actions for their Settings navigator. In that case, we have nothing to do here. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-04T21:41:16.000+0000", "updated": "2017-12-05T00:40:18.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }