yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] wlh03212:
# enable dual-networking:

............

............

.............

..........

...........

..............

..........

ip route add x.x.x.x via x.x.x.y # add any desired local route -------->( do i remove this row of code entirely? What do i do with this row of coding? Provide my default gateway? I'm not sure what's my default gateway or how i do find out my default gateway or how should i edit this coding to my default gateway.)

Anyway, try the other commands one by one and see which of them, if any, give you any errors. The netcfg command should show you that 2 interfaces (apart from the lo - 127.0.0.1) are UP and with expected IP addresses if everything goes well (In short if the i execute the above commands correctly with the correct default gateway of my 3G, the netcfg command should show my default gateway correctly? is my understanding correct?)
[Android Q&A, Help & Troubleshooting] sordna:
As I said before, you don't need the ip route command, remove that line entirely!

When all is working, netcfg | grep UP should show you your wlan interface with the IP address given to it by the Seagate, and your mobile data interface with the IP address given to it by your cellular provider.
[Android Q&A, Help & Troubleshooting] wlh03212:
Thanks you much! Going to try out when I get home.
[Android Q&A, Help & Troubleshooting] sordna:
OK. Please hit the thanks buttons :)
[Android Q&A, Help & Troubleshooting] wlh03212:
When i run the code line by line in terminal, i get an error message wlan0: interface not found or invalid

Do I run the code when connected to my hardisk hotspot? When exactly do I run the code.
[Android Q&A, Help & Troubleshooting] sordna:
If you try to understand the code you will notice it turns off your Wi-Fi and then turns it on. So actually you don't need to connect to the hotspot first.

Regarding the interface name, here is where you need to do your own investigation and figure the WiFi interface name for your own phone.

The netcfg command without any arguments displays all interfaces, and whenever you are on Wi-Fi, the relevant interface will be UP and will have your assigned IP address next to it.

Look at how much stuff I changed compared to the things posted by the other guy for the optimus phone. Look at his solution and be prepared to investigate and come up with similar amount of changes for your phone. I spent several hours trying different stuff for my Nexus 4, with my only info being the other guy's post. I read about netcfg and everything else googling various websites. You need to do the same and learn a bit about that stuff.

For all I know, the Optimus phone method could be closer to your phone than my method, perhaps. You have to do your own research and figure out the differences, then post them here to help other owners with the same device as yours.
[Android Q&A, Help & Troubleshooting] wlh03212:
Yes. I notice that the wifi switched off and then turns on again. Alright I do some research on my own! Thanks again.

Hope that I will get some breakthrough soon
[Android Q&A, Help & Troubleshooting] wlh03212:
Hi

I finally got it working. When I am connected to seagate wireless, I have to fiddle with the connection settings inside wifi settings. I assigned a static ip and assigned the gateway to 0.0.0.0

As for the ip, I set a different internal ip with the last digit increased by one. Example 172.25.0.2

Now I am connected to both 3G and LAN.
[Android Q&A, Help & Troubleshooting] hkultraman:
Hi, Thanks for your share, I am currently developing an Internal app which need to have wifi and 3G/4G at the same time. I am using LG G2 and I have rooted it.

I try to follow the script you posted step by step here. However, it seems that right after pkill dhcpdc, svc wifi disable and svc data enable, when I execute netcfg wlan0 up,, it states that wlan0 not found.

I suspect I need to load the wifi driver first before execute netcfg wlan0 up, isn't?

(BTW, are you installing busybox on your phone so that you can have the pkill command)?

And also, by following the link you posted, the LG guy seems have loaded 2 drivers as well.

insmod /system/lib/modules/cfg80211.ko

insmod /system/lib/modules/wlan.ko

Should I also need to load these 2 files as well?

Many thanks.
[Android Q&A, Help & Troubleshooting] sordna:
Depending on your phone/ROM/kernel you may need to load drivers/kernel modules. I'm on stock nexus 4, with Franco kernel.

And yes, I am using busybox by sterickson.
[Android Q&A, Help & Troubleshooting] hkultraman:
Thanks so much. I manage to have both WIFI and 3G/4G at the same time by following your steps.

But I have to make sure to load my driver first. From case, I have to run:

insmod /system/lib/modules/bcmdhd.ko

And right after I finished using wifi, I have to run following cmd to unload my driver in order to resume normal wifi behavior.

rmmod bcmdhd

Working great!
[Android Q&A, Help & Troubleshooting] Captus:
I'm running P.A.C on Galaxy S4. I have tried to look in the same folder for modules. I don't see clearly what i should be loading.

Any ideas?

I get the error wlan0 interface not found.
[Android Q&A, Help & Troubleshooting] hkultraman:
Did you try dhd.ko?

---------- Post added at 02:47 PM ---------- Previous post was at 02:43 PM ----------

You may also check the link below:

http://blog.csdn.net/roger__wong/article/details/9131421
[Android Q&A, Help & Troubleshooting] abur787:
Hi

Can someone help me? I am trying to run your commands to enable dual networks, only While trying to load this command: busybox insmod /system/lib/modules/cfg80211.kobusybox insmod /system/lib/modules/wlan.ko

It states not found.

Can any explain how to do this for me?

I'm rooted on stock 4.1 rom with busybox pro installed.
[Android Q&A, Help & Troubleshooting] djawho:
it's good

hi

have you create a app for that ?
[Android Q&A, Help & Troubleshooting] jorgenbl:
Hi,

I tried the similar as you did above with my nexus 4 but it seems to disconnect immediately after connecting:

Output of script:

1|root@mako:/mnt/sdcard/Scripts # sh dualnet_enable.sh

dhcpcd[27977]: version 5.5.6 starting

dhcpcd[27977]: wlan0: waiting for carrier

dhcpcd[27977]: wlan0: carrier acquired

dhcpcd[27977]: wlan0: rebinding lease of 192.168.64.124

dhcpcd[27977]: wlan0: carrier lost

dhcpcd[27977]: wlan0: carrier acquired

dhcpcd[27977]: wlan0: rebinding lease of 192.168.64.124

dhcpcd[27977]: wlan0: NAK: requested address not available from 192.168.64.1

dhcpcd[27977]: wlan0: broadcasting for a lease

dhcpcd[27977]: wlan0: offered 192.168.64.125 from 192.168.64.1

dhcpcd[27977]: wlan0: acknowledged 192.168.64.125 from 192.168.64.1

dhcpcd[27977]: wlan0: checking for 192.168.64.125

dhcpcd[27977]: wlan0: carrier lost

dhcpcd[27977]: wlan0: removing interface

Logcat:

I/wpa_supplicant(28194): wlan0: Trying to associate with SSID 'enga'

I/wpa_supplicant(28194): wlan0: Associated with 70:73:cb:b5:11:c1

I/wpa_supplicant(28194): wlan0: WPA: Key negotiation completed with 70:73:cb:b5:11:c1 [PTK=CCMP GTK=CCMP]

I/wpa_supplicant(28194): wlan0: CTRL-EVENT-CONNECTED - Connection to 70:73:cb:b5:11:c1 completed (auth) [id=0 id_str=]

I/wpa_supplicant(28194): wlan0: CTRL-EVENT-DISCONNECTED bssid=70:73:cb:b5:11:c1 reason=0 locally_generated=1

I/wpa_supplicant(28331): Successfully initialized wpa_supplicant

I/wpa_supplicant(28331): rfkill: Cannot open RFKILL control device

I/wpa_supplicant(28331): rfkill: Cannot open RFKILL control device

W/wpa_supplicant(28331): wlan0: Failed to initiate AP scan

W/wpa_supplicant(28331): wlan0: Failed to initiate AP scan

W/wpa_supplicant(28331): wlan0: Failed to initiate AP scan

I/wpa_supplicant(28331): CTRL_IFACE monitor[0]: 2 - No such file or directory

I/wpa_supplicant(28194): wlan0: Trying to associate with SSID 'enga'

I/wpa_supplicant(28194): wlan0: Associated with 70:73:cb:b5:11:c1

I/wpa_supplicant(28331): wlan0: No network configuration found for the current AP

I/wpa_supplicant(28331): wlan0: CTRL-EVENT-DISCONNECTED bssid=70:73:cb:b5:11:c1 reason=3 locally_generated=1

I/wpa_supplicant(28194): wlan0: CTRL-EVENT-DISCONNECTED bssid=70:73:cb:b5:11:c1 reason=0 locally_generated=1

I/wpa_supplicant(28194): wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect

I/wpa_supplicant(28194): wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="enga" auth_failures=1 duration=10

W/wpa_supplicant(28194): wlan0: Failed to initiate AP scan

I tried both android 4.3 and 4.4.2, same error.

Jørgen
[Android Q&A, Help & Troubleshooting] sordna:
Not sure what the reason could be. I'm on stock android, and have been using this since 4.3, and it worked in 4.3, 4.4, and now in 4.4.2. I just tried it and it still works. I get "carrier acquired" and I don't lose it afterwards. I get a dhcp lease for my wlan0 interface, and then dhcpcd forks in the background. I can ssh to my phone on my wifi LAN, and from there traceroute to external websites over my phone's cellular network verifying it uses that and not my home ISP.

"netcfg | grep UP" shows both my wlan0 and rmnet_usb0 interfaces having IP addresses and being up.

I can even proxy between my home wifi and my celullar carrier as if doing tethering, only using a proxy server on my phone instead (and specifying the phone's IP as the proxy in my home computers' browsers).

I also need to mention I use Franco kernel. Not sure if it makes a difference, but I believe franco kernel has the modules compiled in, and I don't need to "insmod" anything like some other folks seem to be doing.
[Android Q&A, Help & Troubleshooting] undoubledgoose:
problems with loading Wlan module

Hello guys,

i'm new here and found this helpful thread a few days ago. I hope the thread is not too old for posting a question.

The little hint from sordna is very interesting and sounds very easy...	Unfortunately, i have a little problem with bringing up the wlan kernel module when 3g-data is active.

But at first i will show you my phone properties:

Model: Samsung GT-I9001

Android Version: 4.3.1

Kernel Version: 3.4.70-cyanogenmod

Cyanogenmod Version: 10.2-20131125

The initial situation is that the phone is connnected to a Wlan-AP (Rasperry Pi) without internet gateway, so the phone isn't connected to the internet while connected to the AP. My target is to enable 3g-data while being connected to the AP and route it to the Rasperry Pi.

But at first i want to enable 3g... so i followed sordna's steps and it failed of course because i have a different phone model.

My Wlan interface is named wlan0 and the dhd.ko is located in /system/lib/modules/dhd.ko

When i tried "insmod /system/lib/modules/dhd.ko" over ADB Shell (with su at first) there comes <no such device> error message.

According to Roger Wongs article on page 3 posted from hkultraman

there must be a wifi.conf file located in /system/etc/wifi/ but there is only the wpa_supplicant.conf. Is this my "wifi.conf" file?

I know the the insmod command must be placed with expressions like "insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcm4329_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt iface_name=eth0" but i dont know which expression fits for my model...

In the article is java code posted from Wifi Tether... can i use this for my problem and if yes how?

I searched for the problem in this forum but the postings where only about compiling a custom kernel with wlan-module and so on...

Edit: i checked with lsmod wich modules are loaded, this is the output with enabled wifi:

dhd 375610 0 - Live 0x00000000

maybe its helpful....

Thanks in advance for your help.
[Android Q&A, Help & Troubleshooting] brfe:
Technique not working on Lollipop

I've been using the technique in this thread successfully, on Android 4 (4.0, 4.4.4).

However on Android 5.0.2, I am finding that it hangs for a long time and eventually fails on "dhcpcd wlan0". I am also seeing the "no carrier" error message.

Can anyone confirm whether or not this technique should be expected to work on Android 5?
[Android Q&A, Help & Troubleshooting] axelxxxxx:
hi i am really gratefull for this scripts BUT i have a problem with running them. I have rooted Xperia mini Pro mango sk17i runnig on CM 10.2 (android 4.3 i downloaded the same android as you to run this script :D ) when i start the scripts it show me some text but i cant doo anything neither i cant run wifi and 3g at same time. Did you used some NET CFG scripts or anything else. Please help me. Thanx
[Android Q&A, Help & Troubleshooting] baharxy:
Did you ever find an alternative solution? I experience the same problem with Android 6.0
[Android Q&A, Help & Troubleshooting] minglongDai:
I have tried those cmd lines in terminal, and the 3G interface & Wifi interface have been turned on simultaneously successfully. But when I use socket = new Socket(url,remote port, wifi local address , 36666) to bind a socket to the wifi interface, it didn't work. what should I do?
[Android Q&A, Help & Troubleshooting] polgoz:
Hello, is possible to apply this on an Android 6.0.1 ? thanks in advance
[Android Q&A, Help & Troubleshooting] Mohamad@smarttech:
I am mohmad from smartech company , we have a similat project , if someone is intersted he can work this project as freelancer
[General Questions and Answers] xnostra:
i would love to hear your suggestions
[Motorola Droid RAZR] circleofomega:
Yes, we now have root. But...

1. We still don't have ROMs cooked as per the chefs/devs choice

2. We don't have (official) ICS yet,

3. The activity is less in the ROM section as compared to other phones, except for a couple of ICS ROMs tweaked here and there.

I don't know and I am asking, do we have a bootloader unlocked yet? If not, then it's point number 4.

I agree the phone is fairly new, but not like its getting younger by the day.

Quad-Core phones are already here, and companies slowly phasing out Dual-Cores. Now where do we go from here.

I am just trying to understand if I have made an investment or a mistake.
[Motorola Droid RAZR] HSD-Pilot:
The question is, do we realy need an Quad-Core in our Phones or is just the industrie telling us, that we need a Quad in our Phones...

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] circleofomega:
That's not the point. The point is, will we see good Devs/Chefs working on ROMs or not, porting various devices' UI?
[Motorola Droid RAZR] HSD-Pilot:
I see some good Devs working for the RazR @ the Moment.

Just relax and see, what's coming with the official ICS...

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] sRDennyCrane:
No one is phasing out dual core processors. Yes, there are some quad cores. Yes, there will be more. But you don't need 4 cores for a good phone experience unless you're a hardcore gamer. And frankly, if you're a hardcore gamer, why are you using a phone?

The Nokia Lumia 900 uses a single core processor and it runs WP7 silky smooth. Of course a dual core will perform better when you're multitasking, but 4 cores is a bit much.

There's plenty of life left in the Razr. I think, at this point, we're all waiting for the official ICS release slated for later this month. I expect a flurry of activity once it's out in the wild.
[Motorola Droid RAZR] circleofomega:
Fingers crossed and hopes high. I really wanted to flash ROMs from different devices and push the phone to its limits.

And I agree, lets just wait and watch.
[Motorola Droid RAZR] mannyAk47:
Its like having a quadcore pc when the only thing you use it for is internet browsing

the main thing that makes me want to upgrade/change my mobile phones is the battery life not how many cpu cores that will drain the battery even faster

If anything the Razr maxx is the best phone on the market and will be for 2012 it will still beat the Samsung Galaxy S3 for battery life and iphone5 will just be another shiny **** that breaks when you drop it

Im planning on either trading my Razr in for razr maxx or upgrading the battery with the kits available

Iv had almost every high end mobile on the market and im happy with the Razr
[Motorola Droid RAZR] trickyhenry:
I am selling my htc one x as ui is laggy, battery lasts just a day depending on how much the screen is used. Its quad core... you'd never know. The only thing ill miss is the screen.

I just bought my razr as the build and materials feels great, the ui is fast with no lag, the speaker is loud. Looking forward to the laptop dock with ics.

Dont get hung up on quad core... the razr is much faster for every day use.
[Motorola Droid RAZR] rigbyrobot:
Its all about the boot loader, until it is bypassed/unlocked any custom rom has to be built atop the stock kernel. My advice is to donate and encourage the devs already trying to bypass it and find other devs that have already done it on similar phones and offer donations or start a fund to equip the dev with a razr to work on, whatever's needed to further the cause. Once we can boot custom kernels, cm7/cm9, miui,whatever ...will all follow.
[Motorola Droid RAZR] circleofomega:
Again guys, I am not talking about Quad-core vs Dual core. I am talking about the dev of this phone irrespective of the no. of cores in the phone.

Now that makes sense. So zeroing down on the issue, it is the bootloader. But may I ask, my father has a Sony Ericsson X10 and the phone is very much rooted, BUT the bootloader isn't unlocked. But I was still able to flash a cool Xperia S ROM on it...so how come the bootloader allowed??
[Motorola Droid RAZR] spc_hicks09:
Why buy a RAZR if you just want some other devices UI on it?

Work on these phones is being done but just because it's not happening as fast as people want it to, doesn't mean it's not happening. ICS will come soon enough and devs are currently working on ROMs built from the ICS leaks.

DHacker from droidhive.com and hash are currently working on getting AOKP running fully on the .84 leak.

Stuff is happening, it's just that devs aren't posting every little thing they do.
[Motorola Droid RAZR] MamoriNoTenshi:
Lol no one needs a quad-core processor. I've just moved from my old N900 to the XT910 and let me tell you, this is phone is just fast... Everything is smooth even gaming, browsing and listening to music all at the same time.
[Motorola Droid RAZR] rigbyrobot:
I dont know much about sony phones, it could be a bootloader bypass, or the kernels could be similar enough that its tweaked to boot up like hashcodes safestrap enables us to boot custom roms, but with the limitation of having to work around the stock kernel.
[Motorola Droid RAZR] circleofomega:
Now, what I meant was, I get to choose the flavour of my Android, Sense or Blur etc...I meant anything I want and not stuck to one..that's y we have Android and not iPhone right? :P

Sent from my Droid RaZr.
[Motorola Droid RAZR] rigbyrobot:
If you don't want to run one of the roms mentioned ( you'll find more on droidhive than xda). With root you can freeze the bloat ware and run a 3rd party launcher, ie adw, go launcher, launcher pro plus, etc.
[Motorola Droid RAZR] stkiswr:
Honestly I didn't buy my RAZR maxx to heavily mod. I spent 3 years w android and got burnt out. I bought my maxx because I felt that Motorola build quality and decent specs would quench my thirst. I did however try the .75 ics leak and was very impressed. I have root access on the stock .181 I am currently on and really don't use anything root.

All this being said, the RAZR is just like all the moto phones that came after the og DROID. It is and will forever be locked until Motorola frees it. No one has cracked them. No one is going to. People are supposedly getting close but all sorts of bugs. If moto unlocks then it will be smooth and work perfect. But it hasn't happened yet and with the possibility of the government contract w moto to supply phones for them...there is no way its getting free.

So, not to be rude, but you are fighting a losing battle. You are not a dev. You are a consumer like myself. If you want a flashaholic phone, grab a nexus. They have a working theme engine now w cm9 and its looking pretty fresh. I will stick w this RAZR because once It gets official ics I will not need root. Disabling apps freezes them. I can take screenshots. Have a phone that lasts all day and never reboots. Screws up. Acts crazy. Drops calls. Gets great data speeds and knocks **** out.

So become a dev and do the impossible that has been getting worked on for years...or get over it, enjoy a great phone, or sell that bish and get what fits your needs.
[Motorola Droid RAZR] rigbyrobot:
With a bootloader bypass, which has been done recently on other moto phones, and with moto being legally obliged to release a significant amount of there source code under the gpl license, its only a matter of time before we have as almost as much if not all the freedom of a Nexus
[Motorola Droid RAZR] stkiswr:
That would be great but I am not getting my hopes up. Its compliance. That's kinda like some of the old laws like having a mustache in certain parts of Texas can get you arrested. Gpl clearly doesn't care or else these companies would be forced to comply...which hasn't happened. They comply when they feel like it
[Motorola Droid RAZR] circleofomega:
How can I disagree. You are absolutely right. I'm not a Dev but a consumer and now am seriously doubting my decision. don't get me wrong people but I love thus phone. Its the best Android money could buy when I got it but what beyond this? And u have succinctly said it, nowhere. Its a sad day.

:(

Sent from my Droid RaZr.
[Motorola Droid RAZR] circleofomega:
I may not be as positive as you my friend but am surely not selling my phone for a whole now. Its beautiful full and surely has the potential. So am gonna wait. :)

Sent from my Droid RaZr.
[Motorola Droid RAZR] stkiswr:
I am not trying to be rude so please don't take it that way. I would just say don't hold your breath if Modding is priority and move to a phone that will let you. Nothing wrong w that at all. I had an Evo years ago and the community was crazy busy. Full s off. Free to do whatever. Unbrickable. It was nice but slightly consuming.
[Motorola Droid RAZR] DrSadistic:
I maybe considered a heretic for saying this but honestly, I'm liking this phone way better unmodded. I didn't jump on the leaks like others did... just rooted gb and themed go launcher to my liking. With a phone as well built as my Maxx I don't see the need to introduce any new features that can't be added with an app or two. When ics drops, ill happily install the OTA and relish the official build, but until then, this device is running perfect and I see no reason to change that fact.
[Motorola Droid RAZR] stkiswr:
I did try the .75 leak and it was great. I flashed back before .181 dropped. I am not interested in trying broken roms. Official ics will be a very very nice upgrade
[Motorola Droid RAZR] DrSadistic:
Agreed
[Motorola Droid RAZR] circleofomega:
Agreed.

Sent from my Droid RaZr.
[Motorola Droid RAZR] circleofomega:
That actually sounds like me when i got the phone. "NO. I am not moding this.phone." "Why do I need a tweak when it is working so fine.." but...here I am 6 months later which ROM to flash. Hmmm..I have to say I agree with you its perfect then why bother...but again...like the famous words go, "Once a flasher, always a flasher." :)

Sent from my Droid RaZr.