{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/python-for-android/issues/1291","repository_url":"https://api.github.com/repos/kivy/python-for-android","labels_url":"https://api.github.com/repos/kivy/python-for-android/issues/1291/labels{/name}","comments_url":"https://api.github.com/repos/kivy/python-for-android/issues/1291/comments","events_url":"https://api.github.com/repos/kivy/python-for-android/issues/1291/events","html_url":"https://github.com/kivy/python-for-android/pull/1291","id":328866116,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMjY5ODcw","number":1291,"title":"fixes find_library when deployed external storage","user":{"login":"AndreMiras","id":24973,"node_id":"MDQ6VXNlcjI0OTcz","avatar_url":"https://avatars1.githubusercontent.com/u/24973?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreMiras","html_url":"https://github.com/AndreMiras","followers_url":"https://api.github.com/users/AndreMiras/followers","following_url":"https://api.github.com/users/AndreMiras/following{/other_user}","gists_url":"https://api.github.com/users/AndreMiras/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreMiras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreMiras/subscriptions","organizations_url":"https://api.github.com/users/AndreMiras/orgs","repos_url":"https://api.github.com/users/AndreMiras/repos","events_url":"https://api.github.com/users/AndreMiras/events{/privacy}","received_events_url":"https://api.github.com/users/AndreMiras/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-03T22:01:35Z","updated_at":"2018-06-11T20:59:13Z","closed_at":"2018-06-11T20:56:01Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/kivy/python-for-android/pulls/1291","html_url":"https://github.com/kivy/python-for-android/pull/1291","diff_url":"https://github.com/kivy/python-for-android/pull/1291.diff","patch_url":"https://github.com/kivy/python-for-android/pull/1291.patch"},"body":"Fixes `find_library()` `OSError`/`FileNotFoundError` exception when app\r\ndeployed external SD storage.\r\nApps deployed on external SD storage have different root prefix.\r\nExternal SD storage apps root dir prefix is like:\r\n```\r\n/mnt/expand/<sd-card-id>/user/0/<package.domain>.<package.name>/files/app\r\n```\r\nWhile internal storage apps root dir prefix is:\r\n```\r\n/data/data/<package.domain>.<package.name>/files/app\r\n```\r\nHence the `[0:4]` trick doesn't work."},"comment":{"url":"https://api.github.com/repos/kivy/python-for-android/issues/comments/396385299","html_url":"https://github.com/kivy/python-for-android/pull/1291#issuecomment-396385299","issue_url":"https://api.github.com/repos/kivy/python-for-android/issues/1291","id":396385299,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjM4NTI5OQ==","user":{"login":"AndreMiras","id":24973,"node_id":"MDQ6VXNlcjI0OTcz","avatar_url":"https://avatars1.githubusercontent.com/u/24973?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreMiras","html_url":"https://github.com/AndreMiras","followers_url":"https://api.github.com/users/AndreMiras/followers","following_url":"https://api.github.com/users/AndreMiras/following{/other_user}","gists_url":"https://api.github.com/users/AndreMiras/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreMiras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreMiras/subscriptions","organizations_url":"https://api.github.com/users/AndreMiras/orgs","repos_url":"https://api.github.com/users/AndreMiras/repos","events_url":"https://api.github.com/users/AndreMiras/events{/privacy}","received_events_url":"https://api.github.com/users/AndreMiras/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T20:59:13Z","updated_at":"2018-06-11T20:59:13Z","author_association":"CONTRIBUTOR","body":"Great thanks for the merge. I hope so for the crashes. For records here are some stack trace from these crashes:\r\nhttps://github.com/AndreMiras/EtherollApp/issues/96"}}
{"actor":{"display_login":"AndreMiras"}}