• Home
Name
Date
Size
#Lines
LOC

..--

README.mdD06-Sep-20241.4 KiB4031

batch_check_permission.shD06-Sep-20243.1 KiB11881

batch_install_app.shD06-Sep-20243 KiB11171

get_file_dir.shD06-Sep-2024979 3312

install_apk.shD06-Sep-2024839 299

test.shD06-Sep-2024840 299

README.md

1 # Validation Tools
2 This is a collection of validation tools for better development & integration
3 productivity for AAOS devices.
4 
5 ## Validating new app releases
6 Incoming quality control is an important practice to prevent new technical debts
7 added to risk the device development. These scripts illustrate a basic check for
8 a new app bundle release against a known good virtual or physical device build.
9 So that, you know what changed better & if they break any basic use cases.
10 
11 1. Prepare a new app release in a directory, a device under test reachable
12 via adb & aapt is available in the shell environment.
13 ```
14 appDir="/path/to/appDir"
15 renameCsv="/path/to/renameCsvFile"
16 ```
17 
18 - As sometime mk file change the file name when copying XML files to the device at the build time, you can supply a CSV file to guide the script. The format is as:
19 ```
20 name,newName
21 privapp-permissions-in-app-release.xml,privapp-permissions-on-device.xml
22 ```
23 
24 2. batch_install_app.sh: find & install all APKs in a given directory to
25 a device via adb. Launch their launchable activities if any & capture
26 screenshots. To use:
27 
28 ```
29 ./batch_install_app.sh ${appDir}
30 ```
31 
32 3. batch_check_permission.sh: find & diff permissions XML files in a given
33 directory against those on a device via adb. To use:
34 
35 ```
36 ./batch_check_permission.sh ${appDir} ${renameCsv}
37 ```
38 
39 4. test.sh has all the commands above to make is easier to use.
40