wrong logic  messed up by trying to put clienthaslogcredentials last  or trying to do pre check of local copies of uid  here is accurate  but does not place clienthaslogcredentials last if header  id log id security cred  uid aid system cred  uid aid root clienthaslogcredentials cli android log security here is kiss accurate dropping pre check if header  id log id security android log security  clienthaslogcredentials cli 