You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, enabling ADB via /sbin/usb/compositions/902D n is volatile and
resets on reboot. Here's how to make it stick.
Prerequisites
Moxee K779HSDL with ADB currently enabled
Or: telnet shell via ./installer util orbic-shell --admin-password 'PASSWORD'
One-liner
adb shell "echo 9 > /usrdata/mode.cfg"
That's it. Reboot to verify: adb reboot, wait ~30 seconds, then adb devices.
What this does
The Moxee's boot USB composition script (/sbin/usb/compositions/PRJ_SLT779_9025)
reads /usrdata/mode.cfg to select the USB mode. The default value is 3
(RNDIS only, product ID 0xF626).
Setting it to 9 gives:
RNDIS (USB network)
DIAG (Qualcomm diagnostic interface)
Serial (AT commands)
ADB
Product ID changes from 0xF626 to 0xF622. ADB runs as root.
/usrdata is a persistent read-write partition, so this survives reboots.
To revert
adb shell "echo 3 > /usrdata/mode.cfg"
adb reboot
Notes
If the device boots from USB power only (poweronreason=USB), the boot
script disables USB entirely regardless of mode.cfg. This is normal --
just power cycle the device off USB.
There is also a /usrdata/mode_tmp.cfg that takes priority over mode.cfg
but is deleted after one boot. Useful for one-shot mode changes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Making ADB Persistent on Moxee K779HSDL
By default, enabling ADB via
/sbin/usb/compositions/902D nis volatile andresets on reboot. Here's how to make it stick.
Prerequisites
./installer util orbic-shell --admin-password 'PASSWORD'One-liner
adb shell "echo 9 > /usrdata/mode.cfg"That's it. Reboot to verify:
adb reboot, wait ~30 seconds, thenadb devices.What this does
The Moxee's boot USB composition script (
/sbin/usb/compositions/PRJ_SLT779_9025)reads
/usrdata/mode.cfgto select the USB mode. The default value is3(RNDIS only, product ID
0xF626).Setting it to
9gives:Product ID changes from
0xF626to0xF622. ADB runs as root./usrdatais a persistent read-write partition, so this survives reboots.To revert
adb shell "echo 3 > /usrdata/mode.cfg" adb rebootNotes
poweronreason=USB), the bootscript disables USB entirely regardless of mode.cfg. This is normal --
just power cycle the device off USB.
/usrdata/mode_tmp.cfgthat takes priority overmode.cfgbut is deleted after one boot. Useful for one-shot mode changes.
Beta Was this translation helpful? Give feedback.
All reactions