Adb Shell on shield 2017 - Shield Android TV Q&A, Help & Troubleshooting

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

Related

adb not working in Ubuntu

I downloaded the SDK and unpacked it in the default location it suggested and tried typing...
Code:
adb devices
and I get the following. What am I missing?
Code:
bash: adb: command not found
Like starting any linux application from within the local directory, you must add the dot-slash.
Code:
./adb
Now if someone could answer my question about using the SDK in Ubuntu...
I can use the SDK with Windows just fine and successfully rooted weeks ago. Now I'm attempting to access the phone with adb in Ubuntu and receive the following message:
Code:
./adb devices
List of devices attached
???????????? no permissions
Any ideas?
Have you tried starting the adb server as root? Try
Code:
./adb kill-server
sudo ./adb start-server
./adb devices
Thank you guys that worked.
buck2202 said:
Have you tried starting the adb server as root? Try
Code:
./adb kill-server
sudo ./adb start-server
./adb devices
Click to expand...
Click to collapse
Yeap, that got it, thanks.
I don't recall seeing anything however that says that the adb server must be run as root. Maybe I just missed it.

[Q] Htc desire HDHelp! Cmd failure when downgrading from 1.72 (Rooting)

Android SDK installed in programfiles
ADB in this folder : C:\Program Files\Android\android-sdk-windows\platform-tools
written in cmd, with USB debugging activated and charge only.
C:\Users\any\adb devices. my device shows!
Is this the right thing to insert to cmd or the one below
1. Answers!
adb push psneuter /data/local/tmp : A bunch adb commands shows
adb push misc_version /data/local/tmp : A bunch adb commands shows
adb shell chmod 777 /data/local/tmp/psneuter :unable to chmod, no such file
adb shell chmod 777 /data/local/tmp/misc_version :unable to chmod no such file
adb shell /data/local/tmp/psneuter : Not found
adb shell :$
or this
2.
adb push psneuter C:\Program Files\Android\android-sdk-windows\platform-tools
adb push misc_version C:\Program Files\Android\android-sdk-windows\platform-tools
adb shell chmod 777 C:\Program Files\Android\android-sdk-windows\platform-tools/psneuter
adb shell chmod 777 C:\Program Files\Android\android-sdk-windows\platform-toolsmisc_version
adb shell C:\Program Files\Android\android-sdk-windows\platform-toolspsneuter
adb shell
Have I installed the Android SDK in the wrong folder or what is thats going wrong?

Downgrade from 1.72 issues with cmd

Android SDK installed in programfiles
ADB in this folder : C:\Program Files\Android\android-sdk-windows\platform-tools
written in cmd, with USB debugging activated and charge only.
C:\Users\any\adb devices. my device shows!
Is this the right thing to insert to cmd or the one below
1. Answers!
adb push psneuter /data/local/tmp : A bunch adb commands shows
adb push misc_version /data/local/tmp : A bunch adb commands shows
adb shell chmod 777 /data/local/tmp/psneuter :unable to chmod, no such file
adb shell chmod 777 /data/local/tmp/misc_version :unable to chmod no such file
adb shell /data/local/tmp/psneuter : Not found
adb shell :$
or this
2.
adb push psneuter C:\Program Files\Android\android-sdk-windows\platform-tools
adb push misc_version C:\Program Files\Android\android-sdk-windows\platform-tools
adb shell chmod 777 C:\Program Files\Android\android-sdk-windows\platform-tools/psneuter
adb shell chmod 777 C:\Program Files\Android\android-sdk-windows\platform-toolsmisc_version
adb shell C:\Program Files\Android\android-sdk-windows\platform-toolspsneuter
adb shell :$
Have I installed the Android SDK in the wrong folder or what is thats going wrong?
First is correct, but you have to have psneuter & change_misc files in current directory so adb push could find them.
Whats the current directory?
Probably C:\Program Files\Android\android-sdk-windows\platform-tools.
You can also use it like this: adb push c:\some_directory\psneuter /data/local/tmp
Syntax is: adb push [what you want to push] [where you want it to go]
istopp said:
Whats the current directory?
Click to expand...
Click to collapse
Current directoty is the folder you are in.
Could you resolved the above problem?
because even i am not able to use adb shell chmod 777 command, its shows the same result.
Any help will be appreciated.
Thanks.
Thanks a lot, i just copied the content of the C:\Program Files\Android\android-sdk-windows\platform-tools directory to C:\Users\any\ and tried then, work perfect, finally got the # instead of $
What are the instructions im suppose to follow in the bootloader? fastboot,recovery,factory reset,simlock or image CRC?
istopp said:
Thanks a lot, i just copied the content of the C:\Program Files\Android\android-sdk-windows\platform-tools directory to C:\Users\any\ and tried then, work perfect, finally got the # instead of $
What are the instructions im suppose to follow in the bootloader? fastboot,recovery,factory reset,simlock or image CRC?
Click to expand...
Click to collapse
None of the above. If you've done it correctly, the phone should find PD98IMG.zip on its own. Is your device branded? If so, make sure you have correctly created your Goldcard.

adb shell from device terminal emulator

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

Adb Shell

can someone please help i cant get adb shell command to work, i can adb push/pull or reboot and all commands work fine but adb shell returns /system/bin/sh: adb: not found
please help i have shield 2017 and at a loss what to do

Resources