You never show your deviceID procedure in the screenshot, but your problem is explained on @Taifun his website. It is always good to read all the text on the webpage of an extension.
API29 update: DeviceID and SimSeriaNumber do not return values anymore starting from Android 10 (API Level 29)