Update .oat version after disabling partial LSE.
This will ensure we don't take any .oat file that has the bogus
generated code.
(cherry picked from commit 776a1c1447be1e504c2013c5d170d08ef4907d7f)
(cherry picked from commit 8246b0cbfd4c5e19596e2dac0c1377c56f444d5f)
Test: test.py
Bug: 222683917
Bug: 197981962
Merged-In: Ic14d18d310bdcd408c1f6e2777ef53a041fb2f12
Merged-In: Ic66ee1998f490c15b95279f3b4881f9581772190
Change-Id: Ic66ee1998f490c15b95279f3b4881f9581772190
diff --git a/runtime/oat.h b/runtime/oat.h
index ab45b84..31a328d 100644
--- a/runtime/oat.h
+++ b/runtime/oat.h
@@ -32,8 +32,8 @@
class PACKED(4) OatHeader {
public:
static constexpr std::array<uint8_t, 4> kOatMagic { { 'o', 'a', 't', '\n' } };
- // Last oat version changed reason: Apex versions in key/value store.
- static constexpr std::array<uint8_t, 4> kOatVersion { { '1', '9', '5', '\0' } };
+ // Last oat version changed reason: Disable partial LSE b/197818595.
+ static constexpr std::array<uint8_t, 4> kOatVersion { { '1', '9', '9', '\0' } };
static constexpr const char* kDex2OatCmdLineKey = "dex2oat-cmdline";
static constexpr const char* kDebuggableKey = "debuggable";