I think there’s some confusion around IDs because there are so many of them…
The restrictions on non-resettable IDs are the device IDs, like IMEI. The NetworkStatsManager() call takes a UID, which I’m still able to get on Q using PackageManager.getPackageUid(); does that not work for you?