Check the device.mk file for your device. There is probably a line like the following:
PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ Remove this line to make sure that the GPS permission file is not copied into the filesystem. For an existing filesystem, delete this file from the /system/etc/permissions directory and reboot. Similar lines are to be removed to disable Bluetooth, Wi-Fi/Wi-Fi Direct etc. -Vishveshwar On Friday, October 11, 2013 7:51:29 PM UTC+5:30, Mauricio Cirelli wrote: > > Hi Shridutt, > > Is it possible to do that using overlays? > > > On Thursday, October 10, 2013 6:26:53 AM UTC-3, shridutt kothari wrote: >> >> Hi Android Newbie, >> >> To remove any hardware feature from Android you can remove that hardware >> related permission from the >> android.hardware.<http://androidxref.com/4.2.2_r1/xref/frameworks/native/data/etc/android.hardware.location.gps.xml> >> *.xml file in /frameworks/native/data/etc/ directory. >> >> So in your case you can remove GPS support with removing: <feature *name= >> *"android.hardware.location.gps" /> >> from file: /frameworks/native/data/etc/android.hardware.location.gps.xml >> >> Hope that helps! >> >> Thanks, >> Shridutt Kothari >> Impetus Infotech Limited >> shridut...@gmail.com >> >> -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.