The addr_type is determined by peer side. If you case, the android device's addr_type is random, so you get the addr_type = RANDOM. If you want the public addr type, we need connect to a device which use the public address.
Thank you Jenson.
As I understand, we can't get PUBLICK BT ADDRESS in case of Android device connected my device. Right ?
Generally, most Android use the random address. I am not sure whether it determined by Android version or device vendor.
But you can use the BLE kit or dongle to act as central which should support public address.