There is no documentation in the pthread headers or from Google about what is or isn't working, and whatever security policies there are only briefly mentioned in message threads from random Android devs.
So I if call the following on a minSDK 26 device. This is what happens.
```
int priority = 2;
int policy = 0; // SCHED_OTHER? it's 1 on Apple, only 0 works on Android NDK pthread
struct sched_param priorityVal = { priority };
int rt = pthread_setschedparam( pthread_self(), policy, &priorityVal );
assert( rt == 0 ); <- success, didn't change policy due to security, but I should be able to lower priority
priorityVal.sched_priority = -1;
rt = pthead_getschedparam( pthread_self(), &policy, &priorityVal );
assert( rt == 0 ); <- success, I got the policy/priority back
assert( policy == 0 ); <- okay, didn't change policy since I can't
assert( priorityVal.sched_priority == 2 ); <- fails, returns 0
```