{ "id": "146856", "key": "AC-73", "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": "2015-04-18T15:00:12.000+0000", "created": "2015-04-13T12:25:00.000+0000", "labels": [ "android", "mobilesdk", "root", "sdk-4.0.0.beta2" ], "versions": [], "issuelinks": [ { "id": "47329", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "146873", "key": "CLI-542", "fields": { "summary": "Disable Rooted Phone detection by default", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-04-18T15:00:12.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": "Running an app compiled with mobile sdk 4.0.0.beta2 throw an alert showing a security violation because the device is rooted and then close.\r\nIt also log a misleading error on the console:\r\n{code}\r\n[ERROR] : TiAssetHelper: Error while reading asset \"Resources/app.js\":\r\n[ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/app.js\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:313)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:287)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:107)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:543)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:96)\r\n[ERROR] : TiAssetHelper: \tat android.app.Activity.performCreate(Activity.java:5933)\r\n[ERROR] : TiAssetHelper: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.access$800(ActivityThread.java:144)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiAssetHelper: \tat android.os.Looper.loop(Looper.java:135)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.main(ActivityThread.java:5221)\r\n[ERROR] : TiAssetHelper: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiAssetHelper: \tat java.lang.reflect.Method.invoke(Method.java:372)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n[ERROR] : TiAssetHelper: Error while reading asset \"Resources/app.js\":\r\n[ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/app.js\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:313)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:287)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] : TiAssetHelper: \tat android.os.Looper.loop(Looper.java:135)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n{code}\r\n\r\nThis issue is happening on a rooted nexus 4 and on a non-rooted nexus 7(2012) (that was previously rooted before last os update). The android version is 5.0.1 and 5.0.2", "attachment": [], "flagged": false, "summary": "Impossible to run app on rooted phone (or ex rooted) compiled with titanium sdk 4.0.0.beta2", "creator": { "name": "norx85", "key": "norx85", "displayName": "Giulio De Giorgio", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "norx85", "key": "norx85", "displayName": "Giulio De Giorgio", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "comment": { "comments": [ { "id": "350015", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please see CLI-542 on how to disable rooted phone checks.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-18T14:59:33.000+0000", "updated": "2015-04-18T14:59:33.000+0000" }, { "id": "350016", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is related to CLI-542. The question is if we should disable this detection by default.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-18T15:00:12.000+0000", "updated": "2015-04-18T15:00:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }