Since Android 10 (API Level 29) Google added restrictions to non-resettable hardware id's, which include both IMEI and serial number (https://developer.android.com/training/articles/user-data-ids). This means the function device.serial from the OutSystems JavaScript API Device is not working anymore without explicitly settings the permission "READ_PRIVILEGED_PHONE_STATE".