[Wifi][0.8][WIP][Testers Wanted]WPA Supplicant 0.8.x - Kindle Fire Android Development

So, I've been messing around with the source for a couple weeks and finally managed to make a wpa_supplicant based on the 0.8.x code which compiles, loads, and seems to connect to the internet.
Do I know why? Not really. I was working on it mostly just to get back into practice with code and I had some knowledge of the wpa supplicant from messing with the ad hoc and multicast. (Both of which mods are not applied to this supplicant as I wanted to keep it simple until it built correctly.)
Anyhow, the stupid thing finally loads and appears to work. And hopefully it'll be compatible with HashCode's new kernel when that has wifi in it.
If anyone is willing to download and see what does/does not work, I'd appreciate it.
This is totally a testing version, not general use. I honestly don't even know what the 0.8.x version of the wifi supplicant is supposed to do better than the 0.6.x version. But it's a higher version, so it must be better, no?
So, here's the download (Updated 4:30pm 9-Apr-12 CDT).
New version appears to fix encrypted networks, so all unknown on what works/doesn't.
jd

To install:
Download the file. I'm assuming you have ADB running and that you you're in the directory you saved the file to. No I'm not going to help with this part.
adb shell cp -a /system/bin/wpa_supplicant /system/bin/wpa_supplicant_06x
adb push wpa_supplicant /system/bin/wpa_supplicant_08x
adb shell chown root.shell /system/bin/wpa_supplicant_08x
adb shell chmod 755 /system/bin/wpa_supplicant_08x
Now shut off the wifi on the kindle
adb shell cp -a /system/bin/wpa_supplicant_08x /system/bin/wpa_supplicant
Now turn on the wifi.
To revert:
Shut off your wifi
adb shell cp -a /system/bin/wpa_supplicant_06x /system/bin/wpa_supplicant
Turn on wifi, or if it will not, then reboot.
jd

Flashable zip?
Or push with ADB?
:EDIT:
Disregard this post, I posted before he posted directions in post #2.

Extra post just in case

Can i haz packet injection?

Krunk_Kracker said:
Flashable zip?
Or push with ADB?
:EDIT:
Disregard this post, I posted before he posted directions in post #2.
Click to expand...
Click to collapse
LOL, I think I was actually writing post 2 as you posted. Since you got in before the second placeholder

There's no new functions in this that aren't in the stock WPA supplicant. I kinda mashed the ti driver against the 0.8.x supplicant code and then snipped off anything that didn't match. That's why I'm not sure what's not going to work.
From all my looking through the WPA supplicant, I haven't seen anyplace where it interacts at the packet level. I believe that's done driver-side. WPA supplicant seems to manage network names and settings only. I had high hopes of finding how the nic decides to roam originally but not even that seems to be accessible.

Sorry, but if you downloaded prior to this post, please download again. I found a problem with connecting to encrypted networks. (Had been using work guest network for testing previously.)
Fortunately it was a not difficult change and so I uploaded new version to fix that known issue.
Thanks again to anyone testing.
jd

jd,
I was only trying to encourage thought around the idea of getting monitor mode / injection working on this driver, and since I have no clue how to make it work myself, I figured I would get those working on the wifi to have a look how to recompile the drivers (hopefully) lol.

can i use root explorer for this?

@d33dvb No worries, I wasn't offended. Just trying to set the bar on what the new supplicant is capable of. Really, it seems to be basic management of the settings needed to connect to a SSID. So I'm really not sure what was added between 0.6 and 0.8 - it's not like the industry added a WPA3 encryption standard or anything. Googling wpa_supplicant 0.8 accomplishes little, I don't seem to find any change log after 0.7.3. Which is listed as current development version.
Anyhow, I'm hoping it's incremental improvements to network management. I already checked it wasn't a magic bullet fix to our multicast initialization bug so I'll have to reapply that fix when I get that far. At the moment I'm trying to use this as an opportunity to learn to use git so I won't have to keep reapplying these patches by hand each new version from CyanogenMod.
@paranoid_android85 I don't see any reason why you couldn't use root explorer to put the file in place if that's what you're comfortable with. I just wrote the instructions using ADB because that's what I'm comfortable with.
Short alternate instructions, somehow make a copy of your current /system/bin/wpa_supplicant. Shut off wifi, replace the wpa_supplicant file with the one in this thread. Match up the file owner and permissions to the original file. Re-enable wifi.

Since I haven't heard from anyone else, I'll go ahead and post my results.
Been running this on my KF for about 3 days and the only real bug I've found is that the network icon remains grey.
I know I've seen it posted before but do not remember where, but can anyone tell me what the thing is checking to switch from grey to blue?

jdommer said:
Since I haven't heard from anyone else, I'll go ahead and post my results.
Been running this on my KF for about 3 days and the only real bug I've found is that the network icon remains grey.
I know I've seen it posted before but do not remember where, but can anyone tell me what the thing is checking to switch from grey to blue?
Click to expand...
Click to collapse
When it's blue, it means it has contacted Googles servers
Sent from my Amazon Kindle Fire using Tapatalk 2

Krunk_Kracker said:
When it's blue, it means it has contacted Googles servers
Sent from my Amazon Kindle Fire using Tapatalk 2
Click to expand...
Click to collapse
Any idea which servers? I receive gmail notifications, app update notifications, etc. I signed into Google talk. All with a still grey network icon.
I had been hoping to find an error in the logs that would indicate what's not happening, but the logs look clean.
So any additional info anyone has on the process would be helpful.

jdommer said:
Any idea which servers? I receive gmail notifications, app update notifications, etc. I signed into Google talk. All with a still grey network icon.
I had been hoping to find an error in the logs that would indicate what's not happening, but the logs look clean.
So any additional info anyone has on the process would be helpful.
Click to expand...
Click to collapse
IIRC, I believe it is for syncing.
Like Google Books. If you read it on your tablet, it uploads the last page read to the sync servers so when you access it from your phone, it will pick up where you left off.

#wpa_supplicant -v
reloc_library[1318]: 1057 cannot locate 'get_rfc3526_prime_1536'...
CANNOT LINK EXECUTABLE
I'm running cm7 on a passion device...

Related

Wifi editing with root causes the manager to hang?

So after going through Paul's guide for rooting my Desire, I did what I've wanted to do since I got the phone, put in the proper wireless settings (802.11x LEAP connection), which I've previously done on my Archos 5IT, which runs Android 1.6 without a problem, turn off wifi, put the device into Airplane mode, pull the file from't device, edit it, then push it back, out of Airplane, wifi on, boom, grand. Now though, I've made one or two edits to the file and when I push it back, it breaks the wifi. It won't turn on, it won't turn off and if I restart, it comes up only as "Unable to start wifi" and does nothing again.
Therefore, question is, is there any way that we can manually input wireless configs without breaking the wifi connector? I also tried "Wifi Helper" from the market (yeah, yeah, I know it says it doesn't work, but I thought I'd try it anyway!) and that didn't work either. Also, any idea why it is breaking, even with simple edits?
I edited mine and didn't break the WiFi, at least I can still connect to a WPA2 AP. I cannot test the LEAP profile (the one I changed) until tomorrow - I'll let you know if the changes work or not.
Thanks EnF70. I kept tinkering with it and used Root Explorer instead, to edit the file directly and it's actually worked and been more stable. I dunno if it was down to editing it with that, or me including "priority=1" and "priority=2" into the config, but it looks to be ok now. I also won't be able to check whether it works properly until tomorrow.
I can confirm that LEAP is working well
me too!
I'm not sure exactly what was causing my wifi manager to start crashing and becoming unstable, but I do know what's now fixed it. I stopped using adb pull and push and instead started using Root Explorer to edit the wpa_supplicant.conf file directly on the device, because there's a possibility that ownership or permissions were being messed up with the pull / push side of things.
so, after that, something that I've noticed is that the wpa_supplicant.conf file doesn't really like you plonking networks into it, willy-nilly (I think), you've gotta give it a bit more structure. anyway, this is now my file, with all the juicy bits taken out, but the config still good,
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="<ssid>"
scan_ssid=1
key_mgmt=IEEE8021X WPA-EAP
auth_alg=OPEN SHARED
eap=LEAP
identity="<leap ID>"
password="<leap Password>"
priority=1
}
network={
ssid="<other ssid>"
psk="<other password>"
priority=2
}
this now has me connecting perfect to the 802.11x LEAP account in work, while also maintaining other networks I have saved from elsewhere.

[Q]wifi ad-hoc network?

hey all anybody out there is able to connect to ad-hoc networks?
its the only thing that keeps me from using android cuz i use my phone as a link to the internet
I tried some stuff posted in other places but it didn't work
thx in advance
So you want to tether the data connection on your phone to your laptop, or the other way around...?
XDAndroid wifi tethering app - that'll allow you to tether your data cxn on your phone to a wifi enabled PC.
If you want the other way around... bleck, not sure.
i don't want to tether my brother uses the computer all the time and im stuck with ad hoc in winmo,
there is a solution all over the internet like this one http://exop.pro/blog/2010/08/15/ad-hoc-support-for-android/
but i don't know if it will support our phones because i don't know how to apply patches
p.s this requires a rooted phone whatever that means
husam666 said:
i don't want to tether my brother uses the computer all the time and im stuck with ad hoc in winmo,
there is a solution all over the internet like this one http://exop.pro/blog/2010/08/15/ad-hoc-support-for-android/
but i don't know if it will support our phones because i don't know how to apply patches
p.s this requires a rooted phone whatever that means
Click to expand...
Click to collapse
XDAndroid is already rooted... Comes that way.
You can try to apply the patch, no clue. Never used it.
So I assume the laptop has a wired internet connection, and it's being shared as an ad hoc connection thru the laptop?
I'd say two choices - try to fiddle with the patch, or just spend $30 and get an actual router
WTF!!!
Definitely go for the router, mate.
You are trying to solve a problem possibly creating a new one, but a hundred times bigger.
tried to mess with my system image by mounting it and replacing the files no luck at all (you will get error when starting wifi);
I should go for a faster internet connection such as wimax that comes with a router
thx for support guys
husam666 or anyone else who got this working,
I saw in another thread you got this working but you didn't say how. I tried to edit my froyo.user.conf but I didn't know what I was doing and it didn't work. Can you tell me how you got it to work? Which file and how to edit froyo.user.conf?
Specifically, I'm running Froyo7 on my Rhodium and trying to connect to an ad-hoc network that is broadcast from another cell phone (a Nokia--so no infrastructure available).
Thanks!
matt300 said:
husam666 or anyone else who got this working,
I saw in another thread you got this working but you didn't say how. I tried to edit my froyo.user.conf but I didn't know what I was doing and it didn't work. Can you tell me how you got it to work? Which file and how to edit froyo.user.conf?
Specifically, I'm running Froyo7 on my Rhodium and trying to connect to an ad-hoc network that is broadcast from my other cell phone.
Thanks!
Click to expand...
Click to collapse
Seems Android doesn't support ad-hoc out of the box, which it seems you already know.
I would much prefer to use a real AP, as opposed to anything adhoc. But that's just me.... What is your other phone? That isn't capable of putting up an actual AP?
lol, just read your sig. If the other phone is the Tytn, I feel your pain.
Actually, I still have the Tytn (still works!), but I'm using a Nokia E71 as my main phone at the moment. Too much of a pain to pop the sim card out when I want to use Android and the Nokia's Joikuspot (equivalent to WMWifi Router) is ad-hoc only.
yeah i got it to work actually, i found drivers somewhere, but sorry dude, it's been a long time and i forgot where
yeah i got it to work actually, i found drivers somewhere, but sorry dude, it's been a long time and i forgot where
Click to expand...
Click to collapse
If you get the time, could you copy the relevant lines out of your froyo.user.conf file?
I've tried two versions of the wpa supplicant I found, wpa_adhoc-signed from http://forum.xda-developers.com/showpost.php?p=7674767 and wpa6_adhoc-signed from another thread.
My guess is I was editing the froyo.user.conf incorrectly.
If there is some way to fix ad-hoc permanently, I wouldn't mind integrating it into the build. If stine is cool with it, it'll get baked into the system image. If he's not... I'll just include it with the bundle .
Let us know if you figure it out.
is it possible (in general) to put it in Infrastructure mode?
AkumaX said:
is it possible (in general) to put it in Infrastructure mode?
Click to expand...
Click to collapse
Not when using WMwifirouter (Windows Mobile) or Joikuspot (Symbian) as the access point. I don't keep my sim card in the Rhodium full time but it's nice to have internet on it when I need it.
Cool, Working!!
OK, I finally got it right. Here's what I did:
Downloaded the wpa_adhoc-signed.zip file from this post: http://forum.xda-developers.com/showpost.php?p=7674767
Copied just the wpa_supplicant file to the root of the sdcard (it's inside of the wpa_adhoc-signed/system/bin folder of that zip file)
Using Notepad++, inserted the following line into the froyo.user.conf file:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant see this post: http://forum.xda-developers.com/showpost.php?p=10984380&postcount=1
Here's how the last section of my froyo.user.conf file looks:
# custom shell commands, these commands run last
custom_shells{
chmod 777 /etc/dbus.conf
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
#echo 2 > /sys/devices/platform/msm_hsusb/usb_function_switch
rm -f /sdcard/fsck*.rec
modprobe ipv6
modprobe xt_owner
modprobe ipt_REJECT
#echo "Hello!!!" # example
#echo "You can create your own commands here" # example
}
Seems to be running nice and stable with my Nokia E71 providing the internet connection using Joikuspot and secured with WEP. Tried switching back to my home network secured with WPA2 and it still works as well.
matt300 said:
OK, I finally got it right. Here's what I did:
Seems to be running nice and stable with my Nokia E71 providing the internet connection using Joikuspot and secured with WEP. Tried switching back to my home network secured with WPA2 and it still works as well.
Click to expand...
Click to collapse
Cool! Looks like this will have to be shoehorned into the system - so it'll have to be something stine accepts. Thanks!
this is what i added to my config file:
Code:
--bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
i had the wpa_supplicant file in the root of my sdcard
and yeah, the drivers also fixed WEP
husam666 said:
and yeah, the drivers also fixed WEP
Click to expand...
Click to collapse
Damn! Well I guess we're really going to have to find a way to implement those. Awesome... I wish I would've noticed this last time this thread was popular .
arrrghhh said:
Damn! Well I guess we're really going to have to find a way to implement those. Awesome... I wish I would've noticed this last time this thread was popular .
Click to expand...
Click to collapse
lol, i tried to tell you more than once, in different threads, i guess you were busy
husam666 said:
lol, i tried to tell you more than once, in different threads, i guess you were busy
Click to expand...
Click to collapse
Hum... I guess I vaguely remember the adhoc conversations, but I don't recall the WEP ones. At least I didn't realize that they went hand-in-hand...
We probably did talk about it. I've lost a lot of things in the ether... Oh well, I'll try not to forget it next time we're scrambling to do a release .

4G Tethering over WiFi Speed Issues?

Today, I finally tried a proxy server as part of my tethering testing and it seems to have finally unlocked the 4G tether speeds over WiFi. It's certainly not a perfect solution for all situations, but I thought I'd put something here in the general section where some Sense users would be more likely to run across it.
Could someone try this under Sense with 4G over WiFi and let me know if it improves your speeds? I went from being stuck at 0.4Mbps to getting the usual 4G speeds I normally see (anywhere from 2.2Mbps to 10Mbps)!
What you'll need to do is install filterproxy from the Android market (it's free). This will start a proxy server on your EVO. I believe the intended purpose of filterproxy is to block certain sites from your browser on your phone, but only if you browse using the proxy. filterproxy has a side effect allowing the phone to act as a proxy server for other devices that connect to it.
Once you've installed filterproxy, start tethering and connect your computer to the tether. Configure your browser's proxy settings to use your phone as a proxy. The method for changing your browser's proxy settings varies from browser to browser, but here are a few.
Internet Explorer 8:
Click on Tools -> Internet Options -> Connections tab -> LAN settings
Check the box for Use a proxy server and enter the appropriate settings
Firefox:
Tools -> Options -> Network tab -> Settings
Select Manual proxy configuration and enter the address and port in the HTTP Proxy section
Check the box for Use this proxy server for all protocols
Chrome:
Click on the Customize tool icon in the upper right of Chrome and select Options from the menu
Click Under the Hood on the left
Click Change proxy settings
Click LAN settings
Check the box for Use a proxy server and enter the appropriate settings
For the proxy address, you'll need to enter the IP address that your phone is using for its WiFi access point. In CM7 this should be 192.168.43.1. For Android Wireless Tether it can be changed, but by default it is 192.168.2.1 (I think). If you can't find it, open adb shell or terminal emulator and type 'netcfg'. At the bottom you should see something like this:
wl0.1 UP 192.168.43.1 255.255.255.0 0x00001043
The 192.168.43.1 is the address being used for the WiFi access point. The port for your proxy is the port that filterproxy is using. By default it is 8000, but you can change it within the filterproxy app.
NOTE: changing your proxy server settings may prevent your browser from connecting to the Internet whenever you're not tethering. You'll have to check or uncheck proxy boxes or try making different shortcuts like this.
Originally posted here:
http://forum.xda-developers.com/showpost.php?p=11580191&postcount=5319
hey very curious here about this...i get crap speeds when tethering my internet on 4G....like really crappy...i use wireless tether and easytether pro for wired share...i downloaded the app filter proxy...how do i work it ? i am completely confused as to how to set it up etc...if you could help me there i could help test this out...ty
edit: just to let u know ur awesome !!! i live in a 4G area but never got the speeds my phone did while tethering...using ur method i get watever 4G is putting out now...its awesome...anywhere from 3MB to 9MB down speeds...fantastic !!!!!
First off I just want to say, Dees_Troy, you are a freaking Champion! I've been looking around too long for this answer to my prayer! I tried it out your workaround and it worked immediately and it was way too easy! I'm using an Evo 4G and I'm on Fresh 3.5.0.1 (Sense Rom). My speeds were ~.5 MBPS. I just did a speed test (on my pc, not phone) and hit ~3MBPS and now I am streaming and surfing like a crazy person. Thank you so much for posting this workaround!
Tethering worked fine for me...Pretty cool but needs to be faster ha!
I'm running 2.2 on my Evo 4G and this is what i got after doing this:
Before the fix via Speedtest.net:
DL: 66.1
UL: 117.8
After the fix:
DL: 323.9
UL: 85.6
Wrong thread.
Thanked you though for your contribution.
Cool Stuff
Hey this is great to know, I don't have 4g service in my area yet but it did seem to increase my tethering speed regardless. Also learned a little something about proxy settings
any idea how to do this on a Mac? i can't get it to work.
JoshuaD80 said:
any idea how to do this on a Mac? i can't get it to work.
Click to expand...
Click to collapse
Get a PC. Easy Fix ;-)
Just messin with ya a little bit bro, but seriously.
JoshuaD80 said:
any idea how to do this on a Mac? i can't get it to work.
Click to expand...
Click to collapse
Well first go into the safari browser options/tools, then look for lan settings to start with.
Mac Safari/Preferences/Advanced/Proxies/
Can you be very specific for the non-computer/smart phone experts please? There is mention in this post and the original linked post about changing settings...I am not sure how to do that. Is it in the phone settings, the filerproxy settings or on the computer settings?
Sorry to be a newb...
Staffman412 said:
Can you be very specific for the non-computer/smart phone experts please? There is mention in this post and the original linked post about changing settings...I am not sure how to do that. Is it in the phone settings, the filerproxy settings or on the computer settings?
Sorry to be a newb...
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=13653126&postcount=159 Slightly more detailed. Can elaborate more if needed.
Nice thread...makes much more sense to me. i have 1 question...item #3 states, "open up terminal emulator..." I have no idea what that means...sorry.
Also, I understand (in theory about the rooting and bricking dangers of rooting a phone, and I am not sure I should do that...due to my obvious lack of skill. It seems like this does not require rooting your phone, or does it?
Thanks for your help (and patience).
Staffman412 said:
Nice thread...makes much more sense to me. i have 1 question...item #3 states, "open up terminal emulator..." I have no idea what that means...sorry.
Also, I understand (in theory about the rooting and bricking dangers of rooting a phone, and I am not sure I should do that...due to my obvious lack of skill. It seems like this does not require rooting your phone, or does it?
Thanks for your help (and patience).
Click to expand...
Click to collapse
Yes and no....to use filterproxy you don't need to be rooted. But you need to be rooted to use terminal emulator [app with root] along with wireless tether [tether without paying the sprint 30$/mo]
If you paid the fee, then you could bypass step 3. Rooting isn't hard if you use unrevoked. I can walk you through it, the whole process takes about 5 minutes, and you can unroot if you ever had to take your phone in for servicing.
Thanks. My only concern is not understanding what I did to my phone and not being able to restore it if needed. You make is sound simple.
I guess what I need is the dummy's guide to how to get free wi-fi, with minimal risks. Is that possible?
Thanks again.
Staffman412 said:
Thanks. My only concern is not understanding what I did to my phone and not being able to restore it if needed. You make is sound simple.
I guess what I need is the dummy's guide to how to get free wi-fi, with minimal risks. Is that possible?
Thanks again.
Click to expand...
Click to collapse
Sure thing. Shoot me a pm, so as we don't bloat this thread. I'd get you rooted and all set up with minimal risks and walk you through it.
when i open up terminal emulator and type in netcfg, it gives me a permission denied error. i've never used this program before, so it's probably something really simple but not sure. i have an evo, rooted, no custom roms. thanks
DP13
dietpepsi13 said:
when i open up terminal emulator and type in netcfg, it gives me a permission denied error. i've never used this program before, so it's probably something really simple but not sure. i have an evo, rooted, no custom roms. thanks
DP13
Click to expand...
Click to collapse
Try typing su before you type netcfg.... example: su netcfg
su means sudouser in linux language
type is su first, now it gives me SU: Permission Denied. like i said im not familar with this at all or linux, but when i type in the SU NETCFG it gives it in all caps. is that the problem? it wont let me type lower case. any other suggestions? Thanks for the help.
edit: my first line when i open up emulator is
$ export PATH=/data/local/bin:$PATH
$
im uninstalling and reinstalling the proxy and emulator now just to try if that makes a difference. plus im a new member so need to wait 5 minutes between posts and edits so its a pain, lol.

[GUIDE] Change your Xoom wifi adapter MAC address [UPDATE: 28/11]

First things first:
By reading and following this guide,
you accept *ANY* and *ALL* responsibility
for the possible damage, loss of data and/or other
consequences to your device which may follow.​
All the following procedures have been tested on a US Motorola Xoom Wifi only. They *might* (and probably do) work on other devices, including the 3G, Euro, etc., but are not guaranteed to do so.
Now that we're straight, let's get to the point.
Foreword:
Once I had this problem of accessing my brother's MAC filtered access point. I had my notebook MAC added to the access list, whilst my Xoom was left out. Of course, my brother was out and I didn't know the AP credentials. It was then, when the idea of a MAC change came to me.
During my brief "on the spot" research I discovered a file named 'bcm4329.cal' residing at '/system/etc/wifi/'. It has a line, notably 'macaddr=xx:xx:xx:xx:xx:xx'. Changing the contents, however, did not yield any changes to my MAC address. That time, I left the issue unsolved, but later, tinkering with my Huawei U8500, I discovered something that helped solve my Xoom MAC issue.
The solution was quite straightforward, but involved a kernel recompile. So, here I am, offering several kernel modules (drivers) - for the stock 3.2 kernel and for the Tiamat 2.0.0-2.2.0 kernels.
Prerequisites:
a stock 3.2, Tiamat 2.0.0 Katana, Tiamat 2.1.0 Tachi or Tiamat 2.2.0 Odachi running Motorola Xoom Wifi
ClockworkMod Recovery installed (author uses ClockworkMod 3.2.0.0 R4c by solarnz)
Procedure:
The procedure involves changing the appropriate wifi kernel module to a 'patched' one which allows MAC change through the 'bcm4329.cal' file. All this will be done in ClockworkMod Recovery.
1. Download one of the attached files (according to your running kernel version which you will find in Settings -> About tablet -> Kernel version)
2. Place the appropriate file on your SD card
3. Boot into Recovery by rebooting, waiting until the Motorola logo appears, count to 3, press the Volume down button, then the Volume up button
4. Select 'install zip from sdcard'
5. Select 'choose zip from sdcard'
6. Browse to your 'mac_change_mod_xxx.zip' (steps 1 and 2)
7. Select 'Yes - Install mac_change_mod_xxx.zip'
8. After its done it's job, reboot by returning to the main menu and choosing 'reboot system now'
Voila! You now have a Xoom with a custom MAC address. You can change it by editing the 'macaddr=...' line in the '/system/etc/wifi/bcm4329.cal' file. The author uses Root Explorer for this.
NOTE: The kernel module will probably be removed when installing a new kernel, so the procedure should be repeated.
Great work!!
LOL, I love it. I just changed my MAC address to look like an Apple Laptop. Even shows up that way on scanners that resolve the OUI to the manufacture. Now I'm stealthy!
Did I mention I luv it. Maybe tomorrow I will look like a Commodore 64!
is purpose just for personal preference? What would be the benefit of changing it?
One of the possible uses of MAC changing is described in the head of this thread. IMHO it's the most useful one. Other purposes may not be so legit, but the author takes no responsibility ;-)
tdaliviu said:
One of the possible uses of MAC changing is described in the head of this thread. IMHO it's the most useful one. Other purposes may not be so legit, but the author takes no responsibility ;-)
Click to expand...
Click to collapse
Lol I guess I was too dumb to understand what you did in the op, but I will still put this on my sd card just in case I find a use or need it
Purpose for MAC change
Maybe I did explain myself in a little too a technical language The basic idea is that if you have a wireless access point (i.e. a router) that accepts only one of your devices (i.e. your notebook), but does not accept your Xoom, you can try and change the Xoom's MAC address to mimic the notebook. The only thing to remember is that you can not use two devices with the same MAC on a network at once. If you follow that rule, you're golden.
P.S. Ah, and forgot to mention that this update will not work on the 3.2.2 for 4G Xooms.
tdaliviu,
Question for you. Since I applied this update I have noticed that my "WiFi Disconnect Policy" keeps reverting back to "When Screen Turns Off" no matter what I change it to.
I am not saying this patch is the cause, but what do you think are the possibilities? Again, I love the capability, and will live with the issue even it turns out to because of this patch, but I just wanted to check your thoughts on it, or see if you thought it might be something to do with the Tiamat ROM.
Thanks for looking at this.
UPDATE: Well I may have gfinally gotten the disconnect settings to stick. Instead of just changing it, letting it sit and coming back later to find out that it didn't, I changed it to the setting I wanted, then immediatley rebooted. Now it seems to be holding the setting. I will let go for a while and see what it does. Will provide an update either way. Thanks again.
For those wondering what this MOD might be good for, there are multiple things. Some ethical and some not so ethical. For instance, as "tdaliviu" mention, if you are trying to simply get around a MAC address problem, you might need to change it. If you were into hacking/cracking or just sniffing around wireless nets that weren’t yours and you didn't want to be discovered or tracked via your MAC. If you just want anonymity. I like it from this standpoint and that of security.
For instance, assume you are sitting in an Airport with your Xoom WiFi up and running, and someone is scanning the airwaves for likely targets to hack. If they seem your MAC address, they will know you are coming from a Motorola device, and might even be able to tell it is a Xoom. If there are any known security flaws, they automatically know which exploits to use against you to gain access. Just being a Xoom might make you a more attractive target. Who knows. But, if you can change your MAC address so that it appears as belonging to a different kind of system, say a "network device" like a wireless repeater, wireless AP, or some other boring target then not only would the attacker not know what exploits to run, but they would most likely just leave you alone without any further investigation or possible portscans.
And of course if you want real anonymity, you might consider changing the name your Xoom provides to DHCP servers when requesting an IP Address. Right now it uses "android_xxxxxxxxxx" with the x's being some number that is specific to your Xoom. I believe that could be used to track back your identity as well. I found several threads and ideas on how to do this. I used the one at http://forum.xda-developers.com/showthread.php?t=760314.
Anyway, thanks again for the MOD!
Quite a strange issue there, Krpto1973. At a loss to what might be the problem. I myself am running Moray, so will do some testing...
Well like I said, I may have gotten it taken care of. It's been holding steady since I set it and immedialty rebooted. It probably had nothing at all to do with your MOD. If anything changes I will let you know.
Guess I spoke too soon. After it sat idle for quite a couple hours, I came back and found it with "No Internet Connection". Once it fully woke up(just a second or so) it immedialty reconnected but when I checked the WiFi Disconnect Policy settings, it was back at "When Screen Turns Off".
Any thoughts?
Sorry, tested on my side. No such problem... Did you do a wipe when you switched to Tiamat's ROM? Maybe there are some leftovers from Stock? I am almost outruling a module problem since it's compiled from Tiamat's source using Tiamat's config.
Krpto1973 said:
For those wondering what this MOD might be good for, there are multiple things. Some ethical and some not so ethical. For instance, as "tdaliviu" mention, if you are trying to simply get around a MAC address problem, you might need to change it. If you were into hacking/cracking or just sniffing around wireless nets that weren’t yours and you didn't want to be discovered or tracked via your MAC. If you just want anonymity. I like it from this standpoint and that of security.
For instance, assume you are sitting in an Airport with your Xoom WiFi up and running, and someone is scanning the airwaves for likely targets to hack. If they seem your MAC address, they will know you are coming from a Motorola device, and might even be able to tell it is a Xoom. If there are any known security flaws, they automatically know which exploits to use against you to gain access. Just being a Xoom might make you a more attractive target. Who knows. But, if you can change your MAC address so that it appears as belonging to a different kind of system, say a "network device" like a wireless repeater, wireless AP, or some other boring target then not only would the attacker not know what exploits to run, but they would most likely just leave you alone without any further investigation or possible portscans.
And of course if you want real anonymity, you might consider changing the name your Xoom provides to DHCP servers when requesting an IP Address. Right now it uses "android_xxxxxxxxxx" with the x's being some number that is specific to your Xoom. I believe that could be used to track back your identity as well. I found several threads and ideas on how to do this. I used the one at http://forum.xda-developers.com/showthread.php?t=760314.
Anyway, thanks again for the MOD!
Click to expand...
Click to collapse
Fantastically stated there, sir. I wasn't aware of the DHCP request issue. You've successfully made me that much more paranoid.
Hmm this mod doesn't seem to work on 3.2.1 (breaks wifi functionality). Planning on updating by any chance?
Sorry, but I'm on Tiamat's Moray ROM right now, which is based on the 3.2 kernel. I certainly plan on an update when Tiamat releases a ROM based off 3.2.1 (or 3.2.2 for that matter).
If you attach a patch ill add it to the repo and give you bunches of credits
Oh, didn't quite expect such a turn of events One patch coming up...
mac_change_mod patch
Here's the patch. It's quite obvious, though took some time to figure it out. It's against the stock Makefile, but as I understood, there were no changes to the WiFi module from Team Tiamat.
Is it going to make it to a future release of Tiamat ROM/Kernel or will it live only as a patch file in the repo?
Code:
--- /home/liviu/Desktop/Xoom/Makefile 2011-08-03 09:27:45.000000000 +0300
+++ /home/liviu/Desktop/Xoom/stock/drivers/net/wireless/bcm4329/Makefile 2011-08-01 21:27:35.395212384 +0300
@@ -6,7 +6,7 @@
-Wall -Wstrict-prototypes -Werror -DOOB_INTR_ONLY -DCUSTOMER_HW2 \
-DDHD_USE_STATIC_BUF -DMMC_SDIO_ABORT -DDHD_DEBUG_TRAP -DSOFTAP \
-DEMBEDDED_PLATFORM -DARP_OFFLOAD_SUPPORT -DPKT_FILTER_SUPPORT \
- -DGET_CUSTOM_MAC_ENABLE -DSET_RANDOM_MAC_SOFTAP -DCSCAN -DHW_OOB \
+ -DSET_RANDOM_MAC_SOFTAP -DCSCAN -DHW_OOB \
-DKEEP_ALIVE -DPNO_SUPPORT \
-Idrivers/net/wireless/bcm4329 -Idrivers/net/wireless/bcm4329/include
Sweet. Cooking and testing. I don't see why this cant make a release. We gotta play with it a bit, but I like this mod. Goes nice with the BT5 concept too

New url for updates!!!

I just went to setup one of my new units and even with the router blocking the 2 urls which worked fine yesterday my unit tonight did in fact take the update and is now at 51.1.4.0 !
Is anyone aware of a new server that Amazon is using to push updates when first setting up the unit??? This is very upsetting!
I CANNOT CHANGE THE TITLE OF THIS THREAD BUT DISCOVERED MY ROUTER WAS NOT BLOCKING URLS PROPERLY. WITH A NEW ROUTER THAT IS BLOCKING THE CURRENT URLS THE UNIT WILL NOT LOAD SO MY ASSUMPTION WAS INCORRECT AND I APOLOGIZE FOR ANY CONFUSION THAT THIS POST MIGHT HAVE CAUSED!!
(Perhaps a mod can change the title of this thread to a question instead of a statement???)
This is not good news. Hopefully someone has an answer for you as I am curious as well. I still have a couple that I need to set-up and really don't want to lose root.
fxbill said:
I just went to setup one of my new units and even with the router blocking the 2 urls which worked fine yesterday my unit tonight did in fact take the update and is now at 51.1.4.0 !
Is anyone aware of a new server that Amazon is using to push updates when first setting up the unit??? This is very upsetting!
Click to expand...
Click to collapse
Mine had something weird happen yesterday too. I was trying to backup my XBMC using adbFire and kept getting disconnected. So I'd connect again, get an error message, connect, then get disconnected. When it finally connected with a solid connection, I noticed that the Amazon Updates went from being turned OFF to ON. I unplugged everything and blocked all traffic through my modem before reconnecting. I've done a few reboots since then and everything is back to normal...on 51.1.1.0 with updates back off.
It felt like Amazon was trying to push an update to my unit, but I have no way to prove that. I'm very interested in seeing what is going on.
Well it is a possibility... Just glad I don't have to worry to much about it with CWM installed on all my FTV's...
Anyway... Guess @AFTVnews.com or some of those experiencing the problems can sniff if anything has changed using the WireShark prog. :cyclops:
Y314K said:
Well it is a possibility... Just glad I don't have to worry to much about it with CWM installed on all my FTV's...
Anyway... Guess @AFTVnews.com or some of those experiencing the problems can sniff if anything has changed using the WireShark prog. :cyclops:
Click to expand...
Click to collapse
Just wish people weren't bricking their devices trying to load CWM...
spyder3 said:
Just wish people weren't bricking their devices trying to load CWM...
Click to expand...
Click to collapse
The problem I've seen are folks starting from the same info point (guide/order) while their AFTV's are in different device states. It's not hard to do at all once you know from where you are starting. That way you can map out the correct order of steps with the Apps... You do have to choose weather to do it manually thru ADB or with an APP... I trust the APP more then doing it manually... I have seen folks trying to do stuff from the guides like the renaming of FW or Recovery files while trying to use the APP which is not necessary(Not sure if the .zip is being renamed twice, manually & by the app). Also RBox mentioned he is working on trying to stop the possible bricking....
Start at the first post here to get an idea how easy it should be. But the steps order or numbers can change depending what FW you are starting at & if it's a new out of the box or if its one that needs to be FW downgraded or both Recovery & FW downgraded.
Read page 47 just to familiarize yourself with the process. Don't try it right now.
http://forum.xda-developers.com/showthread.php?t=2736774&page=47
If the problem is a new IP address that needs to be blocked. You need to wait for confirmation. If you can't wait then I would try to do the Stock Recovery Downgrade/ReRoot/Disable OTA Updates/FW Downgrade/CWM Installation, etc with only ADB allowed aka Offline. But not sure how some of the changes will require internet... Like to reconnect to your Amazon account. I would wait for confirmation of a new IP or other problem.. Probably offline...
spyder3 said:
Just wish people weren't bricking their devices trying to load CWM...
Click to expand...
Click to collapse
I don't know of anyone who bricked installing CWM.
rbox said:
I don't know of anyone who bricked installing CWM.
Click to expand...
Click to collapse
Completely Correct... Some folks have run into problems during the downgrading. But even for them the keyboard trick with patience should/have get them back on the road to CWM. Got confirmation on a few threads here of folks getting CWM installed after getting stuck with the white Amazon screen or black screen.
I just tested with a Fire TV running stock 51.1.3.0_user_513011820 and it tried to download 51.1.4.0_user_514006420 from the same domain and URL as it always had. I then factory reset it and it again tried to download 51.1.4.0_user_514006420 during the initial setup form the same domain: amzdigitaldownloads.edgesuite.net
So based on this test, I see no indication the update URL has changed. Of Course, it's possible Amazon is using a new URL for some Fire TVs while others are using the known URLs.
I'll continue checking periodically and report back if the URL changes for this particular FIre TV.
AFTVnews.com said:
I just tested with a Fire TV running stock 51.1.3.0_user_513011820 and it tried to download 51.1.4.0_user_514006420 from the same domain and URL as it always had. I then factory reset it and it again tried to download 51.1.4.0_user_514006420 during the initial setup form the same domain: amzdigitaldownloads.edgesuite.net
So based on this test, I see no indication the update URL has changed. Of Course, it's possible Amazon is using a new URL for some Fire TVs while others are using the known URLs.
I'll continue checking periodically and report back if the URL changes for this particular FIre TV.
Click to expand...
Click to collapse
You didn't indicate whether it took the new firmware or not....did it upgrade to 51.1.4.0 or download the firmware?
I had a thought about this last night, but of course it's too late to try it on my units, but my router has 2 options....One is to block specific URLs which is what I did. The other is to only allow specific urls to be accessed. I'm wondering if you only allowed firs-ta-g7g.amazon.com to be accessed since you need that to register the unit and complete the setup if you could still get through the setup routine. It wouldn't allow any connection except to firs-ta-g7g.amazon.com. Don't have a unit to try it with, but it might just work and if not the worst that would happen is that you wouldn't get through the setup....no harm done.
fxbill said:
You didn't indicate whether it took the new firmware or not....did it upgrade to 51.1.4.0 or download the firmware?
I had a thought about this last night, but of course it's too late to try it on my units, but my router has 2 options....One is to block specific URLs which is what I did. The other is to only allow specific urls to be accessed. I'm wondering if you only allowed firs-ta-g7g.amazon.com to be accessed since you need that to register the unit and complete the setup if you could still get through the setup routine. It wouldn't allow any connection except to firs-ta-g7g.amazon.com. Don't have a unit to try it with, but it might just work and if not the worst that would happen is that you wouldn't get through the setup....no harm done.
Click to expand...
Click to collapse
I had the download domain blocked so it couldn't download the update. As for your suggestion, I tried it with one of the earlier units that would not proceed past a failed update. I monitored every domain it tried to access and slowly fed it more access one domain at a time. The result was always the same: it gives various error messages because it can't reach certain domains. It never got past the update point in the initial setup.
fxbill said:
I just went to setup one of my new units and even with the router blocking the 2 urls which worked fine yesterday my unit tonight did in fact take the update and is now at 51.1.4.0 !
Is anyone aware of a new server that Amazon is using to push updates when first setting up the unit??? This is very upsetting!
Click to expand...
Click to collapse
If you are blocking using a ASUS router that might be the problem. When I loaded the latest ASUS firmware on my RT-AC66U all my blocked URLs stopped being blocked. I had to step back to an old firmware to get the feature working again
krawhitham said:
If you are blocking using a ASUS router that might be the problem. When I loaded the latest ASUS firmware on my RT-AC66U all my blocked URLs stopped being blocked. I had to step back to an old firmware to get the feature working again
Click to expand...
Click to collapse
That's exactly what happened!!! I put facebook and ebay on the block list just to check and it wasn't blocking either of them! I'm off to get a new NetGear tomorrow. They have a "genie" program that is extremely easy to use for blocking sites or words (or update numbers) and it's only $39. I took one of the updated units back to Staples today and told them it had connectivity problems...( it really did....it connected with the darned upgrader!) and asked the girl in this tiny store if she would get one from the back that was way in the back and on the bottom of the pile if she could. She actually did for me! It's the lowest serial number I own now, but I'm not touching it until I get the new router and prove to myself that the sites are being blocked. I need the break and a little sleep anyway....too many hours at this for the last week.
By the way.... I do believe I have a way of downgrading the new firmware to any older firmware that was ever out. I'm going to have to sacrifice a unit to verify, but if they store the firmware on a TSOP I can do it. Clone time coming up!
I'm not a software guy, but am a hellofa hardware tech. Did it with satellite receivers for years..... ( Still love tubes more than any solid state stuff though!)
fxbill said:
That's exactly what happened!!! I put facebook and ebay on the block list just to check and it wasn't blocking either of them! I'm off to get a new NetGear tomorrow. They have a "genie" program that is extremely easy to use for blocking sites or words (or update numbers) and it's only $39. I took one of the updated units back to Staples today and told them it had connectivity problems...( it really did....it connected with the darned upgrader!) and asked the girl in this tiny store if she would get one from the back that was way in the back and on the bottom of the pile if she could. She actually did for me! It's the lowest serial number I own now, but I'm not touching it until I get the new router and prove to myself that the sites are being blocked. I need the break and a little sleep anyway....too many hours at this for the last week.
By the way.... I do believe I have a way of downgrading the new firmware to any older firmware that was ever out. I'm going to have to sacrifice a unit to verify, but if they store the firmware on a TSOP I can do it. Clone time coming up!
I'm not a software guy, but am a hellofa hardware tech. Did it with satellite receivers for years..... ( Still love tubes more than any solid state stuff though!)
Click to expand...
Click to collapse
It just dawned on me....with all of the excellent coders here and knowing that with Backtrack you can spoof a url or an IP. Someone could discover where the units are updating from and where they connect to and spoof the information..( along with the older firmware) and never actually have to connect with Amazon. The unit would think that it is connecting and download whatever it was fed and finish the initial install in order to root it.....just a wild thought, but I think a good programer could come up with a way to do it.
fxbill said:
It just dawned on me....with all of the excellent coders here and knowing that with Backtrack you can spoof a url or an IP. Someone could discover where the units are updating from and where they connect to and spoof the information..( along with the older firmware) and never actually have to connect with Amazon. The unit would think that it is connecting and download whatever it was fed and finish the initial install in order to root it.....just a wild thought, but I think a good programer could come up with a way to do it.
Click to expand...
Click to collapse
RBox & AFTVNews.com & others have already looked into this. Do a search for spoofing on the full thread & u'll probably find it.. Basically there are parts that are encrypted & we can't give the FTV the right answer to allow the older FW to be flashed.
http://forum.xda-developers.com/fire-tv/help/trick-amazon-update-url-redirect-to-t2900031
Y314K said:
RBox & AFTVNews.com & others have already looked into this. Do a search for spoofing on the full thread & u'll probably find it.. Basically there are parts that are encrypted & we can't give the FTV the right answer to allow the older FW to be flashed.
Click to expand...
Click to collapse
There are 2 things to spoof. One is the response from softwareupdates.amazon.com. Aside from the fact that if you spoof it the server has to be using a valid certificate (which you won't get), it's response is signed and encrypted. The second thing to spoof is the actual firmware download. That has to be signed or else it will reject it. It also has to match the version it's expecting to download. So you can't spoof the response that would make the fire tv download an old version, and you can't spoof the update itself because it won't match what it wants.
Furthmore... Backtrack has nothing to do with it. Backtrack is a huge piece of **** that doesn't do anything magical that any SANE Linux dist can't do. And what the... XDA censors? How lame is that...
fxbill said:
That's exactly what happened!!! I put facebook and ebay on the block list just to check and it wasn't blocking either of them! I'm off to get a new NetGear tomorrow. They have a "genie" program that is extremely easy to use for blocking sites or words (or update numbers) and it's only $39. I took one of the updated units back to Staples today and told them it had connectivity problems...( it really did....it connected with the darned upgrader!) and asked the girl in this tiny store if she would get one from the back that was way in the back and on the bottom of the pile if she could. She actually did for me! It's the lowest serial number I own now, but I'm not touching it until I get the new router and prove to myself that the sites are being blocked. I need the break and a little sleep anyway....too many hours at this for the last week.
By the way.... I do believe I have a way of downgrading the new firmware to any older firmware that was ever out. I'm going to have to sacrifice a unit to verify, but if they store the firmware on a TSOP I can do it. Clone time coming up!
I'm not a software guy, but am a hellofa hardware tech. Did it with satellite receivers for years..... ( Still love tubes more than any solid state stuff though!)
Click to expand...
Click to collapse
fxbill said:
I just went to setup one of my new units and even with the router blocking the 2 urls which worked fine yesterday my unit tonight did in fact take the update and is now at 51.1.4.0 !
Is anyone aware of a new server that Amazon is using to push updates when first setting up the unit??? This is very upsetting!
Click to expand...
Click to collapse
I would advice you add a note to the #1 post saying that it's been resolved & it was a Router Software problem (in bold). Maybe change the title of the thread too. Some folks might not read past the tittle or first posts & start to repeat that there is a new IP updating FTV's when that is not the case.
Tip: Tomato FW Routers block IP's like a BOSS!!!
Urls dont work
I have blocked the urls amzdigitaldownloads.edgesuite softwareupdates.amazon.com through router before setting up my firetv and it had updated to the latest firmware uk version so just to let people know they do not work is amazon using new urls for updating
Y314K said:
I would advice you add a note to the #1 post saying that it's been resolved & it was a Router Software problem (in bold). Maybe change the title of the thread too. Some folks might not read past the tittle or first posts & start to repeat that there is a new IP updating FTV's when that is not the case.
Tip: Tomato FW Routers block IP's like a BOSS!!!
Click to expand...
Click to collapse
I plan on doing that, but only after I pick up the new router today and verify. Thanks for the tip on the router!
( Just discovered that I can't edit the title of the thread.)
rbox said:
There are 2 things to spoof. One is the response from softwareupdates.amazon.com. Aside from the fact that if you spoof it the server has to be using a valid certificate (which you won't get), it's response is signed and encrypted. The second thing to spoof is the actual firmware download. That has to be signed or else it will reject it. It also has to match the version it's expecting to download. So you can't spoof the response that would make the fire tv download an old version, and you can't spoof the update itself because it won't match what it wants.
Furthmore... Backtrack has nothing to do with it. Backtrack is a huge piece of **** that doesn't do anything magical that any SANE Linux dist can't do. And what the... XDA censors? How lame is that...
Click to expand...
Click to collapse
I only brought up Backtrack as an example. It's merely a collection of programs written by other coders. Say what you will about it. Makes no difference to me, but it has served me pretty well since I am not a coder and have little knowledge in writing my own codes. Kudos to you for being able to. As I stated, I'm a hardware person and a technician. I can design a board, but programming for me is an entirely different story. Years ago satellite TV receivers had a similar issue where a receiver would not accept a card that was not the correct card for the unit. It was called the ZKT...( zero knowledge test) The receiver had some information encoded in the prom... (supposedly some sort of question that it asked of the card). The card also had some info coded into it. Neither had any purpose by itself, but when a card was inserted into the unit the unit sent out the encoded "question". If the card responded with anything other than the correct information the unit would not function. A coder discovered a way to program eproms that did not have this ZKT information in it and after programming an eprom and replacing the prom in the unit with the newly coded eprom the unit would accept any card that was put into it.
I'm only stating this as an example. It might come down to cloning the eprom from one good unit to one that has the newer firmware on it, but I feel very confident that someone can and will do it at some point. I rarely ever say it can't be done....too many times have I been proven wrong by someone knowing much more than I do and no matter how good you might be at something someone a little or a lot better is going to come along and do what you couldn't.

Categories

Resources