manadream / androidproxysetter Goto Github PK
View Code? Open in Web Editor NEWAn android app that sets the proxy settings for a wifi access point by using adb
License: GNU General Public License v3.0
An android app that sets the proxy settings for a wifi access point by using adb
License: GNU General Public License v3.0
Hello
I am not able to set proxy to real device, can you look this issue
I am not able to connect with Android Fire TV OS 6. The device is connected via WIFI. Any idea about how can I get this working on these 3rd gen devices?
On the APK from the latest release apksigner
throws an error:
ERROR: JAR signer CERT.RSA: JAR signature META-INF/CERT.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped?
This means two things: newer versions of fdroidserver (I have to upgrade mine soon as the version I run isn't supported by the latest Android clients) will reject the package โ and devices running Nougat or above certainly will as well.
Could you please check and fix this? Thanks!
thanks for that awesome idea, very useful.
1 suggestion : findNetowrkId() could use the first (or default, or currently used) wifi, if no ssid was sent
I'll try to implement it when I find some time
thx
adb install proxy-setter-emulator-0.2.1.apk
adb: failed to install proxy-setter-emulator-0.2.1.apk: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Package couldn't be installed in /data/app/tk.elevenk.proxysetter-1: Package tk.elevenk.proxysetter has no signatures that match those in shared user android.uid.system; ignoring!]
I try copy to sdcard and install, it say package conflict with current package because same name
adb uninstall tk.elevenk.proxysetter
java.lang.IllegalArgumentException: Unknown package: tk.elevenk.proxysetter
How do i fix it? Thanks
Android: 7.1.2 (MIUI global 10.2.3)
Device: Redmi 4A
when i execute cmd in android shell, toast " Error Code:2"
Android: 7.0
Thanks
Hi,
How can I shut down the proxy?
Best,
I have set '-e bypass 192.168', but this command is no valid.
When I try to set a proxy for my current wifi config that I set up manually, I get this log:
11-23 15:54:20.735 1189 1471 E WifiConfigManager: UID 10128 does not have permission to update configuration "Mindspace-Krausenstrasse"WPA_PSK
I see this behaviour a bunch with reset-wifi true
. To be clear, here's my steps to repro:
I believe this is because Android 6+ blocks the modification of WifiConfigurations to apps that are Device Owner or the app that created the WifiConfiguration in the first place. I actually came here looking for a solution to this problem, but it seems we're in the same boat. Wondered if anyone had any ideas on working around this: I want to be able to modify/remove WifiConfigurations that my app did not create.
Tried the below steps using Proxy Setter Tool:
I am getting this error : Starting: Intent
{ cmp=tk.elevenk.proxysetter/.MainActivity (has extras) }
Can you please help?
I have a autoproxy pac file, how to use it using this app?
RT
My typical use case scenario is working in a QA department, where I test certain features with a proxy.
We are in the company wireless network, which is secured via username/password, which is registered in their local LDAP.
The access(?) method used is PEAP / MSCHAPV2.
I am running Android 4.2.2 and HTC Sense version 5.0.
I am running the command like this:
adb -s $DEVICE_ID shell am start -n tk.elevenk.proxysetter/.MainActivity -e host $PROXY_HOST -e port $PROXY_PORT -e ssid $SSID -e key $PASSWORD
When running logcat I see the following:
W/HtcNativeFlag( 6330): Fail to get flag string for type 'customer', use default value
W/HtcNativeFlag( 6330): Fail to get flag for type 'customer', use default value: 52
W/HtcNativeFlag( 6330): Fail to get flag string for type 'language', use default value
W/HtcNativeFlag( 6330): Fail to get flag for type 'language', use default value: 0
W/CpuWake ( 695): >>nativeAcquireCpuPerfWakeLock()
W/CpuWake ( 695): <<nativeAcquireCpuPerfWakeLock()
I/Intent ( 695): @test_code: getHtcIntentFlag: 0 obj: 1098255728
I/FeedHostManager( 1101): onPause
I/FeedProviderManager( 1101): onPause
I/ActivityManager( 695): START u0 {flg=0x10000000 cmp=tk.elevenk.proxysetter/.MainActivity (has extras)} from pid 6330
D/PowerManagerService( 695): acquireWakeLock(41bd13c0): PARTIAL_WAKE_LOCK , tag=ActivityManager-Launch, flags=0x1, pid=695, uid=1000
I/SocialFeedProvider( 1101): +onPause
I/SocialFeedProvider( 1101): -onPause
W/ContextImpl( 695): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1313 com.android.internal.policy.impl.PhoneWindowManager.setNavigationBarVisibility:7309 com.android.server.wm.WindowManagerService.setNavigationBarVisibility:12416 com.android.server.am.ActivityStack.realStartActivityLocked:697 com.android.server.am.ActivityStack.startSpecificActivityLocked:902
D/WirelessDisplayService( 695): getMirrorDisplayStatus:falsecurState:1
I/Launcher( 1101): updateWallpaperVisibility: true
E/WifiStateMachine( 695): SupplicantStartedState - CMD_GET_CONFIGURED_NETWORKS
E/WifiService( 695): getConfiguredNetworks()
E/WifiStateMachine( 695): syncGetConfiguredNetworks
E/ProxySetterApp( 6049): Executing proxy change request...
E/ProxySetterApp( 6049): Error: proxy not set. Try clearing the proxy setting manually first. Error Code: 4
D/PowerManagerService( 695): acquireWakeLock(41bd13c0): PARTIAL_WAKE_LOCK , tag=ActivityManager-Launch, flags=0x1, pid=695, uid=1000
I/InputMethodManagerService( 695): Disable input method client, pid: 1101
I/InputMethodManagerService( 695): Enable input method client, pid: 6049
D/qdmemalloc( 222): ion: Allocated buffer base:0x44cb2000 size:8355840 fd:51
D/qdmemalloc( 222): ion: Allocated buffer base:0x400d1000 size:4096 fd:81
D/qdmemalloc( 6049): ion: Mapped buffer base:0x6c657000 size:8355840 offset:0 fd:66
D/qdmemalloc( 6049): ion: Mapped buffer base:0x6514c000 size:4096 offset:0 fd:67
D/PowerManagerService( 695): acquireWakeLock(41986d88): SCREEN_BRIGHT_WAKE_LOCK ON_AFTER_RELEASE, tag=WindowManager, flags=0x2000000a, pid=695, uid=1000
W/WeatherTimeKeeper( 1101): [refreshWeatherData] no weather data
W/ContextImpl( 695): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1313 com.android.internal.policy.impl.PhoneWindowManager.setNavigationBarVisibility:7309 com.android.server.wm.WindowManagerService.setNavigationBarVisibility:12416 com.android.server.am.ActivityStack.resumeTopActivityLocked:1952 com.android.server.am.ActivityStack.resumeTopActivityLocked:1679
I/ActivityManager( 695): Displayed tk.elevenk.proxysetter/.MainActivity: +87ms (total +52s898ms)
I/FeedHostManager( 1101): onResume
I/FeedProviderManager( 1101): onResume
D/qdmemalloc( 222): ion: Allocated buffer base:0x42c76000 size:512000 fd:79
I/SocialFeedProvider( 1101): +onResume
I/SocialFeedProvider( 1101): updateAccounts - Accounts is no change
I/SocialFeedProvider( 1101): -onResume
D/qdmemalloc( 222): ion: Allocated buffer base:0x4005b000 size:4096 fd:34
D/qdmemalloc( 6049): ion: Mapped buffer base:0x6bfae000 size:512000 offset:0 fd:68
D/qdmemalloc( 6049): ion: Mapped buffer base:0x65177000 size:4096 offset:0 fd:69
I/InputMethodManagerService( 695): Disable input method client, pid: 6049
I/InputMethodManagerService( 695): Enable input method client, pid: 1101
D/qdmemalloc( 6049): ion: Unmapping buffer base:0x6c657000 size:8355840
D/qdmemalloc( 6049): ion: Unmapping buffer base:0x6514c000 size:4096
D/qdmemalloc( 222): ion: Unmapping buffer base:0x44cb2000 size:8355840
D/qdmemalloc( 222): ion: Unmapping buffer base:0x400d1000 size:4096
D/qdmemalloc( 222): ion: Freeing buffer base:0x0 size:8355840 fd:51
D/qdmemalloc( 222): ion: Freeing buffer base:0x0 size:4096 fd:81
D/PowerManagerService( 695): releaseWakeLock(41bd13c0): PARTIAL_WAKE_LOCK , tag=ActivityManager-Launch, flags=0x1
I/Launcher( 1101): updateWallpaperVisibility: false
This used to work and still does on my Nexus 4 running Android 4.2
I was using your tool today to setup a proxy for a Fire TV. Everything seems to work up until the point of registering the SSID. It seems that if there are spaces in the SSID the program does not correctly register the SSID. We've used single quotes as well as double quotes with nothing working as long as there is a space involved.
I use the
adb shell am start -n tk.elevenk.proxysetter/.MainActivity -e host {myIp} -e port 8080 -e ssid {myNetwork} -e key {myPassword} -e reset-wifi true
settings are applied, but it is connected to another network with better signal or something else ...
Error: No HOST given or not clearing proxy
Hi.
how can i set the global proxy settings using this app without to rely on any ssid if possible ?
Thanks in advance for any help.
Hello,
I can't set a 5 digit port number. For example when I use this command
adb shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 1.1.1.1 port 12345
port number will be set to 8080
Thanks
After i run the command to set proxy info on android device, i need to check the toast message straightly, could you help to add a parameter like: -e getProxyInfo, it will show URL and prot to me. So, i can check the result from command result.
Thanks a lot!
I am running the following multiple times:
adb -s XXXXX shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 10.131.35.42 -e port 7001 -e ssid MYWIFI -e key SOMESECRETKEY
Each time I run it I see a new (duplicate) network configuration saved in the wifi settings (on this activity https://adblockplus.org/en/android-images/wifi_settings.png?97)
I expected to see the existing network update instead of a new one appearing.
I am raising this as setting the configuration sometimes fails (about 20% of the time) and this this may be a symptom of the issue causing mine.
adb shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 127.0.0.1 -e port 8080 -e ssid MyWifi -e bypass test.com -e reset-wifi true -e key passsworrrd
, displays the Error Code 2
And by adb shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 127.0.0.1 -e port 8080 -e ssid MyWifi -e bypass test.com -e reset-wifi true -e key passsworrrd -e clear true
, displays no error but doesn't set the proxy
and after I clear the proxy and then run the first command, it displays Error Code 1!
I can run this app on Android 4.4 successfully.
But, when i run it on Android 6.0, the result is failed and error code is "2".
Is it a permission issue?
I update the AndroidManifest.xml with follow permissions and build app again:
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
Unfortunately, failed again.
Is support coming for socks5 or socks4? Or how can i set it up by myself?
My Fire TV is running off a hard line of Cat5. Your whole guide is aimed at using a wifi connection. I've tried some of the commands, but since the wifi is turned off my Fire cannot find the SSID. Do you have a command set for running a wired connection?
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.