{"action":"closed","issue":{"url":"https://api.github.com/repos/d4rken/sdmaid-public/issues/271","labels_url":"https://api.github.com/repos/d4rken/sdmaid-public/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/d4rken/sdmaid-public/issues/271/comments","events_url":"https://api.github.com/repos/d4rken/sdmaid-public/issues/271/events","html_url":"https://github.com/d4rken/sdmaid-public/issues/271","id":124168255,"number":271,"title":"wrong exit code reported in export APK operation","user":{"login":"d4rken","id":1439229,"avatar_url":"https://avatars.githubusercontent.com/u/1439229?v=3","gravatar_id":"","url":"https://api.github.com/users/d4rken","html_url":"https://github.com/d4rken","followers_url":"https://api.github.com/users/d4rken/followers","following_url":"https://api.github.com/users/d4rken/following{/other_user}","gists_url":"https://api.github.com/users/d4rken/gists{/gist_id}","starred_url":"https://api.github.com/users/d4rken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4rken/subscriptions","organizations_url":"https://api.github.com/users/d4rken/orgs","repos_url":"https://api.github.com/users/d4rken/repos","events_url":"https://api.github.com/users/d4rken/events{/privacy}","received_events_url":"https://api.github.com/users/d4rken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/d4rken/sdmaid-public/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/d4rken/sdmaid-public/labels/Tool/AppControl","name":"Tool/AppControl","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-26T21:31:47Z","updated_at":"2016-01-13T16:37:18Z","closed_at":"2016-01-13T16:37:18Z","body":"Originally reported by: **Anonymous**\n\n----------------------------------------\n\nA failed cp operation echos 0 even though the copy got a permission denied error. See the 2nd line in this log:\n\n1451101260478 V/SDM:Shell:StaticExecutor: $BUSYBOX cp \\/data\\/app\\/org\\.videolan\\.vlc\\-2\\/base\\.apk \\/storage\\/sdcard1\\/sdmaidBkp/org.videolan.vlc-v1070407.apk | echo $?:\\/storage\\/sdcard1\\/sdmaidBkp/org.videolan.vlc-v1070407.apk\n\n1451101260519 V/SDM:Shell:Harvester: Output:0:/storage/sdcard1/sdmaidBkp/org.videolan.vlc-v1070407.apk\n\n1451101260525 V/SDM:Shell:Harvester: Error:cp: can't create '/storage/sdcard1/sdmaidBkp/org.videolan.vlc-v1070407.apk': Permission denied\n\n1451101260530 V/SDM:Shell:StaticExecutor: Exitcode: 0\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/d4rken/sd-maid/issue/273\n"}}