Commit caccfdc0 authored by phdeswer's avatar phdeswer Committed by spiiroin

adb: Add missing scripts and service for adb mode

To get a working adb mode, we need to add the functionfs mounting,
as just starting adbd is not enough anymore.
Signed-off-by: phdeswer's avatarPhilippe De Swert <>
parent efe0512e
set -e
mkdir -p /dev/usb-ffs
chmod 0770 /dev/usb-ffs
chown shell:shell /dev/usb-ffs
mkdir -p /dev/usb-ffs/adb
chmod 0770 /dev/usb-ffs/adb
chown shell:shell /dev/usb-ffs/adb
/bin/mount -t functionfs adb /dev/usb-ffs/adb -o uid=shell,gid=shell
exit 0
# Copyright (C) 2013 Jolla Oy
# Prepare functionfs for adbd
Description=functionfs setup for adbd
ExecStop=/bin/umount adb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment