Please provide the following:
- SDK Version: 46.0.16
- Platforms(Android/iOS/web/all): android
- Add the appropriate “Tag” based on what Expo library you have a question on.
This is the call stack of the function, I don’t actively use the android id myself, but this seems to be the behavior that happens inside the expo, I would like to know how to prevent it from reading by default?
I seem to find the source of the read behavior, but it’s in node_module and I can’t actively modify it (I tried commenting it out, but it doesn’t seem to work)
How are you building the app? With
npx expo build:android or
eas build -p android?
If you were doing it with
npx expo build:android, try switching to EAS Build.
I’m not 100% sure what you’re referring to, but EAS Build will only include the dependencies you actually have listed in your
expo build will include all native code needed by the Expo SDK, which could include code for reading IDs that you do not actually want/need.
thanks for reply. i`m using ‘eas build’, i think the behavior of reading ‘androidId’ comes from one of ‘expo-…’ libraries. anyway, i can`t prevent it and finally i add a screen using java before all the react-native project start loading. it works well (at least i think )