From 8f9c9e062319c380883a5455daaca7266de73ce5 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 17 Jul 2018 07:02:36 -0700 Subject: [PATCH] fix crash around uri permissions for new OS version Use a FileProvider with all the necessary xml changes to pass apk to installer without crashing it or myself. --- .../android/app/src/main/AndroidManifest.xml | 10 ++++++++++ .../org/eehouse/android/xw4/DwnldDelegate.java | 3 +-- .../eehouse/android/xw4/GamesListDelegate.java | 2 -- .../android/xw4/UpdateCheckReceiver.java | 6 ++++-- .../java/org/eehouse/android/xw4/Utils.java | 18 ++++++++++-------- 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/xwords4/android/app/src/main/AndroidManifest.xml b/xwords4/android/app/src/main/AndroidManifest.xml index 6fa3ddb0f..27df1905e 100644 --- a/xwords4/android/app/src/main/AndroidManifest.xml +++ b/xwords4/android/app/src/main/AndroidManifest.xml @@ -43,6 +43,16 @@ android:theme="@style/AppTheme" > + + + + doers = pm.queryIntentActivities( intent, PackageManager.MATCH_DEFAULT_ONLY );