Related
Greetings
I have a Nexus 7 (wifi only) with JB 4.2.1 and I'd like to know if there is any custom rom or kernel that supports ad hoc connections, I want to connect the N7 to joikuspot on my nokia 808.
BTW I already tried bluevpn and not all android apps supports it, and already got connectify-me on my desktop computer, I need to connect the N7 with my phone since I travel very often and not everywhere I can find wifi spots.
Thank you in advance
CARUPANBOW said:
Greetings
I have a Nexus 7 (wifi only) with JB 4.2.1 and I'd like to know if there is any custom rom or kernel that supports ad hoc connections, I want to connect the N7 to joikuspot on my nokia 808.
BTW I already tried bluevpn and not all android apps supports it, and already got connectify-me on my desktop computer, I need to connect the N7 with my phone since I travel very often and not everywhere I can find wifi spots.
Thank you in advance
Click to expand...
Click to collapse
Hello? anyone can help me out?
Ad Hoc for Nexus 7
First, being a noob I want to say thanks for all the great info provided on this forum. It's a big help to someone like me who's just learning.
CARUPANBOW,
I need this also. I’ve spent several hours searching for a solution and have found nothing. It’s already been discussed here http://forum.xda-developers.com/showthread.php?t=1787680&page=7 on XDA so maybe that why no one has responded. The links below are to other discussions about this, but so far I have not found a way to force my Nexus 7 to connect to an Ad Hoc network. I’m still hopeful.
http://www.thriveforums.org/forum/t...ment/15959-ad-hoc-patch-3-x-4-0-4-1-cm10.html
http://www.pcadvisor.co.uk/how-to/google-android/3372947/connect-android-phone-ad-hoc-network/
http://szym.net/2010/12/adhoc-wifi-in-android/
https://bugs.launchpad.net/ubuntu-nexus7/+bug/1077704
Maybe someone that’s really experienced can use the information in the links and find a solution.
Thanks,
Ken
Thank you
emgo said:
First, being a noob I want to say thanks for all the great info provided on this forum. It's a big help to someone like me who's just learning.
CARUPANBOW,
I need this also. I’ve spent several hours searching for a solution and have found nothing. It’s already been discussed here http://forum.xda-developers.com/showthread.php?t=1787680&page=7 on XDA so maybe that why no one has responded. The links below are to other discussions about this, but so far I have not found a way to force my Nexus 7 to connect to an Ad Hoc network. I’m still hopeful.
http://www.thriveforums.org/forum/t...ment/15959-ad-hoc-patch-3-x-4-0-4-1-cm10.html
http://www.pcadvisor.co.uk/how-to/google-android/3372947/connect-android-phone-ad-hoc-network/
http://szym.net/2010/12/adhoc-wifi-in-android/
https://bugs.launchpad.net/ubuntu-nexus7/+bug/1077704
Maybe someone that’s really experienced can use the information in the links and find a solution.
Thanks,
Ken
Click to expand...
Click to collapse
Thank you very much for answering my post, I'm a noob too and besides I felt ignored, I have to confess this is my first android device, and I have spent many hours too to figure out a solution.
I checked the post you mentioned, some of those websites too and also checked the android issues #82 and #35629 at code.google.com
So far i've been able to connect to my nokia 808 via joikuspot, but like in bluevpn some apps are not working, here is what I did:
1) I have the JB 4.2.1 rooted on my device
2) I downloaded this kernel and applied it https://github.com/monk-dot/SPAN/blob/master/kernels/ASUS%20Nexus%207/myupdate-nexus7.zip
3) Since the nexus stock rom doesn't include the wpa_cli command I found this one http://pic-e-bank.com/android/Droid/Kernels/Froyo/Slayher/slayher_wifi_fix.zip Extracted the file and copied it into the folder /system/bin (set permissions to 755).
4) Found this patched wpa_supplicant file from this post "[JB] wpa_supplicant for adhoc wifi networks" and copied it into the folder /system/bin (made a backup first of the original file and set the permissions of the new wpa_supplicant to 755).
5) With a terminal app (using adb also works) I followed this guide: http://www.olsr.org/?q=olsr_on_android to set up the ad hoc network to my nexus 7 manually.
And Eureka! I could connect my nexus to my nokia 808 hotspot, however I couldnt see any infrastructure networks anymore, the solution was to revert back to the original wpa_supplicant, so I'm thinking about making two command scripts to set up my ad hoc connection and revert it back whenever I need to connect to a different network (you can check this guide).
BTW, there are some custom roms that include the wpa_cli command, but I tried some of them and they didn't detect my hotspot until I replace the wpa_supplicant file with the patched one.
I'm no android expert but I think the problem with ad hoc connections is a kernel/wpa_supplicant issue, i guess at some point google decided to take out the support for IBSS networks, however the linux kernel still supports it, i really wish some expert could take a look into it.
I hope you find this info useful, but this is not a final solution and I'll still work into it whenever I can.
Ad Hoc for Nexus 7
CARUPANBOW said:
Thank you very much for answering my post, I'm a noob too and besides I felt ignored, I have to confess this is my first android device, and I have spent many hours too to figure out a solution.
I checked the post you mentioned, some of those websites too and also checked the android issues #82 and #35629 at code.google.com
So far i've been able to connect to my nokia 808 via joikuspot, but like in bluevpn some apps are not working, here is what I did:
1) I have the JB 4.2.1 rooted on my device
2) I downloaded this kernel and applied it https://github.com/monk-dot/SPAN/blob/master/kernels/ASUS%20Nexus%207/myupdate-nexus7.zip
3) Since the nexus stock rom doesn't include the wpa_cli command I found this one http://pic-e-bank.com/android/Droid/Kernels/Froyo/Slayher/slayher_wifi_fix.zip Extracted the file and copied it into the folder /system/bin (set permissions to 755).
4) Found this patched wpa_supplicant file from this post "[JB] wpa_supplicant for adhoc wifi networks" and copied it into the folder /system/bin (made a backup first of the original file and set the permissions of the new wpa_supplicant to 755).
5) With a terminal app (using adb also works) I followed this guide: http://www.olsr.org/?q=olsr_on_android to set up the ad hoc network to my nexus 7 manually.
And Eureka! I could connect my nexus to my nokia 808 hotspot, however I couldnt see any infrastructure networks anymore, the solution was to revert back to the original wpa_supplicant, so I'm thinking about making two command scripts to set up my ad hoc connection and revert it back whenever I need to connect to a different network (you can check this guide).
BTW, there are some custom roms that include the wpa_cli command, but I tried some of them and they didn't detect my hotspot until I replace the wpa_supplicant file with the patched one.
I'm no android expert but I think the problem with ad hoc connections is a kernel/wpa_supplicant issue, i guess at some point google decided to take out the support for IBSS networks, however the linux kernel still supports it, i really wish some expert could take a look into it.
I hope you find this info useful, but this is not a final solution and I'll still work into it whenever I can.
Click to expand...
Click to collapse
That’s great! At least you have provided something that works. It’ll take me some time to replicate what you did. I am going give it a try.
Thanks,
Ken
Thank you very much
Also I found out the networks settings are stored in /data/misc/wifi/wpa_supplicant.conf instead of /system/etc/wifi/wpa_supplicant.conf
reading this post Edit wpa_supplicant.conf instead of wpa_supplicant I managed to manually edit my ad hoc network settings, so the wpa_supplicant.conf would be like this
Code:
ap_scan = 2
network={
ssid="JOIKUSPOT"
scan_ssid=1
priority=10
mode=1
wep_key0="12345"
key_mgmt=NONE
}
And you have to give the ownership back to system.wifi using abd/terminal:
Code:
#chown system.wifi data/misc/wifi/wpa_supplicant.conf
For now im trying some customs roms to see if they can detect the ad hoc network out of the box, but so far I can only do it by replacing the wpa_supplicant and flashing the custom kernel from my previous post.
I'll keep posting my findings and try some other custom kernels as well.
So far this is what I got
Hi
So far this is my method to get (partial) ad hoc support for my N7 (wifi):
1) Start by rooting your device (you can use the Nexus 7 Root Toolkit).
2) Install CWM Recovery so you can install custom kernels.
3) Download and install this kernel https://github.com/monk-dot/SPAN/blob/master/kernels/ASUS%20Nexus%207/myupdate-nexus7.zip
4) Download and copy this wpa_supplicant file http://forum.xda-developers.com/showthread.php?t=1806937 into the /system/bin folder, be sure to set your wifi connection off, make a backup of the original file and after copying the file check the permissions to be 755
5) Create a text file with the following commands:
Code:
wpa_cli -p/var/run/wpa_supplicant scan
wpa_cli -p/var/run/wpa_supplicant scan_results
wpa_cli -p/var/run/wpa_supplicant remove_network 0
wpa_cli -p/var/run/wpa_supplicant ap_scan 2
wpa_cli -p/var/run/wpa_supplicant add_network
wpa_cli -p/var/run/wpa_supplicant set_network 0 ssid '"JOIKUSPOT"'
wpa_cli -p/var/run/wpa_supplicant set_network 0 scan_ssid 1
wpa_cli -p/var/run/wpa_supplicant set_network 0 frequency 2412
wpa_cli -p/var/run/wpa_supplicant set_network 0 mode 1
wpa_cli -p/var/run/wpa_supplicant set_network 0 group WEP40
wpa_cli -p/var/run/wpa_supplicant set_network 0 key_mgmt NONE
wpa_cli -p/var/run/wpa_supplicant set_network 0 wep_key0 '"12345"'
wpa_cli -p/var/run/wpa_supplicant set_network 0 wep_key1 12345
wpa_cli -p/var/run/wpa_supplicant set_network 0 wep_tx_keyidx 0
wpa_cli -p/var/run/wpa_supplicant save_config
wpa_cli -p/var/run/wpa_supplicant reconfigure
wpa_cli -p/var/run/wpa_supplicant enable_network 0
wpa_cli -p/var/run/wpa_supplicant select_network 0
Replace JOIKUSPOT with the ssid of your ad hoc network and set your password on the wep_key0 and wep_key1 variables, if you are using an open network just delete this lines:
Code:
wpa_cli -p/var/run/wpa_supplicant set_network 0 wep_key0 '"12345"'
wpa_cli -p/var/run/wpa_supplicant set_network 0 wep_key1 12345
wpa_cli -p/var/run/wpa_supplicant set_network 0 wep_tx_keyidx 0
6) Save the file "adhoc.sh" (be sure to save it in UNIX format, you can use notepad++ for this) and copy it into your device (I saved my script in /sdcard).
7) Turn the wifi connection back on and with a terminal emulator/ADB run the scrit
Code:
#cd /sdcard
#sh adhoc.sh
And now we're done!
You can see in your wifi settings your ad hoc network connected. But there are some issues, I cant see other networks on the list, even when I try to search for new networks, I can browse the web but cant connect to the play store, and with BlueVPN you could browse the store but couldn't download apps, the wifi icon in the notification bar is also gray color, after searching the forums this could mean I cannot connect to google services, but I still receive gmail notifications.
Well, I'll have to research more, but at least I think we're in the right way, to me this is a kernel/wpa_supplicant issue, I really wish some expert could help us out, or else I'll have to get into kernel compiling, I have a little linux experience and its been a while I dont get my hands into programming, but I'm not giving up just yet.
P.S: After checking with the terminal emulator, I started the command wpa_cli and this is the output I got:
Code:
[email protected]:/ # wpa_cli
wpa_cli
wpa_cli v2.0-devel-4.2.1
Copyright (c) 2004-2012, Jouni Malinen <[email protected]> and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
Using interface 'wlan0'
Interactive mode
<3>Trying to associate with SSID 'JOIKUSPOT'
<3>Association request to the driver failed
>
There seems to be a driver problem, I'll take a look into it too as soon as I can.
BTW I found this wpa_supplicat / wpa_cli files from this post http://forum.xda-developers.com/showthread.php?t=1980021 since the stock rom doesnt come with the wpa_cli command, these files seem to be for ICS but I tried them on JB and they work too.
Just a quick heads up
I've updated my n7 to rootbox v2.0 (comes with JB 4.2.2) and now I cannot connect it to my hotspot with my previous method, after checking my /data/misc/wifi/wpa_supplicant.conf file now shows this line:
network={
ssid="JOIKUSPOT"
.
.
disabled=1
}
What the heck does this mean? seems to be that the more I update my tablet the harder is getting to connect it to my ad hoc network, this makes me think maybe google wants to erradicate ad hoc wifi support from the OS, to me this is dumbest thing I ever heard since this tablet is WIFI only, isn't supposed to support ANY wifi network it finds in order to work properly? other OS like iOS or Symbian does still support it. Just the fact that i cannot use my tablet the way I want it to is very disappointing, and now I face two options: 1) Downgrade the tablet and never let it update again. 2) Install ubuntu and never again install android.
Im very sorry to say this but this is my first android device and my experience with it is very unsatisfactory, sometimes I wish I could get a refund and try the iPad mini or wait for any decent windows rt tablet.
For now I think i'm going for my option 2, tomorrow ubuntu will release the tablet version of their OS for the nexus 7, ill check it out and ill tell you my experience with it.
Please, if someone knows any of the senior contributors/developers of this community, please make them notice this issue, its almost unbelievable that ad hoc support haven't been fixed from android since issue #82, the original linux kernel supports it, and then google stripped it out and nobody got a response about this in the forums/groups, I know this is not an easy task, cause the android SDK doesnt support it either, also that you have to add the IBSS driver into the kernel and patch the wpa_supplicant file to stop filtering ad hoc networks, I still dont know if many people have requested this feature why even the modding community for android havent come with a concrete solution for this, there are a lot of kernel modders out there and I could find only one kernel that would work for me. I have to say that the most frustrating part of this situation is the lack of answers from the forums, I know this post already reached 1000 views, this means there's people still looking for an answer like me.
I have been trying lots of things on my new nexus 7 running 4.2.2 to try and get ad hoc networking working.
I have tried all the wpa_supplicant files I can find and even tried patching and compiling (using modified patches from h t t p://szym.net/2010/12/adhoc-wifi-in-android/) my own with no luck.
There are some musings at h t t p://szym.net/2010/12/prospects-of-ad-hoc-wifi-in-android/ saying we may never got it
I'll keep trying different things as this is something I really want
finally!
I found this custom rom (cm10 - 4.2.2 based) that has full IBSS support:
http://b-real.org/2013/ad-hoc-ibss-mode-support-for-android-4-2-2-with-cyanogenmod/
http://www.thinktube.com/android-tech/46-android-wifi-ibss
Here we provide information, patches and a few system images to support Ad-Hoc (IBSS) mode. We base our additions on CyanogenMod 10.1-M2 (Android 4.2.2 JDQ39).
Our goal is to bring the missing Ad-Hoc (IBSS) mode to Android, in a way that is completely integrated into the Android system API and user-interface. Users should be able to create and connect to Ad-Hoc networks from the standard user interface (Settings – WiFi) and Applications should have an API to configure their “own” Ad-Hoc network. We believe this will help people who need more capability than WiFi Direct and can extend diverse usages of Android mobile devices.
To achieve this, we have modified the WLAN driver “bcmdhd”, extended the Android framework, the public Android API and added the missing parts to the “Settings” application. At this moment only Nexus S, Galaxy Nexus and Nexus 7 devices are supported and tested, but the same kernel modifications can be made to a number of devices and the UI will automatically show Ad-Hoc mode options when the driver supports it.
We have submitted these changes to CyanogenMod and Google AOSP Gerrit and provide this page for further information.
Click to expand...
Click to collapse
I have tested it on my nexus 7 and it can detect my nokia hotspot (joikuspot) flawlessly
Downloaded and installed this last night and it works great. I can connect to my nokia 808 using ad-hoc wifi now from my nexus 7.
Today my Cyanogenmod made an automatic update to 10.1.0 RC1 and the ad hoc wifi works fine
Hi,
I just had the problem of being behind a Http/Https proxy and there is currently no option available to set this on the fire TV Stick.
Android offers this option at least since version 4 by default but they must have deactivatetd this feature intenionaly (region rights and such things).
But it is still possible.
1. Setup your AFTVS on a normal Wifi with internet connection ( if not already done)
2. Activate Apps from unkown sources and ADB
Settings --> System --> Developersoptions
3. Make sure your are connected to the same network as your pc.
4. Sideload following app:
Code:
AndroidProxySetter:
github.com/jpkrause/AndroidProxySetter/releases
How To sideload:
aftvnews.com/sideload/#more-7959
5. Start the App over adb on your pc:
Code:
//connect to device
adb connect 192.168.1.184:5555
//check the connection
adb -s 192.168.1.184:5555 get-state
//start app
adb -s 192.168.1.184:5555 shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 192.168.56.1 -e port 8080 -e ssid PrivateWifi -e key Passw0rd
Where u would replace the device ip, host, port, ssid and key with the settings of your network.
Please mind that ur on a linux based system and everything is case sensitiv.
For more options look here:
Code:
github.com/jpkrause/AndroidProxySetter
5. Now, if everything is fine some little popups will be displayed and at last it should say connected.
6. Going back to the home screen and Done.
Known issues: After some major updates you will need to set the proxy again, so just repeat step 4
It should also run on the normal AFTV but i got none so i can't test it.
All Credit goes to JPKrause who wrote that little app, I just happend to find it
Update 21.06.2016:
With Fire Os 5.2.1.0 it seems like you cant start adb on the device itself so you have to start the proxysetter over adb on your pc.
This "new" way doesnt require to install the terminal emulator anymore and its actually more comfortable.
best regards N4b0
how to setting up proxy using pac file?
N4b0 said:
Update 21.06.2016:
With Fire Os 5.2.1.0 it seems like you cant start adb on the device itself so you have to start the proxysetter over adb on your pc.
This "new" way doesnt require to install the terminal emulator anymore and its actually more comfortable.
best regards N4b0
Click to expand...
Click to collapse
how to setting up proxy using pac file?
zcrself said:
how to setting up proxy using pac file?
Click to expand...
Click to collapse
Hi,
well I guess the AndroidProxySetter doesn't cover any way to use PAC files.
But you can actually open your pac file with an editor of your choise and extract your proxy settings from the containing functions.
bg N4b0
Hello, I have this working on a Fire Stick, I ran the commands on a Fire TV and is not working. Anyone has this working on a AFT (no stick)?
Any help is appreciated.
Thanks.
edit: it not working anymore on my fire tv stick, I see the connection going to the proxy but in the screen it says invalid_geo_ip, somehow they manage to get my original ip. My gf is american, and we are abroad, this was the only way to watch amazon content. Sad. I'll try to get a vpn instead, but this proxy setting was easy configuration.
Hi mastodonian,
in my case it still works like a charm on the AFTVS. I just tried it over a vpn that my home server provides, but the tv stick then says something about geo restriction even though its a german vpn. I suppose they are doing some kind of deep packet inspection or they got an ip blacklist.
Can't say but eventually the proxy you are tring to connect uses internally a vpn or is on a blacklist.
Cheers n4b0
can someone help me with this one im a bit slow on following instructions especially codes like these
gjhech said:
can someone help me with this one im a bit slow on following instructions especially codes like these
Click to expand...
Click to collapse
its pretty simple just do the following
Download adblock plus and install it on your firestick - use the power of google or an app store on your fire stick to get it
Download this app to your pc - https://github.com/jpkrause/Android...d/v0.1.3-alpha/proxy-setter-release-0.1.3.apk
Adb this app to your firestick by (assuming you have adb installed if not google howto)
enable adb on the fire stick in dev options if not already done so
adb connect 192.168.1.1 (change the ip address to your firesticks)
adb devices (you should see a list of devices connected if adb is working with your firestick ip address and port number)
adb install (then drag and drop the apk file into the command window - This will auto complete the path of the apk to save you entering it manually)
once the apk is installed
Code:
adb -s 192.168.1.1:5555 shell am start -n tk.elevenk.proxysetter/.MainActivity -e host localhost -e port 2020 -e ssid MyWifiName -e key MyWifiKey
Starting: Intent { cmp=tk.elevenk.proxysetter/.MainActivity (has extras) }
Change the ip address in the above code to your firestick ip address - the numbers after the : is the port address - it should match what you saw when you typed adb devices
Change the ssid to your wifi name and key to your wifi password
you will get some pop up windows on the firestick telling you if it has succeeded or you have errors
next open adblock plus and enable adblocking
restart the firestick
open adblock plus again and you shouldnt see the warning about it cannot manually set the proxy at the top of the screen
load up an adblock test website to test its working
Thank you for making this method clear and easy. However, even though I get the successful messages and the proxy chnages to localhost and the Port to 2020, Ad Block Plus still shows the "please configure manually" message after reboot.
Testing on some apps, the ads are most definitely not blocked!
Any suggestions?
Thanks for malking this app , I just have a problem , netflix connects directly and not through the proxy , any idea how to force connecting through proxy ,
It works perfect
I bought FireStick today and it wouldn't let me connect to Amazon as my ISP has made mandatory to use HTTP proxy.
I followed your step wise instructions and it worked. Thanks a ton
Hello,
Thank you for this! One issue: I'm unable to disable to proxy via adb... is there a specific way to do this? I've attempted to uninstall the apk file and clear data, but it still remains connected to the host.
Any assistance would be greatly appreciated!
pdesai91 said:
Hello,
Thank you for this! One issue: I'm unable to disable to proxy via adb... is there a specific way to do this? I've attempted to uninstall the apk file and clear data, but it still remains connected to the host.
Any assistance would be greatly appreciated!
Click to expand...
Click to collapse
Hi,
I actually had to do this myslef recently so what i did was just remove the network via the GUI and add the network again.
If you have to do this over ADB you should try to remove the network and add it without proxy flag
Cheers N4b0
xbarsasy said:
Thanks for malking this app , I just have a problem , netflix connects directly and not through the proxy , any idea how to force connecting through proxy ,
Click to expand...
Click to collapse
Well I have to clarify i did not make this app i just found it and put it to good use
On the issue i cant really say how to force him using the proxy. This method just configures the android intigrated Wifi network stack that supports proxys since 2.X is suppose. If an app like Netflix detects this, then u need an other method.
For windows i got an app called Proxifier, but until now i didnt find anything similar for android.
Only alternativ solution for your problem I can think of would be to configure your Accesspoint with a VPN on a second virtual network (well that's how i would do it).
Cheers N4b0
Hi All,
-I posted as a guest but didnt see my message, so posting again. sorry if it will be duplicate-
After Fire OS 6.2.1.3 upgrade, this wonderful proxysetter app doesn't seem to work anymore. I tried both 0.1.3 and 0.2 versions and it can not set the proxy.
Poareq said:
Hi All,
-I posted as a guest but didnt see my message, so posting again. sorry if it will be duplicate-
After Fire OS 6.2.1.3 upgrade, this wonderful proxysetter app doesn't seem to work anymore. I tried both 0.1.3 and 0.2 versions and it can not set the proxy.
Click to expand...
Click to collapse
Facing the same issue, unable to connect to Amazon after October update.
Any workaround available?
Not working for me too
uj812 said:
Facing the same issue, unable to connect to Amazon after October update.
Any workaround available?
Click to expand...
Click to collapse
I recently bought a fire tv stick. But unfortunately unable to make http proxy work. Kindly advice.
Solved... I think
phildani7 said:
I recently bought a fire tv stick. But unfortunately unable to make http proxy work. Kindly advice.
Click to expand...
Click to collapse
Not sure if anybody is still interested in this, but I recently uninstalled the apk and was unable to install it again getting the following error: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
The solution is simple! The latest version of the FIreTV OS includes a proxy setting!
Just follow Step 1. in the instructions here: Blocked
The original instructions are posted on the Amazon appstore -> Appstore Blogs -> Viewing Secure (SSL/HTTPS) Traffic From Your App on Fire TVs Running Fire OS 6 on November 02, 2018
Since I've been blocked from posting a URL, here are the slightly modified instructions:
Setting a proxy on Fire TV
Bring up the Developer Tools Menu by one of the following two ways:
Remote: 1) Press and hold the Select and Down buttons for five seconds release and then 2) Press the menu button
ADB: adb shell am start -n com.amazon.ssm/.ControlPanel
Select Network Proxy
Select Manual
Enter your proxy IP address
Enter your proxy port
Click Save
Enjoy!
Hi All,
These proxy setting were working for me until the last update on OS 6.x and OS 7.x. The Developer setting app crashes on selecting save on the Network settings and the IP/port info is not saved.
Is someone else facing same issue.. Any work arounds?
Try this. It worked for me.
Use this .apk AndroidProxySetter. Install and follow the commands. It will route Network traffic to Charles proxy.
https://github.com/manadream/AndroidProxySetter
HI DOES Anyone know how to enable RNDIS + DM + Modem mode?
i could access it on Stock rom but cannot on Custom rom is there a way to do it through Terminal mode? if so how please
anime12345 said:
HI DOES Anyone know how to enable RNDIS + DM + Modem mode?
i could access it on Stock rom but cannot on Custom rom is there a way to do it through Terminal mode? if so how please
Click to expand...
Click to collapse
Hi, I've used RNDIS (sharing PC's internet to phone) on my own phone (huawei honor 4c, Android 6, ROOTED!) but I believe the basics are the same. Generally to have RNDIS working (you can share your pc's internet to your phone) you must do the following steps:
1. connect phone to PC via USB cable & Install USB drivers
2. select RNDIS mode : (in my case) Settings > Developer options > Select USB configuration > RNDIS (USB Ethernet)
3. on the PC: share your internet connection to RNDIS connection (Note that windows 7 & higher uses 192.168.137.0 IP range for sharing connection, so you must use this range on your phone)
4. set an IP address on RNDIS dev & bringing it up (type in terminal emulator: ifconfig 192.168.137.2 rndis0 up)
5. set the default gateway for your phone (type in terminal emulator: route add default gw 192.168.137.1)
6. set DNS for your phone (refer to this thread for a complete guide, because setting DNS methods usually depends on phone rom & android version), I used this command & it answered me thanks to GokulNC:
Code:
ndc resolver setnetdns rndis0 <dns ip from my internet> 8.8.8.8
Good Luck!
hosseinb said:
Hi, I've used RNDIS (sharing PC's internet to phone) on my own phone (huawei honor 4c, Android 6, ROOTED!) but I believe the basics are the same. Generally to have RNDIS working (you can share your pc's internet to your phone) you must do the following steps:
1. connect phone to PC via USB cable & Install USB drivers
2. select RNDIS mode : (in my case) Settings > Developer options > Select USB configuration > RNDIS (USB Ethernet)
3. on the PC: share your internet connection to RNDIS connection (Note that windows 7 & higher uses 192.168.137.0 IP range for sharing connection, so you must use this range on your phone)
4. set an IP address on RNDIS dev & bringing it up (type in terminal emulator: ifconfig 192.168.137.2 rndis0 up)
5. set the default gateway for your phone (type in terminal emulator: route add default gw 192.168.137.1)
6. set DNS for your phone (refer to this thread for a complete guide, because setting DNS methods usually depends on phone rom & android version), I used this command & it answered me thanks to GokulNC:
Code:
ndc resolver setnetdns rndis0 <dns ip from my internet> 8.8.8.8
Good Luck!
Click to expand...
Click to collapse
I know this is 4 years ago but I've been pulling my hair out trying to do this in reverse. I have Lenovo Yoga 2 Pro running Android 9 x86 (Bliss 11.13 x64). It's rooted and the phone is Android 8.1 that is not rooted. I want use the phone as my wifi because the Yoga has a broken wifi card. The phone doesn't support USB tethering using wifi, only cell data. I use PDANet in Windows fine but it doesn't support USB tethering from Android to Android (to my knowledge). You can turn on RNDIS mode in Developer Options on the phone. Is this possible without rooting the phone?
i_guana said:
I know this is 4 years ago but I've been pulling my hair out trying to do this in reverse. I have Lenovo Yoga 2 Pro running Android 9 x86 (Bliss 11.13 x64). It's rooted and the phone is Android 8.1 that is not rooted. I want use the phone as my wifi because the Yoga has a broken wifi card. The phone doesn't support USB tethering using wifi, only cell data. I use PDANet in Windows fine but it doesn't support USB tethering from Android to Android (to my knowledge). You can turn on RNDIS mode in Developer Options on the phone. Is this possible without rooting the phone?
Click to expand...
Click to collapse
'dun' option in APN settings. Pretty much make a new APN and copy everything exact and then add dun to APN type.
anime12345 said:
HI DOES Anyone know how to enable RNDIS + DM + Modem mode?
i could access it on Stock rom but cannot on Custom rom is there a way to do it through Terminal mode? if so how please
Click to expand...
Click to collapse
On my Samsung A51, I can enable RNDIS + ADB mode by dialing *#0808# and choosing from the menu.
Dr Doppio said:
On my Samsung A51, I can enable RNDIS + ADB mode by dialing *#0808# and choosing from the menu.
Click to expand...
Click to collapse
*#0808# are working with Samsung devices.
I get "Temporary network problem that is preventing the portable Wi-Fi hotspot feature from being enabled " when I try to enable a portable hotspot on my 6P.
I'm rooted, on 7.1.2 and have an AT&T SIM (from FreedomPop).
Many people have complained about this problem on various phones, but I haven't been able to find a solution. How do I fix this?
Answering my own question:
1. adb shell
2. su
3. settings put global tether_dun_required 0
4. Add to build.prop: net.tethering.noprovisioning=true
5. reboot
Hi,
Since the Marshmallow update on a Y201 with the European firmware, the WiFi and USB tethering seem not to work anymore. The computer connects to the WiFi or USB network, but can't load any page. Bluetooth tethering however works fine.
Is anybody having the same issue?
Thanks.
wicoz said:
Hi,
Since the Marshmallow update on a Y201 with the European firmware, the WiFi and USB tethering seem not to work anymore. The computer connects to the WiFi or USB network, but can't load any page. Bluetooth tethering however works fine.
Is anybody having the same issue?
Thanks.
Click to expand...
Click to collapse
Wifi tethering works for me, USB doesn't.
The solution in [HOW TO] Unlock tethering on Marshmallow 6.0 did the trick: adb shell "settings put global tether_dun_required 0".
Alternatively, manually specifying the DNS parameters on each device to connect also worked, but that's far from convenient.
I still don't know if it's related to my mobile carrier or the Yotaphone itself.
wicoz said:
The solution in [HOW TO] Unlock tethering on Marshmallow 6.0 did the trick: adb shell "settings put global tether_dun_required 0".
Alternatively, manually specifying the DNS parameters on each device to connect also worked, but that's far from convenient.
I still don't know if it's related to my mobile carrier or the Yotaphone itself.
Click to expand...
Click to collapse
I had issues with tethering even on Lollipop.
After some googling I found I needed to update the APN Type in APN settings to include 'internet'. It had previous been empty. Others have reported putting dun in there...