[Q] ifconfig bnep0 (tethering blackberry via bluetooth) - G Tablet Q&A, Help & Troubleshooting

Found a thread where a member had success bluetooth tethering his phone to the viewsonic gtab using tnt lite.
I am using vegan 5.1 and have gotten part way there, but having issues with ifconfig.
The script recommended was:
pand --connect <remote BT device hex address>
ifconfig bnep0 down
dhcpcd bnep0
setprop net.dns1 8.8.8.8
I can get "pand" to connect to my blackberry, however when I run "ifconfig bnep0", it returns "no device found".
Does anyone know when devices are present in the vegan build, can someone confirm "bnep0" is present on the tnt build?

sdinet said:
Found a thread where a member had success bluetooth tethering his phone to the viewsonic gtab using tnt lite.
I am using vegan 5.1 and have gotten part way there, but having issues with ifconfig.
The script recommended was:
pand --connect <remote BT device hex address>
ifconfig bnep0 down
dhcpcd bnep0
setprop net.dns1 8.8.8.8
I can get "pand" to connect to my blackberry, however when I run "ifconfig bnep0", it returns "no device found".
Does anyone know when devices are present in the vegan build, can someone confirm "bnep0" is present on the tnt build?
Click to expand...
Click to collapse
I had posted on my success with this (Something I found elsewhere on XDA... Not my own).
Since then, I've had mixed results. I can't seem to make it connect reliably.
I've now using Vegan Gingerbread and Pershoots latest kernel.
Last night I tried the gscript script I posted and got errors. However if I go into terminal emulator and enter the commands manually I can make it connect.
A couple of commands that might help you diagnose your issues from terminal:
pand -l : Lists your connections. Should show bnep0 connected to your phone.
netcfg : I've read that ifconfig is somewhat limited in androids linux version. netcfg will show you more results.

running netcfg I see several networking devices, but bnep0 is not one of them. I am have tried TNT, vegantab beta 5.1 and the latest experimental version.
Did you install the driver/modules for bnep0 or have to do any configuration to interface with this device? Because it does not appear to be a stock device in any version of froyo/gingerbread I download.

sdinet said:
running netcfg I see several networking devices, but bnep0 is not one of them. I am have tried TNT, vegantab beta 5.1 and the latest experimental version.
Did you install the driver/modules for bnep0 or have to do any configuration to interface with this device? Because it does not appear to be a stock device in any version of froyo/gingerbread I download.
Click to expand...
Click to collapse
No, I did not have to install any modules. This worked for me both under TNTL 4.25, Vegan Ginger, and somewhat under TNTL5.0 (I had the BNEP0 entry, but had issues connecting to my phone).
I suspect bnep0 will not show up until you issue 'pand --connect <Phone ID>'
At that point the bluetooth networking device should show up.
You also need to be running some sort of Bluetooth DUN client on your phone. I've been doing this with my Droid X. I do not know the process for Blackberry's.
on my X, I've used Tethering for Root Users (unreliable for me on bluetooth... but does sometimes work) and PDANET (seems to work fine on bluetooth).

sdinet said:
Found a thread where a member had success bluetooth tethering his phone to the viewsonic gtab using tnt lite.
I am using vegan 5.1 and have gotten part way there, but having issues with ifconfig.
The script recommended was:
pand --connect <remote BT device hex address>
ifconfig bnep0 down
dhcpcd bnep0
setprop net.dns1 8.8.8.8
I can get "pand" to connect to my blackberry, however when I run "ifconfig bnep0", it returns "no device found".
Does anyone know when devices are present in the vegan build, can someone confirm "bnep0" is present on the tnt build?
Click to expand...
Click to collapse
From terminal, when i issue pand --connect xxxx, or even pand -l, it gives me error "Failed to open control socket: Operation no permitted"
Am I missing anything?

I stumbled upon this thread through Google, but I'm actually trying to do the same thing on a rooted Nook Color. Before you issue any of the commands, you will need to issue the command su to gain superuser access. The pand command should then work.
I can see on my phone that the Nook Color establishes a Bluetooth connection after the pand command. However, I'm having the same issue as the OP with regard to the ifconfig command.

-I have run hcitool scan and found my bluetooth device's address.
-My blackberry is paired with my android,, dial up networking enabled and PDAnet bluetooth DUN enabled.
-I can pair and tether to my blackberry using windows 7, but I need to put *99***1# for it to dial (like a dial up modem). How do I do this in linux, does pand support "dialing" commands?
There is a thread where a person used pppd and rcomm to dial and tether and are using the *99***1# dial requirement (google "tether blackberry 8830 rfcomm0" )
TIP: use "hcitool scan" to find the hex address of your bluetooth phone!

I am playing around with the following commands:
"sdptool search dun" (searchs for a bluetooth DUN device and shows which channel it's using!
rfcomm to bind and connect
and pppd to connect
I can get rfcomm to show connect via channel 6 and tty connected
any ideas how to use pppd to tether?

sdinet said:
I am playing around with the following commands:
"sdptool search dun" (searchs for a bluetooth DUN device and shows which channel it's using!
rfcomm to bind and connect
and pppd to connect
I can get rfcomm to show connect via channel 6 and tty connected
any ideas how to use pppd to tether?
Click to expand...
Click to collapse
how to bind rfcomm and connect?
any script?

dony71 said:
From terminal, when i issue pand --connect xxxx, or even pand -l, it gives me error "Failed to open control socket: Operation no permitted"
Am I missing anything?
Click to expand...
Click to collapse
Make sure you are root when doing this? (enter SU at terminal before issuing commands)

dony71 said:
how to bind rfcomm and connect?
any script?
Click to expand...
Click to collapse
See the script listed a few posts back. I do this with gscript lite (it does need SU permission).
This technique does work for, but its not terribly reliable.
I start my DUN server on my phone (PDANet on my DroidX works best).
I then run the script from gscript.
I usually get the 'device not found' error as quoted above.
I just keep re-running the script and eventually I'll get a 'can't assign requested address'. At this point I am actually connected and can browse through the phone.
My guess is that it takes some amount of time from the first 'pand --connect <>' to actually make the connection. That's why we keep getting the device not found error.
At some point in me running the script over and over, the connection goes live and assigns a DHCP address. The NEXT time I run it, the IP is already assigned, thus the can't assign requested address error.
I think if I (or someone who has more linux experience) scripted a somewhat smarter script that actually waited and/or checked for connection, this process could be improved on.
However, what little bit I use it, I am able to make it work.
FYI I have done this on Vegan 5.1, tnt 4.X series, and now I'm on Vegan Ginger with Pershoot kernel.

dony71 said:
From terminal, when i issue pand --connect xxxx, or even pand -l, it gives me error "Failed to open control socket: Operation no permitted"
Am I missing anything?
Click to expand...
Click to collapse
If this wasn't answered, I found I had to issue su root in the terminal before attempting this.

My issue right now is I can't get a bluetooth connection. I can pair the phone and tablet but it won't stay connected.
I still haven't seen any threads from anyone who has gotten anything but another Android phone to work. Even the reply a few up from this note indicated a DroidX not a BlackBerry.

Zaphod-Beeblebrox said:
No, I did not have to install any modules. This worked for me both under TNTL 4.25, Vegan Ginger, and somewhat under TNTL5.0 (I had the BNEP0 entry, but had issues connecting to my phone).
I suspect bnep0 will not show up until you issue 'pand --connect <Phone ID>'
At that point the bluetooth networking device should show up.
You also need to be running some sort of Bluetooth DUN client on your phone. I've been doing this with my Droid X. I do not know the process for Blackberry's.
on my X, I've used Tethering for Root Users (unreliable for me on bluetooth... but does sometimes work) and PDANET (seems to work fine on bluetooth).
Click to expand...
Click to collapse
zaphod,
i know why bluetooth DUN working on your site but not on everybody else
this is because you're using DroidX which support bluetooth PAN
blackberry is not supporting bluetooth PAN
that's why pand --connect <bluetooth address> never ever succeed
and android kernel will not create /dev/bnep0

read this link below
daemon for running bluetooth DUN is dund
daemon for running bluetooth PAN is pand
however none of gtab rom has dund command
https://sites.google.com/a/android.com/opensource/projects/bluetooth-faq

If someone can find away to make this in to a easy app to use they would be the tablet god! and I would happily pay $10 for the app

I am willing to pay $300 if you can program the app

I tried tethering the Samsung Code to the G Tablet following this video
On the GTab I'm able to pair it but not connect. I'm stuck, is it not possible to do it then. the phone is a Windows phone and it says:
Status: Device Setup finished. On the PC, connect Bloethooth PAN.
My GTab Bluethoot settings say Paired but not connected.
{
"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"
}

SimonDroid said:
I tried tethering the Samsung Code to the G Tablet following this video
On the GTab I'm able to pair it but not connect. I'm stuck, is it not possible to do it then. the phone is a Windows phone and it says:
Status: Device Setup finished. On the PC, connect Bloethooth PAN.
My GTab Bluethoot settings say Paired but not connected.
View attachment 560480
Click to expand...
Click to collapse
Had exactly the same problem with my Blackberry 9630. Looking for a fix to this!

Pinckneyite said:
Had exactly the same problem with my Blackberry 9630. Looking for a fix to this!
Click to expand...
Click to collapse
See the post by dony71 above. The blackberry doesn't support PAN, and the G Tablet doesn't support DUN. They both have to support at least one of the same profiles so that they can talk to one another..

Related

Nandroid and Ubuntu 10.10 working off SD

Original thread (Thanks Martin Rhodes):
http://forum.xda-developers.com/showthread.php?t=962023 (Join up original file parts with 7zip)
Instructions
Here are direct links to complete .img file and .sh file to be placed into ubuntu folder on root of SD card (Thanks Infinimint)
http://infinimod.com/projects/fire314/ubuntu-for-android/ubuntu.img
http://infinimod.com/projects/fire314/ubuntu-for-android/ubuntu.sh
Ingredients
ubuntu.img + ubuntu.sh (to be placed in a new folder named ubuntu on the root of your SD card)
Better Terminal Emulator (or other terminal emulator) + AndroidVNC (or other VNC client) from the market
To automate one click startup process via Better Terminal Emulator:
Preferences>Initial command:
Code:
export PATH=/data/local/bin:$PATH:.
su
cd sdcard/ubuntu
sh ubuntu.sh
Or type this for each new session in any terminal emulator:
Code:
su
cd sdcard/ubuntu
sh ubuntu.sh
It says .img loading for a bit. Seems like its not doing anything...it wont confirm when its loaded (about a minute in reality)...
Then I left Terminal running in background while it said it was still loading the img (but don't let it close via task killer or otherwise), held down the hardware menu or home button to switch programs for a bit and connected in via VNC (AndroidVNC)...
address: localhost, port: 5900, and password: ubuntu ... then hit connect (login details will be saved for next time)...
its working fine software keyboard etc and at good speed. In menu options select 24bit colour, local mouse, 1:1 scaling and Touchpad only to make navigating menus much easier.
Normal phone and Android functions should be fine.
Included applications include Firefox, Thunderbird, Openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled, SSH server, Gnash (GNU flash player for Firefox) among others.
Short press hardware menu key to get mouse options etc and longpress to bring up software keyboard (using Android VNC).
Type exit in android terminal emulator to shut down the ubuntu image.
I am using the Hyperdroid Rom off NAND, overclocked at 1.2ghz and a 16GB class 6 microsd (although it should be independent to all this... worth mentioning)
{
"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"
}
GIMP
Here is Open Office 3.2 on the HD2 using Smart Keyboard Pro from the market.
Edit 1. I Can use my bluetooth keyboard using this nandroid rom to edit open office etc
Edit 2. I can make full screen editing on my PC monitor/TV through connecting it via USB.
HD2 USB connected to a r3610 hanging behind a 42" HDTV connected through HDMI. Using my desktop keyboard and mouse. The Mouse scroll button and right click work just as they would on desktop!
Connect via usb to PC and enable usb debugging on your phone, needs android sdk installed on PC, then you run from pc command line
Code:
adb forward tcp:5900 tcp:5900
and you should be able to create a vnc conection from your pc (recommend TightVNC) to:
Code:
127.0.0.1:5900 [U]or type[/U] localhost:5900
and use password ubuntu displayed on your monitor or TV. Wireless solution.
In fact, you can use the same method to mirror the Android system using 'Droid VNC' server from the market.
Edit 3. Can also just connect straight to the device via VNC over WIFI but its slightly slower.
Type ifconfig into lxde terminal to find WIFI address, use your desktop VNC viewer (recommend TightVNC) and password ubuntu to log in.
Edit 4. Bluetooth mouse control with cursor now works as well (but its a bit jerky), works much better with 'Remote VNC Pro' from the market selecting use external mouse.
Edit 5. Can only seem to pair bluetooth mouse and keyboard input simultaneously using BlueInput.
Edit 6. To fit whole ubuntu display area onto HD2 screen (as above) or to otherwise change screen res via LXDE terminal:
Code:
export USER=root
vncserver -geometry 800x480
Restart AndroidVNC but connect to port 5901. You can automate this process by adding it to the end of the Better Terminal Emulator Initial Command script i.e
Code:
export PATH=/data/local/bin:$PATH:.
su
cd sdcard/ubuntu
sh ubuntu.sh
export USER=root
vncserver -geometry 800x480
Just remember to connect on port 5901 instead of 5900 using VNC subsequently.
Sound Great!!!!!!!!!! Be partient \m/ Rock On!!!!!!
does usb host works?
I haven't got USB host cables etc. I am just using localhost VNC or a Java based screen mirroring app over USB.
Was alot of fun today adding effects to my photos using GIMP and creating a presentation and exporting it to PDF, all on the train! Its like a UMPC now.
do you have sound? have you tried playing some video, or youtube? how's the performance in comparison with ubuntu v0.3 running from haret?
I made an usb hub for using since i've downloaded v0.3, will try this evening to see if it works with this build.
Sound is not possible in VNC chroots as of yet. The android YouTube or music player app is only a hardware click away though. Media is well served by android anyway IMO.
WIFI is shared with the android system but theres no cellular 3G connection (I wonder if a 3G unrestrictor application could work at some point though). Could use your 3G sim in a separate phone for MIFI/WIFI routering too.
Its never going to be preferable to a native port but its almost instant in responsiveness once apps have opened. It is very quick (on my device at least).
how long to boot img?
i use android 2.2
cpu overclock 1.2
.....why doesn't it boot to VNC??
sry for my bad english
Well, I gave this a try. I guess I'm doing something wrong. It ran through all of the commands without any pause... (which seemed odd) ... and I couldn't connect through VNC. Any way to troubleshoot this?
Edit: Changed to TyphooN CyanogenMod 7 rom and it worked fine. Thanks for the link
Danation said:
Well, I gave this a try. I guess I'm doing something wrong. It ran through all of the commands without any pause... (which seemed odd) ... and I couldn't connect through VNC. Any way to troubleshoot this?
Edit: Changed to TyphooN CyanogenMod 7 rom and it worked fine. Thanks for the link
Click to expand...
Click to collapse
i did id but when use moliza
can you use keyboard
i did id but when use moliza
can you use keyboard
Click to expand...
Click to collapse
Longpress the hardware menu (windows) button to use your android software keyboard. Or use a bluetooth keyboard if your ROM supports it.
had anybody success downsizing the img with uec-resize-image, i dont need 3.5GB...
edit: 2G is to small, choosed 2500M, worked fine
I will test this soon, I hope this will work great.
i used the ubuntu.img from this thread
made:
e2fsck -f ubuntu.img
uec-resize-img ubuntu.img 2500M (2G is too small)
put it in the root folder of the sd card
used the deboot from http://forum.xda-developers.com/showthread.php?t=1029390
and put in the root of the sdcard
and changed the section
losetup /dev/block/loop5 /sdcard/debian.img
to
losetup /dev/block/loop5 /sdcard/ubuntu.img
works really fine.
creates a debian folder but that could be also changed in the deboot file
and you can call the deboot file however you want, even bootubuntu.
really great thanks.
other links, that helped me:
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
http://forum.xda-developers.com/showthread.php?t=962023&highlight=uec-resize-image
http://forum.xda-developers.com/showthread.php?t=1029390
http://forum.xda-developers.com/archive/index.php/t-744236.html
H'm worked once. But now I get invalid argument when it comes to mounting the loop
I've tried to boot ubuntu from better terminal emulator pro, but it wont...
I've only this message:
*WARNING: If you have more than 255 apps installed on the SDCard, then mounting apps on the SDCard associate with an encrypted loop device, and there are only.
You have to go to Setting -> Manage Applications -> On SDCard, and move some a.
Please wait while booting ubuntu.img.. This can take some time...*
Does anyone can explain me why ubuntu dont boot after waiting for 30 min?
EDIT: It work now, it just don't say if the loading is OK. So I was waiting for nothing...
Links not working!! it says Time Out!
GuimbardePower said:
I've tried to boot ubuntu from better terminal emulator pro, but it wont...
I've only this message:
*WARNING: If you have more than 255 apps installed on the SDCard, then mounting apps on the SDCard associate with an encrypted loop device, and there are only.
You have to go to Setting -> Manage Applications -> On SDCard, and move some a.
Please wait while booting ubuntu.img.. This can take some time...*
Does anyone can explain me why ubuntu dont boot after waiting for 30 min?
EDIT: It work now, it just don't say if the loading is OK. So I was waiting for nothing...
Click to expand...
Click to collapse
For me the same first, but then I understood the way. I get the 800x480 res .. Great work, thanks. Now I'd like only know how to try ,if possible, the KDE desktop (I don't remember the way to launch it). A great BRAVO for your WORK.
how to run a usb host?
I'm having trouble downloading from the links in the top post - it's going very slow. Any chance of a torrent link?
works ok. only problem is that it is a bit slow. plus usb keyboard and mouse doesnt work. can you help me on that ?
Cool but what about Ubuntu 11.04?

[Tool] CleanTool Mac/Linux Port

This is a port of scrosler's CleanTool 2.1.1 . All credit to scrosler, nils, and everyone else I don't know that contributed to the work found herein. I'm just the script monkey that whipped up the Linux version.
YOU MUST HAVE THE LINUX ANDROID SDK INSTALLED TO USE THIS
If you can't figure out the Android SDK here are a few helpful links
http://developer.android.com/sdk/index.html
http://www.talkandroid.com/guides/developer/android-sdk-install-guide/#.TuaS3lxjgSM
So now that you have the SDK installed...
1) Unzip Cleantool_Linux_v1.zip
2) Open a command window, change directory into your Cleantool_Linux directory
3) Run ./cleantool.sh
{
"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"
}
Please post questions and findings in thread. I'll update this as often as I can.
Downloading now. I will test and report back! Fingers crossed
Update: Yes!!!! It works perfectly!!!! I am soooo happy! I can't thank you enough. I really do appreciate your help and scrosler's.
Now I need to find out how to get "wireless tether" to work. Any suggestions?
Sweet ! Now I just have to get my ADB fixed...
Yeah, I know right! I have been running Linux (ubuntu from 2008- Feb 2011, then switched to Linux Mint Debian Edition from Feb 2011-now) all of my computers for years now and every time I get ready to root and mess with my phone, I have to go through Windows inside of Virtualbox or find a way to run the rooting script through a terminal and ADB. Fortunately, MrSmith was here to save the day!!!
On a different note, I was able to install both "wireless tether" and "wifi tether" and get both apps to run and broadcast the wifi signal. When I try to connect to it on my laptop, it tries but then fails with "no connection". Not sure what the problem is yet, but I am playing with "wifi tether" and it's menu's to see if I can find a solution. It has the options for you to "Change your Device profile" which I am hoping might help. (probably not, but it used to help on my old droid x)
Looks good man!
smartbusiness2003 said:
Yeah, I know right! I have been running Linux (ubuntu from 2008- Feb 2011, then switched to Linux Mint Debian Edition from Feb 2011-now) all of my computers for years now and every time I get ready to root and mess with my phone, I have to go through Windows inside of Virtualbox or find a way to run the rooting script through a terminal and ADB. Fortunately, MrSmith was here to save the day!!!
On a different note, I was able to install both "wireless tether" and "wifi tether" and get both apps to run and broadcast the wifi signal. When I try to connect to it on my laptop, it tries but then fails with "no connection". Not sure what the problem is yet, but I am playing with "wifi tether" and it's menu's to see if I can find a solution. It has the options for you to "Change your Device profile" which I am hoping might help. (probably not, but it used to help on my old droid x)
Click to expand...
Click to collapse
I keep meaning to try this. I need to re-temp root tonight, then I'll try out the tether products as well. Did you freeze tetheringguard?
Just an FYI, I linked to this thread as the "Official" Linux Port
Much appreciated although I'd hate to see the unofficial one.. haha
MrSmith317 said:
Much appreciated although I'd hate to see the unofficial one.. haha
Click to expand...
Click to collapse
That made me LOL for real!
MrSmith317 said:
I keep meaning to try this. I need to re-temp root tonight, then I'll try out the tether products as well. Did you freeze tetheringguard?
Click to expand...
Click to collapse
I tried to get it to work for about 3 hours without freezing tetheringguard. Then as my research continued, I noticed that everytime I tried the wifi tether app, the tetheringguard service/app would be running when I checked my system monitor. So I disabled it by adding it to the script. I did not disable mobile hotspot, but maybe I should. I tried to get it to work for about another 3 hours after disabling tetheringguard and still NO GO. But as to not mis-lead you, the wifi tether app actually successfully broadcasts the wifi signal, the problem is that when I try to connect to it using my laptop, it connects with a "no connection" (red x on ethernet symbol) and then immediately disconnects. The wifi tether app doesn't show that the laptop ever connected.
Here are some strange things:
1. scrosler PM'd me and said that he successfully got the newest pre alpha build (assuming it is wifi_tether_v3_1-pre108.apk) to work last night. He said that the only things that he changed in the settings is checking the MSS Clamping and Routing Fix. He said that he PM'd me using the tethering wifi!!! aghhhhhh
2. why does my linux nm applet show the ssid signal from wifi tether as having both the wireless icon and the Ethernet jack icon?
3. why does it connect at all to the Ethernet jack icon, even though it immediately says no connection?
4. I would have to say that the behavior is similar to what happens when you try to run the Mobile Hotspot app on the rezound without paying for the service. When you click it, it spins the "waiting wheel" and then pops up the message about calling Verizon to get that feature.
I hope all this helps us to somehow figure out what the problem is. I am very frustrated at how easy scrosler said his works!!!!
smartbusiness2003 said:
Here are some strange things:
1. scrosler PM'd me and said that he successfully got the newest pre alpha build (assuming it is wifi_tether_v3_1-pre108.apk) to work last night. He said that the only things that he changed in the settings is checking the MSS Clamping and Routing Fix. He said that he PM'd me using the tethering wifi!!! aghhhhhh
2. why does my linux nm applet show the ssid signal from wifi tether as having both the wireless icon and the Ethernet jack icon?
3. why does it connect at all to the Ethernet jack icon, even though it immediately says no connection?
4. I would have to say that the behavior is similar to what happens when you try to run the Mobile Hotspot app on the rezound without paying for the service. When you click it, it spins the "waiting wheel" and then pops up the message about calling Verizon to get that feature.
I hope all this helps us to somehow figure out what the problem is. I am very frustrated at how easy scrosler said his works!!!!
Click to expand...
Click to collapse
Its time to try connecting to another device.
Do you have any other WiFi devices you can try with?
Had to buy a Christmas tree last night so I was out of it. I'll get on this tonight. I run Ubuntu at home (as well as Win XP an Win7) so I can test this out from a bunch of devices. I already have tetheringguard and hotspot disabled because I'm never paying them for the privilege of using my data connection the way they want me to. I do have wifi tether installed already (3.1 beta 7) so I'll also play around with scripting the temp root locally while I'm at work just to see if i can get it to work...
And they pay me for this ...
scrosler said:
Its time to try connecting to another device.
Do you have any other WiFi devices you can try with?
Click to expand...
Click to collapse
Yes, I will try that tonight. I thought about trying to connect my PS3 to it, but haven't tried it yet. I will report back tonight.
MrSmith317 said:
Had to buy a Christmas tree last night so I was out of it. I'll get on this tonight. I run Ubuntu at home (as well as Win XP an Win7) so I can test this out from a bunch of devices. I already have tetheringguard and hotspot disabled because I'm never paying them for the privilege of using my data connection the way they want me to. I do have wifi tether installed already (3.1 beta 7) so I'll also play around with scripting the temp root locally while I'm at work just to see if i can get it to work...
And they pay me for this ...
Click to expand...
Click to collapse
That will be awesome! I feel the exact same way about the "privilege" of something I already pay unlimited for! (we have to be careful with our comments about paying Verizon for their Mobile Hotspot feature, because scrosler told me that he DOES PAY for it!!! And we wouldn't want to upset him )
Between the three of us, I'm sure we can get it to work.
Really!!! You lucky dog...
smartbusiness2003 said:
Yes, I will try that tonight. I thought about trying to connect my PS3 to it, but haven't tried it yet. I will report back tonight.
Click to expand...
Click to collapse
Just a heads up I don't know if the PS3 supports Ad-Hoc networking. I've never tried with the PS3 or Xbox 360 but I know it works for all of my laptops.
I'm having problems getting this working on my Macbook Pro with Lion. I've tried both the Mac Android SDK and the Linux one. I was able to get the Mac SDK to run and install the extra programs the links you posted suggest, but executing your script fails. As I recall it said something like failed to execute binary. Where do I need to put your script in relation to the SDK? I was able to get temp root and cleean by installing the Windows version on my computer at work, but it would be nice to be able to regain temp root when I'm travelling with the laptop. Thanks for your work on this.
Jeff
jwjohnson said:
I'm having problems getting this working on my Macbook Pro with Lion. I've tried both the Mac Android SDK and the Linux one. I was able to get the Mac SDK to run and install the extra programs the links you posted suggest, but executing your script fails. As I recall it said something like failed to execute binary. Where do I need to put your script in relation to the SDK? I was able to get temp root and cleean by installing the Windows version on my computer at work, but it would be nice to be able to regain temp root when I'm travelling with the laptop. Thanks for your work on this.
Jeff
Click to expand...
Click to collapse
Try this: copy ADB from your installed SDK into the Cleantool folder. If you can post the errors/screenshot because it's always easier to troubleshoot that way.
Success
Thanks. That seems to work.
CleanTOOL 2.1.1 For the HTC Rezound by Scott (scrosler)
www.scottsroms.com
Obtaining Temp Root!
This may take a minute.
Please be patient...
Password:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rm failed for /data/local/tmp/wpa_supplicant, Is a directory
2249 KB/s (23056 bytes in 0.010s)
[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.
[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.
[+] Found a GingerBread ! 0x00017118
[*] Scooting ...
[*] Sending 149 zerglings ...
[+] Zerglings found a way to enter ! 0x10
[+] Overseer found a path ! 0x000171e0
[*] Sending 149 zerglings ...
[+] Zerglings caused crash (good news): 0x401219c4 0x0054
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd19fd3 0xafd3a837
[*] Popping 24 more zerglings
[*] Sending 173 zerglings ...
[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!
Halfway there!
Re-mounting your external SD card
remount succeeded
5669 KB/s (1994516 bytes in 0.343s)
3759 KB/s (22228 bytes in 0.005s)
5363 KB/s (785801 bytes in 0.143s)
pkg: /data/local/tmp/superuser.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
Now Temp Rooted!
Press Enter to Continue...
Click to expand...
Click to collapse
Superuser was already installed from the previous temp root. That's the only error I see. I tested by starting WiFi Tether and was able to connect so I think I'm all set. Thanks for your work again.
Jeff
No problem. Glad I could help
Update!
I tested the wifi tether app on other devices and it WORKS!!!!!!!!!! The problem is with my laptop so I will figure it out. Thanks guys!!!!!

BusyDrop 1.02: SSH & Busybox for the Fire TV

{
"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"
}
SSH for the Rooted Fire TV
Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers.
So what? Why do I want this on my Fire TV?
Right now, the only means of communicating with your Fire TV is through ADB, which is fine, but has limitations, mainly due to the fact that adb does not run as root.
SSH does, so those limits are removed. Using scp or even better sftp you can easily copy files to and from any area on your Fire TV, issue commands via ssh and more.
Details are HEREhttp://www.jocala.com/busydrop.html
reserved
Note: If you are an adbFire user you already have this. Just select "Install SSH" from the root menu.
Note: This is probably not compatible with other busybox installs. They do vary depending on compile-time options. Please uninstall Google Play busybox installs or other variants before installing BusyPlay!
Nice. I look forward to trying this out soon.
SSH helper apps
Canyaya' pid='1817081' dateline='1413750441 said:
Hi Jocala, thank you for all your work. When you install the sftp server, what is the username and password?
Click to expand...
Click to collapse
This is a cross-post from another forum. I thought it might be useful here.
root/password -- the userid should default to root
The command-line "ssh "helper" apps are:
Manually start the server with a password (no spaces)
Code:
sshstart
Usage: sshstart password -- arguments: the password you want to use
Kill sshd immediately
Code:
sshstop
Usage: sshstop -- no arguments, immediately kills ssh server
Show sshd status
Code:
sshstatus
Usage: sshstatus -- no arguments, gives ssh server status
Create sshd startup script with given password
Code:
sshinit
Usage: sshinit password -- arguments: the password you want to use (no spaces)
this program creates the file /etc/init.d/02sshd that starts sshd at boot
Delete sshd startup at boot script
Code:
sshboot
Usage: sshboot -- arguments: rm
Typing sshboot rm deletes the file /etc/init.d/02sshd that starts sshd at boot
Should i uninstall my playstore busybox before installing this?
jmandawg said:
Should i uninstall my playstore busybox before installing this?
Click to expand...
Click to collapse
Yes.
So I gave this a try following your instructions as it looked like it would work great for backing up cwm recovery files to my PC. I followed all the instructions installing the zip through cwm recovery and rebooting but when I click on ssh on adbfire 1.11 it says fatal error connection refused. Any idea what I might have done wrong or how to get it working. I have installed putty on my computer and I tried to connect directly through putty as well but that wouldn't work either. How can I test if the ssh server is working or not?
**edit: I got it to connect to putty and winSCP after uninstalling the busybox I had installed and installing the busybox through adbfire 1.11 I can see this being a very powerful and useful tool for the Fire TV. Very nice work jocala. I still can't see the cwm recovery files I would like to back-up though. Shouldn't they be in the /storage/emulated/legacy/clockworkmod folder unless I am missing something?
rotor00ter said:
So I gave this a try following your instructions as it looked like it would work great for backing up cwm recovery files to my PC. I followed all the instructions installing the zip through cwm recovery and rebooting but when I click on ssh on adbfire 1.11 it says fatal error connection refused. Any idea what I might have done wrong or how to get it working. I have installed putty on my computer and I tried to connect directly through putty as well but that wouldn't work either. How can I test if the ssh server is working or not?
**edit: I got it to connect to putty and winSCP after uninstalling the busybox I had installed and installing the busybox through adbfire 1.11 I can see this being a very powerful and useful tool for the Fire TV. Very nice work jocala. I still can't see the cwm recovery files I would like to back-up though. Shouldn't they be in the /storage/emulated/legacy/clockworkmod folder unless I am missing something?
Click to expand...
Click to collapse
I've added notes concerning Google Play busybox installs and adbFire.
/storage/emulated/legacy (/sdcard) is where my clockworkmod directory is. I haven't done a backup, so mine is empty.
Does this allow using keys?
{ParanoiA} said:
Does this allow using keys?
Click to expand...
Click to collapse
It should, although I haven't tried. A new startup script would be needed, sshstart is hardcoded to startup using a password.
BusyDrop 1.01 released
Changelog: update to BusyBox v1.22.1 (2014-10-26 17:14:21 EDT)
This setup is awesome for transferring files to and from the Fire TV. Much better and easier than adb once you get it set up properly. I have been using this with WinSCP and it has worked perfectly.
thank you very much for this. im loving it.
Is there a benefit to using this over an app like Servers Ultimate?
hazard666 said:
Is there a benefit to using this over an app like Servers Ultimate?
Click to expand...
Click to collapse
Obviously I think so or I wouldn't have taken the time to develop it. Are you a user of this other app?
jocala said:
Obviously I think so or I wouldn't have taken the time to develop it. I hope you don't want to debate the merits of my project against another in my thread. That wouldn't be very nice.
Click to expand...
Click to collapse
Or it's a completely valid question and I was wanting some input, but if you have issue with answering then ok.
Edit: What difference does it make whether I am or not a user of another app? I was asking if there is a benefit to using your app since I already have an established solution. Nevermind though.
hazard666 said:
Or it's a completely valid question and I was wanting some input, but if you have issue with answering then ok.
Edit: What difference does it make whether I am or not a user of another app? I was asking if there is a benefit to using your app since I already have an established solution. Nevermind though.
Click to expand...
Click to collapse
My apologies, rapid post at the end of a long bad day. I regretted my snappish response as soon as I hit enter, and edited, but not soon enough.
jocala said:
My apologies, rapid post at the end of a long bad day. I regretted my snappish response as soon as I hit enter, and edited, but not soon enough.
Click to expand...
Click to collapse
It's quite alright. I'm not too happy with my current setup so I will be trying out BusyDrop.
hazard666 said:
It's quite alright. I'm not too happy with my current setup so I will be trying out BusyDrop.
Click to expand...
Click to collapse
If you have any questions I'll be more than happy to assist. Now I'm going to bed before I kick my dog or do something else that will embarrass me tomorrow.
+1 for being able to ssh in using a key and disabling password logins. It makes it easy to log in from putty and other ssh clients, more secure and I don't have to record one more password.

[APP][NO ROOT] ADB on Boot | Run adb commands at boot automatically

How to use?
1. Enable ADB Debugging from Fire TV settings
2. In this app, add the adb commands that you want to execute on every boot
3. Set whether you want to display a Toast message on completion of command execution
4. Test the script if you want by pressing "Test Script" button.
5. Apply the configs by pressing the apply button.
Support the work by purchasing it from here
Note: when you run this app for the first time, you should press the test script button, so that app can acquire adb permission. If you don't do this, then the adb permission prompt would appear when you boot the stick for the first time, after installing and opening this app.
That's all
Also note that, the commands you'll write here should be without "adb shell" prefix.
For example,
you have to write
echo "Hello World"
and not
adb shell echo "Hello World"
{
"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"
}
(or multiple commands separated by semi-colon ' ; ' )
Awesome thanks!
Is it possible to combine commands with ; or add a delay?
Spamm00r said:
Awesome thanks!
Is it possible to combine commands with ; or add a delay?
Click to expand...
Click to collapse
Yes you can add multiple commands with ; and add a delay using sleep command.
Example,
sleep 3; echo "I'm here after 3 seconds";
Shaikh Amaan FM said:
Yes you can add multiple commands with ; and add a delay using sleep command.
Example,
sleep 3; echo "I'm here after 3 seconds";
Click to expand...
Click to collapse
Perfect!
Did you test wether you can use this app to issue "adb tcpip 5555" command at bot so that the adb wifi tasker function can do the rest? Thatway we would have adb shell on a non rooted device all the time.
Spamm00r said:
Perfect!
Click to expand...
Click to collapse
let me know if you are able to get your work done
Spamm00r said:
Perfect!
Did you test wether you can use this app to issue "adb tcpip 5555" command at bot so that the adb wifi tasker function can do the rest? Thatway we would have adb shell on a non rooted device all the time.
Click to expand...
Click to collapse
The issue with Tasker is something else as far as I can see. May be because Tasker have subscription checking thing in it and it needs Google Libraries which are not available in fire os.
So I finally was able to test this. The app does work ok.
I'd like to be able to execute these scripts not only at boot. For example like when you press test script, I'd like to be able to run the app anytime I want the script to execute.
Can you please also add an setting that allows the scripts to be executed by just opening the app, so that you are not limited to run these scripts only at boot or when you manually press " test script". So we could use these scripts anytime we run this app for example via Tasker.
Why does the shell execution work with this app but not with taskers adb shell?
Spamm00r said:
So I finally was able to test this. The app does work ok.
I'd like to be able to execute these scripts not only at boot. For example like when you press test script, I'd like to be able to run the app anytime I want the script to execute.
Can you please also add an setting that allows the scripts to be executed by just opening the app, so that you are not limited to run these scripts only at boot or when you manually press " test script". So we could use these scripts anytime we run this app for example via Tasker.
Why does the shell execution work with this app but not with taskers adb shell?
Click to expand...
Click to collapse
Are you able to use Tasker in the stick?
I tried in my device and it won't even show a simple Toast and possible reason as I said is that Tasker have subscription checking thing in it and that requires Play services which are missing in Fire OS. So unless you have direct purchased version of Tasker or unless you install Play services in it, I don't see any good way of running Tasker in it.
Shaikh Amaan FM said:
Are you able to use Tasker in the stick?
I tried in my device and it won't even show a simple Toast and possible reason as I said is that Tasker have subscription checking thing in it and that requires Play services which are missing in Fire OS. So unless you have direct purchased version of Tasker or unless you install Play services in it, I don't see any good way of running Tasker in it.
Click to expand...
Click to collapse
Yes I have Tasker running on FireTV 4K without play service. You can download an apk with 7 day trial directly from the tasker website and it works without playstore. If it has issues with subscription or trial expired, it will tell so and refuse to execute some advanced features.
I can run intents and stuff with tasker just fine, but as Fire TV has no Accessibility service installed, you can not use most of the nice features and plugins of Tasker. Issuing shell commands for example does not work. so I can not issue any keyinput with tasker. That's why I have to rely on your app.
With your app however I was able to completely avoid tasker for now.
I used Tasker to run an intent that opens a youtube link. Now I run this intent from your app. Also i can now issue keyinput with your app. With Tasker that was not possible due to missing accessibility service, which Tasker relies on.
How is your app able to issue keyinput via shell, while tasker can not due to mssing accessibility services? Maybe you can make your app more advanced and allow it to be used as a proxy for issuing shell keyinput on devices without accessibility service. This is the one single reason why I wish i had root on this device. Just to have accessibility service back, which Amazon removed in the recent firmware versions.
I use input to press home key, which makes Fire TV switch the HDMI input of the TV to itself. Now Whenever I start the tv, Fire TV automatically switches input to itself and starts playing youtube.
What I now also want is to be able to use your app also after boot, as I need to switch input and issue keyinput after boot while running several times. Thats why I asked you to add an option to runn it also after boot.
Because if I press "test script" keyinput also works with your app. But not with Tasker.
Will it work, if I open your app with intent "android.intent.action.MAIN"? Will it execute the shell script like when at boot? if yes, then I will try to run this intent from Tasker.
Also It would be good if it was possible to have multiple scripts that you can execute so that you are not stuck with one single script. For example allow to save script a, b, c etc, and then have an intent to be ebale to run a specific script a, b or c. etc..
Your script is very helpful and solves a big problems that amazon has introduced by cutting accesisbility service. Without your app, fire tv would be so useless for me. Thanks for releasing it.
Spamm00r said:
What I now also want is to be able to use your app also after boot, as I need to switch input and issue keyinput after boot while running several times. Thats why I asked you to add an option to runn it also after boot.
Because if I press "test script" keyinput also works with your app. But not with Tasker.
Click to expand...
Click to collapse
Yes this can be done, but i'm busy in something else, so it might take a while
Spamm00r said:
Also It would be good if it was possible to have multiple scripts that you can execute so that you are not stuck with one single script.
Click to expand...
Click to collapse
For having multiple scripts, currently I think you can do it by creating different bash files containing scripts and store them somewhere in Fire Device's storage and then execute them (but probably you'll face problem in giving execute permission to those bash files), this process can be made easier but as I said would take time.
Shaikh Amaan FM said:
Yes this can be done, but i'm busy in something else, so it might take a while
For having multiple scripts, currently I think you can do it by creating different bash files containing scripts and store them somewhere in Fire Device's storage and then execute them (but probably you'll face problem in giving execute permission to those bash files), this process can be made easier but as I said would take time.
Click to expand...
Click to collapse
OK no problem. Take your time.
I don't think that you can execute scripts without root. How does your app execute these scripts without root permissions?
Also sometimes the script is not executed, not at boot and not when I press "test script". I think maybe adb is being blocked by some other app? I have to look into why this happens.
Spamm00r said:
OK no problem. Take your time.
I don't think that you can execute scripts without root. How does your app execute these scripts without root permissions?
Also sometimes the script is not executed, not at boot and not when I press "test script". I think maybe adb is being blocked by some other app? I have to look into why this happens.
Click to expand...
Click to collapse
Which fire device do you have and what's the Fire OS version in it. App doesn't works in Fire OS 5, in Fire OS 6, you have to make sure that no other device/service is connected to ADB, In Fire OS 7, I didn't saw any issue
Shaikh Amaan FM said:
Which fire device do you have and what's the Fire OS version in it. App doesn't works in Fire OS 5, in Fire OS 6, you have to make sure that no other device/service is connected to ADB, In Fire OS 7, I didn't saw any issue
Click to expand...
Click to collapse
I have Fire TV Stick 4k and OS is 6. I figured out why it sometimes doe snot work. it is because ADB is occupied by another app. If I disable and enable adb debugging and thatway break any exisiting connections, it works fine. I just have to make sure that no other app blocks adb, as apparently only 1 app can be connected to adb at a time.
That might be another point of improvement, to make sure that adb is not left occupied.
Spamm00r said:
I have Fire TV Stick 4k and OS is 6. I figured out why it sometimes doe snot work. it is because ADB is occupied by another app. If I disable and enable adb debugging and thatway break any exisiting connections, it works fine. I just have to make sure that no other app blocks adb, as apparently only 1 app can be connected to adb at a time.
That might be another point of improvement, to make sure that adb is not left occupied.
Click to expand...
Click to collapse
In fire os 7, there's no such issue. But yeah in fire os 6 I have tested, only one service or device can connect to adb at a time, and I don't think there's anything I can do about it
Shaikh Amaan FM said:
In fire os 7, there's no such issue. But yeah in fire os 6 I have tested, only one service or device can connect to adb at a time, and I don't think there's anything I can do about it
Click to expand...
Click to collapse
My exact Fire OS is: Fire OS 6.2.8.1
WHich Fire TV Stick has OS 7?
Being able to connect multiple clients to adb is a big step forward. Right now I have to manually toggle adb access to allow other tools to connect to adb. This is a big problem.
Spamm00r said:
My exact Fire OS is: Fire OS 6.2.8.1
WHich Fire TV Stick has OS 7?
Being able to connect multiple clients to adb is a big step forward. Right now I have to manually toggle adb access to allow other tools to connect to adb. This is a big problem.
Click to expand...
Click to collapse
I have Fire Stick 3rd gen.
New devices including Fire Stick Lite are running Fire OS 7.x and I can connect multiple different devices/services to adb at the same time without any issue.
Curious that the Lite has newer Fire OS Version than man other devices. In this case it would be desirable to update, but until then how can make sure that your app or any other app disconnects form adb and gives it free to use for other applications.
Right now I have to manually go to developer settings and toggle ADB off and on to make it available to other apps. Otherwise, adb will be occupied by the last app that used it.
Is it possible to automate this? Adding "disconnect" to the shell command didn't help.
Spamm00r said:
Curious that the Lite has newer Fire OS Version than man other devices. In this case it would be desirable to update, but until then how can make sure that your app or any other app disconnects form adb and gives it free to use for other applications.
Right now I have to manually go to developer settings and toggle ADB off and on to make it available to other apps. Otherwise, adb will be occupied by the last app that used it.
Is it possible to automate this? Adding "disconnect" to the shell command didn't help.
Click to expand...
Click to collapse
Look for force stopping the application through adb commands.
I have managed to make the app start also after boot via Taskers app action. But the script is only executed after manually pressing the "test Script" button.
What exact intent action is executed by pressing the "Test Script" button? From the xml file I can only see "com.asfmapps.firetv_adbonboot.MainActivity".
I have also tried to send android.intent.action.BOOT_COMPLETED to your app to make it think it just started up but that also does not make your app to execute the script automatically.
What intent is your app listening for to execute the script? And ho do I issue it via shell or tasker?
Hi,
I'm trying to echo to sys/class/display/mode so I can change the resolution on boot.
When I test the script it shows 'permission denied'. It's an android box so it won't work?

Is it possible to connect to scrcpy through ethernet connection only without: rooting the phone, using wifi or having a usb connection to pc

Hello,
I got the following phone:
Moto G Pure | 2021 | 2-Day battery | Unlocked | Made for US by Motorola | 3/32GB | 13MP Camera | Deep Indigo
https://www.amazon.com/gp/product/B09BTB5MKT/
The phone charger port is usb c. It has an Android 11 installed.
Assumptions:
-I got a 2-1 dongle that allows to have an ethernet connection and charger at the same time.
-Phone is not rooted.
-Wifi is disabled (since I'm using ethernet) so assume no adb over wifi setting can be used.
-Phone charger is not connected to the pc usb so assume no adb over usb setting can be used.
How can I enable adb over ethernet so I could launch scrcpy on the same local network to access the phone screen/sending adb commands through command line as needed?
I found a similar post about this from 2018 on xda: https://forum.xda-developers.com/t/scrcpy-connection-help.3791716/
OP ended up ending writing the following update:
EDIT - problem solved: adb over ethernet instead of usb or wifi.
connected my android (galaxy view) to my network (ethernet) using the otg usb port and now, combined with the "adb over ethernet" app from the play store that i just discovered, the adb connection between my android and pc functions just as if they were connected by a usb cable, no more having to first connect the usb to get wifi to kick in, only to have to repeat this process again and again.
But when I tried to download "adb over ethernet" app, I noticed that it says that it requires root so I can't really use it?
A more recent comment on that post from 2022, someone said:
For others who find this in a search, you can get scrcpy to open up (and then kill the console to get it out of the way) on Android up to Android 11 using the "--tcpip=192.168.0.2:5555" option, but there's new capabilities in Android 12 now that eliminate totally the need for the initial USB connection.
In Android 12 you can also use scrcpy completely over Wi-Fi without first establishing the adb connection over USB like you need to do with Android 11.
There are new commands in the Android 12 Developer options to enable everything to be done over Wi-Fi which I've been using since May.
So it seems like the first option here (OP) is to root your phone and the second option (comment) is to upgrade your Android OS to version 12, which eliminates the need for a USB cable to enable adb debugging, but is there a way I could be able to connect to scrcpy on my Android 11 through the ethernet connection only without upgrading the Android version or rooting the phone?
When I currently try to run it this is the error I get (when only ethernet is connected, no wifi or usb connection to pc):
C:\scrcpy>scrcpy.exe
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
ERROR: Could not find any ADB device
ERROR: Server connection failed
Alternatively, can I enable adb over wifi in Android 11 so I could connect through scrpcy and without worrying that I might need to approve adb debugging in the small popup window that shows on the phone each time (or that shows periodically. In other words can that message be completely eliminated without rooting?). I do see under settings, developer options a setting called "Wireless debugging" (in addition to existing setting "USB debugging" which I had enabled when I used a direct USB connection the pc). So after enabling Wireless debugging, it asked me if I want to allow ADB debugging every time when my phone is connected to my local wifi network, I said yes. Now when I run scrcpy the following way using the local ip of my phone that was received by the wifi, I get the following error (IP was censored - this is only when wifi is connected, no usb connection to pc):
C:\scrcpy>scrcpy.exe --tcpip=192.168.X.X -b 2M -m 1024 --max-fps=15 --legacy-paste
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
INFO: Connecting to 192.168.X.X:5555...
cannot connect to 192.168.X.X:5555: No connection could be made because the target machine actively refused it. (10061)
ERROR: Could not connect to 192.168.X.X:5555
ERROR: Server connection failed
According to
Wireless debugging in Android 11
Android 11 developer preview has lots of new features to look but one of the coolest is Wireless debugging. It is a new method for…
levelup.gitconnected.com
“Requirements :
Device running with Android 11
SDK platform-tools with version ≥ 30.0.0.
Same Wi-Fi network for Android device and your PC
Wireless debugging
Android 11 supports deploying and debugging your app wirelessly from your workstation via Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB and contending with common USB connection issues, such as driver installation.”
So this should be supported in Android 11, then why scrcpy fails to connect to my phone ip?
Thank you.
AFAIK the mobile device should be connected to a computer - either via USB or wirelessly in the same LAN.
This computer can be connected from a remote computer (via SSH), and SCRCPY can be used from this remote computer.
Device's Android must not be rooted to run SCRCPY.
jwoegerbauer said:
AFAIK the mobile device should be connected to a computer - either via USB or wirelessly in the same LAN.
This computer can be connected from a remote computer (via SSH), and SCRCPY can be used from this remote computer.
Device's Android must not be rooted to run SCRCPY.
Click to expand...
Click to collapse
SSH is a non graphic user interface, so how exactly can you run scrcpy from a remote computer you connected through SSH in some non gui terminal window?
In Windows 11 you execute SSH commands either via Windows CMD
{
"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"
}
or via Windows PowerShell
jwoegerbauer said:
AFAIK the mobile device should be connected to a computer - either via USB or wirelessly in the same LAN.
This computer can be connected from a remote computer (via SSH), and SCRCPY can be used from this remote computer.
Device's Android must not be rooted to run SCRCPY.
Click to expand...
Click to collapse
au contraire! good sir i checked the website of SCRPY and its supposed to work w/o root, i came across it in this silly phone-spoit nonsense , and i used it with success on my oculus 2 , with all due respect
mrstuffandthings said:
au contraire! good sir i checked the website of SCRPY and its supposed to work w/o root, i came across it in this silly phone-spoit nonsense , and i used it with success on my oculus 2 , with all due respect
Click to expand...
Click to collapse
though i think what your asking has more to do with right port and port forwarding rules aye?
1. obtain permission
2. set the rules on your router
3. "nmap it!" or wireshark (not recommended)
or i think something like twitch would same same
jwoegerbauer said:
In Windows 11 you execute SSH commands either via Windows CMD
View attachment 5920653
or via Windows PowerShell
View attachment 5920655
Click to expand...
Click to collapse
I understand what’s ssh and how to run it from cmd/powershell, what I don’t understand is how it’s related to scrcpy? What’s the context of saying ssh and scrcpy in the same sentence? Assuming you ssh from cmd/powershell into some remote machine, can you run scrcpy in that remote machine? And if so, will the scrcpy/phone color screen will show up in the cmd/powershell black screen? That’s what I don’t understand...
Look inside here - navigate to section
SSH tunnel​
scrcpy/tunnels.md at master · Genymobile/scrcpy
Display and control your Android device. Contribute to Genymobile/scrcpy development by creating an account on GitHub.
github.com
jwoegerbauer said:
Look inside here - navigate to section
SSH tunnel​
scrcpy/tunnels.md at master · Genymobile/scrcpy
Display and control your Android device. Contribute to Genymobile/scrcpy development by creating an account on GitHub.
github.com
Click to expand...
Click to collapse
So if I understand correctly, I could ssh from an external network machine into the internal network that has both the phone and ‘pc that I ssh to’, and then I will be able to run scrcpy remotely from my external network machine without the need to actually remote desktop into the machine to launch scrcpy that’s in the same network as the phone as long as I establish an SSH connection with that machine in that local network? Please correct me if I’m wrong, but it sounds very cool, it’s like some sort of VPN that allows you to access the local resources of that network using SSH in this case, thank you for pointing this out to me!
By the way, if I SSH from my iphone to that local machine network, is there an app or a way to launch scrcpy against that local network similar to how you would do it from the remote machine pc but just from my iphone? I have iPhone 12 Pro Max with iOS 14.4.1 jailbroken and got newterm3 terminal that allows me to ssh to remote computers.

Categories

Resources