steinwurf / adb-join-wifi Goto Github PK
View Code? Open in Web Editor NEWHelper app to allow joining a wifi AP directly from ADB
License: BSD 3-Clause "New" or "Revised" License
Helper app to allow joining a wifi AP directly from ADB
License: BSD 3-Clause "New" or "Revised" License
I am trying to connect to ssid when I execute the command I am able to connect to ssid with open security
but when I am trying to connect to a ssid with wpa2 security I am not able to connect
Please help me with this
Hi,
I am using this app to connect/disconnect wifi, but in huawei china version is showing the popup to allow the permission to connect wifi.
Popup message: adb-join wants to connect wifi name
Suggest me the way to handle this.
Thanks.
Im trying to run .MainActivity in android 8.1.0 and its not working. HOwever android 5 was worked perfectly. Any idea?
I just figured out why this was working for some networks but not others. When you send the ADB command, if your SSID or Password has a special character (like the dollar sign, $) it doesn't work properly.
If you have a $ in the SSID, it truncates the rest of the SSID.
If you have a $ in the password, the app opens and immediately closes.
The solution is to escape the special character with a backslash.
Example: Pa$word
should be entered as Pa\$word
This is similar/same as issue #9 (issue with spaces).
If this is a limitation of ADB and can't be fixed, it should be mentioned in the Readme at least. Thanks!
i want to clear the saved ssid and connect a new ssid.
I ran the command
./adb shell am start -n com.steinwurf.adbjoinwifi/.MainActivity -e ssid TP\ link\ home -e password_type WPA-PSK -e password !!0adasdfewq
My wifi network name is "TP link home" and pass type is WPA-PSK.
When I enter the terminal echoes
Starting: Intent { cmp=com.steinwurf.adbjoinwifi/.MainActivity (has extras) }
and displays on the mobile the message this app is meant to be used with adb
Is there an interface to disconnect the wifi that I've connected with this?
Hi
My wifi SSID has a space in it. When I try to join it, it only picks up the first word of the SSID before the space. How can I escape the space?
See below:
COMMAND
adb -s AQH7N17B18019814 shell am start -n com.steinwurf.adbjoinwifi/.MainActivity -e ssid "MY 5G_OFFICE" -e password_type WEP -e password mypassword
RESPONSE
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=5G_OFFICE cmp=com.steinwurf.adbjoinwifi/.MainActivity (has extras) }
On the app itself, it is connecting to the wifi called "MY", the first word of the SSID.
Not an issue.
Just a request. Is it possible to add a capability to forget the network which was connected to using this APK?
How do I remove the administrator I issued adb-join-wifi to?
privileges were issued by the command: adb shell dpm set-device-owner "com.steinwurf.adbjoinwifi/.AdminReceiver"
Now I can't delete
$ dpm set-device-owner "com.steinwurf.adbjoinwifi/.AdminReceiver"
Exception occurred while executing 'set-device-owner':
java.lang.IllegalArgumentException: Unknown admin: ComponentInfo{com.steinwurf.adbjoinwifi/com.steinwurf.adbjoinwifi.AdminReceiver}
at com.android.server.devicepolicy.DevicePolicyManagerService.findAdmin(DevicePolicyManagerService.java:3182)
at com.android.server.devicepolicy.DevicePolicyManagerService.setActiveAdmin(DevicePolicyManagerService.java:3756)
at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.runSetDeviceOwner(DevicePolicyManagerServiceShellCommand.java:256)
at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.onCommand(DevicePolicyManagerServiceShellCommand.java:89)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.devicepolicy.DevicePolicyManagerService.onShellCommand(DevicePolicyManagerService.java:10699)
at android.os.Binder.shellCommand(Binder.java:1085)
at android.os.Binder.onTransact(Binder.java:903)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:6790)
at android.os.Binder.execTransactInternal(Binder.java:1321)
at android.os.Binder.execTransact(Binder.java:1280)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.