OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6080bf
)
Otapreopt: Fix patchoat delta parameter
author
Andreas Gampe
<agampe@google.com>
Tue, 1 Mar 2016 02:04:17 +0000
(18:04 -0800)
committer
Andreas Gampe
<agampe@google.com>
Tue, 1 Mar 2016 02:04:17 +0000
(18:04 -0800)
Only give the delta, not the new base address.
Bug:
25612095
Change-Id: Ieeed5000da5e72477764fc92fe8fa016287d4cd8
cmds/installd/otapreopt.cpp
patch
|
blob
|
history
diff --git
a/cmds/installd/otapreopt.cpp
b/cmds/installd/otapreopt.cpp
index
dd1d9af
..
3aac48b
100644
(file)
--- a/
cmds/installd/otapreopt.cpp
+++ b/
cmds/installd/otapreopt.cpp
@@
-263,7
+263,7
@@
private:
int32_t base_offset = ChooseRelocationOffsetDelta(ART_BASE_ADDRESS_MIN_DELTA,
ART_BASE_ADDRESS_MAX_DELTA);
- cmd.push_back(StringPrintf("--base-offset-delta=
0x%x", ART_BASE_ADDRESS +
base_offset));
+ cmd.push_back(StringPrintf("--base-offset-delta=
%d",
base_offset));
std::string error_msg;
bool result = Exec(cmd, &error_msg);