Is it possible to obtain adb shell in recovery for DHD ?
I am trying to chmod /data/data/ to fix an error I made.
How can I call adb command as a single line from cmd.exe?
Here is what I am executing when I run it regularly.
Code:
adb shell
ubuntu_chroot shell
cd /home/phablet/test
nohup ./test2.sh
I am able to run this:
Code:
adb shell "ubuntu_chroot shell"
Can I make all that I am trying to do (start execution of test2.sh script from ubuntu_chroot shell) with one single command?
kdar1987 said:
How can I call adb command as a single line from cmd.exe?
Here is what I am executing when I run it regularly.
Code:
adb shell
ubuntu_chroot shell
cd /home/phablet/test
nohup ./test2.sh
I am able to run this:
Code:
adb shell "ubuntu_chroot shell"
Can I make all that I am trying to do (start execution of test2.sh script from ubuntu_chroot shell) with one single command?
Click to expand...
Click to collapse
Solved. I called adb shell < scriptfile.txt, whith scriptfile.txt having
Code:
ubuntu_chroot shell
cd /home/phablet/test
nohup ./test2.sh
Hi, I need to downgrade to 4.2.2 but I can not acces download mode. It just says "download mode" and nothing else happens so I cant flash the .kdz file. I can boot recovery (TWRP). I cant find a working solution anywhere.
Thanks
Turn off the device, press volume up, plug in the cable at the same time, it will enter download mode.
I tried it many times. It wont. As I said, it just says "download mode" but it wont continue to the "firmware update" part..
What is your current firmware version?4.4.2 ?
Same thing here buddy
Yes. I had 4.2.2 but I tried ported kitkat. Then I flashed the old recovery, tried to restore the backup and nothing is working. So I need to unroot it but I cannot
get to that mode. What a mystery.
Here you need to do is write in detail. I've solved this issue by examining. Your solution is here.LG has closed since way back.
http://forum.xda-developers.com/showthread.php?t=2432476
---------- Post added at 01:00 AM ---------- Previous post was at 12:56 AM ----------
I've given subject solves your problem.
Im not sure if I understand. I was already aware of that guide. Thats why I need to boot "download mode" which I cant. I cant find there the solution. I also cant boot the system.
I just tried to connect flash disk via OTG and the phone does not see it in recovery. In other phone it works. So another way is out. I either need to get the download mode working or push .zip into the phone but I have no idea how since the OTG is not working.
adb push g2_security /sdcard/
adb root
adb push loki_patch /data/local/tmp
adb push loki_flash /data/local/tmp
adb push recovery.img /data/local/tmp
adb shell "dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/data/local/tmp/aboot.img"
adb shell "chmod 644 /data/local/tmp/aboot.img"
adb shell "chmod 755 /data/local/tmp/loki_patch"
adb shell "chmod 755 /data/local/tmp/loki_flash"
adb shell "/data/local/tmp/loki_patch recovery /data/local/tmp/aboot.img /data/local/tmp/recovery.img /data/local/tmp/recovery.lok"
adb shell "/data/local/tmp/loki_flash recovery /data/local/tmp/recovery.lok"
adb shell "rm /sdcard/g2_security"
adb shell "dd if=/dev/block/platform/msm_sdcc.1/by-name/fota of=/sdcard/fota-backup.img"
adb shell "dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota"
adb shell sync
adb reboot recovery
i will post the file soon
---------- Post added at 05:27 PM ---------- Previous post was at 05:22 PM ----------
mastercut said:
adb push g2_security /sdcard/
adb root
adb push loki_patch /data/local/tmp
adb push loki_flash /data/local/tmp
adb push recovery.img /data/local/tmp
adb shell "dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/data/local/tmp/aboot.img"
adb shell "chmod 644 /data/local/tmp/aboot.img"
adb shell "chmod 755 /data/local/tmp/loki_patch"
adb shell "chmod 755 /data/local/tmp/loki_flash"
adb shell "/data/local/tmp/loki_patch recovery /data/local/tmp/aboot.img /data/local/tmp/recovery.img /data/local/tmp/recovery.lok"
adb shell "/data/local/tmp/loki_flash recovery /data/local/tmp/recovery.lok"
adb shell "rm /sdcard/g2_security"
adb shell "dd if=/dev/block/platform/msm_sdcc.1/by-name/fota of=/sdcard/fota-backup.img"
adb shell "dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota"
adb shell sync
adb reboot recovery
i will post the file soon
Click to expand...
Click to collapse
here: http://rg.to/file/1d38237a286593c5385f2a2108c021c8/fixg2.7z.html
Thank you so much. A will try it immediately.
SOLVED!!! Thanks very much..
I used to be able to run adb shell from terminal emulators on my devices
I can use adb shell on my Galaxy Tab S2 LP
But I can not run adb shell on my rooted Moto X MM
Code:
~$ su
[email protected]:/storage/emulated/0 # adb version
tmp-mksh: adb: not found
any one know how to resolve this issue ?
All su commands aren't doing anything for me since marshmallow
Run adb shell then adb version
Sent from my XT1575 using Tapatalk
folks can someone with a new shield clarify if adb shell works on 2017 version
i can adb commands such as reboot/push/pull but when open shell and try to send specific shell commands such as hide leanback launcher i get errors such as below
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell pm hide com.google.android.leanbacklauncher
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.
Im wrecking my head if its an issue with me or a general issue, so can someone please check
thanks