Skip to content
Commit afda1a55 authored by chiachangwang's avatar chiachangwang
Browse files

Clear calling identity before accessing DeviceConfig

Creating an AutomaticOnOffKeepalive object is an internal design
in the AutomaticOnOffKeepaliveTracker which should not require
callers' permission. Reading DeviceConfig will check if the
calling uid and calling package name are the same. Clear calling
identity to align the calling uid and package.

All these accesses require performing this action so move it into
the Dependencies.

Bug: 279381469
Test: atest FrameworksNetTests CtsHostsideNetworkTests
Change-Id: Icb4721ce8ca9c8fc7e9118b4e46300147be4e08e
parent 18cdec34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment