Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 854e2996 authored by Luke Huang's avatar Luke Huang
Browse files

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
parent 8ca0f1c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment