commit | 5729afcb0c1961a477a22cb5d34900d761bd0af1 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Jul 30 23:12:17 2020 +0800 |
committer | Luke Huang <huangluke@google.com> | Tue Aug 04 11:55:55 2020 +0800 |
tree | c508e48f76ceebf84c67cac1d9bea54744e24e40 | |
parent | 6024824b2acc067cf42ea48e4b257da84614dc96 [diff] |
Make uid related tests compatible with Android Q To be compatible with VPN isolation feature, DnsResolver has different behavior fchown'ing when query socket. sdk version >= (R+), fchown to apps' uid, otherwise fchown to AID_DNS Make relevant tests compatible with it. Test: atest Bug: 161509097 Change-Id: I1c0bb4b9f35eaae32977a51c2d0a968092095cd0
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.