cant adb - Shield Android TV Q&A, Help & Troubleshooting

Help folks have new shield 2017 and trying to adb to hide leanback launcher but cant get adb to work, i can get into all things on device with adb link like apk extracter, but shell wont wrk i get system/bin/sh: adb: not found
then i got this when tried to hide launcher
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS
can someone please help

Related

Uninstall Bluetooth.apk using adb...cant figure it out!!!

So I'm not new to rooting and flashing and all, but I just installed android sdk today basically only to uninstall the bluetooth apk on my sense roms to make the phone ring quicker. I've tried to follow every single guide I could find and the closest i got was following cyanogens barebones wiki, and it said "permission denied" when i put in the uninstall command
someone plz help me
Don't know what to say. Are you sure that your adb is correctly set up? That you installed the correct driver? Do you get a "#" sign after typing "adb shell" in command line/terminal on your computer?

trying to run root applications from adb shell commands

Hi All.
I have been searching the web for an answer but I cant find it.
I want to be able to execute root applications from adb shell.
i.e. without going into the shell.
for example:
adb shell tcpdump
At the moment I get : no suitable devices found which is because tcpdump is not executed as root.
is there any way to give adb root permissions?
Thanks,
Dekel

[Q] Command Prompt Issue When Trying To Exit ADB Shell?

Hi this is my first post on the site and i would appreciate it if anyone could help me with this problem. (I know your probably fed up of hearing about rooting problems but anyway!)
I have succesfully installed ADB and as far as i know it seems to be working properley as i can access the ADB shell on my device.
However when i get to a certain stage of the rooting process it all seems to go wrong.
wiki.cyanogenmod.com/index.php?title=HTC_Tattoo:_Full_Update_Guide
I have been using the above rooting guide (can't hyperlink first post!) and i cannot get past stage 7 of the process because the 'exit' command doesnt seem to work in Command Prompt (Windows 7) and it is stopping me from being able to exit the ADB Shell. I have tried other ways of exiting the shell such as ctrl+C but this kills ADB completely and i think that it is undoing the previous steps of the guide.
I do get the message:
uid=0(root) gid=1000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
so i think that i have successfully rooted the device but i cannot proceed to push the 'su' file to the device as i can't exit the adb shell, i just keep getting lists of text saying reboot (-n) (-p) and everytime i use the exit command nothing seems to happen and the flashing # symbol keeps coming back.
Has anybody else had this problem? or have any idea of how to stop the ADB Shell with any other commands other than 'exi't or Ctrl+C?
Cheers.
If device is rooted, by writing in command prompt the command "adb shell", must appear the symbol #, if the symbol $ appears the device isn't rooted.
If you cannot use adb from pc, run on device a terminal emulator(you can find one on market) the above command to see if you're rooted. Then you can give the next commands from terminal emulator(maybe you need to copy the nessecary files on sd card and change the related paths to point to sd card)
I'm having the exact same problem while rooting my HTC Tattoo (on Windows 7).
I have Android 1.6 (Donut), the baseband is 13.29a.55.13H_3.35.07.33, kernel is 2.6.29-gf922713 and build is 1.67.173.37.
Please help and thanks in advance . I really want to install CyanogenMod 7...
more info
When i say i have rooted the device i mean temporarily by pushing and changing the 'm7' file, the problem is pushing the 'su' file to the device to make the root permanent.
I do get the # symbol when in ADB Shell but only after changing m7 on the device. As i cannot complete the whole rooting process the # is not there permanently and it returns to the $ symbol.
Thanks for the reply, i will try and do it using a terminal on the device. Do you not need root access to use a terminal app?
I'm having the same issue. When I input exit it stucks into that loop and then I got to ctrl+c, and of course the root does not stick
From that point forward I can't do anything else...
If someone overcome the problem please post.
I just used this app to root a zte blade with a new greek stock rom:
http://forum.xda-developers.com/showthread.php?t=803682
Seems to work for almost all devices and in first post have some info about root levels and links to a workaround for devices that have some lock which prevents the full rooting.
I didn't tried anythink cause the rooting process was successful, but you can try this app and if still have problems try to follow the instructions given.
Good luck.
If you have your mobile rooted can you just use this commands:
cd /data/local/bin/
chmod 755 flash_image
flash_image recovery /sdcard/recovery-clockwork-x.x.x.x-click.img
to perform a recovery flash? Without using the su command?
I don't remember if I tried it, but, if it works I recommend using Androot for rooting the device, it worked for me(checked by Root Checker ).
I'm mentioning this just because you recommended the SuperOneClick app.
Update:
For all trying to get thing done, follow the instructions on 1Click modified by tenis and flash the latest cyanogenmod.
It worked!!!
I got it to work using androot. Cm7 is awesome
Sent from my HTC click using XDA App
exit command in adb seems to lock up
like omgsufc, I also reach this stage and can see the message:
uid=0(root) gid=1000(shell) groups=1003(graphics),1004(input),1007(log),1011(a db),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt ),3003(inet)
Again, like omgsufc, when I issue the command:
# exit
ADB shell seems to go into some kind of loop. Pressing ctrl-c or ctrl-d also give the same results. I thus can't go to the next stage. Any help or clues would be greatly appreciated.
I'm on Ubuntu 11.04.
TIA for any help.
Finally got it to work
No matter what I did, rooting using m7 just didn't work for me (Ubuntu 11.04). Running 'while ./m7 ; do : ; done' got me temporarily rooted as issuing 'id' shows me at 'uid=0(root)'. However, issuing 'exit' just left me in a long loop in the terminal from which it never recovers, and hence I could not complete the root process this way.
So I tried androot, which appeared to root me right away. Issuing 'su' in Android Terminal worked, and doing the same in ADB Shell also gets me to the # prompt. However, issuing the 'flash_image recovery' failed no matter what I did. I tried ROM Manager after this initial androot root: it gives me a success message after flashing ClockworkMod recovery, but when I reboot into recovery it just fails. Fastboot also failed consistently.
Finally, when I tried Terminal Emulator to get root access by issuing the command 'su', it says permission denied, even though Terminal Emulator gave me root access.
So... I unrooted Androot. Again trying to root using m7 I got the same problems as before.
I didn't bother trying flash_image or fastboot and instead tried rooting with androot. After doing so, this time Terminal Emulator allowed root access, which gave me some hope.
So I pulled out ROM Manager again, and woot! My Tattoo is on CyanogenMod 7 and am I a happy camper! I like what Cyanogen has given us: ADW Launcher is as good for me as Sense ever was... actually it's better. And finally I get to use all the new apps I've been wanting to use but wouldn't run on Android 1.6.
So thank you Cyanogen, thank you xda-developers, particularly KalimochoAz, thank you Koushik Dutta for ROM Manager, and thank you, whorever developed androot!

ADB Pull Error

I am getting the following error when I try to pull a TWRP backup from my Nexus 4. Can anyone please help?
Code:
remote object '/sdcard/TWRP' does not exist
It doesn't exist there. /sdcard/ is really a symlink. The actual location is /data/media/0/TWRP, but try /storage/emulated/0/TWRP as well.
Next time type "adb shell" to go into the phone, then type:
find / -type d -iname twrp
this will search the entire phone for folders with the name TWRP and list their path.
/ is the root folder of the phone to search in
-type d means search for folders only, leave it out if you want to search for file names
-iname means to search for terms case insensitive
sent from xda premium app
Thanks for the help eksasol. I've tried to pull many different paths and they all return the same remote object does not exist error. I've even tried sudo adb pull, with the same result. I've tried this, find / -type d -iname twrp but, all I get is Permission denied. If anyone else has got some ideas I'd be happy to hear them. Thanks. :good:
If you are using Ubuntu or linux, typing 'find' only search what is in your PC. You get permission denied because you want to search in a root directly that required root permission.
To search for files in your phone, you need to log into your phone by typing "adb shell". TWRP give you root by default, then you can use the find command.
Since you have root by default in TWRP, you don't need to use sudo, also Android do not have "sudo" installed. The correct way to gain root privilege in linux (Android) is by typing: su -
To tell if you have are root, you should see # where your user name is in the command window.
Once you are done finding the path, you need to exit the adb shell in order to make contact with your PC, so just type exit. Only then you can start using "adb pull".
by the way, its "adb pull /data/media/0/TWRP/ \home\username\backup\"
Rememer in linux (Android), it's case sensitive.
OK, I see my mistakes now. I was not exiting adb shell when typing adb pull. Anyway, thanks to your help, everything is working correctly now. Thank you again, I really appreciate it. Now I can flash the 4.4 update safely.
eksasol said:
If you are using Ubuntu or linux, typing 'find' only search what is in your PC. You get permission denied because you want to search in a root directly that required root permission.
...
by the way, its "adb pull /data/media/0/TWRP/ \home\username\backup"
Rememer in linux (Android), it's case sensitive.
Click to expand...
Click to collapse
Thanks for helping me re-learn that linux (Android) is case sensitive

Firestick Lite Launcher

:good:Hey there, I ended up with a Lite edition Firestick of a friend's and he's wanting it sorted the same way my 4k is (no chance I told him) the tight git didn't want to pay an extra fiver for the 4k which was on sale at the time.
So now he has a price to pay and has to put up with all the sponsored amazon gunk on their home screen.
I have looked everywhere and have not seen a launcher mod for the lite edition or even anyone asking about one.
Do any of you guys know if its possible to change the launcher with a working home button etc?
Any help or point in the right direction would be greatly obliged
Thanks again
BERTO
####wrong forum Mods apologies ####
try FTVLaunchX matey that might work still read the setup guide i just normally do this -
If you know what you are doing then simply grant this permission by executing the following command in an ADB shell on your device:
$ pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS
then FTVLaunchX should let you choose an installed custom launcher to start on boot.
Check my github Script.
https://github.com/0815hoffi/FireTV-2k-4k-debloat/tree/main/FireTVLite
Install Launcher of your choice.
adb shell "pm disable-user --user 0 com.amazon.tv.launcher"
wait 5 seconds
adb shell "pm disable-user --user 0 com.amazon.firehomestarter"
Install my apk from github.com to access Settings but not all Settings possible without root.
Bertonumber1 said:
Hey there, I ended up with a Lite edition Firestick of a friend's and he's wanting it sorted the same way my 4k is (no chance I told him) the tight git didn't want to pay an extra fiver for the 4k which was on sale at the time.
So now he has a price to pay and has to put up with all the sponsored amazon gunk on their home screen.
I have looked everywhere and have not seen a launcher mod for the lite edition or even anyone asking about one.
Do any of you guys know if its possible to change the launcher with a working home button etc?
Any help or point in the right direction would be greatly obliged
Thanks again
BERTO
Click to expand...
Click to collapse
The process shown below works for 2nd Gen Fire cube and Firestick lite (they both run FireOS7)
https://youtu.be/YG6bkiRjJeI
0815hoffi said:
Check my github Script.
https://github.com/0815hoffi/FireTV-2k-4k-debloat/tree/main/FireTVLite
Install Launcher of your choice.
adb shell "pm disable-user --user 0 com.amazon.tv.launcher"
wait 5 seconds
adb shell "pm disable-user --user 0 com.amazon.firehomestarter"
Install my apk from github.com to access Settings but not all Settings possible without root.
Click to expand...
Click to collapse
As long as I'm able to access WiFi settings and account it shouldn't be a problem, can I access these settings using your new settings apk on the Lite?
Are we able to disable OTA on these Firestick Lites with the adb shell pm disable--user -user 0 (or user 1)?? Have they not patched all of the adb commands on the new LITE editions @0815hoffi?
Wifi Yes
Account No.
All the currently avail Launcher tools run this 2 Commands in Background.
Account is not avail without Stock Launcher or Root.
This is my script for Lite to Block Updates.
https://github.com/0815hoffi/FireTV-2k-4k-debloat/blob/main/FireTVLite/88-DisableFTVLite.cmd
On lite Stick it has worked.
On Stick 2 Amazon has patched this with 5.2.7.6.
Try it.
0815hoffi said:
Wifi Yes
Account No.
All the currently avail Launcher tools run this 2 Commands in Background.
Account is not avail without Stock Launcher or Root.
This is my script for Lite to Block Updates.
https://github.com/0815hoffi/FireTV-2k-4k-debloat/blob/main/FireTVLite/88-DisableFTVLite.cmd
On lite Stick it has worked.
On Stick 2 Amazon has patched this with 5.2.7.6.
Try it.
Click to expand...
Click to collapse
So I guess I have to push all these apks to the lite first?
echo.
echo Installing Apps
adb push Wallpaper.jpg /sdcard/Wallpaper.jpg
adb install -r Filemanager.apk
adb install -r AmazonYouTube.apk
adb install -r Mizuu.apk
adb install -r VLC.apk
adb install -r ca.dstudio.atvlauncher.apk
adb install -r com.markus.firetoolsNoroot
I will try this tomorrow and disable updates straight away on the lite. Thanks @0815hoffi
No thats only a example, you must customize it.
You only need
adb install -r com.markus.firetoolsNoroot.apk
to have settings shortcuts on launcher.
And a Launcher of your choice, maybe WolfLauncher.
Firestick lite 7.2.2.3 launcher replacement (no root) method
@0815hoffi
i pm you with result ....really smooth operation:good:
For anyone else on Firestick Lite 7.2.2.3 be quick and disable OTA.
as per 0815hoffi and dean2011 posts ( i used a bit of each post ) thanks again guys
To customise launcher without losing any functionality (some setting you will lose as this is non root settings but most of the main ones network apps remotes are all there )
NOTE: you may choose to complete registration process before disabling amazon launcher.
First i debloated the Lite using hoffi debloat txt (double checking updates were disabled)
i then pushed ATV Launcher Pro to the stick and installed
then disabled firetv launcher and fire homestarter
next was to push ftvlaunchx 101 dev apk (faster boot response)
grab hold of markus firetools (non root settings) apk push that to stick install.
next give ftvlaunchx write permissions pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS
open ftvlaunchx and select ATV Launcher pro within the launchx app
reboot your lite device and then think of a wallpaper that looks good on your tv

Categories

Resources