[Guide][wlan adb] Use your android device to use adb commands in another one via WiFi - General Topics

Hello guys,
I'm here with a way to issue adb commands to another android through WIFI network.
Prerequisites:-
1) 2 android (of course)
2) Basic knowledge in android
Steps:-
1)Select the device that you want to receive the commands [Here on will be referred to as "Device"]
2)Turn your WiFi hotspot on on device
3)Select the device that you want to issue commands to [Here on will be referred to as "Host"]
4)Connect the device to the host
5)Go to developer option and turn it on in "Device" and also turn on wireless adb if you are in lollipop.Or alternatively download ROM toolbox and enable wireless adb in there.You will receive a unique ip address with port
6) open terminal emulator in "Host" and type "adb connect IP" In place of IP type the IP address that you got in step 5
7) congrats you are now connected via an WiFi
Click thanks if I helped.?

Related

[Q] LG Thrill 4G new ROM Help

I have a LG Thrill 4G. I rooted the phone using superonelick, root checker says it is rooted. Downloaded ROM Manger and flashed clockworkmod. I cannot click boot into recovery, it just restarts the phone. I have tried to reboot into recovery by pressing 3d button, down volume, and power and it boots me into the android recovery but not clockworkmod, so I can not find anyway in to download the new rom from the zip file. Has had any other people had trouble with this? I have spent over 2 days searching the internet but I cannot find any similar problems, is there anyway to get into the recovery mode to install the new ROM without it just restarting the phone?
LG Thrill 4G ClockworkMod Installation (correct method)
1) You need to have ROOT access at the least (see link below)
It will also be good to have ADB (and hence LG Thrill drivers) installed properly
http://forum.pandaapp.com/thread/2/11/20110919/4e77f603d22632913-1.html
2) Get the recovery image from here and keep it on your PC in a folder accessible by ADB.
OR (if no ADB then) directly put it on your LG Thrill SDCard root
http://forum.xda-developers.com/showthread.php?t=1257588
4) If you have ADB then follow the instructions in the first link above to push the recovery image to your phone.
OR
if no ADB then open Terminal Emulator (install it from Market) and type su and click allow if the prompt comes up
5) Now you can follow instructions in the first link (far above) again, starting from the 'dd if=...' step. But instead of rebooting you could just power off
6) Clockwork recovery should now be flashed. To enter recovery, keep the 3D button, Vol-down and Power button pressed until you see the LG logo
Thank you for getting back with me. I tried to follow these steps and when I am in the Terminal Emulator and type adb push recovery.img /data it comes back with adb: not found. I have redownloaded the recovery file that you have attached to the SD card, same error, and then I tried to copy to the phone itself and same error. I can do any of the other prompts for the emulator but nothing that has to do with the recovery file it will not work. I am guessing maybe this is the problem because if it cannot find the recovery file, I cant do much of anything else. Do you have any suggestions of why the file still cannot be found on my phone?
connect adb through tcp
Try this:
1. If you are using terminal emulator to access adb then try downloading the app called remote adb. This tool will allow you to connect your device via tcp. Take note of the ip adress and port number. Usually the default port is fine.
2. Now open sshdroid, connectbot, terminal emulator and start an ssh session with the adb shell. You must have the correct public ip and port entered in to access the adb via tcp.
3. Once you have made the ssh connection between what ever emulator you are using and remote adb, start a shell as su.
4. Type the commands mentioned earlier.
This should let you run the whole thing from within your phone.
Alternatively...
1. start remote adb on your device.
2. start a terminal or cmd prompt on your cpu.
3. cd to androidSDK\platform-tools
4. type ---> adb start-server
The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port.
Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections. For example:
Emulator 1, console: 5554
Emulator 1, adb: 5555
Emulator 2, console: 5556
Emulator 2, adb: 5557 ...
As shown, the emulator instance connected to adb on port 5555 is the same as the instance whose console listens on port 5554.
Once the server has set up connections to all emulator instances, you can use adb commands to control and access those instances. Because the server manages connections to emulator/device instances and handles commands from multiple adb clients, you can control any emulator/device instance from any client (or from a script).
5. type --> adb forward tcp:5554 tcp:5555
5. type ---> adb devices. In response, adb prints this status information for your device. If there is no emulator/device running, adb returns no device, and you have not made a tcp connection.
6. Take note of the serial number listed. You will use it later to direct commands to device.
7. Type --> adb shell
8. Type --> su
9. Use commands from other post to achieve whatever you need.
10. once finished with shell, type --> exit twice to leave the shell
11. Finally, type --> adb server-kill
Hope that helps. Seems like you were having issues making the connection from device to adb, so that is what I focused on. If I can help anymore, just ask. We are all continually learning and the only stupid question is the one never asked.
B^)

WiFi PPPoE Flash zip

I have created a flash zip for WiFI based PPPoE connectivity.
Purpose / Why is this needed?
Many of us have DSL / PPPoE based connection which is set to bridged mode. PC / Laptop connects to internet via PPPoE / DSL dialer using username and password.
While it is easy to do it on PC / laptop, the android still can not. Only option is keep PC on allowing internet sharing via PC (PC becomes android's gateway)
This is waste of electricity as we need to keep PC / laptop on.
So I have created a small zip which uses rp-pppoe (from WiFI PPPoE android app)
Requirements
Android version > 2.1 (tested for Android 4.3 / ARM only)
Kernel which supports PPP (most kernels do)
Android terminal emulater or similar
How to install?
Flash the attached zip
Restart android
Using your favourite editor (root permission needed) change USERNAME and PASSWORD in file /system/bin/wifipppoe to as provided by your internet service provider
How to use?
Start/activate WiFi on your android
Open android terminal emulator
Run the command: su -c wifipppoe #allow root access if prompted
Thats all!
How to disable PPPoE?
Simply stop/de-activate WiFi
Hope this helps!

[TOOL] ADB WiFi - Android Studio

https://www.youtube.com/watch?v=Dnady9E1XKE
SCREENSHOTS
List:
1. Android app
2. Android app
3. Android app
4. Android app Settings
5. PC ADB
ABOUT
ADB WiFi app helps you to use ADB over your WiFi. Makes it easy to debug/test your Apps from Android Studio or any other IDE. No need to use USB cable anymore.
★ You can use App for PC to easy setup your computer, install ADB and connect over WiFi.
★ Or you can use standard method over CMD(Command Prompt) to connect your Android device over WiFi to Windows, MAC or Linux.
★ Yes, this "tool" will only help you to faster make WiFi connection with your PC. App only contain steps how to connect and show your IP address.
It is not required to install this app. I do not like to waste my time, every time after reboot phone I need to write in Command prompt and searching for IP. This app will helps to reduce the time to connect over WiFi.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
NOTE:
1. Enable USB Debugging on your Android phone.
2. You will need USB cable once at the start. After setup won't need the USB cable until your device has restarted.
3. This app provides instructions how to connect ADB over WiFi
4. For fast and easy setup use PC App
5. Enjoy
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
DOWNLOAD
ADB WiFi - AS: Google Play
PC ADB: In XDA Attachment
Mirror: MediaFire
could you make this for mac too
How do things change for this app with the advent of Developer options Wireless debugging in Android 11?

Real device connection

I have completely install android studio but it could not establish connection with real device mobile.
It shows me no device.Already,i set developer mode but it not works.
Please help?
On windows: install adb drivers for your device
On Linux: add usb device to udev (you can check connected devices using lsusb command) or run as root (not recommended but you could try if that works, then fix udev)

How to add WiFi network over ADB without root?

If a device has no root, what ADB commands can I use to connect that device to WiFi? I need to be able to input SSID name, password, static local IP, DNS, etc. - all over ADB and without root.
I am not talking about ADB over WiFi over TCP port 5555. I am talking about connecting an Android device via USB cable and the connecting that Android device to WiFi, assuming the device has no WiFi networks added.
To bring up Android's Wi-Fi Settings via ADB you run
Code:
adb devices
adb shell "am start -a android.settings.WIFI_SETTINGS"
I'm not sure I understand the OP's question where it matters greatly whether the OP is on non-rooted Android 10 and below or non-rooted Android 11 and above.
Non-root Android 11 and above no longer needs the USB cable for adb to connect between Android and the PC via Wi-Fi.
There's more information here...
[adb,scrcpy,vysor] What ports does Android 12 randomly set when Wi-Fi connecting via Wireless debugging adb "pair" or "connect" commands?
(PSA) Using the new Android 12 TILE for 'Developer options' 'Wireless debugging' to establish adb connection over Wi-Fi without USB
What's the difference between Windows/Android adb "connect" versus adb "pair" when mirroring Android 12 over Wi-Fi onto a Windows PC?
some newer devices, like Samsung will let you use cmd binary.
So to connect to network look at "adb shell cmd wifi"
Currently, it's somethig like $ adb shell cmd wifi connect-network bssid passphrase network_type

Categories

Resources