{"action":"created","issue":{"url":"https://api.github.com/repos/nspire-emus/firebird/issues/89","repository_url":"https://api.github.com/repos/nspire-emus/firebird","labels_url":"https://api.github.com/repos/nspire-emus/firebird/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/nspire-emus/firebird/issues/89/comments","events_url":"https://api.github.com/repos/nspire-emus/firebird/issues/89/events","html_url":"https://github.com/nspire-emus/firebird/issues/89","id":231863374,"number":89,"title":"The application do not dynamically requires WRITE permission on Android 6.0 ","user":{"login":"Florin9doi","id":2995486,"avatar_url":"https://avatars2.githubusercontent.com/u/2995486?v=3","gravatar_id":"","url":"https://api.github.com/users/Florin9doi","html_url":"https://github.com/Florin9doi","followers_url":"https://api.github.com/users/Florin9doi/followers","following_url":"https://api.github.com/users/Florin9doi/following{/other_user}","gists_url":"https://api.github.com/users/Florin9doi/gists{/gist_id}","starred_url":"https://api.github.com/users/Florin9doi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Florin9doi/subscriptions","organizations_url":"https://api.github.com/users/Florin9doi/orgs","repos_url":"https://api.github.com/users/Florin9doi/repos","events_url":"https://api.github.com/users/Florin9doi/events{/privacy}","received_events_url":"https://api.github.com/users/Florin9doi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-28T11:38:23Z","updated_at":"2017-05-29T19:50:12Z","closed_at":null,"body":"The application do not dynamically requires WRITE permission on Android 6.0, and as result, it fail to open the flash files.\r\n\r\nIt fails in flash.cpp:412 with Errno13:Permission denied\r\n```\r\n    flash_file = fopen_utf8(filename, \"r+b\");\r\n    if (!flash_file) {\r\n        gui_perror(filename);\r\n        __android_log_print(ANDROID_LOG_WARN, \"org.firebird.emu\", \"flash_open1 %s:%d:%s\",\r\n                            filename, errno, strerror(errno));\r\n        return false;\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/nspire-emus/firebird/issues/comments/304721801","html_url":"https://github.com/nspire-emus/firebird/issues/89#issuecomment-304721801","issue_url":"https://api.github.com/repos/nspire-emus/firebird/issues/89","id":304721801,"user":{"login":"Florin9doi","id":2995486,"avatar_url":"https://avatars2.githubusercontent.com/u/2995486?v=3","gravatar_id":"","url":"https://api.github.com/users/Florin9doi","html_url":"https://github.com/Florin9doi","followers_url":"https://api.github.com/users/Florin9doi/followers","following_url":"https://api.github.com/users/Florin9doi/following{/other_user}","gists_url":"https://api.github.com/users/Florin9doi/gists{/gist_id}","starred_url":"https://api.github.com/users/Florin9doi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Florin9doi/subscriptions","organizations_url":"https://api.github.com/users/Florin9doi/orgs","repos_url":"https://api.github.com/users/Florin9doi/repos","events_url":"https://api.github.com/users/Florin9doi/events{/privacy}","received_events_url":"https://api.github.com/users/Florin9doi/received_events","type":"User","site_admin":false},"created_at":"2017-05-29T19:50:12Z","updated_at":"2017-05-29T19:50:12Z","body":"I don't have any ARM64 device now, but I've been able to build it myself using Qt5.9 and TargetSDK 23 and now I receive:\r\n\r\n> D AndroidRuntime: Shutting down VM\r\nE AndroidRuntime: FATAL EXCEPTION: main\r\nE AndroidRuntime: Process: org.firebird.emu, PID: 22347\r\nE AndroidRuntime: java.lang.UnsatisfiedLinkError: **dlopen failed: /data/app/org.firebird.emu-1/lib/arm/libfirebird.so: has text relocations**\r\nE AndroidRuntime: \tat java.lang.Runtime.loadLibrary(Runtime.java:372)\r\nE AndroidRuntime: \tat java.lang.System.loadLibrary(System.java:1076)\r\nE AndroidRuntime: \tat org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:244)\r\nE AndroidRuntime: \tat org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:649)\r\nE AndroidRuntime: \tat org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)\r\nE AndroidRuntime: \tat org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)\r\nE AndroidRuntime: \tat org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)\r\nE AndroidRuntime: \tat android.app.Activity.performCreate(Activity.java:6251)\r\nE AndroidRuntime: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)\r\nE AndroidRuntime: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)\r\nE AndroidRuntime: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)\r\nE AndroidRuntime: \tat android.app.ActivityThread.-wrap11(ActivityThread.java)\r\nE AndroidRuntime: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\nE AndroidRuntime: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\nE AndroidRuntime: \tat android.os.Looper.loop(Looper.java:148)\r\nE AndroidRuntime: \tat android.app.ActivityThread.main(ActivityThread.java:5417)\r\nE AndroidRuntime: \tat java.lang.reflect.Method.invoke(Native Method)\r\nE AndroidRuntime: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\nE AndroidRuntime: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n\r\nThe cause is this change: https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-runtime\r\n>On previous versions of Android, if your app requested the system to load a shared library with text relocations, the system displayed a warning but still allowed the library to be loaded. Beginning in this release, the system rejects this library if your app's target SDK version is 23 or higher.\r\n\r\n"}}
{"actor":{"display_login":"Florin9doi"}}