Implement more features to vendor snapshot script

1. It unzips artifacts and installs Android.bp at once.

No need to manually unzip artifacts and then run the script. Users can
just give dist directory to automatically unzip and install Android.bp.

$ python3 update.py --local /some/android/tree/out/dist --install-dir \
>   vendor/<vendor_name>/vendor_snapshot/v30 -vvv 30

2. The vendor snapshot can be fetched from the build server.

Just like VNDK snapshot.

$ python3 update.py --branch {some_branch} --build {some_build_id} \
>   --target {target_which_produces_vendor_snapshot} --install-dir \
>   vendor/<vendor_name>/vendor_snapshot/v30 -vvv 30

3. The install directory can be specified manually, replacing fixed
directory "prebuilts/vendor/v<VERSION>".

prebuilts/vendor/v<VERSION> was randomly picked when implementing the
draft version of this script. Now it can be installed anywhere.

Bug: 154777533
Test: manual test
Change-Id: I3870a85864a9a775b1091419b28ed0e2ab781609
(cherry picked from commit ad01dffacb6d09d6afeea0e7a10275df127ffc29)
1 file changed