summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author chiachangwang <chiachangwang@google.com> 2023-05-30 06:49:39 +0000
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-05-30 06:49:39 +0000
commit4030b6172dfe88473709ca479c4ddf91bd579764 (patch)
tree46084f782cbe9050d0c2da08ae11ecebaf266d36 /libs/androidfw/FileStream.cpp
parent878b61b06329ecfa4a0f1367dbbe9c968b1c3930 (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