diff options
| author | 2023-05-30 06:49:39 +0000 | |
|---|---|---|
| committer | 2023-05-30 06:49:39 +0000 | |
| commit | 4030b6172dfe88473709ca479c4ddf91bd579764 (patch) | |
| tree | 46084f782cbe9050d0c2da08ae11ecebaf266d36 /libs/androidfw/FileStream.cpp | |
| parent | 878b61b06329ecfa4a0f1367dbbe9c968b1c3930 (diff) | |
Use PersistableBundle.getInt(String, int) with default value parameter
The default value for PersistableBundle.getInt(String) is 0. This
value is a valid value for the KEY_PREFERRED_IKE_PROTOCOL_INT
setting which is PREFERRED_IKE_PROTOCOL_AUTO. But the preferred
design now is to use IPv4 instead of AUTO. The default value for
getting KEY_PREFERRED_IKE_PROTOCOL_INT should be explicitly set
to an invalid value so that the flow will go into the default
case as expectation.
Bug: 269714970
Bug: 284246686
Test: m ; flash and check the value
(cherry picked from https://android-review.googlesource.com/q/commit:49f9216a1255b1891e20f85036d913270b4e01ce)
Merged-In: Icf83ec1a50972b2d9ce7d168dad75dd9aa3cf1bb
Change-Id: Icf83ec1a50972b2d9ce7d168dad75dd9aa3cf1bb
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions