please refer to Supporting Multiple Flavors.
If you already have one server, choose the Authorization Code mode.
Both modes require user authorization for the first sign-in.
When the authentication information expires, the ID Token mode requires user authentication for each sign-in, just like the first sign-in.
However, for the Authorization Code mode, when the authentication information expires, a new access token can be obtained from the server, which is faster, more reliable, and more convenient.
The HMS Base SDK requires the following permissions:
Network connection permission: android.permission.INTERNET (required for API call data recording and HMS Core APK upgrade guidance)
Permission of obtaining network status: android.permission.ACCESS_NETWORK_STATE
APK installation permission: android.permission.REQUEST_INSTALL_PACKAGES (required for HMS Core APK upgrade guidance)
Permission of writing data into the SD card: android.permission.WRITE_EXTERNAL_STORAGE (required for HMS Core APK upgrade guidance)
The HMS Base SDK collects the following data:
HMS SDK version, App package name, Called API, Call time, UUID, App ID, ROM version, Device model, App version.