FerrochromeApp: Use downloader if ferrochrome image is missing
Brief flow with downloader
- Step 1: If FerrochromeApp has assets, then use it as of now.
- Step 2: Otherwise, try launch ferrochrome downloader via predefined
action.
- Step 3: Ferrochrome downloader returns the downloaded archive
location. This enables downloader to use any locations
and allows to keep CrOS in more secure place.
- Step 4: FerrochromeApp pass the returned downloaded path to
custom_vm_setup.
- Step 5: custom_vm_setup extract files to the predefined paths
- Step 6: FerrochromeApp launches VmLauncherApp.
Bug: 350876313
Test: Locally with downloader
Change-Id: Ieb47e960575226c3eca6b3bacfb4bdb6c82420a9
diff --git a/android/FerrochromeApp/AndroidManifest.xml b/android/FerrochromeApp/AndroidManifest.xml
index d640c4a..f6d3f6a 100644
--- a/android/FerrochromeApp/AndroidManifest.xml
+++ b/android/FerrochromeApp/AndroidManifest.xml
@@ -12,6 +12,9 @@
<intent>
<action android:name="android.virtualization.VM_LAUNCHER" />
</intent>
+ <intent>
+ <action android:name="android.virtualization.FERROCHROME_DOWNLOADER" />
+ </intent>
</queries>
<application
android:label="Ferrochrome">