there are some way for enable wifi from adb? - G1 Q&A, Help & Troubleshooting

there are some way for enable the wifi from adb or another communication program from pc, after factory reset ??

Solution from JF
http://forum.xda-developers.com/showthread.php?p=2974964#post2974964
is good in this thing
thanks

satru said:
there are some way for enable the wifi from adb or another communication program from pc, after factory reset ??
Click to expand...
Click to collapse
yes.. this command,
adb shell svc wifi enable
but i'm using elelinux android 2.3.7 on my device HTC Hero..
i'm not sure if it will work for you but for me this helps me..
thanks...

ERROR ON COMMAND adb shell svc wifi enable
Hey When I use this command error comes
/sbin/sh: svc: not found

Related

G1 (Modded RC30) will not telnet to PC? Help

Now the thing is when I am at the home screen on my G1 i push "Enter" on the keyboard and then type "telnetd" and then push enter again it doesnt do anything. When I open up telnet client on my PC it wont connect with wifi on.
So I go to Terminal Emulator on G1 and plug in"
cd system
cd bin
telnetd
And then try and connect to telnet on PC and nothing happens.
So I then go to Telnet client on my G1 and go to connect to "localhost:23" and it says "Error while connecting to server: localhost/127.0.0.1:23 - Connection refused" the thing is that my local host for my wifi is not 127.0.0.1:23
And when I "netstat" from inside Terminal Emulator there is no address with port "23"
Any help would be greatly appreciated.
Download the app called Terminal Emulator from the market and use that instead of pterminal.
use the "su" command before trying to start telnetd.
Also make sure your wifi is up before your start telned.
mrboyd said:
Download the app called Terminal Emulator from the market and use that instead of pterminal.
use the "su" command before trying to start telnetd.
Also make sure your wifi is up before your start telned.
Click to expand...
Click to collapse
Thats what I have been using is Terminal Emulator but I dont think I can install Debian through Terminal Emulator. I would rather do it through the PC anyways.
I geta syntax error when using "su" in Term. Emu. because I believe I have installed the "su" mod to always allow.
adb shell
Presuming you're already running the proper modded RC30, you should be able to run 'adb shell' with USB debugging enabled on the phone and it connected to your machine. This should just drop you to a root shell.
SplasPood said:
Presuming you're already running the proper modded RC30, you should be able to run 'adb shell' with USB debugging enabled on the phone and it connected to your machine. This should just drop you to a root shell.
Click to expand...
Click to collapse
adb being a utility included in the android sdk (in tools/)
SplasPood said:
Presuming you're already running the proper modded RC30, you should be able to run 'adb shell' with USB debugging enabled on the phone and it connected to your machine. This should just drop you to a root shell.
Click to expand...
Click to collapse
SplasPood said:
adb being a utility included in the android sdk (in tools/)
Click to expand...
Click to collapse
I got all that but how do I actually use it (adb)? Every time I click on it a command window pops up and then goes away.
Ok I got adb shell to work now thanks guys

ADB Problems

Hiya ppl,
I've been trying to get some apk's of my phone but no matter what I try I always get an adb: not found.
BTW: when in Fastboot its not working at all (adb) but when i start my device normally I can get into adb, and i can browse my phone
Can somebody give me some tips?
I'm using xROM 1.5r4.
YuYe said:
Hiya ppl,
I've been trying to get some apk's of my phone but no matter what I try I always get an adb: not found.
BTW: when in Fastboot its not working at all (adb) but when i start my device normally I can get into adb, and i can browse my phone
Can somebody give me some tips?
I'm using xROM 1.5r4.
Click to expand...
Click to collapse
Have you ever had ADB setup?
Yeah and it worked like a charm before I always uninstall apps via adb mouting also works.
I'm at an dead end
YuYe said:
Yeah and it worked like a charm before I always uninstall apps via adb mouting also works.
I'm at an dead end
Click to expand...
Click to collapse
Is your drivers still installed? I know at one time windows reverted back the old drivers on mine and had to change it.
YuYe said:
Hiya ppl,
I've been trying to get some apk's of my phone but no matter what I try I always get an adb: not found.
BTW: when in Fastboot its not working at all (adb) but when i start my device normally I can get into adb, and i can browse my phone
Can somebody give me some tips?
I'm using xROM 1.5r4.
Click to expand...
Click to collapse
Yeah, so the problem I see with your screenshot is that you are already in an ADB shell trying to enter ADB shell commands.
Without further complicating matters, this is what you should do.
Close out everything.
Start - Run - CMD
cd\"your sdk folder"
DO NOT ENTER ADB SHELL
now enter your other commands as you were trying. such as:
adb pull /system/sd/app/example.apk c:\app
THANKS !!! YOU ARE THE MAN
worked like a charm, you know I've never foud anywhere that you need to do that without going in the shell.
Or I just missed it in that case sorry.

ADB Not Working

MY ADB has stopped Working
It happened after Installing the CWM And TWCR
Well What happened it was saying ADB was outdated while installing but it installed CWM and TWCR
Now if i enable ADB in the phone the windows doesnt read that there is a mobile nor anything detected not even charging
When i disable ADB I can see my phone charging and i can transfer files
I don't know what to do and I am very worried ...
Hope If any1 could help...
Tried installing ADB drivers and the Android SDK .. No luck
I think the problem is in the phone as it doesnt allow me to connect to the PC with ADB on
I read this http://forum.xda-developers.com/showthread.php?t=1917741
and found that ro.debuggable=0 in the Deafult.prob While it is enabled ...
And there is a question too how can i backup it so if i eddit it and get a bootloop I want to be able to restore using CWM or TWCR
John98Zakaria said:
MY ADB has stopped Working
It happened after Installing the CWM And TWCR
Well What happened it was saying ADB was outdated while installing but it installed CWM and TWCR
Now if i enable ADB in the phone the windows doesnt read that there is a mobile nor anything detected not even charging
When i disable ADB I can see my phone charging and i can transfer files
I don't know what to do and I am very worried ...
Hope If any1 could help...
Tried installing ADB drivers and the Android SDK .. No luck
I think the problem is in the phone as it doesnt allow me to connect to the PC with ADB on
I read this http://forum.xda-developers.com/showthread.php?t=1917741
and found that ro.debuggable=0 in the Deafult.prob While it is enabled ...
And there is a question too how can i backup it so if i eddit it and get a bootloop I want to be able to restore using CWM or TWCR
Click to expand...
Click to collapse
Can you use adb over other computers?
Also, try ADB over network. Goto Settings > Developer Options and turn "ADB over network" on. If prompted with a warning, press OK. Then you will see an ip address with a port number under ADB over Network setting. Now open cmd (or Terminal in Linux) and cd to the directory where the ADB files are present. Then type
Code:
adb connect <ipaddress>
Of course, replace <ipaddress> with the ip that you see in the Developer Options under ADB over network. It should be something like "192.168.1.2:5555", enter the whole thing. Then see if you are successfully connected by typing
Code:
adb devices
.
If you are using windows go to control panel and look for "hardware" or more specifically "drivers". It is somewhere there, just look around and you will find it. Then enable adb and connect phone. Then Select your device name from the list and right-click and select appt. drivers.
ayushag96 said:
Can you use adb over other computers?
Also, try ADB over network. Goto Settings > Developer Options and turn "ADB over network" on. If prompted with a warning, press OK. Then you will see an ip address with a port number under ADB over Network setting. Now open cmd (or Terminal in Linux) and cd to the directory where the ADB files are present. Then type
Code:
adb connect <ipaddress>
Of course, replace <ipaddress> with the ip that you see in the Developer Options under ADB over network. It should be something like "192.168.1.2:5555", enter the whole thing. Then see if you are successfully connected by typing
Code:
adb devices
.
If you are using windows go to control panel and look for "hardware" or more specifically "drivers". It is somewhere there, just look around and you will find it. Then enable adb and connect phone. Then Select your device name from the list and right-click and select appt. drivers.
Click to expand...
Click to collapse
Thanks for the reply I can't use ADB anywere ..
The phone doesn't even appear in the PC with ADB debuging enabled not even a connected sound or anything ..
I tried Wifi Kontect on the playstore as I didnt find "ADB over Network" But ADB wont connect....
Any Other solutions ... I dont mind if i have ADB over wifi the important thing is to have any ADB connection
www .mediafire .com/convkey/fb15/db3ykaaldgkqsd66g.jpg?size_id=5
www .mediafire .com/convkey/93e0/49f47ps6s9nbeyj6g.jpg
Remove spaces so you can see the images I cant post links yet
Fixed
I have fixed my probem thanks to @sijav !
Installing
http://forum.xda-developers.com/showthread.php?t=1687590
Fixed everything ! even after un-installing the app

How do I get ADB to see my device?

I have a Sprint HTC One M8. It's rooted. I have TWRP. I basically just wanted to get rid of bloatware. But now I want to follow a tutorial that requires me to be S-OFF.
I think I am on this step:
Push, Prepare, and Execute firewater:
adb reboot <–important!!!!
adb wait-for-device push firewater /data/local/tmp
adb shell
su
chmod 755 /data/local/tmp/firewater
/data/local/tmp/firewater
When I type any commands nothing happens. adb devices, adb shell, etc. Nothing. Am I supposed to go in Recovery?
If I go into recovery they work.. so I rebooted.. I pushed firewater over. I did adb shell and up pops:
~ # <-[6n.
I hit SU and it says /sbin/sh: su: not found.
I did chmod command from above. When I do the last step /data/local/tmp/firewater it says permission denied.
When you are booted into android make sure usb debugging is enabled. Settings > About > Software Information > More > click Build Number like 10 times to enable developers options. Then go to Settings > Developer Options > check USB Debugging. Also go to Settings > Power > uncheck Fastboot, You have to run firewater from android, NOT from recovery. What exactly are you trying to do that requires S-OFF?
Thanks. I've already got Developer. USB Debugging is enabled.
EDIT: Because I misread your post. I didn't know I run Firewater through Android. But anyway, it's not working.
I'm just doing a simple mod to hide the Boomsound icon. Stupid to have that clog up my notification area.
PS - I see you're in Ocean City, NJ? My friends wife's parents live in Somers Point. I go down to Smithville sometimes.. little town with all the shops in it.. it's fantastic when they decorate it for Christmas. Really nice stores to shop in and the inn has the best french onion soup I've ever had.
yuppicide said:
I have a Sprint HTC One M8. It's rooted. I have TWRP. I basically just wanted to get rid of bloatware. But now I want to follow a tutorial that requires me to be S-OFF.
I think I am on this step:
Push, Prepare, and Execute firewater:
adb reboot <–important!!!!
adb wait-for-device push firewater /data/local/tmp
adb shell
su
chmod 755 /data/local/tmp/firewater
/data/local/tmp/firewater
When I type any commands nothing happens. adb devices, adb shell, etc. Nothing. Am I supposed to go in Recovery?
If I go into recovery they work.. so I rebooted.. I pushed firewater over. I did adb shell and up pops:
~ # <-[6n.
I hit SU and it says /sbin/sh: su: not found.
I did chmod command from above. When I do the last step /data/local/tmp/firewater it says permission denied.
Click to expand...
Click to collapse
I am not sure exactly what you have going on, but here are a few tips. Make sure you have it mounted as a storage device. Also, make sure you open the command window in the same folder you have adb in, or navigate to that directory properly.
KUmike said:
I am not sure exactly what you have going on, but here are a few tips. Make sure you have it mounted as a storage device. Also, make sure you open the command window in the same folder you have adb in, or navigate to that directory properly.
Click to expand...
Click to collapse
That reply helped me. You said "mounted as storage device". When I clicked my phone it said "HTC SYNC" on it.
I'm good now, thanks!
I just went through this yesterday. Updating adb fixed it for me. Also, following those commands necessitates that the file is where u type it. So, I followed another website's guide and achieved s-off.
Sent from my 831C using xda app-developers app
iandmacdonald said:
I just went through this yesterday. Updating adb fixed it for me. Also, following those commands necessitates that the file is where u type it. So, I followed another website's guide and achieved s-off.
Sent from my 831C using xda app-developers app
Click to expand...
Click to collapse
Every time I connect my phone, all I need to do is select "Disk Drive" rather than HTC Sync. By default the phone chooses that. Now everything works fine.
I know you have already fixed your problem but I recommend uninstalling the HTC Sync Manager from your computer. Keep the HTC Drivers though. If you still get the popups to install HTC Sync after you uninstall it; remove the installer/option on your M8. You'll need a file manager and root to do that or you could install ViperOne and de-select the option in Aroma.
I can't remember the file you have to remove off-hand though, I just went through my folders and deleted stuff I didn't need or want. I made backups just in case it needed to be re installed.
KUmike said:
I am not sure exactly what you have going on, but here are a few tips. Make sure you have it mounted as a storage device. Also, make sure you open the command window in the same folder you have adb in, or navigate to that directory properly.
Click to expand...
Click to collapse
I had ADB work fine without switching to Mass Storage.
mswlogo said:
I had ADB work fine without switching to Mass Storage.
Click to expand...
Click to collapse
It definitely won't for me
Sent from my 831C using Tapatalk
KUmike said:
It definitely won't for me
Sent from my 831C using Tapatalk
Click to expand...
Click to collapse
Maybe you have HTC Sync installed? You shouldn't.
mswlogo said:
Maybe you have HTC Sync installed? You shouldn't.
Click to expand...
Click to collapse
Nope, I dunno. Works in mass storage mode
Sent from my 831C using Tapatalk
I was having similar problems with my M7 and Windows 7 devices after upgrading to 4.4.2 and Sense 6 (Team Nocturnal NuiSense). My phone wasn't recognized by HTC Sync or CDMA Workshop.
I kept uninstalling/reinstalling drivers, to no avail.
What finally worked like a magic bullet for me was to dial ##3424# and turn on DM Command Service.
I'm not sure if that will work for you, but it may be worth a shot.
I hv same problem but how I can on my USB debbuging mode ,,, rooted but no OS
{ParanoiA} said:
When you are booted into android make sure usb debugging is enabled. Settings > About > Software Information > More > click Build Number like 10 times to enable developers options. Then go to Settings > Developer Options > check USB Debugging. Also go to Settings > Power > uncheck Fastboot, You have to run firewater from android, NOT from recovery. What exactly are you trying to do that requires S-OFF?
Click to expand...
Click to collapse
I hv same problem but how I can on my USB debbuging mode ,,, rooted but S-on and I hv TWRP but no OS firmware ,,,, Kindly guide me what I should do to make active my usb debugging mode in HTC desire 828 dual sim ? plzzzz

Note 5 Wireless ADB

Anyone got a clue how to enable ADB over WIFI on Note 5? It is normally found in Developer Settings but I am not able to find it on Note 5. Did Samsung remove this feature?
aakaashjois said:
Anyone got a clue how to enable ADB over WIFI on Note 5? It is normally found in Developer Settings but I am not able to find it on Note 5. Did Samsung remove this feature?
Click to expand...
Click to collapse
Hi there,
If you are using a stock ROM there isn't an option to enable ADB via Wi-Fi from the device developer settings.
You can still run ADB over Wifi, but you need to connect the device to usb and then run the following adb commands:
Code:
adb tcpip 5555
disconnect the device from USB
Code:
adb connect <wifi-device-ip-address>
For more info on ADB:
developer.android.com/tools/help/adb.html#wireless
Thanks,
Matt
mhills said:
Hi there,
If you are using a stock ROM there isn't an option to enable ADB via Wi-Fi from the device developer settings.
You can still run ADB over Wifi, but you need to connect the device to usb and then run the following adb commands:
Code:
adb tcpip 5555
disconnect the device from USB
Code:
adb connect <wifi-device-ip-address>
For more info on ADB:
developer.android.com/tools/help/adb.html#wireless
Thanks,
Matt
Click to expand...
Click to collapse
Thank You. Never knew this was could be done without toggling the ADB over WIFI switch.
Hi there,
After i enter
adb connect 192.168.1.117
Click to expand...
Click to collapse
I got:
unable to connect to 192.168.1.117:5555
Click to expand...
Click to collapse
Dont know why?
Thanks,
Dangkita
To know if device is connected to ADB type adb devices
Have you made sure you was connected from USB? I believe you have to first set it up then u can use adb by wifi. You can check by typing
Code:
adb devices
---------- Post added at 07:37 PM ---------- Previous post was at 07:26 PM ----------
Anyone know if there is any other way to connect ADB to be used by wifi? My usb on my phone doesn't work only shows that it is charging. From all of the test I've done I believe it's a issue from the phone. Even after i reformat the phone and upgrade firmware still got the issue. I'm not rooted and if there is a way to root with out using usb that would be some great information. Thanks.
I did 0808 changed to correct one still not fixed. And can't even get the menu to change from charge to mass storage. The drivers on my computer is not the problem. I've tested other note 5 that I got and they work great. I tested this phone on other computers with nothing working.

Categories

Resources