yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] asrebel:
MAC Address Issue

I was gone for awhile as I reverted my phone back to stock (and subsequently missed a few hundred posts lol). I'm now back at the previous version of DC, and of the radio prior to the last OTA.

Here's where I seem to be failing:

*get authentication lock

* Connectivity Change for WIMAX: Connecting/Authentication

* DCP Header Problem proVersion is 2570

* DC Socket Reader Debug Incorrect header was received

The DCP/DC errors scroll for a hundred + lines and then it appears that Wimax shuts itself off. Did anyone else that reverted run into this issue?
[EVO 4G Android Development] zugnokorr:
After trying so many other solutions, removing this file, fixed my 4g constantly scanning issue.
[EVO 4G Android Development] redsolar:
As promised, here is the update which breaks 4G mac address.

Warning, this will break your 4G. As of now, there is no known way to fix it, so if you flash it, better be ready for using 3G only for some time (if not forever). Only flash if you know what you are trying to do.

I don't recommend that anyone flashes it, but if you feel adventurous, or want to join the ranks of testers who have it broken, feel free.

How to flash it:

Unzip the attached zip file

Put both files inside onto your SD card

Flash new_wimax.zip

Reboot

The file inside is identical to the official update, however, the flashing method is slightly different than the one that people have success with, if you look at the script, you will see the difference from the properly working file.

I am also attaching the flash file which people seem to have had success with in updating Wimax to latest OTA (new_wimax_v2.05.00.06.10-signed.zip)
[EVO 4G Android Development] itmustbejj:
so this will fix my 4g!!!! Haha just kidding. (Need some humor to lighten the stress)
[EVO 4G Android Development] redsolar:
Can you elaborate?
[EVO 4G Android Development] zugnokorr:
Well, flashed DC 3.2.2.1, flashed the new radio, flashed the wimax. 4g would then just turn on and would just constantly be "scanning" even after profile updates, reflashing roms, images, using the permissions fix. All of my logs were fine, I didnt have any errors with them, and my WIMAX MAC address was correct. So I then removed the .tree.xml file in the /data/misc/wimax directory. I turned on 4g, and it connected properly.
[EVO 4G Android Development] mpa4712:
hehe...your breaking file looks freakishly like the original I posted in this thread about 100 pages ago :D

I wonder if it is the flashing the wimax.img from the sdcard that broke it? I don't see why it would, but I have noticed none of the other methods flash from the SD.

I am now sitting at DC 3.2.2.1 latest ratio latest wimax and my original MAC back. Just need to drive a few miles down the road to test..

Also, on a side note, I think it is safe to remove everything in the /data/wimax folder before flashing these wimax images. It seems to all gets regenerated on reboot either way.
[EVO 4G Android Development] runner77:
Is it smart to just remove that file from your phone?
[EVO 4G Android Development] mpa4712:
I'll try that. That file should get regenerated as well on reboot.
[EVO 4G Android Development] zugnokorr:
It seems to get recreated. You could always just rename it that should do the same thing I would think. I just posted that removing it worked for me, I dont know if it will work for anyone else.
[EVO 4G Android Development] krosemm:
Noob question (I tried searching...) how do I access the /data/misc/wimax directory?
[EVO 4G Android Development] chaseclear:
Can you explain how you removed the file.. I'm in the same boat you were in where my wimax continues to scan in my logcat.. Ive never removed a file and astro/andexplorer show the /data folder as being empty. Please help
[EVO 4G Android Development] mpa4712:
It is regenerated, but it didn't make a difference for me. I believe that may be because I just flashed a rom and a dif wimax image though :)

What a fun 24 hours we have had. You could never have this much fun breaking an Iphone!
[EVO 4G Android Development] mpa4712:
open up a command prompt and do:

adb shell rm /data/misc/wimax/xxxxxxxxxxxx.tree.xml

where the x's are your mac address
[EVO 4G Android Development] david279:
Use root explorer and you can do this right from your phone!
[EVO 4G Android Development] chaseclear:
seemed to work for me after reboot. no more 4g constantly scanning.

However, it appears that I have "Bluetoothhandsfree xxxxxxxxxx." constantly scanning.. is this normal? My bluetooth is disabled on the phone so this seems strange to me
[EVO 4G Android Development] zugnokorr:
Root Explorer makes things so much easier.
[EVO 4G Android Development] itmustbejj:
It is normal

Edit: and the wimax scanning will resume once you start/stop your 4g.
[EVO 4G Android Development] runner77:
OMG!!!!!

IT WORKED!! IT WORKED!! IT WORKED!! IT WORKED!!

For the first time in 2.5 days I successfully connected (and stayed connected) to 4G!!!!

THANK YOU zugnokorr!!!
[EVO 4G Android Development] sk63:
It's working for me, had to apply the toast's 4g fix afterward. Signal strength is now full.
[EVO 4G Android Development] bigbiff:
Worked for me too! I am happy..... Also it is always better to rename the file in case you need it again: mv <mac>.tree.xml <mac>.tree.xml.orig
[EVO 4G Android Development] nief1313:
Someone wanna type up step by step wut they did and links to the files they used?
[EVO 4G Android Development] chandlerw88:
Ok I see a lot of problems with 4g but what if you can't even connect to 3g
[EVO 4G Android Development] bigbiff:
Try:

1. Wipe and Flash DC 3.2.2.1 with ROM Manager - http://www.4shared.com/file/0shR7Fa6..._deodexed.html

2. Install updated radio - http://talkevo.com/tracker/torrents/.../new_radio.zip

3. Update PRL and Profile

4. Reboot

5. Verified MAC with sticker under battery and wimax_mtd

6. Installed the signed Wimax radio update posted earlier in this thread - http://xdaforums.com/atta...1&d=1277938917

7. Verified the mac was still the same with wimax_mtd

8. Verfied new version

9. Installed the 4g permission fix - http://xdaforums.com/atta...8&d=1277912380

10. mv /data/misc/wimax/xxxxxxxxxxxx.tree.xml /data/misc/wimax/xxxxxxxxxxxx.tree.xml.orig
[EVO 4G Android Development] ThornXBL:
Glad to see people are getting 4G up and running again :)
[EVO 4G Android Development] swaze:
I can verify that this worked for me as well. I moved the file and went from just scanning, to connected to sprint, to getting an IP address and connecting to 4G

Thanks a bunch for this.
[EVO 4G Android Development] runner77:
I'm afraid to reboot after removing this file and getting 4G to connect.

Has anyone rebooted and then tried to connect again?
[EVO 4G Android Development] nief1313:
Thanks going to try it now
[EVO 4G Android Development] ssgelm:
Still not working for me after doing that... :-(

EDIT: Reapplying the 4g fix made it work!!! :-D
[EVO 4G Android Development] ThornXBL:
This is just done from the Settings -> System Updates menu, correct?
[EVO 4G Android Development] swaze:
Yup that is correctumundo.
[EVO 4G Android Development] mongoose8p:
wow it does in fact work!!! congrats on whoever found that out! I even flashed 3.2.2.1 right over 3.2.1 no wipe and it still works for me. nice job nice job
[EVO 4G Android Development] swaze:
FYI........Rebooted and 4G still connects so I assume this is a legit fix.
[EVO 4G Android Development] massivebasset:
A beautiful sight, worked for me.

Thanks everyone who worked tirelessly on this.
[EVO 4G Android Development] myndwire:
crap...NONE of those links for downloads exist anymore. can someone toss this up with working files somewhere? perhaps in the 2nd post? i probably *have* all of these, but i don't have their filenames ..
[EVO 4G Android Development] jblazea50:
i renamed the file xxxxx.tree.xml to xxxxxx.tree.xml.orig; however, it doesn't work; after renaming the file, i turn on 4g and it stays on scanning; when i return to root manager, the file is there again (a new xxxx.tree.xml file)
[EVO 4G Android Development] SteveDusa:
Confirmed, works.

The important 4G permission fix and removing the file in the /data/misc/wimax did the trick.
[EVO 4G Android Development] itmustbejj:
I think its b/c he copied and pasted an older post with the ... in the middle of the urls

You can go back to his original post way back
[EVO 4G Android Development] jblazea50:
how to you remove the file? i used root explorer to rename the file, but a new one keeps popping up
[EVO 4G Android Development] SteveDusa:
Yeah HTML codes should be enabled.

Anyway the 4G fix is here: tinyurl.com/2aea69p

I used the Cal's All Radio/WiMax thread with the newest WiMax.

Works now!
[EVO 4G Android Development] ThornXBL:
I believe a new one is supposed to be generated on reboot. This is normal.
[EVO 4G Android Development] david279:
you want the newest one after you update your profile, its the old ones i believe is the problem...
[EVO 4G Android Development] jblazea50:
ok, thanks; i am still getting scanning;

about to re-flash 3221, then radio, wimax, 4g fix; then update profile/prl; delete the xxxx.tree.xml file
[EVO 4G Android Development] mpa4712:
For those that removing the tree.xml file worked for, did you at any point, have the bad MAC address?
[EVO 4G Android Development] zugnokorr:
Nope, everything was seemingly normal for me, with the exception of just getting stuck at "scanning". No errors, normal MAC, properly flashed.. etc.
[EVO 4G Android Development] swaze:
I didn't, my mac address was always good, but something got jacked up when I flashed the Wimax.zip that was posted yesterday.
[EVO 4G Android Development] itmustbejj:
After renaming the tree.xml file, the new one popped up but shortly after I had a random reboot, and now everytime my phone boots up to lockscreen it reboots again.

Edit: It seems to have stabilized after about 3 reboot cycles.

Edit 2: Nevermind, still rebooting.....
[EVO 4G Android Development] myndwire:
This TUT thread has a COMPLETELY different solution...

http://xdaforums.com/showthread.php?t=715525
[EVO 4G Android Development] david279:
delete them then run update profile, then reboot.
[EVO 4G Android Development] ThornXBL:
For the record, that Cal thread is here:

http://www.xda-developers.com/forum/showthread.php?t=715485
[EVO 4G Android Development] swaze:
Yeah I think that one is for those who's mac address was jacked up somehow. I dont think they actually got 4G working though, but they have changed the mac address to the correct one. Maybe if you have a bad mac address you could combine both methods or something.
[EVO 4G Android Development] Fixter:
Muahahaha! I'm so glad everyone is getting the hang of it. :D
[EVO 4G Android Development] itmustbejj:
This did not fix it for me
[EVO 4G Android Development] zikronix:
so i did some poking around with this

10. mv /data/misc/wimax/xxxxxxxxxxxx.tree.xml /data/misc/wimax/xxxxxxxxxxxx.tree.xml.orig

Before you do that some one try this. Notice the permissions on the orginal file, there is none however the recreated file is rw-rw-rw-

im willing to bet if you change the permissions on the file it will work there is no changed between my two files other than that

Edit: there is definitily some weird stuff, because if you delete it then just turn 4g on it gets recreated and it has rw-rw-rw- but if you reboot or update profile and reboot the one that gets created is ---------

I then turned on wimax and check permissions still --------- (i dont have wimax not sure if it works or not)

so then I delted it again turned on wimax and i get rw-rw-rw- i reboot and the file has the same permissions.

Ideas?
[EVO 4G Android Development] ThornXBL:
The original post is here for those having trouble finding it. Please note it does not include the key final step.

http://xdaforums.com/showpost.php?p=7024565&postcount=3910
[EVO 4G Android Development] itmustbejj:
mine is just the opposite, the .orig is rw-rw-rw- whereas the new one has no permissions
[EVO 4G Android Development] zikronix:
did your wimax work? before moving the file? does it work now...does it work after a reboot? if it stops working and you change the permissions does it work again
[EVO 4G Android Development] asrebel:
No go for me either :-(

Looking through my logcat this seems to be the biggest issue:

----

I/Wimax<DC SOCKET READER DEBUG> Incorrect header was received

E/Wimax<DCP Header Problem> ProVersion is 29519

...happens over and over and over again (although the Proversion changes)

----

Then what I could only describe as a dump (not an android expert)

I/Debug Build fingerprint: ....

I/Debug (2823(: pid: 7874, tid: 7880 >>> /system/bin/sequansd <<<

...
[EVO 4G Android Development] itmustbejj:
Unfortunately I won't be in a 4g area until this weekend

Can anyone else confirm what the permissions of their new tree.xml is?
[EVO 4G Android Development] runner77:
Make sure you perform a "update profile" after your remove the tree.xml file.

Edit: you might also want to try the permission fix.
[EVO 4G Android Development] itmustbejj:
all of a sudden # cp /data/wimax/log/sequansd.log /sdcard/sequansd.log

gives me cp: permission denied
[EVO 4G Android Development] mongoose8p:
dude thats for fixing mac addresses not fixing 4G on damage 3221
[EVO 4G Android Development] myndwire:
sdcard mounted to your pc via usb? or possibly needs remounted..
[EVO 4G Android Development] myndwire:
yeah, just noticed that... figured it'd help out the guys that borked theirs, but it looks like they fixed it. disregard :)
[EVO 4G Android Development] mongoose8p:
yeah permission is clutch you gotta do it
[EVO 4G Android Development] itmustbejj:
wouldn't an adb remount take care of this?
[EVO 4G Android Development] jblazea50:
this is what i did:

1. flash 3.2.2.1

2. update radio

3. update prl/profile

4. reboot

5. checked the wimax (mac matches)

6. flash new wimax.zip

7. checked wimax and mac version (have new wimax and mac matches)

8. renamed the xxxx.tree.xml file

9. updated profile/prl

10. fix permission by flip

11. reboot

still stuck on scanning
[EVO 4G Android Development] rldev:
Do you have a link to toast's fix? Can't find it. Or are you referring to Fresh's permission fix?
[EVO 4G Android Development] itmustbejj:
Are these permissions normal? I can't figure out why I can't cp sequansd.log to my sdcard anymore.

d---rwxr-x system sdcard_rw 2010-07-01 16:42 sdcard

-rw-rw-rw- root root 6083 2010-07-01 16:33 sequansd.log

# cp /data/wimax/log/sequansd.log /sdcard/sequansd.log

cp /data/wimax/log/sequansd.log /sdcard/sequansd.log

cp: permission denied
[EVO 4G Android Development] sk63:
First off, I meant flip's fresh 4g fix, I got got confused just which developer had done what. http://link.geekfor.me/fresh4gpatch
[EVO 4G Android Development] TrevE:
This is why i love our users - you guys are all freeking brilliant. really says alot when we make 100 pages in a few days but we all worked together twards a fix.

it seems that fix is going over pretty well, im going to update post 2 with what was found up till now.
[EVO 4G Android Development] nebenezer:
My goal is to get through a full day using JIT without my phone rebooting.

DC is flawless with JIT switched off.

If it's not listed then I didn't change it.

These are the settings I've been using since this morning without incident:

JIT enabled

Banned EVERYTHING on the Banned Apps list

Dalvik Heap: 48

LowMemKiller: Evo 50mb

Up Threshold: 80

Sampling Rate: 2000000

Dirty_Background_Ratio: 3

Dirty_Ratio: 10

Dirty_Expire: 200

Laptop_Mode: checked

OOMKILL_Allocating_Task: checked

vfs_cache_pressure: 100

*update- there was an incident.. :rolleyes:

Current settings:

JIT enabled

Banned EVERYTHING on the Banned Apps list

Enable SD Swapping: checked

Swap sent to: swpfile

Swappyness: 60 (using an 8g c4 sandisk)

Dalvik Heap: 48

LowMemKiller: Evo 50mb

Up Threshold: 60

Sampling Rate: 2000000

Dirty_Background_Ratio: 12

Dirty_Ratio: 40

Dirty_Expire: 200

Laptop_Mode: checked

OOMKILL_Allocating_Task: checked

vfs_cache_pressure: 130

*edit-

FWIW, I am considering this goal a WIP until I achieve it.

I'm down to 2 reboots per day and have noticed they aren't interrupting the Up Time counter..

I was on the above settings since yesterday afternoon without incident.

This morning my phone locked whil I was typing a post here on xda and "rebooted" from the beginning of the Sprint Boot Animation, when it finished booting is when I noticed that Up Time had persisted.

FWIW about 50% the reboots happen when I'm typing something.

I don't know if the kb is causing trouble or if its just that I do a lot of typing on my phone.

After the reboot this morning I changed from the above list of settings:

Dirty_Ratio: 15

Laptop_Mode: unchecked

OOMKILL_Allocating_Task: unchecked

We'll see how it goes today :)
[EVO 4G Android Development] ChrisDos:
This happened to me. In fact I couldn't run a lot of commands without the permission denied. This occurred after apply the 4G Permissions Fix.
[EVO 4G Android Development] TrevE:
see and while everyone else is workin on 4g we got other people workin on other parts :) thanks neb for the jit instructions!
[EVO 4G Android Development] itmustbejj:
Yup it was working b4 flipz 4g fix now that I think of it, what did you do to solve it?
[EVO 4G Android Development] ChrisDos:
Just re-flashed DC 3.2.2.1.
[EVO 4G Android Development] itmustbejj:
crap, if i flash DC over the radios won't I have to go thru all this again?

I thought I remembered Treve saying to flash radio/wimax after flashing DC...
[EVO 4G Android Development] Fixter:
Yes you will. I checked. Heh. Twice.
[EVO 4G Android Development] itmustbejj:
but if I reflash dc, I will have to go thru these 10 steps again

1. Wipe and Flash DC 3.2.2.1 with ROM Manager - http://www.4shared.com/file/0shR7Fa6..._deodexed.html

2. Install updated radio - http://talkevo.com/tracker/torrents/.../new_radio.zip

3. Update PRL and Profile

4. Reboot

5. Verified MAC with sticker under battery and wimax_mtd

6. Installed the signed Wimax radio update posted earlier in this thread - http://xdaforums.com/atta...1&d=1277938917

7. Verified the mac was still the same with wimax_mtd

8. Verfied new version

9. Installed the 4g permission fix - http://xdaforums.com/atta...8&d=1277912380

10. mv /data/misc/wimax/xxxxxxxxxxxx.tree.xml /data/misc/wimax/xxxxxxxxxxxx.tree.xml.orig

and that means I will flash the 4g fix (step 9) on top of DC again and I will be where I am now, with these permission issues correct?
[EVO 4G Android Development] Fixter:
Wow thanks for this Neb. I'll give it a try. :cool:
[EVO 4G Android Development] nief1313:
how do i do this part

10. mv /data/misc/wimax/xxxxxxxxxxxx.tree.xml /data/misc/wimax/xxxxxxxxxxxx.tree.xml.orig
[EVO 4G Android Development] ChrisDos:
I don't have 4G here, but all my 4G checks out. I didn't have to flash any radios or anything after re-flashing DC.
[EVO 4G Android Development] TrevE:
thank god damage is back haha were going ot work on purging post 2 into a webpage or something that things getting huge.

JIT fixes + 4g fixes today, pretty successful day today, thanks to everyone who makes dc better each day!
[EVO 4G Android Development] Fixter:
Now lets have Monster and Beer! Hurrah!
[EVO 4G Android Development] sk63:
Hmm, I though the radio and wimax were in partitions unaffected by ROM flashing.

You will probably need to remove /data/misc/wimax/*.tree.xml again though.
[EVO 4G Android Development] krosemm:
Confirmed! It works for me. 4G works but only issue is if I move away from a 4G area and come back it won't reconnect by itself. I have to turn off and then on 4G. Anyone else have this issue?
[EVO 4G Android Development] frankenstein\:
I've tried to do this ##786# code several times but nothing happens after inputing it. I'm assuming you type this into the phone dialer yes?

It doesn't ask me for my msl, nor does it pop up any new windows or screens.

Am I putting this code in the wrong place somehow?
[EVO 4G Android Development] zikronix:
out of curiosity what are the permissions on the xml file.

I still want to know the permissions of an untouched xml file...Im going to restore my nand and look.

Then if its as i suspect I would like some one to change their permissions on the xml file to rw-rw-rw- and see if it works
[EVO 4G Android Development] JustinChase:
I'm not too sure Damage will agree with that statement (considering the sh*tstorm he walked back into) :D

Welcome Back sir, I hope your wedding and honeymoon was outright fantastic!!

yeah, it seems this has been somewhat resolved.

As a lowly (but very appreciative) user of all of this hard work and information, may I respectfully request a new thread get started when you release a new update?

This thread has so much (good, but tangencial) information, but much of the last 1000 posts are not so much related to the ROM.

A nice refresh/start from scratch, "this is where we are now" thread might be easier for everyone moving forward.

Just my $.02 :)

Okay, back to lurking now......
[EVO 4G Android Development] TrevE:
comon 410 pages is too much to read through? lol yeah damage and i have some catching up to do but well def be trying to tame this jungle.

Post two has been updated with the 4g fix and valid links. Neb's JIT information is going up there too. im going back to lurk mode myself damages and my repo updated, now that we know DC was not busted it makes me feel better.

Thanks again to all the smart users we got that figured all this out!
[EVO 4G Android Development] rehh:
trying to figure that one out too???
[EVO 4G Android Development] briandap:
Just my input, as a new Android owner of a few weeks.

I did a complete wipe and reflash of 3.2.2.1, updated PRL, WiMax, Radio to newest. At that point I actually CONNECTED to 4G and had a signal. Problem was no network access. Though I was connected. Hope this helps in any way possible though I doubt it :-(
[EVO 4G Android Development] jblazea50:
you can do that in the command line (CMD) on your computer

i believe it goes like this:

1. adb devices (just to check you're connected)

2. adb shell

3. the line should have "#" to start

4. type the command "mv /data/misc/wimax/xxxxxxxxxxxx.tree.xml /data/misc/wimax/xxxxxxxxxxxx.tree.xml.orig"

of course, remember to not to place the " signs and instead of xxxxxx, use the mac/wimax number you found behind the battery
[EVO 4G Android Development] asrebel:
Ok, I've gotten a couple of PM's so I know I'm not the only one with 4G problems (still). I ran through the instructions again and verified I had the right files, etc....everything looks good, but still no 4G.

I noticed one interesting thing that might be relevant. I decided to run a logcat while I was updating my profile...and I saw this:

I/HTC_WIMAX_CONFIG( 672): setWimaxProp: ./WiMax/Ext/....

....

D/(250): <daemon> WRITE ERROR_1 (repeats at least 100 times)

Anyone else seeing this?
[EVO 4G Android Development] zugnokorr:
Also, if you have Root Explorer installed on your phone, you can just navigate to that directory and rename the file.
[EVO 4G Android Development] nief1313:
what directory should command line be in when executing these commands?
[EVO 4G Android Development] sk63:
Doesn't matter, those commands should work from anywhere, assuming you replaced the xxxxx with the correct number.

To find the correct number enter, ls /data/misc/wimax/
[EVO 4G Android Development] wfreimark:
Did the ten steps, my 4G says scanning, im in portland OR so i have 4g
[EVO 4G Android Development] nief1313:
were u get the numbers to replace "xxxx.."
[EVO 4G Android Development] zugnokorr:
It is your WIMAX MAC address. You can find it under your battery, or if you still have the box, it would be on the sticker outside of it. If you have Root Explorer it might be easier to just navigate there and rename it.
[EVO 4G Android Development] thenewguy821:
In Root Explorer, there is only the xml file. Do we rename that to the correct MAC and add the orig at the end, or leave it as xml?
[EVO 4G Android Development] kperry1911:
It's your mac address. Under battery...

Completed step 10 (removed the file /data/misc/wimax...). 4G is working again! Thanks guys!