Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Update APK Doesn't work with Nougat #74

Closed
challgren opened this issue Sep 19, 2016 · 2 comments
Closed

Auto Update APK Doesn't work with Nougat #74

challgren opened this issue Sep 19, 2016 · 2 comments

Comments

@challgren
Copy link

Because you try to save the file as Context.MODE_WORLD_READABLE a security exception is thrown and the app crashes.

@nicolabeghin
Copy link
Contributor

I confirm AutoUpdateAPK does not work on Nougat

java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
at android.app.ContextImpl.checkMode(ContextImpl.java:2184)
at android.app.ContextImpl.openFileOutput(ContextImpl.java:497)
at android.content.ContextWrapper.openFileOutput(ContextWrapper.java:192)
at com.nbeghin.app.utils.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateApk.java:339)
at com.nbeghin.app.utils.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateApk.java:277)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)

@lazydroid
Copy link
Owner

Should work now, thanks to Nicola!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants