[PATCH] Fix some GPS-related app incompatibilities

259 views
Skip to first unread message

Terry Poulin

unread,
Sep 6, 2013, 3:15:19 PM9/6/13
to andro...@googlegroups.com
I noticed some apps are not compatible if you have an app store that filters. After looking I noticed the one thing they all had in common was GPS! Poking around, I found this fixes it. It's a very small patch. As GPS is mostly useless on X86 PC's without a dongle and Android-x86 ships with GPS features in the generic build, I assume the goal is compatibility rather than "Reality".

Output of git format-patch is both attached and pasted below in the space between the many ='s.

==========================================================================
From 067288e7f85d91e411aa6d66a8e0a62380c59dbc Mon Sep 17 00:00:00 2001
From: "Terry M. Poulin" <BigBo...@gmail.com>
Date: Fri, 6 Sep 2013 18:54:54 +0000
Subject: [PATCH] Fix some GPS-related app incompatibilities.

device.mk copies over android.hardware.location.gps.xml file but unlike
e.g.  on my Android phone, this file does not include the
android.hardware.location.network feature. Which blocks the installation
of some applications from app stores that filter (e.g. Google Play).

By copying over android.hardware.location.xml we gain the network
location feature <android.hardware.location.network>. This fixes some
apps marked incompatabile in app stores over the permission; such as
Evernote and Google Maps.
---
 device.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/device.mk b/device.mk
index bded762..1506abc 100644
--- a/device.mk
+++ b/device.mk
@@ -45,6 +45,7 @@ PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
     frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
     frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
+    frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
     frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
     frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
     frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
-- 
1.7.5.4
==========================================================================

P.S. if this isn't how you like patches submitted, please point me to a URL with the details because I didn't see any ;).
0001-Fix-some-GPS-related-app-incompatibilities.patch

Chih-Wei Huang

unread,
Sep 9, 2013, 3:31:14 AM9/9/13
to Android-x86
Thank you for pointing it out
and provide a patch.
I've applied it.

Regards,

2013/9/7 Terry Poulin <bigbo...@gmail.com>:
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
Reply all
Reply to author
Forward
0 new messages