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

Issue 11672004: [Android] Add a tool for application update verification. (Closed)

Created:
7 years, 12 months ago by frankf
Modified:
7 years, 11 months ago
CC:
chromium-reviews, ilevy+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org, candrada1
Visibility:
Public.

Description

[Android] Add a tool for application update verification. Usage: run_update_verification.py [options] Performs semi-automated application update verification testing. When given --save, it takes a snapshot of the application data on the device. (A dialog on the device will prompt the user to grant permission to backup the data.) Otherwise, it performs the update testing as follows: 1. Installs the |from- apk|. 2. Restores the previously stored snapshot of application data given by |app-data|. (A dialog on the device will prompt the user to grant permission to restore the data.) 3. Verifies that |to-apk| cannot be installed side-by- side. 4. Verifying that |to-apk| can replace |from-apk|. Options: -h, --help show this help message and exit --package-name=PACKAGE_NAME Package name for the application. --save Save a snapshot of application data. This will be saved as backup.db in the current directory. --from-apk=FROM_APK APK to update from. --to-apk=TO_APK APK to update to. --app-data=APP_DATA Path to the previously stored application data BUG=167778 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176218

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : Addressed all comments #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -0 lines) Patch
A build/android/run_update_verification.py View 1 2 1 chunk +135 lines, -0 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
frankf
@christine: Feel free to play with this before it lands and provide feedback on functionality ...
7 years, 12 months ago (2012-12-28 00:45:35 UTC) #1
Isaac (away)
Could we move this to test/android instead of build/android? Are you intending to add this ...
7 years, 12 months ago (2012-12-28 02:05:13 UTC) #2
frankf
Create a bug. I also created crbug.com/167779 to figure out where to put the test ...
7 years, 12 months ago (2012-12-28 18:38:09 UTC) #3
frankf
+craigdh
7 years, 12 months ago (2012-12-28 18:38:55 UTC) #4
klundberg
I agree with Isaac that this shouldn't be in build/android. And I think it would ...
7 years, 11 months ago (2013-01-02 17:23:40 UTC) #5
craigdh
https://codereview.chromium.org/11672004/diff/2001/build/android/run_update_verification.py File build/android/run_update_verification.py (right): https://codereview.chromium.org/11672004/diff/2001/build/android/run_update_verification.py#newcode118 build/android/run_update_verification.py:118: assert os.path.exists(options.from_apk) os.path.isfile instead?
7 years, 11 months ago (2013-01-02 18:26:20 UTC) #6
klundberg
I downloaded the patch and tried running the tool. I discussed some of these comment ...
7 years, 11 months ago (2013-01-08 20:45:13 UTC) #7
frankf
Talked to Karin offline, testing/android is not suitable for such script right. So, let's put ...
7 years, 11 months ago (2013-01-10 23:15:05 UTC) #8
frankf
PTAL
7 years, 11 months ago (2013-01-10 23:34:34 UTC) #9
craigdh
lgtm with question/nit. https://codereview.chromium.org/11672004/diff/12001/build/android/run_update_verification.py File build/android/run_update_verification.py (right): https://codereview.chromium.org/11672004/diff/12001/build/android/run_update_verification.py#newcode108 build/android/run_update_verification.py:108: parser.print_help(sys.stderr) doesn't parser.error() already print the ...
7 years, 11 months ago (2013-01-10 23:49:21 UTC) #10
klundberg
7 years, 11 months ago (2013-01-11 00:02:40 UTC) #11
LGTM

Thanks, Frank!

Powered by Google App Engine
This is Rietveld 408576698