1

so far I have put my android device in ftm mode i have tried from adb sideload now i am trying with busybox ash

I'm able to run ls but anything else says permission denied or error:closed.

/ $ ls
acct
cache
charger
config
d
data
default.prop
dev
etc
file_contexts
firmware
fstab.qcom
icon_ftm.png
init
init.class_main.sh
init.environ.rc
init.ftm.rc
init.mdm.sh
init.offcharge.rc
init.qcom.bms.sh
init.qcom.class_core.sh
init.qcom.early_boot.sh
init.qcom.factory.rc
init.qcom.ftm.rc
init.qcom.rc
init.qcom.sh
init.qcom.syspart_fixup.sh
init.qcom.usb.rc
init.qcom.usb.sh
init.rc
init.target.ftm.rc
init.target.rc
init.trace.rc
init.usb.rc
init.vendor.rc
init.zygote32.rc
mnt
persist
proc
property_contexts
res
root
sbin
sdcard
seapp_contexts
selinux_version
sepolicy
service_contexts
storage
sys
system
tombstones
ueventd.qcom.rc
ueventd.rc
vendor
verity_key
  • I want to chmod on root folder – antoinepl514 Oct 13 at 19:44
  • and also unlock the bootloader and root the phone – antoinepl514 Oct 13 at 19:45
  • 1
    Insufficient information. Not clear what you are asking. By Debug Mode do you mean USB Debugging? What is anything else which gives permission denied? – Irfan Latif Oct 13 at 20:21
  • Further: of course you get a permission denied. Line 1 of your quote shows the reason. Hint: $ is not #. And indeed the question sounds like chicken-and-egg: "enable debugging from ADB" is like "switching on the lights of a burning lamp". So you need to be clearer on what you're asking. – Izzy Oct 13 at 22:17
  • @antoinepl514 never chmod or chown anything, android is not like linux it will crash if something unexpected. for unlocking/rooting you don't need adb or (root) shell running on device. for unlocking use fastboot (not adb). rooting usually can be done offline, patch your boot/recovery and flash it back – alecxs Oct 14 at 1:21
1

You can't make use of ADB without turning on the Debugging mode. There is one way to access partitions via ADB even if you don't have ADB turned on. If you want to run ls on restricted partitions, like cd data, you need to boot (not flash) into a custom recovery. Asssuming that you have an unlocked device, run fastboot boot <recovery.img>. Now that you have successfully booted into a custom recovery, mount relevant partitions and run adb commands.

  • OP says: “I want to chmod on root folder and also unlock the bootloader and root the phone”. – Irfan Latif Oct 14 at 11:00
  • We don't usually perform chmod on Android. As @alecxs has mentioned, chmod may have unexpected behaviour on an Android. Try running adb remount followed by adb root. – Danish Shakeel Oct 14 at 11:09
  • OP says: “I want to chmod on root folder and also unlock the bootloader and root the phone”. And you suggest: “Asssuming that you have an unlocked device...”. And I do chmod scores of times on my device in a day, the point is you should know what you are doing. – Irfan Latif Oct 14 at 11:22
  • Yes, because you can't perform these operations on a production build. You need to have root permissions for which you need to run adb root. And for that you need to have a custom recovery or root privileges, and for that you need an unlocked bootloader. – Danish Shakeel Oct 14 at 11:39
  • it seems that I cannot find the custom recovery or custom rom files nowhere for the ZTE Avid Plus Z828 – antoinepl514 Oct 15 at 4:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.