How to use Visual Studio Code to edit files in SP7350 root file-system using ADB

How to use Visual Studio Code to edit files in SP7350 root file-system using ADB

  • Compile adbd into rootfs

  1. After make config

  2. If you use Busybox as rootfs :

    1. tar -jxvf linux/application/module_test/usb/udc/adb/adbd.tar.bz2 -C linux/rootfs/initramfs/disk/root

  3. If you use buildroot as rootfs :

    1. make bconfig

    2. select Target packsges -> System tools -> android-tools -> adbd

image-20250331-080300.png
  1. make

  2. Please refer to How to create an USB 2.0 / USB 3.0 ADB Gadget

  3. Confirm that adb devices is connected

image-20250331-080152.png
  • Install Extension “ADB File System” in VS code

  1. Search “ADB File System” in VS Code

image-20250331-073245.png
  1. Install and press F1

image-20250331-073420.png
  1. Select “Setup Android Device Files Workspace”

    image-20250331-073917.png

     

  2. Selecting "Android Device Files" will display the folders/files in rootfs and you can easy to edit files

image-20250331-074414.png