{"action":"created","issue":{"url":"https://api.github.com/repos/krt16s/ffupdater/issues/2","repository_url":"https://api.github.com/repos/krt16s/ffupdater","labels_url":"https://api.github.com/repos/krt16s/ffupdater/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/krt16s/ffupdater/issues/2/comments","events_url":"https://api.github.com/repos/krt16s/ffupdater/issues/2/events","html_url":"https://github.com/krt16s/ffupdater/issues/2","id":132931717,"number":2,"title":"Crash on CM13","user":{"login":"jpotier","id":752510,"avatar_url":"https://avatars.githubusercontent.com/u/752510?v=3","gravatar_id":"","url":"https://api.github.com/users/jpotier","html_url":"https://github.com/jpotier","followers_url":"https://api.github.com/users/jpotier/followers","following_url":"https://api.github.com/users/jpotier/following{/other_user}","gists_url":"https://api.github.com/users/jpotier/gists{/gist_id}","starred_url":"https://api.github.com/users/jpotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpotier/subscriptions","organizations_url":"https://api.github.com/users/jpotier/orgs","repos_url":"https://api.github.com/users/jpotier/repos","events_url":"https://api.github.com/users/jpotier/events{/privacy}","received_events_url":"https://api.github.com/users/jpotier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-11T10:05:37Z","updated_at":"2016-02-11T13:20:42Z","closed_at":null,"body":"For me, app crashes upon clicking on \"I'm feeling lucky\".\r\n\r\nIt might come from the fact I'm using a nightly build of CM13, however `ffupdater` is the only app that has this kind of crashy behaviour.\r\n\r\nSome details on my configuration:\r\n```\r\nBuild number: cm_peregrine-userdebug 6.0.1 MMB29U\r\nCyanogenMod version: 13.0-20160210-NIGHTLY-peregrine\r\nAndroid version: 6.0.1\r\n```\r\n\r\nSome trace around the time I start the app and push the \"I'm feeling lucky\" button:\r\n```\r\n--------- beginning of system\r\n…\r\n02-11 10:59:06.125   747  1726 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=de.marmaro.krt.ffupdater/.MainActivity} from uid 10080 on display 0\r\n02-11 10:59:06.190   747  1153 I ActivityManager: Start proc 32116:de.marmaro.krt.ffupdater/u0a97 for activity de.marmaro.krt.ffupdater/.MainActivity\r\n02-11 10:59:06.288 32116 32116 W System  : ClassLoader referenced unknown path: /data/app/de.marmaro.krt.ffupdater-1/lib/arm\r\n02-11 10:59:06.361 32116 32116 I MainActivity: Firefox 44.0 (2015396233) is installed.\r\n02-11 10:59:06.361 32116 32116 I MainActivity: UpdateUri: https://download.mozilla.org/?product=fennec-latest&os=android&lang=multi\r\n02-11 10:59:06.373 32116 32140 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true\r\n02-11 10:59:06.427 32116 32140 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/09/15, 6cbbf7d, I3193f6e94a\r\n02-11 10:59:06.429 32116 32140 I OpenGLRenderer: Initialized EGL, version 1.4\r\n02-11 10:59:06.605   747   767 I ActivityManager: Displayed de.marmaro.krt.ffupdater/.MainActivity: +445ms\r\n02-11 10:59:08.379   747  3485 D NetlinkSocketObserver: NeighborEvent{elapsedMs=33614843, 192.168.1.1, [028EF24BF013], RTM_NEWNEIGH, NUD_PROBE}\r\n02-11 10:59:08.739   232   413 I ThermalEngine: Sensor:batt_therm:25700 mC\r\n02-11 10:59:09.253   222   998 D audio_hw_primary: out_standby: enter: stream (0xb7b050d8) usecase(1: low-latency-playback)\r\n02-11 10:59:09.329   222   998 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite\r\n02-11 10:59:10.485   747  1041 D WifiStateMachine: starting scan for \"\\_o<\"-WPA_PSK with 2462\r\n02-11 10:59:14.165 19529 19539 I art     : Background sticky concurrent mark sweep GC freed 117521(5MB) AllocSpace objects, 0(0B) LOS objects, 38% free, 8MB/13MB, paused 476us total 148.945ms\r\n02-11 10:59:18.745   232   413 I ThermalEngine: Sensor:batt_therm:25700 mC\r\n02-11 10:59:21.420   747  3485 D NetlinkSocketObserver: NeighborEvent{elapsedMs=33627884, 192.168.1.1, [028EF24BF013], RTM_NEWNEIGH, NUD_STALE}\r\n02-11 10:59:23.071   222   998 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2\r\n02-11 10:59:23.081   222   998 D audio_hw_primary: start_output_stream: enter: stream(0xb7b050d8)usecase(1: low-latency-playback) devices(0x2)\r\n02-11 10:59:23.081   222   998 D audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)\r\n02-11 10:59:23.082   222   998 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )\r\n02-11 10:59:23.082   222   998 W msm8974_platform: Codec backend bitwidth 16, samplerate 48000\r\n02-11 10:59:23.082   222   998 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite\r\n02-11 10:59:23.082   222   998 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path =  0\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> send_adm_topology\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> send_audtable\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> send_audvoltable\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL\r\n02-11 10:59:23.082   222   998 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL\r\n02-11 10:59:23.091   222   998 D audio_hw_primary: select_devices: done\r\n02-11 10:59:23.168  1112 23768 W DownloadManager: Path appears to be invalid: /storage/emulated/0/Download/temp.apk\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: Writing exception to parcel\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: java.lang.SecurityException: No permission to write to /storage/emulated/0/Download/temp.apk: Neither user 10097 nor current process has android.permission.WRITE_EXTERNAL_STORAGE.\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat android.app.ContextImpl.enforce(ContextImpl.java:1450)\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1482)\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat com.android.providers.downloads.DownloadProvider.checkFileUriDestination(DownloadProvider.java:724)\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat com.android.providers.downloads.DownloadProvider.insert(DownloadProvider.java:558)\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat android.content.ContentProvider$Transport.insert(ContentProvider.java:263)\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat android.content.ContentProviderNative.onTransact(ContentProviderNative.java:163)\r\n02-11 10:59:23.171  1112 23768 E DatabaseUtils: \tat android.os.Binder.execTransact(Binder.java:453)\r\n02-11 10:59:23.172 32116 32116 D AndroidRuntime: Shutting down VM\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: FATAL EXCEPTION: main\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: Process: de.marmaro.krt.ffupdater, PID: 32116\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: java.lang.SecurityException: No permission to write to /storage/emulated/0/Download/temp.apk: Neither user 10097 nor current process has android.permission.WRITE_EXTERNAL_STORAGE.\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.os.Parcel.readException(Parcel.java:1620)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.content.ContentProviderProxy.insert(ContentProviderNative.java:476)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.content.ContentResolver.insert(ContentResolver.java:1236)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.app.DownloadManager.enqueue(DownloadManager.java:954)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat de.marmaro.krt.ffupdater.MainActivity.downloadAndInstall(MainActivity.java:66)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat de.marmaro.krt.ffupdater.MainActivity$2.onClick(MainActivity.java:196)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.view.View.performClick(View.java:5204)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.view.View$PerformClick.run(View.java:21156)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.os.Handler.handleCallback(Handler.java:739)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.os.Looper.loop(Looper.java:148)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat android.app.ActivityThread.main(ActivityThread.java:5466)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat java.lang.reflect.Method.invoke(Native Method)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n02-11 10:59:23.172 32116 32116 E AndroidRuntime: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n02-11 10:59:23.174   747  1611 W ActivityManager:   Force finishing activity de.marmaro.krt.ffupdater/.MainActivity\r\n02-11 10:59:23.254   747 27746 I OpenGLRenderer: Initialized EGL, version 1.4\r\n02-11 10:59:23.297   747   757 I art     : Background partial concurrent mark sweep GC freed 65058(4MB) AllocSpace objects, 22(440KB) LOS objects, 33% free, 17MB/26MB, paused 2.661ms total 100.864ms\r\n02-11 10:59:23.705   747   762 W ActivityManager: Activity pause timeout for ActivityRecord{3a4125c u0 de.marmaro.krt.ffupdater/.MainActivity t183 f}\r\n02-11 10:59:26.292   222   998 D audio_hw_primary: out_standby: enter: stream (0xb7b050d8) usecase(1: low-latency-playback)\r\n02-11 10:59:26.371   222   998 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite\r\n02-11 10:59:26.810   222   998 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2\r\n02-11 10:59:26.813 32116 32116 I Process : Sending signal. PID: 32116 SIG: 9\r\n02-11 10:59:26.821   222   998 D audio_hw_primary: start_output_stream: enter: stream(0xb7b050d8)usecase(1: low-latency-playback) devices(0x2)\r\n02-11 10:59:26.821   222   998 D audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)\r\n02-11 10:59:26.821   222   998 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )\r\n02-11 10:59:26.821   222   998 W msm8974_platform: Codec backend bitwidth 16, samplerate 48000\r\n02-11 10:59:26.821   222   998 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite\r\n02-11 10:59:26.821   222   998 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path =  0\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> send_adm_topology\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> send_audtable\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> send_audvoltable\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL\r\n02-11 10:59:26.821   222   998 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL\r\n02-11 10:59:26.826   222   998 D audio_hw_primary: select_devices: done\r\n02-11 10:59:26.855   747   767 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0\r\n02-11 10:59:26.888   747  1726 D GraphicsStats: Buffer count: 14\r\n02-11 10:59:26.889   747  1726 I WindowState: WIN DEATH: Window{48d61ea u0 de.marmaro.krt.ffupdater/de.marmaro.krt.ffupdater.MainActivity}\r\n02-11 10:59:26.903   222   998 D AudioFlinger: mixer(0xb4177008) throttle end: throttle time(10)\r\n02-11 10:59:26.940   747   759 I ActivityManager: Process de.marmaro.krt.ffupdater (pid 32116) has died\r\n02-11 10:59:28.750   232   413 I ThermalEngine: Sensor:batt_therm:25700 mC\r\n02-11 10:59:29.249   747  3485 D NetlinkSocketObserver: NeighborEvent{elapsedMs=33635713, 192.168.1.1, [028EF24BF013], RTM_NEWNEIGH, NUD_PROBE}\r\n02-11 10:59:30.033   222   998 D audio_hw_primary: out_standby: enter: stream (0xb7b050d8) usecase(1: low-latency-playback)\r\n02-11 10:59:30.111   222   998 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite\r\n```"},"comment":{"url":"https://api.github.com/repos/krt16s/ffupdater/issues/comments/182859826","html_url":"https://github.com/krt16s/ffupdater/issues/2#issuecomment-182859826","issue_url":"https://api.github.com/repos/krt16s/ffupdater/issues/2","id":182859826,"user":{"login":"krt16s","id":6763207,"avatar_url":"https://avatars.githubusercontent.com/u/6763207?v=3","gravatar_id":"","url":"https://api.github.com/users/krt16s","html_url":"https://github.com/krt16s","followers_url":"https://api.github.com/users/krt16s/followers","following_url":"https://api.github.com/users/krt16s/following{/other_user}","gists_url":"https://api.github.com/users/krt16s/gists{/gist_id}","starred_url":"https://api.github.com/users/krt16s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krt16s/subscriptions","organizations_url":"https://api.github.com/users/krt16s/orgs","repos_url":"https://api.github.com/users/krt16s/repos","events_url":"https://api.github.com/users/krt16s/events{/privacy}","received_events_url":"https://api.github.com/users/krt16s/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T13:20:42Z","updated_at":"2016-02-11T13:20:42Z","body":"This is a change in Android6 / CM13, and it's already on my todo list (https://github.com/krt16s/ffupdater/blob/master/TODO). As with all others things I want to do, it's just a matter of finding the time for it.\r\n\r\nBtw: Android 5 and below work fine."}}