Android device ID while unrooting phone If I perform below steps,


I root Android phone,
From third party apps available on Play Store, I change 16 digit Android device id(Let say from aaaaaaaaaaaaaaaaa to bbbbbbbbbbbbbbbb)
And then again unroot the phonne.


Will unrooting the phone also change Android device id again or it will remain bbbbbbbbbbbbbbbb only?

Thanks in advance.
First of all, tweaking that 16 digit Android ID doesn't require root access. You can change that ID using ADB alone. Since Android 5.0, this should work just fine.


adb shell settings get secure android_id                   # returns the current Android ID
adb shell settings put secure android_id YOUR-16-DIGIT-ID  # to change the ID with your new 16 digit ID


The Android ID is stored inside data partition. It is set on first boot after factory reset and remains until you factory reset again. It has got nothing to do with rooting and unrooting your device. So, if you changed that ID using some app and unrooted your phone later, that ID would persist until factory reset.