Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Issue 287513002: [Android] Build android tools as PIE and add a wrapper for ICS (Closed)

Created:
6 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
6 years ago
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, tonyg, rmcilroy, Philippe, jbudorick, eugenis
Visibility:
Public.

Description

[Android] Build android tools as PIE and add a wrapper for ICS - Make Android tools build as position independent executable by default, as it now required by Android. - Introduce a wrapper for running PIE on Android ICS (its linker doesn't support PIE). - Add the plumbing for running the PIE wrapper in the test/telemetry python scripts. BUG=373219 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270406

Patch Set 1 : WIP #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 11

Patch Set 4 : Nits + update binaries for telemetry #

Total comments: 2

Patch Set 5 : Nits #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -101 lines) Patch
M build/android/provision_devices.py View 1 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/pylib/android_commands.py View 1 2 3 4 5 5 chunks +42 lines, -6 lines 0 comments Download
M build/android/pylib/forwarder.py View 1 3 chunks +9 lines, -7 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M tools/android/android_tools.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/android/file_poller/file_poller.gyp View 1 chunk +0 lines, -13 lines 0 comments Download
M tools/android/forwarder2/forwarder.gyp View 1 chunk +0 lines, -13 lines 0 comments Download
M tools/android/memdump/memdump.gyp View 1 chunk +0 lines, -13 lines 0 comments Download
M tools/android/ps_ext/ps_ext.gyp View 1 chunk +0 lines, -13 lines 0 comments Download
M tools/android/purge_ashmem/purge_ashmem.gyp View 1 chunk +0 lines, -13 lines 0 comments Download
A tools/android/run_pie/run_pie.c View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A tools/android/run_pie/run_pie.gyp View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M tools/telemetry/bin/android/device_forwarder.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/bin/android/file_poller.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/bin/android/md5sum_bin.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/bin/android/purge_ashmem.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A tools/telemetry/bin/android/run_pie.sha1 View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/adb_commands.py View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Primiano Tucci (use gerrit)
6 years, 7 months ago (2014-05-14 12:00:11 UTC) #1
Primiano Tucci (use gerrit)
Torne: can you PTAL to the gyp changes and the run_pie.c ? Bulach: can you ...
6 years, 7 months ago (2014-05-14 12:02:16 UTC) #2
Torne
This is gross but probably the easiest way to work around this for now :/ ...
6 years, 7 months ago (2014-05-14 12:47:43 UTC) #3
bulach
lgtm, thanks! +jbudorick for build/android, dominikg for tools/telemetry just nits below: https://codereview.chromium.org/287513002/diff/120001/build/android/provision_devices.py File build/android/provision_devices.py (left): ...
6 years, 7 months ago (2014-05-14 12:57:04 UTC) #4
Primiano Tucci (use gerrit)
Thanks! I know the run_pie thing is not the cleanest thing I wrote, but at ...
6 years, 7 months ago (2014-05-14 13:21:22 UTC) #5
Dominik Grewe
tools/telemetry lgtm https://codereview.chromium.org/287513002/diff/160001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/287513002/diff/160001/build/android/pylib/android_commands.py#newcode660 build/android/pylib/android_commands.py:660: lib path (for component=shared_library), (2) using the ...
6 years, 7 months ago (2014-05-14 13:57:53 UTC) #6
jbudorick
build/android/ lgtm
6 years, 7 months ago (2014-05-14 14:10:04 UTC) #7
Primiano Tucci (use gerrit)
Thanks all for the review. Adding NOTRY since the trybots went already green (and there ...
6 years, 7 months ago (2014-05-14 14:23:39 UTC) #8
Primiano Tucci (use gerrit)
The CQ bit was checked by primiano@chromium.org
6 years, 7 months ago (2014-05-14 15:13:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/287513002/210001
6 years, 7 months ago (2014-05-14 15:13:56 UTC) #10
commit-bot: I haz the power
Change committed as 270406
6 years, 7 months ago (2014-05-14 15:15:21 UTC) #11
trongbangvp
On 2014/05/14 15:15:21, I haz the power (commit-bot) wrote: > Change committed as 270406 Hi ...
6 years ago (2014-11-28 02:50:00 UTC) #12
Primiano Tucci (use gerrit)
6 years ago (2014-11-28 09:04:00 UTC) #13
Message was sent while issue was closed.
On 2014/11/28 02:50:00, trongbangvp wrote:
> On 2014/05/14 15:15:21, I haz the power (commit-bot) wrote:
> > Change committed as 270406
> 
> Hi every one!
> I cannot use run-pie.c for my project that used a executable.
> I compile run-pie.c with android NDK for android-10 but it crash when i run on
> android 3.0.
> Could any one help ?

Not sure what is your problem here. Are you trying to compile run_pie.c
manually? That is tricky. You need to NOT compile it with neither -fPIE nor
-fpie and you have to take out also the stlport library.
Instead, the binaries that you plan to wrap (i.e. to pass as argument of
run_pie) MUST be compiled with -fPIE -fvisibility=default and linked with -pie
-rdynamic

Powered by Google App Engine
This is Rietveld 408576698