From 2ddc4825a5196fc44fee572a1a1020451ccadfed Mon Sep 17 00:00:00 2001 From: Takayuki Hoshi Date: Mon, 23 Mar 2020 17:15:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Android10=E3=81=A7Chrome=E3=81=8B=E3=82=89G?= =?UTF-8?q?eolocationAPI=E3=81=8C=E6=93=8D=E4=BD=9C=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 修正内容 * Android10でChromeからGeolocationAPIが操作できない --- .../app/src/main/AndroidManifest.xml | 3 ++- .../host/profile/HostGeolocationProfile.java | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml index 4554719d11..660e854cfe 100755 --- a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml +++ b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml @@ -23,7 +23,8 @@ - + + diff --git a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java index 8f950648f8..5c96a8f86f 100644 --- a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java +++ b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java @@ -78,7 +78,9 @@ public String getAttribute() { @Override public boolean onRequest(final Intent request, final Intent response) { PermissionUtility.requestPermissions(getContext(), - new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, + new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, + Manifest.permission.ACCESS_COARSE_LOCATION, + Manifest.permission.ACCESS_BACKGROUND_LOCATION}, new PermissionUtility.PermissionRequestCallback() { @Override public void onSuccess() { @@ -116,7 +118,9 @@ public String getAttribute() { @Override public boolean onRequest(final Intent request, final Intent response) { PermissionUtility.requestPermissions(getContext(), - new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, + new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, + Manifest.permission.ACCESS_COARSE_LOCATION, + Manifest.permission.ACCESS_BACKGROUND_LOCATION}, new PermissionUtility.PermissionRequestCallback() { @Override public void onSuccess() { @@ -159,7 +163,9 @@ public String getAttribute() { @Override public boolean onRequest(final Intent request, final Intent response) { PermissionUtility.requestPermissions(getContext(), - new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, + new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, + Manifest.permission.ACCESS_COARSE_LOCATION, + Manifest.permission.ACCESS_BACKGROUND_LOCATION}, new PermissionUtility.PermissionRequestCallback() { @Override public void onSuccess() { From cc4badfa1e4ead3c4a49a5ba5d931fe07fafcdbb Mon Sep 17 00:00:00 2001 From: Takayuki Hoshi Date: Mon, 23 Mar 2020 18:53:30 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Manifest.permission.ACCESS=5FBACKGROUND=5FL?= =?UTF-8?q?OCATION=E3=81=AF=E6=8E=A8=E5=A5=A8=E3=81=95=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=84=E3=81=9F=E3=82=81=E3=80=81Manager?= =?UTF-8?q?=E3=81=AEAndroidManifest.xml=E3=81=AEforgroundServiceType?= =?UTF-8?q?=E3=81=ABlocation=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dConnectDeviceHost/app/src/main/AndroidManifest.xml | 1 - .../host/profile/HostGeolocationProfile.java | 9 +++------ .../dconnect-manager-app/src/main/AndroidManifest.xml | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml index 660e854cfe..e8c53a32cf 100755 --- a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml +++ b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/AndroidManifest.xml @@ -24,7 +24,6 @@ - diff --git a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java index 5c96a8f86f..f2ff5d2bfc 100644 --- a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java +++ b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/profile/HostGeolocationProfile.java @@ -79,8 +79,7 @@ public String getAttribute() { public boolean onRequest(final Intent request, final Intent response) { PermissionUtility.requestPermissions(getContext(), new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, - Manifest.permission.ACCESS_COARSE_LOCATION, - Manifest.permission.ACCESS_BACKGROUND_LOCATION}, + Manifest.permission.ACCESS_COARSE_LOCATION}, new PermissionUtility.PermissionRequestCallback() { @Override public void onSuccess() { @@ -119,8 +118,7 @@ public String getAttribute() { public boolean onRequest(final Intent request, final Intent response) { PermissionUtility.requestPermissions(getContext(), new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, - Manifest.permission.ACCESS_COARSE_LOCATION, - Manifest.permission.ACCESS_BACKGROUND_LOCATION}, + Manifest.permission.ACCESS_COARSE_LOCATION}, new PermissionUtility.PermissionRequestCallback() { @Override public void onSuccess() { @@ -164,8 +162,7 @@ public String getAttribute() { public boolean onRequest(final Intent request, final Intent response) { PermissionUtility.requestPermissions(getContext(), new Handler(Looper.getMainLooper()), new String[]{Manifest.permission.ACCESS_FINE_LOCATION, - Manifest.permission.ACCESS_COARSE_LOCATION, - Manifest.permission.ACCESS_BACKGROUND_LOCATION}, + Manifest.permission.ACCESS_COARSE_LOCATION}, new PermissionUtility.PermissionRequestCallback() { @Override public void onSuccess() { diff --git a/dConnectManager/dConnectManager/dconnect-manager-app/src/main/AndroidManifest.xml b/dConnectManager/dConnectManager/dconnect-manager-app/src/main/AndroidManifest.xml index 081042b8fb..a9f4195c06 100755 --- a/dConnectManager/dConnectManager/dconnect-manager-app/src/main/AndroidManifest.xml +++ b/dConnectManager/dConnectManager/dconnect-manager-app/src/main/AndroidManifest.xml @@ -160,7 +160,7 @@ + android:foregroundServiceType="mediaProjection|location">