I know that starting with Android 11, access to this information has been banned, but you still need to get it.
told me that it is possible to do this with the help of ndk on c++, but I have already looked through the entire Internet and did not find anything meaningful. Ideally, you should get the processor ID or at least the serial number of the device