Running console over adblink - Fire TV Q&A, Help & Troubleshooting

I'm totally new to this, and I'm having trouble finding the info I need, sorry for the basic questions here.
I got my Toshiba Edition Fire TV connected via abdlink via the IP address.
Once it connects, the 'Enable USB Debugging' window pops up on the TV, which I authorize. adblink tells me it's unauthorized and to click 'refresh adb', so I do.
It seems to be functioning and the TV is listed under connected devices, but when I try to open the console, it pops up and immediately closes. If I try to run the abd shell, the console pops up but I can't type anything into it. All of the other functions seem to be working.
I'm trying to disable the banner ads using the command lines found on the forum here in one of the threads. I don't have Kodi installed yet, is that necessary to use the command console? I haven't downloaded anything else, all I have is abdlink, do I need the developer sdk installed or anything else aside from adblink?
Thanks, any help is very much appreciated, I know this is basic stuff. Even more basic, do I install the 32bit apk or the 64bit kodi apk?

I would try a reboot of PC and TV since initial connection. If you store the IP in adblink and make that first connection, allowed on TV it should store that and not have to again (that's how it is on my ftv box). Then try running adblink as admin before connecting.
As for Kodi, install 64bit. If it successfully installs than you have 64bit chip/OS. If it gets parsing error it means you don't... Install 32bit.
Sent from my Mi A1 using Tapatalk

pontiffholychurch said:
I'm totally new to this, and I'm having trouble finding the info I need, sorry for the basic questions here.
I got my Toshiba Edition Fire TV connected via abdlink via the IP address.
Once it connects, the 'Enable USB Debugging' window pops up on the TV, which I authorize. adblink tells me it's unauthorized and to click 'refresh adb', so I do.
It seems to be functioning and the TV is listed under connected devices, but when I try to open the console, it pops up and immediately closes. If I try to run the abd shell, the console pops up but I can't type anything into it. All of the other functions seem to be working.
I'm trying to disable the banner ads using the command lines found on the forum here in one of the threads. I don't have Kodi installed yet, is that necessary to use the command console? I haven't downloaded anything else, all I have is abdlink, do I need the developer sdk installed or anything else aside from adblink?
Click to expand...
Click to collapse
It's a bug.
https://forum.xda-developers.com/showpost.php?p=78279023&postcount=289
Use adblink 3.6 instead.
jocala does great work, but sometimes it's hard to catch everything.

2WhlWzrd said:
It's a bug.
https://forum.xda-developers.com/showpost.php?p=78279023&postcount=289
Use adblink 3.6 instead.
jocala does great work, but sometimes it's hard to catch everything.
Click to expand...
Click to collapse
Well dang. ADB3.6 doesn't seem to be able to identify my TV like 3.7 did unless I'm doing something wrong now.
Even after a system restore it just tells me it can't connect

pontiffholychurch said:
Well dang. ADB3.6 doesn't seem to be able to identify my TV like 3.7 did unless I'm doing something wrong now.
Even after a system restore it just tells me it can't connect
Click to expand...
Click to collapse
adbLink 3.9 has just been released, and the previous bugs have been fixed.

2WhlWzrd said:
has just been released, and the previous bugs have been fixed.
Click to expand...
Click to collapse
Could I ask you, is Fire TV able to access my Windows 7 shares? I have it set up on Windows, but no Fire TV apps find the shares, I can't find any way to do it... Thanks.
Also when I try to use remote manager from ES Explorer, Windows tells me it cannot access the files and to make sure I have permissions.

Edit nevermind ADB works now.

Related

[Q] USB Internet passthrough from Linux

Hi, I've googled and searched the forum for this and can't find anything that works for the Desire HD.
The phone comes with an option to use the PC's internet connection through the usb interface. When I enable this on the phone the usb0 interface pops up on the computer. I've tried various bridging and natting alternatives, but everything ends up with the phone complaining that htc sync isn't set up right. I've tried askimng HTC what the phone expects but they just say that they don't support Linux. Grrr!
Anybody succeeded in getting this working or can say exactly what the phone expects to see on the pc side?
I thought it was the other way around (PC using the phone's connection) ?
Edit: Link.
Both are possible. PC using phone's connection is called "Tethering" and Phone using PC's connection is called "Internet passthrough".
There are recipes for foolong a "Nexus One" into reversing the tethering solution so that it connects to the internet through the PC, but the HD seems to have blocked this.
We have a Wifi-Free home, so this really is the only way of connecting the phone to the internet without using valuable 3G data traffic.
Apologies, I didn't know.
I took a look around, maybe you've tried this already but here it is (scroll down to post #53). Good luck!
Thanks. Looks promising. From Post #53 it looks as if I should be able to do this from adb, although earlier posts in the thread mention busybox and root, neither of which I have on the phone. Have in any case not used adb to connect before so may ask for help here if I can't find out how to do it.
Thanks very much for the suggestion.
For root you can search for the app "Visionary" in the market, I'm not sure if it installs busybox too though (but you can find that in the market as well).
Also make sure you have USB Debugging enabled in the settings.
You're most probably going to need the ADB drivers as well, but i think they're shipped with HTC Sync. Anyone correct me if I'm wrong.
Thanks, now have adb access (with root . Next problem is that my linux box always assigns an APIPA (zeroconf) address to the usb interface. Can't remove it or specify a static IP for the next connection.
Unfortunately I can't help you or suggest anything else for the time being. I'll be switching to Archlinux tonight (for the 150th time) and will hopefully have my device within this week. So if you don't figure it out by then, I'll give it a shot.
I think it can be done quite easily using the Firestarter application. Too busy playing Black Ops to confirm that the method I have in mind works but I will try it out later and if I'm right I will post a how to.
I'd be very interested to hear how you get on phunkycow. The APIPA problem seems to be debian sid related. On my wife's Ubuntu laptop I can configure both interfaces and ping between the phone and the pc. Didn't have time to figure out routing and dns.
I now have this working on Ubuntu. Debian still gives me a zeroconf address on the pc's usb interface.
Next problem is that to script this as suggested in post #53 I think I need a different su or sudo on the phone as sudo and su -c both give me permission denied.
Any other ways of running remote commands as root using adb?
Working perfectly on Ubuntu when I run through the commands interactively. Next job is to script it. The only possible caveat is that I seem to have to run the adb commands as root, however a quick test indicates that this is probably doable just by piping each adb shell command to su.
Will post back with the findings and the script (when I'm happy with it).
Piping to su doesn't work unfortunately, so I need to think again.
Any tips on scripting adb shell commands to run as root?
Another problem (after setting this up interactively) is that only some apps even attempt to connect to the internet this way.
Web browser shows error about not being able to connect first time, but then connects anyway. Ditto Google earth.
Phone update refuses to connect and asks for wifi or mobile network to be turned on.
Skype can't sign in.
I'm wondering whether some apps look for a particular property to be set and refuse to connect if it's not there??
A hot candidate might be [init.svc.netsharing_pass]???
Any comments?
Hi,
I installed bash and su from su-2.3.2.1-ef-signed.zip, which I moved to /system/bin
which su shows that that's what's being used.
I was hoping that this would give me the possibility to run su with switches (ie su -c "command"), and only use adb to invoke a script on the phone with the rest of the commands. Unfortunately fails on both counts :-(
Does anyone know of other su utilities out there that are more like the Linux version?
Cheers!
The answer seems to be gscript.
Phone side commands can be scripted to run on the phone, requires manually finding and running the script from the phone's UI.
Now if there were a way to invoke it through adb ... !
hi Learnincurve,
can you please briefly post, what you did to use the internet-passthrough? i cant figure it out with my desire z...
thanks!
m1l4droid, you are using the internet passthrough with ubuntu just like that? what am I doing wrong...?
Hello everyone.. I can see that the thread hasn't been updated for some time.. but still, has anyone founded an easy way to use "internet pass-through" option on linux? I have read the thread, but I am not very familiar with the terms "adb" etc. I am using Desire HD rom (InsertCoin HD Port 1.8f), on an "small" Desire... And the linux edition is Ubuntu 10.10... Thanx in advance..
wouldnt you be able to access an ad-hoc wifi network with your custom rom? so the only thing for you to do was to setup the ad-hoc wifi at the pc and connect with your phone...
for the usb-passthrough I still dont have a solution, neither.

Trying to update XBMC and won't go

Im trying to update my XBMC install to the latest release of 13.2.
When in terminal I can connect to the device no issues. However when I issue the command adb install -r xbmc-13.2-Gotham-armeabi-v7a.apk
It simply just sits there and does nothing. No error messages or anything.
Am I missing some sort of step? I don't want to use the adbFire app to side load it because I will lose all my current config.
DHeffernan said:
Im trying to update my XBMC install to the latest release of 13.2.
When in terminal I can connect to the device no issues. However when I issue the command adb install -r xbmc-13.2-Gotham-armeabi-v7a.apk
It simply just sits there and does nothing. No error messages or anything.
Am I missing some sort of step? I don't want to use the adbFire app to side load it because I will lose all my current config.
Click to expand...
Click to collapse
Rename the apk file without any dashes or periods. Try something like xbmc132.apk.
redbuddha said:
Rename the apk file without any dashes or periods. Try something like xbmc132.apk.
Click to expand...
Click to collapse
It worked perfectly fine once i plugged myself into the fireTV using a ethernet cable.. shared the connection from my macbook to it and then it went through.
Guess maybe it takes so much longer through the wireless that it times out or something?
DHeffernan said:
It worked perfectly fine once i plugged myself into the fireTV using a ethernet cable.. shared the connection from my macbook to it and then it went through.
Guess maybe it takes so much longer through the wireless that it times out or something?
Click to expand...
Click to collapse
I remember having gotham 13.1 and went straight to kodi just using ADBFire. I didn't do it via DOS as I see everyone do it. Is this ok? I got another unit here that's running kodi but I want to put gotham 13.2 and I want to use ADB fire. I just select install APK select my file and it's done. Is that ok? or do I need to do it the long way?
You could always sideload a browser and ES to use it's download manager and just install the .apk if you're on the new firmware. If you're not, can use a SQL editor the enable install from unknown sources and 'then install it.
I didn't find -r switch option in ADBFire, you may overwrite the old setting without it?? I just used DOS adb install -r gatham132.apk, it worked fine.
Crown510 said:
I remember having gotham 13.1 and went straight to kodi just using ADBFire..
Click to expand...
Click to collapse

adbLink v5.5

adbLink is a companion program for Kodi.
It works with Kodi for Windows, Mac,Linux and Android
Global Features
Manage multiple Kodi devices from one PC
Edit XML and other files on your devices
Clone Kodi setups to new devices
Backup/Restore Kodi setups
Custom Cache Support for Kodi
Log file viewer for adbLink/Kodi logs
Hyperlinked HTML Help
Android Features
Install Programs without Android SDK
ADB/Fastboot enabled command-line
Busybox for root and non-root
Built-in WIFI/USB remote
Move Kodi data to external drives
Manage devices via USB or IP address
Root-aware File Manager
Install/Uninstall Apps
adbLink is available for Windows, macOS and Linux/ChromeOS
http://www.jocala.com
adbLink changelog
http://www.jocala.com/changelog.txt
Samba still available?
caponater said:
Samba still available?
Click to expand...
Click to collapse
No. You can install a samba server from the play store though.
hey jocala,
I'm on fire tv 1 OS 5.0.5.1 freshly installed. I have an attached hard drive which wont mount either on boot or while manually mounting. I am able to mount it using stick mount manually.
Could it be something to do with busybox? I had a similar problem on OS 3 and it was a busybox issue.
Sc0rp10 said:
hey jocala,
I'm on fire tv 1 OS 5.0.5.1 freshly installed. I have an attached hard drive which wont mount either on boot or while manually mounting. I am able to mount it using stick mount manually.
Could it be something to do with busybox? I had a similar problem on OS 3 and it was a busybox issue.
Click to expand...
Click to collapse
so now I'm able to mount drive by running the script and from the adblink app. I am also able to browse the drive in adb shell but the drive1 folder appears empty in kodi and ES file explorer. also the script won't run on boot.
Sc0rp10 said:
so now I'm able to mount drive by running the script and from the adblink app. I am also able to browse the drive in adb shell but the drive1 folder appears empty in kodi and ES file explorer. also the script won't run on boot.
Click to expand...
Click to collapse
Unfortunately, Android sandboxes the drive so only root can see it. With OS5 the install-recovery*.sh scripts are no longer started at boot by the stock kernel, so starting things at boot no longer works.
jocala said:
Unfortunately, Android sandboxes the drive so only root can see it. With OS5 the install-recovery*.sh scripts are no longer started at boot by the stock kernel, so starting things at boot no longer works.
Click to expand...
Click to collapse
so stickmount is the way to go if i want to access the drive from within kodi?
Sc0rp10 said:
so stickmount is the way to go if i want to access the drive from within kodi?
Click to expand...
Click to collapse
Last time I tried it, it had the same limitation. It's been a while, YMMV.
jocala said:
Last time I tried it, it had the same limitation. It's been a while, YMMV.
Click to expand...
Click to collapse
it shows as a folder on the sdcard and I'm able to access it within kodi at /data/media/0/sda1.
thanks for your help
Sc0rp10 said:
it shows as a folder on the sdcard and I'm able to access it within kodi at /data/media/0/sda1.
thanks for your help
Click to expand...
Click to collapse
Good to know, thanks.
When I open adblink it Pops up with the error Can't create logfile.
Jwhs123 said:
When I open adblink it Pops up with the error Can't create logfile.
Click to expand...
Click to collapse
This error means that adbLink is unable to write to the installation location.
It mostly happens to Mac users when they run adbLink from within the dmg container. You must DRAG the app from the dmg folder to the /Applications folder. It can also happen if you don't have write privileges in the Application folder (your user isn't admin). It that case drag adbLink to your Desktop, or any other location where you have write privileges.
I was able to install kodi and a few other app a week afoot , I tried today to install a app and now I get device offline error...read the help file tried what it said still won't install.. Device offline.. Any suggestions?
Sent from my SM-G935P using XDA-Developers mobile app
googster said:
I was able to install kodi and a few other app a week afoot , I tried today to install a app and now I get device offline error...read the help file tried what it said still won't install.. Device offline.. Any suggestions?
Sent from my SM-G935P using XDA-Developers mobile app
Click to expand...
Click to collapse
Try pressing "Refresh ADB", sometimes it helps.
Check for other processes that may have adb tied up
Reboot
jocala said:
Try pressing "Refresh ADB", sometimes it helps.
Check for other processes that may have adb tied up
Reboot
Click to expand...
Click to collapse
Thank you for the reply.. When you say other processes do you mean on the firetv or on the computer...?
Where would I find them and how to stop them... Or a thread on it... Or something.. Thanks
googster said:
Thank you for the reply.. When you say other processes do you mean on the firetv or on the computer...?
Where would I find them and how to stop them... Or a thread on it... Or something.. Thanks
Click to expand...
Click to collapse
Think of the "offline" status as a busy signal. It simply means that another instance of adb has snagged a connection to your Fire TV, preventing you from properly connecting. That "other" adb connection could be a phantom adb instance running on your PC, or an adb connection made from another computer/tablet/phone on your network, or something like FireStarter running on the device itself. For a computer, use task manager for windows/ activity monitor for mac. I use ps to look at processes running under the linux kernel (Fire TV, phones,tablets,etc).
Also, try rebooting the Fire TV...
jocala said:
Think of the "offline" status as a busy signal. It simply means that another instance of adb has snagged a connection to your Fire TV, preventing you from properly connecting. That "other" adb connection could be a phantom adb instance running on your PC, or an adb connection made from another computer/tablet/phone on your network, or something like FireStarter running on the device itself. For a computer, use task manager for windows/ activity monitor for mac. I use ps to look at processes running under the linux kernel (Fire TV, phones,tablets,etc).
Also, try rebooting the Fire TV...
Click to expand...
Click to collapse
Thank you.. Ok.. I get it.. I used my computer to load a couple of app then used "Apps2fire' on my phone..At the same time.. They both worked. For about 20 minutes.. I factory reset my Firetv and it connected, then used my phone it connected, then shortly after, computer says offline, and phone will not connect..
May have to factory reset my Firetv again and just stick to computer ?.. Thanks again @jocala
Sent from my SM-G935P using XDA-Developers mobile app
---------- Post added at 04:28 PM ---------- Previous post was at 03:58 PM ----------
googster said:
Thank you.. Ok.. I get it.. I used my computer to load a couple of app then used "Apps2fire' on my phone..At the same time.. They both worked. For about 20 minutes.. I factory reset my Firetv and it connected, then used my phone it connected, then shortly after, computer says offline, and phone will not connect..
May have to factory reset my Firetv again and just stick to computer ?.. Thanks again @jocala
Sent from my SM-G935P using XDA-Developers mobile app
Click to expand...
Click to collapse
@jocala Im pretty sure it was "Mouse Toggle" I installed.. Its was still trying to start even after I restarted my Firetv.. I uninstalled it now I'm getting a (device instead of offline) under status for adblink thanks again for your help
Sent from my SM-G935P using XDA-Developers mobile app
googster said:
Thank you.. Ok.. I get it.. I used my computer to load a couple of app then used "Apps2fire' on my phone..At the same time.. They both worked. For about 20 minutes.. I factory reset my Firetv and it connected, then used my phone it connected, then shortly after, computer says offline, and phone will not connect..
May have to factory reset my Firetv again and just stick to computer ?.. Thanks again @jocala
Sent from my SM-G935P using XDA-Developers mobile app
---------- Post added at 04:28 PM ---------- Previous post was at 03:58 PM ----------
@jocala Im pretty sure it was "Mouse Toggle" I installed.. Its was still trying to start even after I restarted my Firetv.. I uninstalled it now I'm getting a (device instead of offline) under status for adblink thanks again for your help
Sent from my SM-G935P using XDA-Developers mobile app
Click to expand...
Click to collapse
Good to know. Thanks for the report.
Hi, where's the screenshot button gone?

AirDroid on AFTV Stick?

Is anyone able to get sideload AirDroid onto there Amazon FireTV Stick (non-rooted)? I always get DEXOPT error or something like that during the actual install process. From what little reading I did it looks like its due to android SDK version apk was made with and version SDK that is installed on fire stick or something.
Thanks,
~SG
SomeGuy2008 said:
Is anyone able to get sideload AirDroid onto there Amazon FireTV Stick (non-rooted)? I always get DEXOPT error or something like that during the actual install process. From what little reading I did it looks like its due to android SDK version apk was made with and version SDK that is installed on fire stick or something.
Thanks,
~SG
Click to expand...
Click to collapse
Have you tried pushing it to the sdcard and just installing it manually?
Side note-what are you trying to do? Push notifications and texts to the AFTV?
I mainly use it to view and control the screen of many of my android based devices as well as the camera in most of my android devices over the internet. Yes i have tried manually installing via adb command but always get the same error.
SomeGuy2008 said:
I mainly use it to view and control the screen of many of my android based devices as well as the camera in most of my android devices over the internet. Yes i have tried manually installing via adb command but always get the same error.
Click to expand...
Click to collapse
I just got it working... by downloading and sideloading the latest version in rev 3 (3.2.6) from here: airdroid(DOT)en(DOT)uptodown(DOT)com/android/old.
Out of the box, it works fine for transferring files through wifi (which can also be done with ES File Explroer easily). It also works as a keyboard input and screen mirror when USB connected to PC.
HOWEVER, there are several options for AirDriod that can only be enabled through the Firestick interface, and, at least for me, cannot actually be accessed (like it wants touchscreen input typically found on phones).
Overall, I'm missing the benefit of having it running in it's current state. ES File Explorer does file transfer fine. I can't really see the application of screen mirror and keyboard control when it must be plugged in to my pc. It's pretty useless in t's current form, imho.
Update: Also, since it's an outdated version, it will not work over the web portal.

Kodi for my FireTV

Hey everyone,
I already try to get this running or even installed since a while now. But all the apps that all this great tutorials name me are not being found on the firetv anymore. I can't install them or even find them. I already turned on that I can install any harmfull application I want and so on, but I am running low on ideas how I get this first step done. It won't let me download any downloader app to install Kodi on it.
Anyone know a way?
AFTVnews is the spot for FTV everything. He wrote his own downloader app, got it in the amazon store, and has a guide on how to use it.
http://www.aftvnews.com/how-to-side...on-the-amazon-fire-tv-stick-using-downloader/
Once it's running, install the Kodi Android Installer addon inside Kodi for easy updates.
The problem is, even though I activated all the necessary stuff, it won't let me download the Downloader or ES Explorer, or any other kind of sideloader. It always tells me that it can't find that application.
Install adbLink from jocala.com on your pc. Start it and set up your device with the right IP. Then find the option within adbLink to install android apps on your device.
santamanga said:
Install adbLink from jocala.com on your pc. Start it and set up your device with the right IP. Then find the option within adbLink to install android apps on your device.
Click to expand...
Click to collapse
Thanks. I will trz that out.
Thanks, worked like a charm ^^.

Categories

Resources