I have a VPN service that uses the [getConnectionOwnerUid()]
1 function to get the user ID
(UID
) of the owner of a network connection. On Android, this function works well for all apps. However, when I try to use it on a Chromebook with the Chrome app, it returns -1
(Process.INVALID_UID
).
Why is this happening and how can I fix it? Is there a different way to get the UID of the owner of a network connection on a Chromebook?
My Chromebook’s details are:
ACER CB314
Model N19Q2
ARC: 9375475