Fix flaky test BinderTest#NetworkSetProtectAllowDeny
It is caused by conflicted uid which has already been used by system. Use maximum reserved appId for applications to avoid conflict with existing. Also clear uid permission before querying. error log: 05-24 22:19:37.561 1287 1577 I WifiService: startScan uid=10114 05-24 22:19:41.632 755 4865 I netd : networkSetProtectAllow(10114) <0.09ms> 05-24 22:19:41.632 755 4865 I netd : networkCanProtect(10114) -> {"true"} <0.12ms> 05-24 22:19:41.633 755 4865 I netd : networkSetProtectDeny(10114) <0.09ms> 05-24 22:19:41.633 1728 1728 I Finsky : [2] pke.a(46): Running job: 1-1337 05-24 22:19:41.633 755 4865 I netd : networkCanProtect(10114) -> {"true"} <0.13ms> Bug: 133818065 Test: cd system/netd && atest Change-Id: I557a7d75c519209a3bb020514f596fe5df84490f
Loading
Please register or sign in to comment