From bfa189b6e85da70c43d43cce146353a9cac2b594 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 18 Apr 2024 08:51:18 -0400 Subject: [PATCH] docs/android: Improve instructions for replacing driver "adb remount -R" doesn't actually remount partitions read/write, it just enables the overlayfs and it needs to be followed by "adb remount" after rebooting to actually remount. Also, patchelf seems to work for changing the soname and is probably better than hacking meson.build. Part-of: --- docs/android.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/android.rst b/docs/android.rst index 5f690994ad9f2..3ac75171e571d 100644 --- a/docs/android.rst +++ b/docs/android.rst @@ -66,6 +66,7 @@ driver development, we need to unlock the device and remount adb disable-verity adb reboot adb remount -R + adb remount Now you can replace drivers as in: @@ -74,8 +75,13 @@ Now you can replace drivers as in: adb push build-android-aarch64/src/freedreno/vulkan/libvulkan_freedreno.so /vendor/lib64/hw/vulkan.sdm710.so Note this command doesn't quite work because libvulkan wants the -SONAME to match. For now, in turnip we have been using a hack to the -meson.build to change the SONAME. +SONAME to match. You can use ``patchelf`` to fix this: + +.. code-block:: sh + + cp build-android-aarch64/src/freedreno/vulkan/libvulkan_freedreno.so /tmp/vulkan.sdm710.so + patchelf --set-soname vulkan.sdm710.so /tmp/vulkan.sdm710.so + adb push /tmp/vulkan.sdm710.so /vendor/lib64/hw/ Replacing Android drivers on Chrome OS --------------------------------------