Skip to content

Instantly share code, notes, and snippets.

@sooorajjj
Created November 22, 2018 14:42
Show Gist options
  • Save sooorajjj/749d2db0d3eea7f1f6253fa5e1028809 to your computer and use it in GitHub Desktop.
Save sooorajjj/749d2db0d3eea7f1f6253fa5e1028809 to your computer and use it in GitHub Desktop.
qcom_common_gps_remove
diff --git a/base.mk b/base.mk
index 03c2fd1..85e2c3a 100644
--- a/base.mk
+++ b/base.mk
@@ -115,13 +115,13 @@ FASTPOWERON := FastBoot
#GPS
-GPS_HARDWARE := gps.conf
-GPS_HARDWARE += gps.default
-GPS_HARDWARE += gps.mahimahi
-GPS_HARDWARE += libloc_adapter
-GPS_HARDWARE += libgps.utils
-GPS_HARDWARE += libloc_eng
-GPS_HARDWARE += libloc_api_v02
+# GPS_HARDWARE := gps.conf
+# GPS_HARDWARE += gps.default
+# GPS_HARDWARE += gps.mahimahi
+# GPS_HARDWARE += libloc_adapter
+# GPS_HARDWARE += libgps.utils
+# GPS_HARDWARE += libloc_eng
+# GPS_HARDWARE += libloc_api_v02
#HOSTAPD
HOSTAPD := hostapd
@@ -515,7 +515,7 @@ PRODUCT_PACKAGES += $(E2FSPROGS)
PRODUCT_PACKAGES += $(EBTABLES)
PRODUCT_PACKAGES += $(EXTENDEDMEDIA_EXT)
PRODUCT_PACKAGES += $(FASTPOWERON)
-PRODUCT_PACKAGES += $(GPS_HARDWARE)
+# PRODUCT_PACKAGES += $(GPS_HARDWARE)
PRODUCT_PACKAGES += $(HOSTAPD)
PRODUCT_PACKAGES += $(I420CC)
PRODUCT_PACKAGES += $(INIT)
@@ -615,7 +615,6 @@ PRODUCT_PACKAGES += pixart_pat9125.idc
PRODUCT_COPY_FILES := \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
- frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
@@ -649,8 +648,8 @@ endif
#endif # BOARD_HAVE_BLUETOOTH_BLUEZ
# gps/location secuity configuration file
-PRODUCT_COPY_FILES += \
- $(BOARD_COMMON_DIR)/sec_config:system/etc/sec_config
+# PRODUCT_COPY_FILES += \
+ # $(BOARD_COMMON_DIR)/sec_config:system/etc/sec_config
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
diff --git a/device/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/device/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
index 5f88fd1..7dc6be2 100644
--- a/device/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/device/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -33,7 +33,7 @@
<resources>
<!-- The default tiles to display in QuickSettings -->
<string name="quick_settings_tiles_default" translatable="false">
- wifi,bt,inversion,dnd,cell,airplane,rotation,flashlight,location,cast,hotspot,intent(org.codeaurora.qs.tiles.wificallingtile)
+ wifi,bt,inversion,dnd,cell,airplane,rotation,flashlight,cast,hotspot,intent(org.codeaurora.qs.tiles.wificallingtile)
</string>
<!-- The maximum number of items to be displayed in quick settings -->
<integer name="quick_settings_detail_max_item_count">12</integer>
diff --git a/rootdir/etc/init.qcom.factory.rc b/rootdir/etc/init.qcom.factory.rc
index f10e80e..921f01a 100755
--- a/rootdir/etc/init.qcom.factory.rc
+++ b/rootdir/etc/init.qcom.factory.rc
@@ -74,8 +74,8 @@ on mmi
chmod 2770 /dev/socket/qmux_audio
mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
chmod 2770 /dev/socket/qmux_bluetooth
- mkdir /dev/socket/qmux_gps 0770 gps gps
- chmod 2770 /dev/socket/qmux_gps
+# mkdir /dev/socket/qmux_gps 0770 gps gps
+# chmod 2770 /dev/socket/qmux_gps
setprop wifi.interface wlan0
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index a052cad..c25a2a8 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -99,8 +99,8 @@ on boot
chmod 2770 /dev/socket/qmux_audio
mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
chmod 2770 /dev/socket/qmux_bluetooth
- mkdir /dev/socket/qmux_gps 0770 gps gps
- chmod 2770 /dev/socket/qmux_gps
+# mkdir /dev/socket/qmux_gps 0770 gps gps
+# chmod 2770 /dev/socket/qmux_gps
mkdir /persist/drm 0770 system system
mkdir /persist/misc 0770 system system
@@ -243,12 +243,12 @@ on post-fs-data
#symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant
#Create directories for Location services
- mkdir /data/misc/location 0770 gps gps
- mkdir /data/misc/location/mq 0770 gps gps
- mkdir /data/misc/location/xtwifi 0770 gps gps
- mkdir /data/misc/location/gpsone_d 0770 system gps
- mkdir /data/misc/location/quipc 0770 gps system
- mkdir /data/misc/location/gsiff 0770 gps gps
+# mkdir /data/misc/location 0770 gps gps
+# mkdir /data/misc/location/mq 0770 gps gps
+# mkdir /data/misc/location/xtwifi 0770 gps gps
+# mkdir /data/misc/location/gpsone_d 0770 system gps
+# mkdir /data/misc/location/quipc 0770 gps system
+# mkdir /data/misc/location/gsiff 0770 gps gps
#Create directory from IMS services
mkdir /data/shared 0755
@@ -556,7 +556,7 @@ service qmiproxy /system/bin/qmiproxy
service qmuxd /system/bin/qmuxd
class main
user root
- group radio audio bluetooth gps nfc qcom_diag
+ group radio audio bluetooth nfc qcom_diag
disabled
service netmgrd /system/bin/netmgrd
@@ -733,10 +733,10 @@ service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
disabled
oneshot
-service loc_launcher /system/bin/loc_launcher
+#service loc_launcher /system/bin/loc_launcher
#loc_launcher will start as root and set its uid to gps
- class late_start
- group gps inet net_raw qcom_diag net_admin wifi
+# class late_start
+# group gps inet net_raw qcom_diag net_admin wifi
service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
class late_start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment