[Q] How to root Android TV box with ADB? - General Questions and Answers

So my question is how would one connect an Android TV box to the computer to run ADB? As android TV boxes don't have micro or mini usb connections only standard USB. I have the G-Box xD which runs ICS and I've tried running a root update/patch which has worked on previous G-Box android TV boxes but it seems not to work on this one. It installed the su binary and superuser.apk but root applications don't work and when I check the information under superuser app it shows the permissions of the binary in red instead of green so I'm assuming this is the problem?

Get a double ended standard USB cord?
Sent from my SPH-D700 using Tapatalk 2

ADB
jeffreyjicha said:
Get a double ended standard USB cord?
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
Do all the TV boxes have a ADB port?

Is there a way to root a Z28 tv box ?

Related

[Q] Tether Wifi XOOM via USB OTG?

Is it possible?
It doesn't work by default when connected to an android device with USB tethering enabled.
My guess is that there needs to be software in place to bring up the USB network?
Oops. Mod please move to general.
I'm pretty sure the latest tiamat kernel supports this
Sent from my Xoom using XDA Premium App
I have been trying to set up/enable USB tethering from my rooted Droid Incredible (running CM7) to my rooted Xoom (HC 3.1, kernel 1.4.2, wireless only).
When I type : "Cd /dev/block" then "ls" on my Xoom terminal I can see "sda" for phone and "sda1" for my USB flash drive. And my phone recognizes the USB connection to my Xoom.
But when I type "busybox mount /dev/block/sda1/mnt/usbotg" on Xoom, the response is > "mount: can't read '/etc/fstab' : No such file or directory"
And while I can enable USB tethering on my phone, my Xoom doesn't recognize it (of course). My phone is also charging from the Xoom.
Sent from my Xoom using Tapatalk
Same problem. Using the tiamat kernel, have USB tether enabled on the phone, but the xoom doesn't recognize it. Is there something I need to do in user space to enable the tether on the xoom?
Sent from my Xoom using XDA Premium App
Thread moved to Q&A... Since it's a [Q]uestion.
satadru said:
Same problem. Using the tiamat kernel, have USB tether enabled on the phone, but the xoom doesn't recognize it. Is there something I need to do in user space to enable the tether on the xoom?
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
This was posted by BigRushDog a short time ago :
" I have to check, but I may have borked Vold.fstab in the 3.1 update. I'm gonna release 1.4.3 in a day or so. Ill clean it up."
Sent from my Xoom using Tapatalk

how to connect on mac?

i can't connect my one s to my mac for some reason.
i want to put music on it. any help?
Try a Mac program called droid file transfer. I use it on lion.
Sent from my One S.
i did that and it won't connect. I'm on latest mac os also.
jboy15 said:
i did that and it won't connect. I'm on latest mac os also.
Click to expand...
Click to collapse
worked for me..do you have VMWARE or anything installed? if so make sure you open it up and disable the USB ports..
You have set your phone in USB mass storage mode, right ? Works without problems here ...
Sent from my HTC One S using XDA
Habarug said:
You have set your phone in USB mass storage mode, right ? Works without problems here ...
Sent from my HTC One S using XDA
Click to expand...
Click to collapse
Did you ever get this working? I have tried with USB debugging off and on, tried all the options under the default connection type. What else can I do to get this to connect to my Mac? I don't see anything that is labeled "MASS USB STORAGE".

Getting ADB access in Android 4.2.2

This incorporates the ideas of http://forum.xda-developers.com/showthread.php?t=2144709, so if you want to see how this was resolved for the Nexus 4, check out that thread.
Okay. So you've flashed a spanking new 4.2.2 ROM and ADB no longer talks to your Sensation. What happened?
Well, the fact is that 4.2.2 is significantly more secure, in the good sense. It enforces RSA authentication via ADB. However, RSA authentication is supported only in recent versions of ADB.
What to do?
First, make sure you have the latest version of ADB on your PC.
On Windows you can quickly find out if you your version of ADB is up to date. Check your ".android" folder and see if it holds a file called "adbkey".
On any platform type "adb version" to verify that you have the latest version of ADB. Versions 1.0.31+ support RSA authentication.
-- So now, if you have ADB 1.0.31 or higher. You can skip directly to step 2, then.
-- If you do not have ADB 1.0.31 or higher, and you have the full Android SDK installed, open the SDK manager and update it. If you only have ADB and fastboot installed in a folder on your PC, overwrite files in the folder with those in the corresponding zip file attached (windows or linux -- sorry! I don't have Mac versions at this time). These come from version 16.01 of the android platform-tools package, if you are curious.
-- if you have never installed the SDK or ADB or fastboot, now is the time to do that. I recommend going to http://developer.android.com/sdk/index.html to get started.
[*]Enable USB debugging on your phone
USB debugging is now enabled by selecting Android Debugging in System Settings > Developer Options.
"I don't have the Developer Options items in System Settings!!"
In Android 4.2.x, you need to go to System Settings > About Phone and tap the Build Number item about 6 or 8 times, and Developer Options will reappear.
[*]Plug in the USB cable. Securely.
Dismiss the USB mass storage window.
"I connected the cable, but nothing happened!!"
Okay, chill. You won't get a response until ADB tries to connect to your Sensation. So go ahead and start ADB on your PC. Suggested command:
Code:
adb devices
"Now ADB started, but nothing's happening on my computer!!!"
Uh, didn't I just advise you to chill ? Take a look at your phone...
"What's this pop-up that just popped up??"
(See image below)
Congratulations, that is Android asking your permission to store an RSA key on your Sensation for ADB interaction with your PC.
Fearlessly accept it.
Hint: check the "Always allow from this computer" box to save time later on.
The RSA authentication key you just accepted will be stored on your phone in the file /data/misc/adb/adb_keys.
You are now good to go. Just 3 easy steps with a minimum of panic.
Questions? Problems? Ask away!
Many thanks to XDA member skipjacks for the idea for this post
Hi,
Nice! :good:
People should also not use USB 3.0 slots or USB hubs.
Try several slots if the front ones do not work.
Windows 7 & 8 drivers are HERE in case anyone needs them...
malybru said:
People should also not use USB 3.0 slots or USB hubs.
Click to expand...
Click to collapse
I understand about the hubs, but why not USB 3.0?
Skipjacks said:
I understand about the hubs, but why not USB 3.0?
Click to expand...
Click to collapse
Hi,
I have read a lot of instances of "Device not recognized" when using 3.0 slots.
I am not saying it will never work.
But ,if you use one,and it does not work,then,try it on a 2.0 slot.
Thanks for the post
few problems:
- I tried updating ADB with SDK manager. It kept saying something was accesing the installation folder. even after I closed explorer, virusscanner etc. I replaced the files with the zip attachement, but still a weird issue.
- another thing. Before I updated adb reported error: device offline. After update the issue persists. not using any hubs or USB 3.0. I think it's because I'm not using the stock cable that came with the phone.
onemanshow85 said:
Thanks for the post
few problems:
- I tried updating ADB with SDK manager. It kept saying something was accesing the installation folder. even after I closed explorer, virusscanner etc. I replaced the files with the zip attachement, but still a weird issue.
- another thing. Before I updated adb reported error: device offline. After update the issue persists. not using any hubs or USB 3.0. I think it's because I'm not using the stock cable that came with the phone.
Click to expand...
Click to collapse
Hi,
I think there is one solution that will address both issues. Before I mention it, let me ask: are you sure you enabled USB debugging on your Sensation? This is confirmed if, when you plug in the cable to your PC, you immediately get a USB debugging icon in the Notification Bar.
Glad we got that out of the way!
Unplug your device from the PC.
Anyhow, since you already have the SDK installed, the recommended way to update is to use the SDK Manager.
--in Windows, I think this is an executable in the tools sub-folder of your main android SDK folder. Double clock on it.
--in Linux, start up a terminal and type
Code:
android
if that doesn't do it, CD to the /tools directory in android-sdk-linux, or wherever you put the SDK, first. Then type "android".
The window that opens when you start SDK Manager should show that you need an update to (at least) platform-tools. Go ahead and do the update. You will have to accept some license(s) - accept it or them.
Once the install is complete, close SDK Manager.
Now plug your USB cable back in, and try out the "adb devices" command. It should work.
Suppose you still get "device not found", though. Try the following: again unplug.
Type the command:
Code:
adb kill-server
Now plug the phone back in, verify that you have USB debugging, and try "adb devices".
If no go, let me know what platform you are running, etc. I've heard it could be the cable, but I think that you just need to make sure it is plugged in securely.
BTW, the reason you probably won't have to do the adb kill-server step is that the SDK Manager kills running adb processes during the install.
Let me know how it goes!
Yrs,
dkephart
Sent from my HTC Sensation using xda premium
tnx. I was somewhat ehead of the steps you mentioned. problem was that SDK manager can't install anything cause it can't seem to kill any other adb proces. But I used a workaround for that so no problem there.
ADB does find my device, only it is stated as offline. I will have to try it again with the stock cable that came with the phone. Then I'll know if this is a software issue. Currently I'm using a complete random micro-USB cable wich I found on work laying around.
I'll let you know if stock cable is any difference. If so, it might be usefull info for ppl to know to always use stock cable while using ADB/Fastboot
onemanshow85 said:
tnx. I was somewhat ehead of the steps you mentioned. problem was that SDK manager can't install anything cause it can't seem to kill any other adb proces. But I used a workaround for that so no problem there.
ADB does find my device, only it is stated as offline. I will have to try it again with the stock cable that came with the phone. Then I'll know if this is a software issue. Currently I'm using a complete random micro-USB cable wich I found on work laying around.
I'll let you know if stock cable is any difference. If so, it might be usefull info for ppl to know to always use stock cable while using ADB/Fastboot
Click to expand...
Click to collapse
Yeah... my random selection doesn't have this problem. But I once seemed to have it with the official cable. You might want to try rebooting both the phone and the PC.
Sent from my HTC Sensation using xda premium
The stock cable did the trick. everything works fine with the stock cable.
So if ppl find any trouble using ADB with a cable other then stock, this might cause the problem.
onemanshow85 said:
The stock cable did the trick. everything works fine with the stock cable.
So if ppl find any trouble using ADB with a cable other then stock, this might cause the problem.
Click to expand...
Click to collapse
Great find...and extra points to anyone who determines why this might be the case...
Sent from my HTC Sensation using xda premium
dkephart said:
Great find...and extra points to anyone who determines why this might be the case...
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
Some really cheap cables only have 2 wires in them and can only be used for charging. You need the other wires for data transfer.
But some companies only put the charging wires in to save money on the copper.
It must be a REALLY low quality cable though. I mean I get all my cables on Monoprice for like $1-$2 and they all work great for data.
Or, the cable does have all the internal wires and one is just broken inside.
Sent from my HTC Sensation using xda app-developers app
I've done everything in the thread, I can see my htc when I run the adb command but I don't get the pop-up on my phone. I tried the stock cable and different one but nothing. I'm on latest albinoman ROM. what should I do ?
P.S : I tried rebooting both the phone and pc but still the same problem.
nemovich said:
I've done everything in the thread, I can see my htc when I run the adb command but I don't get the pop-up on my phone. I tried the stock cable and different one but nothing. I'm on latest albinoman ROM. what should I do ?
P.S : I tried rebooting both the phone and pc but still the same problem.
Click to expand...
Click to collapse
You get your serial number and "device offline" from the adb devices command?
Sent from my HTC Sensation using xda premium
dkephart said:
You get your serial number and "device offline" from the adb devices command?
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
no just the serial number
nemovich said:
no just the serial number
Click to expand...
Click to collapse
I'm puzzled, then. What happens when you do "adb shell"?
And if that comes back with the shell prompt (a $), then what happens if you type "su"?
Sent from my HTC Sensation using xda premium
dkephart said:
I'm puzzled, then. What happens when you do "adb shell"?
And if that comes back with the shell prompt (a $), then what happens if you type "su"?
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
with adb shell I get $ and with su I get #.
nemovich said:
with adb shell I get $ and with su I get #.
Click to expand...
Click to collapse
Cool! Then you have adb working. To confirm, in the shell, "ls" should come back with a listing of the files on your device. If you do "cd sdcard" and "ls" you get the files on the SD card.
You're good to go.
Sent from my HTC Sensation using xda premium
Yes it's working with shell commands but still not detected by Android Commander for example. It worked when I reverted to stock ROM.
I still don't know why I didn't get the security pop-up though
---------- Post added at 05:07 PM ---------- Previous post was at 04:57 PM ----------
Yes it's working with shell commands but still not detected by Android Commander for example. It worked when I reverted to stock ROM.
I still don't know why I didn't get the security pop-up though
Sent from my HTC Sensation using xda premium
nemovich said:
Yes it's working with shell commands but still not detected by Android Commander for example. It worked when I reverted to stock ROM.
I still don't know why I didn't get the security pop-up though
Click to expand...
Click to collapse
There is still a possibility adb did not update, or that you have more than one copy of adb on your system. Here's another way. cd to the android-sdk- windows folder (you are running windows, right?) and type
Code:
android update sdk --no-ui
...now the SDK manager will run. It takes a while. When done, reboot your PC and plug in your Sensation. Go to the platform-tools subfolder of your SDK folder and run adb from there. You could type "./adb" to make sure. Check your device - the homescreen has to be unlocked - and you should see the pop-up.
I don't really know about Android Commander, so there is always a possibility that that app doesn't handler things right, but I think this will work.
Let me know how it goes...
Sent from my HTC Sensation using xda premium
dkephart said:
There is still a possibility adb did not update, or that you have more than one copy of adb on your system. Here's another way. cd to the android-sdk- windows folder (you are running windows, right?) and type
Code:
android update sdk --no-ui
...now the SDK manager will run. It takes a while. When done, reboot your PC and plug in your Sensation. Go to the platform-tools subfolder of your SDK folder and run adb from there. You could type "./adb" to make sure. Check your device - the homescreen has to be unlocked - and you should see the pop-up.
I don't really know about Android Commander, so there is always a possibility that that app doesn't handler things right, but I think this will work.
Let me know how it goes...
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
when I cd to the sdk folder ( C:\Users\Documents\adt-bundle-windows-x86-20130219), it gives me command not recognized. I can run sdk manager from the folder and everything is up to date.
I run adb from platform-tools and it gives me the same thing as before.
one thing though, I don't see the "adbkey" file in platform-tools but it is there in ".android" folder. so I run it from the later folder too but the still the same thing, no pop-up.
it's not just android commander, a lot of other apps give the same thing.

Workaround for no USB Mass Storage in JB

I didn't know there was a workaround app to enable UMS. How come its not posted in here?
Sent from my XT897 using Tapatalk 4 Beta
How come you didn't post it in here?
http://forum.xda-developers.com/showthread.php?t=2175747
It works photon q. I've been using for my car radio which doesn't support mtp.
Sent from my XT897 using Tapatalk 4 Beta
jae18708 said:
http://forum.xda-developers.com/showthread.php?t=2175747
It works photon q. I've been using for my car radio which doesn't support mtp.
Sent from my XT897 using Tapatalk 4 Beta
Click to expand...
Click to collapse
...for me not tested on win7 .... i will test it tomorrow on xp
CornholioGSM said:
...for me not tested on win7 .... i will test it tomorrow on xp
Click to expand...
Click to collapse
It worked for me on Win7 x64 after some trying - what exactly doesn't work for you, Cornholio?
micx_pl said:
It worked for me on Win7 x64 after some trying - what exactly doesn't work for you, Cornholio?
Click to expand...
Click to collapse
i have in system / hardware error code 10 - device cannot be run
I used to use mass storage mode in Open Recovery.
Sent from my XT897 using Tapatalk 2
Connect your device to the computer in MTP mode, open the USB Mass Storage app and click On.
Thats how ive done it and it has worked fine in Windows 7, Ubuntu, OpenSuse and Fedora.
Sent from my XT897 using Tapatalk 4 Beta
jae18708 said:
Connect your device to the computer in MTP mode, open the USB Mass Storage app and click On.
Thats how ive done it and it has worked fine in Windows 7, Ubuntu, OpenSuse and Fedora.
Sent from my XT897 using Tapatalk 4 Beta
Click to expand...
Click to collapse
This does not work for me, may be because i have an official JB
Win7 x64
i have tested it on XP and Mac and it works
For me it works on stock JB on win7 x64
MiklerGM said:
This does not work for me, may be because i have an official JB
Win7 x64
Click to expand...
Click to collapse
Is your phone rooted?
Sent from my XT897 using Tapatalk 4 Beta
jae18708 said:
Is your phone rooted?
Sent from my XT897 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yes, my phone is rooted.
I install SuperSU from market, and root start working
i tried to compare a '# mount' output and it is identical
But when i press 'mount' in app, mtp device disappears from my computer. And /mnt/sdcard in my phone still mounted to phone.
Afaik, /mnt/sdcard need to be umounted from phone and mounted to usb
Maybe there is something wrong with my phone cause my phone can't start a wifi tethering, Wifi hotspot works well, but no NAT rules in iptables
I think after unlocking bootloader applications can't execute something in command line
MiklerGM said:
Yes, my phone is rooted.
I install SuperSU from market, and root start working
i tried to compare a '# mount' output and it is identical
But when i press 'mount' in app, mtp device disappears from my computer. And /mnt/sdcard in my phone still mounted to phone.
Afaik, /mnt/sdcard need to be umounted from phone and mounted to usb
Maybe there is something wrong with my phone cause my phone can't start a wifi tethering, Wifi hotspot works well, but no NAT rules in iptables
I think after unlocking bootloader applications can't execute something in command line
Click to expand...
Click to collapse
I cannot keep it working reliably without AFT installed and ready to interfere. On a mac.
There's different between xp and win7. I was upgrade to jb via ota and my notebook (running on xp) didn't read device's mass storage. I decided to try on my bro notebook (running on win7) and you know what,, mass storage ****ing detected. And seperated where your internal and external

No option to authorize RSA key

Title says it all... I'm trying to unlock my Nexus 5 boot loader, but I can't get USB debugging to work. Any ideas? I've tried two different computers
Sent from my Nexus 5 using XDA Premium 4 mobile app
thatguy97 said:
Title says it all... I'm trying to unlock my Nexus 5 boot loader, but I can't get USB debugging to work. Any ideas? I've tried two different computers
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
There should be a prompt on your phone when you connect to a computer. If it doesn't show up, then try using the "Revoke usb authorisations" option and try again.
Accidental thanks. Enjoy.
thatguy97 said:
Title says it all... I'm trying to unlock my Nexus 5 boot loader, but I can't get USB debugging to work. Any ideas? I've tried two different computers
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Had the same issue. Solved it by enabling PTP in Settings - Storage - (menu button in the upper right) - USB-Connection.
After enabling PTP the Popup with RSA key appeared.
Hope I could help.
djcreature said:
Had the same issue. Solved it by enabling PTP in Settings - Storage - (menu button in the upper right) - USB-Connection.
After enabling PTP the Popup with RSA key appeared.
Hope I could help.
Click to expand...
Click to collapse
I did sort of the same. I disabled MTP and didn't enable MTP and that worked. You might need to do a fresh install of the drivers.
You won't get the pop-up by just plugging it in and toggling USB Debug, etc. You need to open up a program that uses ADB (Like WugFresh) or a command prompt in the adb/fastboot folder and typing -> adb devices (or fastboot devices if in fastboot mode). I just revoked computer permissions and tried ticking and unticking everything, and I couldn't get the auth pop-up. As soon as I started WugFresh, the pop-up appeared on the phone to authorize.
Still no popup
I tried everything in this topic and I still don't get popup RSA key.. working with nexus5 4.4.2 and windows8 and WugFresh toolkit
Any idea?
gcej said:
I tried everything in this topic and I still don't get popup RSA key.. working with nexus5 4.4.2 and windows8 and WugFresh toolkit
Any idea?
Click to expand...
Click to collapse
First of all, don't use toolkits... Please.
Make sure you have installed the correct drivers... Download Android sdk and make sure you have downloaded the usb_driver...
Go to developer options and revoke permissions, enable adb debugging... Now again connect your n5 to the PC and the a message should popup...
I had this problem because I was using an old version of adb
Sent from my Nexus 5 using Tapatalk
Try using different drivers
Sent from my Nexus 5 using xda app-developers app
---------- Post added at 03:13 PM ---------- Previous post was at 03:10 PM ----------
Use the third option in the driver installation window. Forgot what it was called but that was the only one that worked for me
Sent from my Nexus 5 using xda app-developers app
Universal Naked Drivers for Windows 8(8.1) - had the same issue myself. Was the only drivers I could get working on a Lenovo machine.
Help!!
I have tried everything with this, I reinstalled the usb google drivers countless times. I have redownloaded the SDK and have gotten no where, I even changed the connection to PTP. Someone please help!:crying:
Pure_Android said:
I have tried everything with this, I reinstalled the usb google drivers countless times. I have redownloaded the SDK and have gotten no where, I even changed the connection to PTP. Someone please help!:crying:
Click to expand...
Click to collapse
Do you get the yellow exclamation mark in device manager on the port not working? I had a device where no matter what I couldn't get the pc to recognize it. What worked for me was to go to update drivers, then right below the area where you can browes for drivers is an area where you can choose drivers from a list on your computer. Go there and look for the android adb interface driver
Sent from my Nexus 5 using XDA Free mobile app
Help!
jd1639 said:
Do you get the yellow exclamation mark in device manager on the port not working? I had a device where no matter what I couldn't get the pc to recognize it. What worked for me was to go to update drivers, then right below the area where you can browes for drivers is an area where you can choose drivers from a list on your computer. Go there and look for the android adb interface driver
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
No, It shows as
Android Device > Android Composite ADB Interface.
Pure_Android said:
No, It shows as
Android Device > Android Composite ADB Interface.
Click to expand...
Click to collapse
Your drivers are set up correctly then. Have you authorized adb debugging in developer options?
Sent from my Nexus 5 using XDA Free mobile app
Help!
jd1639 said:
Your drivers are set up correctly then. Have you authorized adb debugging in developer options?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Yes, I have USB Debugging enabled, I have unknown sources enabled, I even tried revoking the permissions to try and get the RSA certification but no luck
Pure_Android said:
Yes, I have USB Debugging enabled, I have unknown sources enabled, I even tried revoking the permissions to try and get the RSA certification but no luck
Click to expand...
Click to collapse
Can you access the files on your phone from the pc? Are you on a custom Rom that may default to accepting the rsa?
Sent from my Nexus 5 using XDA Free mobile app
Help!
jd1639 said:
Can you access the files on your phone from the pc? Are you on a custom Rom that may default to accepting the rsa?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Yes, I can access files, and no I am on stock, I'm attemting to root but this is whats blocking me from doing so
Pure_Android said:
Yes, I can access files, and no I am on stock, I'm attemting to root but this is whats blocking me from doing so
Click to expand...
Click to collapse
If you can copy files to the phone from the pc, just copy the super su zip to your phone. Then flash it in a custom recovery
Sent from my Nexus 5 using XDA Free mobile app
Help!
jd1639 said:
If you can copy files to the phone from the pc, just copy the super su zip to your phone. Then flash it in a custom recovery
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
The problem is, I have no root access, therefore it is till normal android. I need adb to root
Pure_Android said:
The problem is, I have no root access, therefore it is till normal android. I need adb to root
Click to expand...
Click to collapse
You don't need adb to root. Can you copy files to your phone? If so, copy supers.zip to /sdcard/download. Then get a twrp.img file and you'll flash that in fastboot.
See this http://forum.xda-developers.com/showthread.php?p=47025283
Sent from my Nexus 5 using XDA Free mobile app

Categories

Resources