USB tethering? - Fire TV Q&A, Help & Troubleshooting

Hi All,
is there any possibility to tether Internet from my phone to Firestick Gen 2 via USB?

Bartass72 said:
Hi All,
is there any possibility to tether Internet from my phone to Firestick Gen 2 via USB?
Click to expand...
Click to collapse
Your Firestick is rooted? You can enable USB tethering via ADB or using Termux on Firestick
Code:
//Enable
adb shell su -c service call connectivity 30 i32 1
//Disable
adb shell su -c service call connectivity 30 i32 0
I found the link how to enable/disable USB tethering:
https://stackoverflow.com/questions...android-device-using-adb-through-the-terminal

Thank You for your help.Now I know what to do with this case,finally.Unfortunatelly,my stick doesn't seem to be rooted,and i'm affraid to open it to do this.Is there any other way to root?

Bartass72 said:
Thank You for your help.Now I know what to do with this case,finally.Unfortunatelly,my stick doesn't seem to be rooted,and i'm affraid to open it to do this.Is there any other way to root?
Click to expand...
Click to collapse
Here is a link (follow the steps carefully): https://forum.xda-developers.com/fire-tv/development/unlock-fire-tv-stick-2nd-gen-tank-t3907002

Related

[Q] Send adb commands to moto360 through mobile terminal?

Greetings,
I'm not sure if its possible, but is there a way to connect to the moto 360 to mobile terminal to push adb commands?
Nokia7Vista said:
Greetings,
I'm not sure if its possible, but is there a way to connect to the moto 360 to mobile terminal to push adb commands?
Click to expand...
Click to collapse
I wish. I tried the default BT ADB connection protocol... no such luck.

[Q] Trying to install XBMC on Fire Tv .. ... cannot get pc to connect to Fire TV

Hi nooby here.. hope you can help...
Going mad trying to get pc to connect to Fire TV to allow me to side load XBMC ... have downloaded various utilities which do not allow me to connect to Fire TV and even tried just using adb from command line as follows :
adb connect < ip address of fire> which just hangs and I have set adb options on through settings on Fire Tv.
even why I type adb devices in command line I get nothing coming back from list of devices attached ?
Coul it be my firewall(s) ... I am just using windows firewall on pc and trying to connect via sky sagecom router
made sure that Fire Tv is on same network and I can ping fire tv no problems from cmd on PC ?
An y help would be appreciated - thanks
sauzee21 said:
Hi nooby here.. hope you can help...
Going mad trying to get pc to connect to Fire TV to allow me to side load XBMC ... have downloaded various utilities which do not allow me to connect to Fire TV and even tried just using adb from command line as follows :
adb connect < ip address of fire> which just hangs and I have set adb options on through settings on Fire Tv.
even why I type adb devices in command line I get nothing coming back from list of devices attached ?
Coul it be my firewall(s) ... I am just using windows firewall on pc and trying to connect via sky sagecom router
made sure that Fire Tv is on same network and I can ping fire tv no problems from cmd on PC ?
An y help would be appreciated - thanks
Click to expand...
Click to collapse
Did you activate ADB on your AFTV?
Well, this may sound like a dumb question, but it's usually the small things that will give you issues.
So, do you have ADB turned on the Fire TV?
Also, is your AFTV connected wired or wireless?
Have you tried setting a static IP on your AFTV?
And this will not solve your issue, but if you have a Android tablet or phone you can install Terminal Emulator and ADB into the AFTV using it (ADB is apart of Android so you don't have to do anything but install and run Terminal Emulator then run adb commands).
adb connect your.ip.address:5555

Amazon Fire TV Stick: Turned off Internet and Diabled Bluetooth

My Fire TV Stick has disconnected form the Internet and Bluetooth has been disabled. This means my Fire TV Remote does not work because it needs Bluetooth and i can not connect using the Fire TV Remote App or any other remote app because it needs the internet.
How did this happen?
I sideloaded an app called ES Task Manger it needed an update so i updated it the newly updated version needed a mouse so i used an app that allows me to use a mouse on the app. The newly updated version of this app has changed a lot so i was looking to see what has changed because the app had changed a lot i did know what some things did. I saw a little button at the bottom of the screen i pressed it thinking it would tell me what it is but instead it was a button for optimization and it turned off the internet connection and turned of Bluetooth.
adb is enabled on the Fire TV Stick but I have no Internet Connection.
How am i going to communicate to the device so i can connect it to the internet or enable Bluetooth.
b25439612 said:
My Fire TV Stick has disconnected form the Internet and Bluetooth has been disabled. This means my Fire TV Remote does not work because it needs Bluetooth and i can not connect using the Fire TV Remote App or any other remote app because it needs the internet.
How did this happen?
I sideloaded an app called ES Task Manger it needed an update so i updated it the newly updated version needed a mouse so i used an app that allows me to use a mouse on the app. The newly updated version of this app has changed a lot so i was looking to see what has changed because the app had changed a lot i did know what some things did. I saw a little button at the bottom of the screen i pressed it thinking it would tell me what it is but instead it was a button for optimization and it turned off the internet connection and turned of Bluetooth.
adb is enabled on the Fire TV Stick but I have no Internet Connection.
How am i going to communicate to the device so i can connect it to the internet or enable Bluetooth.
Click to expand...
Click to collapse
Try this.
You should e able to navigate the menus and re-enable bluetooth to get the remote working again
Or the bt should re-enable when you restart.
Dude360 said:
You should e able to navigate the menus and re-enable bluetooth to get the remote working again
Click to expand...
Click to collapse
How can i use adb without an internet connection?
ldeveraux said:
Or the bt should re-enable when you restart.
Click to expand...
Click to collapse
I have restarted the Fire TV Stick by plugging it out of the socket and plugging it back in.
When it start it says Loading Home... and in the background it does not warn me that there is no internet connection. Firestarter then starts and then the screen saver of images starts.
Are you rooted?
If you are try connecting to adb through USB and
Code:
su
svc wifi enable
or
Code:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='wifi_on';
(You might have to ls and cd around to make sure that that path is correct)
If not rooted try:
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb shell input keyevent xx & adb shell input keyevent xx...
And change the xx to the keyevents for the button presses to access the wifi enable button, my stick is packed away at the minute so can't jot them down.
Once you've got wifi going, adb in and do the button presses to turn bluetooth back on.
Dude360 said:
Are you rooted?
If you are try connecting to adb through USB and
Code:
su
svc wifi enable
or
Code:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='wifi_on';
(You might have to ls and cd around to make sure that that path is correct)
If not rooted try:
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb shell input keyevent xx & adb shell input keyevent xx...
And change the xx to the keyevents for the button presses to access the wifi enable button, my stick is packed away at the minute so can't jot them down.
Once you've got wifi going, adb in and do the button presses to turn bluetooth back on.
Click to expand...
Click to collapse
My device is not rooted.
I pasted the command : adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
it says error: device not found
what do you mean by If you are try connecting to adb through USB
b25439612 said:
My device is not rooted.
I pasted the command : adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
it says error: device not found
what do you mean by If you are try connecting to adb through USB
Click to expand...
Click to collapse
https://developer.amazon.com/public/solutions/devices/fire-tv/docs/connecting-adb-over-usb
Dude360 said:
https://developer.amazon.com/public/solutions/devices/fire-tv/docs/connecting-adb-over-usb
Click to expand...
Click to collapse
I ran the following commands:
adb kill-server
adb start-server
adb devices
For the devices command it says "List of devices attached" and nothing else.
for set number 1
1. Connect your Fire TV device to the USB port on your development computer.
i cannot connect my device to the USB port of my laptop.
This is what my Fire TV Stick looks like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
b25439612 said:
I ran the following commands:
adb kill-server
adb start-server
adb devices
For the devices command it says "List of devices attached" and nothing else.
for set number 1
1. Connect your Fire TV device to the USB port on your development computer.
i cannot connect my device to the USB port of my laptop.
This is what my Fire TV Stick looks like.
Click to expand...
Click to collapse
you need one of these
http://www.aftvnews.com/how-to-conn...-to-a-rooted-fire-tv-stick-with-an-otg-cable/
mezdev said:
you need one of these
http://www.aftvnews.com/how-to-conn...-to-a-rooted-fire-tv-stick-with-an-otg-cable/
Click to expand...
Click to collapse
This would definitely help...
You also can do it using the USB cable that came with the fire stick. This is the USB cable that you also use to power it.
Unplug Stick from TV.
Plug in USB Cable to Stick
Plug in other end of USB cable into Laptop
Install Fire TV Drivers and ensure they are installed correctly (google it)
Open CMD
Run adb devices, if drivers are installed correctly continue from a couple of posts up.
listen to Dude360 he defininitly knows more than me
I plugged the Fire TV Stick into the laptop but it said AFTM driver not found.
Thank you so much i have manage to fix the internet and Bluetooth connection. My device is now back to normal after a fer hours messing around. I thought this problem would of not been fixable i was wrong. I really appreciate the help. Now i have learnt how to use my laptop with my Fire TV Stick with a USB port it will be much easier to install app. Am i able to root my device by using any software? if not what can i do to my Fire TV Stick whilst using a USB port?
b25439612 said:
Thank you so much i have manage to fix the internet and Bluetooth connection. My device is now back to normal after a fer hours messing around. I thought this problem would of not been fixable i was wrong. I really appreciate the help. Now i have learnt how to use my laptop with my Fire TV Stick with a USB port it will be much easier to install app. Am i able to root my device by using any software? if not what can i do to my Fire TV Stick whilst using a USB port?
Click to expand...
Click to collapse
What precisely fixed your issue? It was a bit obscure, so it would help in the future to know!
ldeveraux said:
What precisely fixed your issue? It was a bit obscure, so it would help in the future to know!
Click to expand...
Click to collapse
I did what Dude360 said
1. Unplug Stick from TV.
2. Plug in USB Cable to Stick
3. Plug in other end of USB cable into Laptop
4. Install Fire TV Drivers and ensure they are installed correctly (google it)
5. Open CMD
6. Run adb devices, if drivers are installed correctly continue from a couple of posts up.
but at number 4 when i plugged the device into the laptop windows said it could not find any driver to install so i found a program that installs the drivers as well as a manager for the device. The program name is Mobomarket.
When the program had finished installing it showed me all the apps i had install so i knew that the device is now connected to the laptop correctly.
I then ran the commands that Dude360 provided me with
Code:
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb shell input keyevent xx & adb shell input keyevent xx...
but when I entered the command into the adb through cmd it gave me an error, so I used the other command instead
Code:
svc wifi enable
my device is not rooted but I gave it a try and when I entered it in it then said something like Svc wifi enable on/off so I typed in svc wifi enable on. WIFI was now enabled, but to use the remote I need Bluetooth to be on. So I search for some commands to enable Bluetooth, but they did not work, but then I remembered that I had Wukong TV Remote install onto the Fire TV Stick and on my phone so I then used the mouse to go back into the ES Task Manager and enabled Bluetooth again but if i had the setting.apk app install i probably could of enabled Bluetooth from there as well. If you do not have the Wukong TV Remote install you could just install it with MoboMarket or you can use try to use adb shell input keyevent xx to enable Bluetooth or WIFI .
b25439612 said:
I did what Dude360 said
1. Unplug Stick from TV.
2. Plug in USB Cable to Stick
3. Plug in other end of USB cable into Laptop
4. Install Fire TV Drivers and ensure they are installed correctly (google it)
5. Open CMD
6. Run adb devices, if drivers are installed correctly continue from a couple of posts up.
but at number 4 when i plugged the device into the laptop windows said it could not find any driver to install so i found a program that installs the drivers as well as a manager for the device. The program name is Mobomarket.
When the program had finished installing it showed me all the apps i had install so i knew that the device is now connected to the laptop correctly.
I then ran the commands that Dude360 provided me with
Code:
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb shell input keyevent xx & adb shell input keyevent xx...
but when I entered the command into the adb through cmd it gave me an error, so I used the other command instead
Code:
svc wifi enable
my device is not rooted but I gave it a try and when I entered it in it then said something like Svc wifi enable on/off so I typed in svc wifi enable on. WIFI was now enabled, but to use the remote I need Bluetooth to be on. So I search for some commands to enable Bluetooth, but they did not work, but then I remembered that I had Wukong TV Remote install onto the Fire TV Stick and on my phone so I then used the mouse to go back into the ES Task Manager and enabled Bluetooth again but if i had the setting.apk app install i probably could of enabled Bluetooth from there as well. If you do not have the Wukong TV Remote install you could just install it with MoboMarket or you can use try to use adb shell input keyevent xx to enable Bluetooth or WIFI .
Click to expand...
Click to collapse
This is really good reference, thanks for writing!
b25439612 said:
Thank you so much i have manage to fix the internet and Bluetooth connection. My device is now back to normal after a fer hours messing around. I thought this problem would of not been fixable i was wrong. I really appreciate the help. Now i have learnt how to use my laptop with my Fire TV Stick with a USB port it will be much easier to install app. Am i able to root my device by using any software? if not what can i do to my Fire TV Stick whilst using a USB port?
Click to expand...
Click to collapse
Glad you got it sorted
ADB etc is a pain when first starting out but definitely something everyone needs to learn when playing with any Android based device, it can be a life saver.
As for rooting etc, check the dev forum, theres all the tuts in there. Basically you just install Kingroot and click root.
In terms of what else you can do with adb USB, well, its mainly for development so....
Exact same issue, help please!
Hi
I have the same issue as the op had after installing the es task app. Firestick goes on and then home screen goes blank and not able to remotely control the stick through WiFi or bluetooth as they both must have been turned off .
I have adblink and the Firestick connected to it through usb. What do I do code wise? Bit of a novice though with this and any help would be much appreciated.
Dear Dude360, I have the same problem of b25439612 and I did connect the Fire TV to my laptop using the USB cable, installed Mobomarket and all needed drivers, and CMD is up and running and it listing my device correctly but non of the commands for rooted and not-rooted devices are running correctly. Can I have your advice and instructions please>

ADB working only via WiFi, with USB after su with command

Hello everyone
Recently (today exactlly) I tried restore/repair IMEI with method shown in this video (https://www.youtube.com/watch?v=y2lHFy7AciE).
IMEI is visible but after restarting D855 adb via USB no longer works. It's no longer visible in Devices Manager and of course I can't connect PC with phone anymore with cable.
ADB via WiFi works very well.
I found a way to make it work with cable after entering commands via WiFi. The commands I'm using to make it work:
Code:
adb connect #my_d855_ipadress
adb shell
su
setprop sys.usb.config diag,adb
The question is, what I have to modify in /system to make it work always without juggling commands with adb over wifi first.
If this question was asked, please let me know (I already used search).
I'm late to this thread, but luckily, as of Android 11 and up, adb works over wi-fi (without USB) on non-rooted Android phones via Developer options Wireless debugging switches.

How to properly close adb wifi connections.

Hi,
I noticed that the adb wifi daemon gets blocked by the first app that connects to it and another app can not connect to it until I toggle ADB Wifi manualy under fire tv 4k's device settings.
What is programaticaly the correct way of disconnecting from the adb daemon and free it up for other apps to connect?
adb disconnect doesn't seem to work.
Spamm00r said:
Hi,
I noticed that the adb wifi daemon gets blocked by the first app that connects to it and another app can not connect to it until I toggle ADB Wifi manualy under fire tv 4k's device settings.
What is programaticaly the correct way of disconnecting from the adb daemon and free it up for other apps to connect?
adb disconnect doesn't seem to work.
Click to expand...
Click to collapse
"adb disconnect" will not work for you because you are not using adb you are using its shell.
Type "exit" and your shell connection will die freeing it for other apps.
It doesn't work on Fire TV 4K. I have tried several tools, local ADB shell, remote adb shell, Tasker and "exit" command does not properly disconnect the adb session. I have to manually toggle adb access to free the adb shell for another application. It does not matter what application first starts the adb connection exit does not free the session. Only toggling the adb manually in Fire TV Device settings frees it up. Otherwise the adb session will remain active only for the tool that first established a adb session.
Its a huge problem, if the adb shell can only be used by one application and gets blocked by it all the time.
Why is exit not working on fire TV 4k?
So you are saying its a problem with Firestick 4k aka mantis. It is not, i know shell connection does not free itself and it has to be implemented in the app.
Try using any one of my app, Launcher Manager, Debloat Toolbox, Update Blocker (make sure you use the latest) they all leave the shell after getting the work done, and you can still use other apps. I think you might also have used "Mouse Toggle", which also leaves the shell after starting its services. So its not the devices problem, its how the shell is handled by the app.

Categories

Resources