On Chromebook getConnectionOwnerUid() return -1 (Process.INVALID_UID) on chrome app

125 Views Asked by At

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
0

There are 0 best solutions below