Giter VIP home page Giter VIP logo

androidproxysetter's People

Contributors

benoitjadinon avatar luispereira avatar manadream avatar tabrotest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidproxysetter's Issues

Signing issues with APK

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!

default ssid

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

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

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

toast: error Code 2

when i execute cmd in android shell, toast " Error Code:2"

Android: 7.0

Thanks

Cannot remove/edit wifi configurations created manually or with another app on real device

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:

  1. Start with an Android 6+ device
  2. By hand, open Settings and connect to a wifi network
  3. Install AndroidProxySetter
  4. Attempt to set the proxy
  5. The above error will appear in logs

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.

Fire TV proxy issue

Tried the below steps using Proxy Setter Tool:

  1. Download the Apk (proxy-setter-release-0.1.3.apk) from https://github.com/jpkrause/AndroidProxySetter/releases
  2. Side load the Apk file from laptop to Fire TV or Stick
  3. Start the apk from laptop using below adb command
    adb -s shell am start -n tk.elevenk.proxysetter/.MainActivity -e host -e port 8888 -e ssid PrivateWifi -e key

I am getting this error : Starting: Intent
{ cmp=tk.elevenk.proxysetter/.MainActivity (has extras) }

Can you please help?

Does not work on HTC One

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

Unable to accept SSID with spaces

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.

How connect the specific network?

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 ...

Global Proxy Configuration

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.

Not able to set 5 digit port

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

Could you help to provide a method to get proxy info?

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!

Network configurations are not being overwritten

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.

Error Code 1!

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!

Failed to run on Android 6.0

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.

Fire TV connected through Cat5

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.