Stop sharing system uid with cuttlefish service
- Remove shared uid from the manifest.
- Remove the permissions that cannot be granted to vendor apks.
- Remove PackageVerifierManager that requires WRITE_SECURE_SETTINGS.
- Convert cuttlefish service to a foreground service as vendor apks must
not start in background.
- Convert cuttlefish service to a privileged app so that selinux allows
it to write to /dev/kmsg.
Bug: 153706617
Test: fetch_cvd -default_build cf_dist:cf_x86_phone \
-system_build gsi_dist:aosp_x86 ; \
bin/launch_cvd
Change-Id: I5ceaf021edd6944fd4612d27526950591cd83a32
Merged-In: I5ceaf021edd6944fd4612d27526950591cd83a32
(cherry picked from commit 2688132d11e9c89299acb57bcce61b143fc506a9)
git clone https://github.com/google/android-cuttlefish cd android-cuttlefish debuild -i -us -uc -b sudo dpkg -i ../cuttlefish-common_*_amd64.deb sudo apt-get install -f
aosp-master if you don‘t know what you’re looking foraosp_cf_x86_phone and click on userdebug for the latest buildArtifactsaosp_cf_x86_phone-img-xxxxxx.zip -- it will always have img in the name. Download this filecvd-host_package.tar.gz. You should always download a host package from the same build as your images.mkdir cf cd cf tar xvf /path/to/cvd-host_package.tar.gz unzip /path/to/aosp_cf_x86_phone-img-xxxxxx.zip
Launch cuttlefish with:
$ HOME=$PWD ./bin/launch_cvd
Stop cuttlefish with:
$ HOME=$PWD ./bin/stop_cvd
You can use adb to debug it, just like a physical device:
$ ./bin/adb -e shell
You can use the TightVNC JViewer. Once you have downloaded the TightVNC Java Viewer JAR in a ZIP archive, run it with
$ java -jar tightvnc-jviewer.jar -ScalingFactor=50 -Tunneling=no -host=localhost -port=6444
Click “Connect” and you should see a lock screen!