'Instabug: Disable user location tracking

My team uses the Instabug APK on Android (and iOS) and we'd like to disable user location tracking since we don't need it. I can't find anywhere how to do so.

How does Instabug even track the user's location to begin with? Our app doesn't have any location permissions.



Solution 1:[1]

Libraries add automatically the permissions they need. Final manifest file is a merge of your app's manifest file and all libraries'.

You can check the merged manifest by using Android Studio > AndroidManifest.xml > Merged Manifest tab

or

ANDROID_SDK_PATH/build-tools/28.0.3/aapt d permissions yourApp.apk

You can remove the location permission by adding tools:node="remove".

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" tools:node="remove" />

https://developer.android.com/studio/build/manage-manifests

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ocos