yashsingh1/xdaforums huggingface dataset:
[Android Software Development] joeyhuab:
Doesn't work in Android 4.2.2 (MTK). Basically, I'm stuck in an "Obtaining IP address..." loop. Fixed permissions already.

EDIT: Getting the "Avoided poor Internet connection" dialogue underneath the wifi name even if I have 3 bars of wifi signal.
[Android Software Development] phhusson:
Because this dhcpcd is built as userdebug, while your dhcpcd is built as user, without debugging symbols
[Android Software Development] jumoog:
already Abandoned
[Android Software Development] Craiq:
would you like to build and post it as user? :) I'm not that advanced that I'll check the log for errors
[Android Software Development] desalesouche:
hi sir , may i ask you if you can upload the patched file that i will push to my sources? thank you
[Android Software Development] HoTsHoT89:
Doesn't work on the Xperia Z3, 4.4.4 stock firmware. Obtaining IP address time length still seems to be about the same.
[Android Software Development] anttaz:
Working on HTC one m8 android l 5.0.1 many thanks
[Android Software Development] BlakeDC:
Can't really tell if anything is happening.

What would be cool, though, is a hack to where my data would lock on to cell networks a lot faster!

I'm on the D851 (Tmobile G3) and going through tunnels on the metro....they should just extend the tunnels because sometimes I can go 1.5 miles out of the tunnels before my data kicks back in. Its a hard life!

Overall, I applied the patch and it took about 3 seconds for wifi to connect to a known network. Seemed faster, might be placebo tho.
[Android Software Development] 1ad_m12:
Great tweak! I actually use tasker to manage my wifi when not in use and in tandem to that I use a version of smart unlock over my wifi so this is right up my alley. I used to have to wait before putting down my phone when I get home but this made connecting blazing fast! Thanks OP
[Android Software Development] EvilDragonEX:
so... im using this patch on my Moto X 2013 and it works great ! wifi now connects INSTANTLY !

it says Authenticating... and then INSTANTLY says Connected !

great job !

(i changed permission and ownership to the same as the original)

Edit : so for comparison purposes... i changed back to the original and... it connects super slow compared to this patch ! ( stucks at Authenticating... for a few secs then only changed to Connected )
[Android Software Development] phhusson:
Sorry, i'm too lazy for that, and there is not much point of not using a userdebug build.

I can, but i'm not sure what you're asking ?

The diff is already attached in first message

You want a proper commit-diff with a message and author ?

I can(should) do that

There are three limitations to the acceleration:

- The original firmware must use dhcpcd (I think it is the case of most firmware)

- The wifi driver must support the linux standard wireless extension. I know that some years ago, most android driver didn't support those. It's better know, but I assume it's not the case for all drivers

- SSID must not have weird names (like / in the name), because it creates a file called dhcp-lease.$SSID

Sorry, sounds like out of my league :p
[Android Software Development] malukiz:
Seem's that it's doesn't work for me, connecting then nothing :(

The thing is that to connect I need to log-in in a web page normaly (due to my FAI maybe it's the problem.

My phone is Nexus 4 with last Cyanogen.

Edit : Doesn't work for me even with permission and group changed.

Edit2 : That's strange even with original dhcpcd restored, that's wasn't working. Reflash rom, and wifi is ok...

Can you do a flashable zip with fix permission and everything for noobs ? :p
[Android Software Development] stoatwblr:
Thanks.

Works fine on a rooted Galaxy Note 4 (N910F) running stock 4.4.4

(Additionally: I _strongly_ suggest this gets submitted to dhcpcd upstream. It's useful on any dhcpcd client, not just androids.)

As a hint to others looking at this thread:

"mv /system/bin/dhcpcd /system/bin/dhcpcd.OLD" BEFORE installing the new binary - that way you can fall back to the old one if you ever need it.

Lease files are in /data/misc/dhcp/ for anyone wanting to check correct operation.
[Android Software Development] h4haideralii:
Working on Samsung Galaxy S4 i9500 Android 5.0.1 Samsung Official ROM .

Thanks :good:
[Android Software Development] stoatwblr:
Does anyone know the mechanisms that are used for IP assignment when mobile?
[Android Software Development] phhusson:
True. I was upstreaming to Android, but I'll try upstreaming to dhcpcd too
[Android Software Development] FosCoJ:
just works

Nexus 5, 5. Lollipop - xtrasmooth rom (based on stock, not aosp) -> seems to be faster (1-3s instead of 2-5 -> might be placebo though)
[Android Software Development] phhusson:
Ok, there is actually part of the optimizations which haven't been enabled, I'll do a new version which could be even faster.
[Android Software Development] Dovidhalevi:
Interesting

1. Is this compiled safe for armv6 device?

2. I have never seen a "retrieving ip address" message. Does this only effect change from hotspot to hotspot or normal phone operation/browsing.?
[Android Software Development] premiatul:
Does this work on Samsung with 4.3 TW Rom?
[Android Software Development] phhusson:
I added a v2 with additional optimisations.

It has the technical behaviour I expect, though I don't see any actual improvement.

Actually, reading logs, I get an IP in 100ms, but dhcpcd itself takes 300ms to actually start doing something...

Also, the longest part is definitely connecting to WiFi, more than requesting for an IP.

Edit: There is also a v3, which disables PREINIT hooks (one HEAVY useless (at least on my device) shell script not called), and doesn't for(i=3;i<1024;i++) close(i);, which gains perhaps 500ms

And I was wrong about the time of dhcpcd itself... It's still huge

From start of dhcpcd to give the info of android, there is still 1s of waittime on optimized version
[Android Software Development] SHABBYLEA:
Is there any chance you could upload an unzipped version? I don't have access to a working PC at the moment.

Many thanks...
[Android Software Development] phhusson:
I pushed dhcpcd-v2.img which is actually the v2 binary non-zipped (the forum needs a file extension :'( )
[Android Software Development] Xpid3r:
V2 Works well..!!

While in v1 it keeps connecting and then unable to connect...

Using Galaxy S4 5.0.1 Lolipop
[Android Software Development] SHABBYLEA:
Many thanks...?
[Android Software Development] dicrossus:
Didn't work on my Razr I with Kitkat... wifi activates, detects my network but stays on authenticating... sometimes it goes to "obtaining ip" but no connections are made... tried v2 and v3. Reverted back to original file and its working again!
[Android Software Development] SHABBYLEA:
Unfortunately, same here...(using blisspop on flo).
[Android Software Development] olokos:
Holy moly, now my WiFi works as it should! Instant connection! Thanks a ton man!
[Android Software Development] SHABBYLEA:
What device/ROM are you using?

I've tried various methods to get this to work...

Thanks.
[Android Software Development] RobboW:
Doesn't work on my phone (JB 4.2.1 MTK).

WiFi will not connect at all. I did a CWM backup before making any changes and renamed the original file before copying in the new one and fixing permissions, then re-booted.

Deleted the file and named the original back to normal, rebooted and works ok again.

Do not do this without making sure to backup your phone. You have yourself to blame if you have to re-flash.

Edit:

I should add that I tried v2 and set permissions same as original file. Didn't try any other combination. It's possible something else could affect it for me. I run Xposed and LeanDroid. Lots of mods to the ROM.
[Android Software Development] stanley321:
Using the v3 img on Xperia V, 4.3 Stock ROM. Working fine at home will test other hotspot tomorrow.
[Android Software Development] elvisypi:
For me it works very well. I'm not sure how I can test it though
[Android Software Development] saxmydix:
working great for me, Galaxy Alpha stock rom. Thanks man.
[Android Software Development] LendLord:
after giving permissions for execute everything works fine, i think it must be added in OP

now my permssions is 760 for dhcpcd
[Android Software Development] Droidcore:
Yeah work on m7

Maybe someone have problem?

Try set permission rw-r-r

Owner 0:root

2000:shell
[Android Software Development] //.dax:
Great work! Works very well with Acer Z500
[Android Software Development] balamu96m:
Thanks! Works fine on my MTK 4.4.2! Any word on backward compatibility for JB 4.2+??
[Android Software Development] jodvova:
Can anyone make a flashable zip out of it please?
[Android Software Development] donvito62:
should it be like this??
[Android Software Development] Craiq:
Here you have a flashable zip

created with zipme

(create zip of your existing dhcpcd file and then replace the file in the zip with the newer version)
[Android Software Development] Cats_PJs:
For anyone having trouble with getting this to work, I set permissions like this rwxr-x-x and now it's working.
[Android Software Development] jodvova:
Thank you!
[Android Software Development] Sector1369:
Great work ....

thumbs +1
[Android Software Development] marbulas:
Downloading speed of v3 is too bad.

I tested on basketbuild and slower than 500KB/s of speed shows with wifi and faster than 2.5MB/s of speed shows with LTE.
[Android Software Development] olokos:
Z1 4.4.4 .157 FW stock rom with my own modifications.

All you have to do is move the file to the directory it should be, rename it to dhcpd and set the correct permissions. Of course delete the old dhcpd file.
[Android Software Development] Craiq:
this mod only affect how fast your phone gets the ip from the router.

You can blame this mod just if you can't connect anymore to your wlan.

It has nothing to do with the connection itself.
[Android Software Development] donvito62:
Could Some One Post A S crean Shot Of The Correct Permission Please?Thank You
[Android Software Development] emanoj.i9103:
Here you go!
[Android Software Development] SHABBYLEA:
That's exactly what I did...very strange...

Edit: My stupid...I missed an exec permission...?
[Android Software Development] meyerweb:
Working fine on my LG G3
[Android Software Development] HoTsHoT89:
Retested V3 on Xperia Z3 4.4.4 and there is a noticeable improvement.
[Android Software Development] jelbo:
OK so I tried this on my HTC One m7 (KK 4.4.4 GPe), I could get all permissions the same as the original file except the owner was root instead of shell. Anyway, it didn't work and I reverted to the old dhcpd file which I renamed prior. Now my WiFi connection attempts are stuck at 'optaining IP Address...'. Tried to reboot, but it won't help.

So now I'm running stock dhcpd (renamed to dhcpd_bak and back to dhcpd) with untouched permissions, but my WiFi is broken.

What am I missing?
[Android Software Development] Droidcore:
What your kernel? Htc one have write protection on system

Try custom kernel and try again
[Android Software Development] jelbo:
Xceed. But I've just got it working now with the v3 binary :)
[Android Software Development] icecore:
Works with Nexus 5 CM12 :)

Thanks! and really improved the connection time!

b.w flashed the ZIP file.
[Android Software Development] jodvova:
Appreciate your work!

Is there anyway you can submit it to CM12 team to include into the standard build ?

or is it too much of a hassle ?
[Android Software Development] phhusson:
I'm submitting to dhcpcd upstream, and I'll submit to AOSP.

Merging to CM12 should be trivial after that.

Edit: per-ssid leases have been upstreamed to dhcpcd.
[Android Software Development] zakoo2:
just replaced my dhcpcd on my cm12 nexus 4, lets see how it performs, thanks! :)

btw i did not see the original dhcpcd via file manager, could only see it via terminal. (it was an empty file... ?)
[Android Software Development] marbulas:
Do you want to say all of incompatibilities are just 'user error'?

This mod could me better with debugging but what the thing you're doing is just ignoring the sounds like a sxxt for someone.

I can't see 'go away if you want to report' or 'bow down to me slaves I'm the king of this thread hahaha' in the OP :p
[Android Software Development] phhusson:
He never said that.

He only said changing dhcpcd won't make any change to your download speed.
[Android Software Development] cybernetus:
Amazing, tested on Pardus ROM ( based on Stock LG G2 firmware ) :)

Thanks for this :)
[Android Software Development] manuel1992:
I want to do this manually can I take the dhcpcd file from the v3.zip and put it in the right folder location and change the permissions?
[Android Software Development] Beat_Slayer:
Yes, you can.
[Android Software Development] phhusson:
Or you could just take dhcpcd-v3.img which is dhcpcd
[Android Software Development] manuel1992:
ok. thank you
[Android Software Development] kchaisu:
Thanks. It is working fine on HTC Desire S with CM12 ROM.
[Android Software Development] Mystique:
[MENTION=1915408]phhusson[/MENTION]

Looks like your dhcpcd binary removes using a proxy or something to do with the wifi proxy setting.

But at work I have proxies setup and configured in the wifi settings.

After changing to this binary all that stopped working.
[Android Software Development] phhusson:
Interesting. KitKat or Lollipop ? OEM ROM ?

Is it proxy auto-discovery, or you have to setup proxy by hand ?
[Android Software Development] Mystique:
Hello sir,

TouchWiz, 4.4.4 stock base but custom rooted, etc..

I have wpad in dns as well as dhcp, but android supports none of that.

Manually definition, either by fqdn or host name, both worked fine.

Of course manually defining the port..
[Android Software Development] phhusson:
Ok, so TouchWiz handles dhcp wpad, but not dns wpad...

I've checked, Android 5.0's dhcpcd doesn't handle that, and mainstream dhcpcd doesn't handle that either.

Can you get me /system/etc/dhcpcd ? I'm expecting to see some proxy-related stuff in those scripts
[Android Software Development] RL_ka:
Great! Thank you!

Tested on Nexus5, Cataclysm rom (8 Jan), works perfect
[Android Software Development] s0meb0dy:
Unstable connection

I used version 2 of the mod for a few days. Everything worked well and connection speed was noticeably faster.

However today WiFi suddenly started to disconnect second after it it establishes connection. It was constantly connecting and disconnecting.

I tried restarting both phone and router but to no avail. Problem disappeared after I replaced dhcpd with the original version.

I am running stock Android 5.0.1 on Nexus 5
[Android Software Development] phhusson:
This behaviour does make sense...

It would mean ARP requests says network ok, but dhcp (seconds later) says nok.

Do you think it's possible your router gave you an IP, and the day after said "no take this other ip" ?

I think I'll disable the ARP feature. I haven't experienced much improvement with it.

Meanwhile, try v1, it shouldn't have this problem.
[Android Software Development] str8str:
Why is there a difference in size in the zip file on page eight it's a smaller image size than the v3 image download on page one and my original one. My original and v3 are the same 69.46kb and in the zip it's 42.74kb?
[Android Software Development] saxmydix:
same thing happen to me today.
[Android Software Development] phhusson:
I added a v4, which should fix this (though it's potentielly less optimized)

First patch sent to AOSP:

https://android-review.googlesource.com/#/c/131591/
[Android Software Development] malukiz:
v3 auto flashable zip is working for me ! Thx man ! It's so fast to connect now :D
[Android Software Development] s0meb0dy:
Your explanation makes sense, but to check it I probably need to use some network sniffer. Do you think I can dig something in the phone logs or it is too late for it?

I read the mentioned RFC 4436 and I think it describes exactly this scenario: "If a DHCPv4 client is operational, it is RECOMMENDED that the host attempt to obtain IPv4 configuration via DHCPv4 in parallel with the reachability tests, with the host using the first answer returned. " and " In situations where both DNAv4 and DHCP are used on the same link, it is possible that the reachability test will complete successfully, and then DHCP will complete later with a different result. If this happens, the implementation SHOULD abandon the reachability test results and use the DHCP result instead, unless the address confirmed via the reachability test has been manually assigned (see Section 2.4)"
[Android Software Development] phhusson:
No need for sniffer.

Possibly, logcat |grep dhcpcd will give you results (it does on my mtk, not on my qualcomm), so just that is enough (though it's definitely too late)

I guess the problem is, dhcpcd report "connected" (reachability), then "failed" (dhcp said NAK), here Android stops and say it's dead, even though dhcpcd will have a request response in few seconds

I don't have the time to do proper tests of that, hence my v4, with arp reachability disabled, and arp reachability would be really hard to upstream.
[Android Software Development] s0meb0dy:
I reproduced the problem. You can check the attached log if you'll have time for it.
[Android Software Development] phhusson:
Awesome, thanks !

It's weird it got 10.100.102.5 lease, and asks for 10.100.102.8

But still, it's definitely the bug I thaught of.

I'll do some benchmarking to see if arp reachability is of any use, but unless it's >0.5s, I'm not going to enable that again.
[Android Software Development] s0meb0dy:
Thank you for the patch :)

Maybe the wrong address is connected to the fact that it is dual band router and have two addresses?

I have different SSID though for each band.
[Android Software Development] jodvova:
Can anyone create a flashable zip for v4 please?
[Android Software Development] cybernetus:
Here is the flashable zip for the v4
[Android Software Development] maymaymay:
DHCPCD is working well until i want to use Tunein Radio. After screen off TR stop buffering.

Looks like patched dhcpcd have kind of sleeping policy implemented.

Strange thing is that other services are working well.

I'm getting emails, Viber messages, and so.

Just after i replaced dhcpcd with the oryginal one, TR back to normal.

HTC ONE M7, Android 5.02 Sense (MaximusHD 50.0.0)
[Android Software Development] chitose_ndy:
Leaving footprint to open this again later ^^
[Android Software Development] azlav:
does it work on 5.1?
[Android Software Development] Gamer-king:
I think it should work. Just backup the original file before installing this in case it doesn't work.
[Android Software Development] Pain-N-Panic:
Excuse my ignorance, but what exactly does this do/improve?
[Android Software Development] barani kumar:
its improve wifi connection time,

it will only take few second to connect to your wifi
[Android Software Development] matter99:
Sorry if this is a stupid question, but which file is the file to download? It isn't clear to me after reading the whole thread.
[Android Software Development] SystemErrorOne:
Might give this a try ill report back with results.
[Android Software Development] bonanza123:
v4 is so far working perfectly on my latest 5.1.1 omnirom nightly for nexus5.
[Android Software Development] Larg0x:
v4 is working on my LG G3 with Liquid Dark Rom running 6.0.1. i would also like to add that i've used this on every device that i own with great results. my only regret is never getting to test it out on an android wear watch with wifi, while it will likely work i wish someone would let me know.
[Android Software Development] DrRootso:
I'm getting very noticeable results on t-mobile note 5. It's like night and day . Thanks for your work.
[Android Software Development] killoid:
[MENTION=1915408]phhusson[/MENTION] will it work on nougat? i couldn't find the file in system/bin to backup.
[Android Software Development] SkaboXD:
It works perfectly for me, it needs 1-2 seconds to connect. I'm currently using Resurrection Remix 5.1.1 S3 Neo GT-I9301I. Great Mod!
[Android Software Development] markheloking:
I read through that patch, and apparently it's now fixed due to "DHCP: Add a Java DHCP client.", although I'm unable to find that new patch. My understanding is that it's now fixed in newer AOSP android?

(Sorry for the potential necro)
[Android Software Development] phhusson:
So, yeah this patch can no longer work because Android moved to their own DHCP client, which really sucks.

The SSID1 => SSID2 problem is now "fixed" by this new client, because it doesn't support storing the DHCP leases at all

(That alone would make many people screams)

Still, it doesn't have ARP probing, and have issues with non-authoritative DHCPs (got one at my workplace, I always loose 30s after boot before getting an IP, which shouldn't happen.)

(and I'm not even mentioning that for several versions you could bootloop Android by just sending specially crafted dhcp packets.... i've ever seen it happen by accident)
[Android Software Development] markheloking:
Oh men. I didn't know it was such a ****show. Is it easy/possible to build a new android version with the old dhcp client and then adding your changes? (as in: could one, aka me, do this relatively easily?) Probably becomes too much work at that point...
[Nexus 6 Q&A, Help & Troubleshooting] nithinag:
Any chance of getting TD LTE radios?

2300 band 40.

Basically looking to make 4g work in India.
[Nexus 6 Q&A, Help & Troubleshooting] Ekkoria:
Neither the Turbo or the Maxx have band 40, so unfortunately that's not possible.
[Nexus 6 Q&A, Help & Troubleshooting] springer.music:
Not sure whether it can help but have a look at this thread:

http://xdaforums.com/crossdevice-de...m-updating-t2871269/post58434858#post58434858
[Nexus 6 Q&A, Help & Troubleshooting] nithinag:
Was afraid so...
[Nexus 6 Q&A, Help & Troubleshooting] nithinag:
Thanks for the link Following and will go through.
[Android Q&A, Help & Troubleshooting] mynamewontfi:
So I've been trying to root my 320 for a month alot of headaches and no results!!!! Last night I came across an app called Kingo Root. I enabled usb debugging and ran kingo from my pc. Instantly kingo took over and started communicating with my htc. After a few minutes and a phone reboot!!!! Full root!!! Omg I couldnt believe it sooooooo happy. :D:D:D:D:D
[Android Q&A, Help & Troubleshooting] ambers90002:
yeah man it took some time but worked for me aswell
[Motorola Droid RAZR] QA Bot:
[Q&A] [GSM/CDMA]EternityProject WebTop Mod -- Full Ubuntu Natty Narwhal on RAZR --

Q&A for [GSM/CDMA]EternityProject WebTop Mod -- Full Ubuntu Natty Narwhal on RAZR --

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [GSM/CDMA]EternityProject WebTop Mod -- Full Ubuntu Natty Narwhal on RAZR --. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[Motorola Droid RAZR] gonzorn:
error

I downloaded the arquivoseternitywtm.img , domain_policy.conf sudoers and copied to the SDCARD and when I run the script by EPRJWTScripts_MOTSPD_v0.1 bootstrap error ( filed ) what could be the problem ?
[8525, TyTN, MDA Vario II, JasJam Accessories] projectpaki:
i dont kno why but all of a sudden, the qwerty keypad on my 8525 is starting to fade away but i cant find it anywhere online? any suggestions? (*tytn keypad would work too because when i upgraded to the wm6 black 2.0 rom, the symbols on the keypad it thinks i have is of the tytn)

also, i think im about to buy the black housing for the 8525, which for some reason has a hole for a front camera... i know this has probably been discussed a thousand times, but any way we could get one on a 8525?

thanks. and yes im a noob, dont hate me.