Calling From Not Trusted UID
When I was running UIAutomator in Android Studio, a crash shows sometimes. W/ActivityManager: Crash of app com.example.testsample running instrumentation ComponentInfo{com.example
Solution 1:
private void throwIfCalledByNotTrustedUidLocked() {
final int callingUid = Binder.getCallingUid();
if (callingUid != mOwningUid && mOwningUid != Process.SYSTEM_UID
&& callingUid != 0 /*root*/) {
throw new SecurityException("Calling from not trusted UID!");
}
}
This is the method which throws your error. Perhaps the uid
is different than the process uid
or the uid
on that device is not root
. Maybe you can add some prints in your app to find out.
Post a Comment for "Calling From Not Trusted UID"