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

Issue 12094041: Force root mode when clearing application data. (Closed)

Created:
7 years, 10 months ago by aberent
Modified:
7 years, 10 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Force root mode when clearing application data. The old code was assuming that adb was already running in root, so could delete application files without asking for extra privilages. This isn't true on production builds. Fix by explicitly running each command as root (using su). BUG=169011 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179915

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M build/android/pylib/android_commands.py View 1 chunk +4 lines, -4 lines 1 comment Download

Messages

Total messages: 20 (0 generated)
aberent
7 years, 10 months ago (2013-01-29 20:27:46 UTC) #1
Isaac (away)
Hold up here! What is the context of this change? We're trying to avoid introducing ...
7 years, 10 months ago (2013-01-29 21:06:33 UTC) #2
Isaac (away)
Alright, I read bug... Any way to avoid this?
7 years, 10 months ago (2013-01-29 21:07:56 UTC) #3
aberent
On 2013/01/29 21:07:56, Isaac wrote: > Alright, I read bug... Any way to avoid this? ...
7 years, 10 months ago (2013-01-30 10:33:31 UTC) #4
John Knottenbelt
lgtm
7 years, 10 months ago (2013-01-30 18:11:11 UTC) #5
frankf
https://codereview.chromium.org/12094041/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/12094041/diff/1/build/android/pylib/android_commands.py#newcode601 build/android/pylib/android_commands.py:601: self.RunShellCommand('su -c rm -r /data/data/%s/shared_prefs/*' % package) can you ...
7 years, 10 months ago (2013-01-30 18:15:20 UTC) #6
Sami
lgtm #2, sorry for letting this sit for a while.
7 years, 10 months ago (2013-01-30 18:15:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/12094041/1
7 years, 10 months ago (2013-01-30 19:36:01 UTC) #8
Isaac (away)
(unchecked CQ box). Can we use adb shell pm clear <package> instead?
7 years, 10 months ago (2013-01-30 21:43:20 UTC) #9
aberent
On 2013/01/30 21:43:20, Isaac wrote: > (unchecked CQ box). > > Can we use adb ...
7 years, 10 months ago (2013-01-31 10:00:44 UTC) #10
aberent
On further investigation, no. It seems to work ok on Galaxy S3, but on Galaxy ...
7 years, 10 months ago (2013-01-31 16:00:44 UTC) #11
Isaac (away)
lgtm
7 years, 10 months ago (2013-01-31 18:54:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/12094041/1
7 years, 10 months ago (2013-01-31 18:57:09 UTC) #13
commit-bot: I haz the power
Change committed as 179915
7 years, 10 months ago (2013-01-31 19:00:40 UTC) #14
Isaac (away)
Is this function specific to perf bots? This is fine as a quick fix but ...
7 years, 10 months ago (2013-01-31 19:31:03 UTC) #15
Isaac (away)
Is this function specific to perf bots? This is fine as a quick fix but ...
7 years, 10 months ago (2013-01-31 19:31:03 UTC) #16
Anthony Berent
No, the function is also used in a couple of other places (run_html5.py and CrashReportTest.py), ...
7 years, 10 months ago (2013-01-31 20:22:28 UTC) #17
aberent
The problems with 'pm clear' turn out to be specific to particular slightly old builds ...
7 years, 10 months ago (2013-02-01 12:13:54 UTC) #18
Isaac (away)
Sounds like the issue only occurs on your local test phone, not the bots. Are ...
7 years, 10 months ago (2013-02-02 05:32:34 UTC) #19
aberent
7 years, 10 months ago (2013-02-06 16:02:17 UTC) #20
Message was sent while issue was closed.
See https://codereview.chromium.org/12210036/ for the change to using "pm clear"

Powered by Google App Engine
This is Rietveld 408576698