Since Android 8, android_id is "unique to each combination of app-signing key, user, and device" so as to deny "developers the ability to track users across multiple applications". These unique IDs are stored in
/data/system/users//settings_ssaid.xml.
When android_id value init, the first time set the value?
Which case does the android_id value change?
As evident, android_id "is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device" unless a factory reset is performed which clears all settings.
On Android 8+ the app specific android_id "value may change if a factory reset is performed on the device or if an APK signing key changes".
Keeping all in view it doesn't seem a good idea to build a device_id with android_id.