How to change the X1 mac address? - XPERIA X1 ROM Development

Hi,
yesterday i tried nearly the whole day to change my mac address on my x1. first i made a hardspl for x1. the new bootloader is working.
After that, i connected via mtty. I tried some commands like emapiTest, emapiWlanMac and some other what i found at xda-dev. I only go "command error" in mtty.
Then i flashed the latest rom (R2A) and tried it again with mtty. Same bad results.
There is a posting at xda-dev: NOTE: To use rbmc you need to
authenticate with proper password .... otherwise bootloader returns "Command error !!!" or "Command is Locked!". (if you're using Hard-SPL, this is unlocked, and any address can be read with 2.30.Olipro)
Do i make the same authenticate with the X1 HardSpl that i am able to work with any commands?
Best regards
strohrum

You can't change the MAC address of a network device. It's the unique hardware serial number of the network device.
My guess is that you're trying to get your Xperia to connect to a hotspot that only allows specific MAC addresses. In that case it makes more sense to find the wifi MAC address of your phone, go into the configuration page for your wifi router and enter the MAC address on the filter list.
You can get the phone's wifi MAC fairly easily. Turn on wifi, then:
Start > Settings > Connections > Wireless LAN > Advanced
... and the MAC is there for you.

ZenithUK said:
You can't change the MAC address of a network device. It's the unique hardware serial number of the network device.
My guess is that you're trying to get your Xperia to connect to a hotspot that only allows specific MAC addresses. In that case it makes more sense to find the wifi MAC address of your phone, go into the configuration page for your wifi router and enter the MAC address on the filter list.
You can get the phone's wifi MAC fairly easily. Turn on wifi, then:
Start > Settings > Connections > Wireless LAN > Advanced
... and the MAC is there for you.
Click to expand...
Click to collapse
Actually it is possible to "spoof" a network device.
I'm just not sure how to do this on a WM device.

i tried the registry method... didnt find any data for mac address
and i tried what jockyw wrote:
"You can run or flash the USPL (see sticky) and set a MAC address of your own choice.
Connect with MTTY and at the command prompt type:
emapiWlanMac 01 02 03 04 05 06 (the six two-digit numbers are the hexadecimal MAC byte values and should be replaced by anything you like)"
but i only get "command error" at any command.

strohrum said:
How to change the X1 mac address?
Click to expand...
Click to collapse
Is that legal ??

who cares ?

exxi said:
who cares ?
Click to expand...
Click to collapse
hmmm...
Maybe you are right and xda-devs wouldn't care about that...
.

That is not legal I am sure.

Legal WHERE? 50% of the content here is probably not koscher! What a stupid question!
ANY medling with software is illegal worldwide! Read the license agreements!
I would suggest NOT to discuss this...waste of time and effort! Just a thought ;-)

why should be illegal to change mac address? It's not IMEI

guap said:
why should be illegal to change mac address? It's not IMEI
Click to expand...
Click to collapse
BTW, I was just asking, not stating

Fulgore69 said:
That is not legal I am sure.
Click to expand...
Click to collapse
Well, its not illegal in the "go to jail" sense... but more of a torts way. SE won't care that a relatively small group is tinkering with their own phones since it doesn't affect their income at all. Rather, if we filed a warranty claim, they can deny it on breach of terms.
The only time a modified MAC could be considered "illegal" is if you are pirating as a result of modifying it.

Why would you even want to change the mac-adress?

Fulgore69 said:
That is not legal I am sure.
Click to expand...
Click to collapse
Please don't assume that something is illegal simply because it's "sometimes" associated with "hacking". Password recovery is not illegal, port scanning is not illegal, packet sniffing is not illegal. These are all used by most large companies on a regular basis. I'm a network engineer and I can assure you that it is legal to "spoof" your mac address. Even though there may be some unethical reasons for doing this, there are also unethical reasons for owning a kitchen knife. We change our mac addresses of many of the devices at work all the time for many, very legitimate reasons.
While there's no easy way to change the actual information stored in the CIS of a device, depending on the NIC driver, many drivers support dynamic mac addresses. Even Microsoft provides support for configurable mac addresses.
I dug around in the registry a bit and it doesn't seem like there is a default setting for this on Xperia (well, that I could find), but I'm sure there's a way to change the NDIS miniport drivers to simply call a new string value containing whatever you're trying to change your mac to.
Check out these MSDN articles that might help with a solution.
http://msdn.microsoft.com/en-us/library/bb648482.aspx
http://msdn.microsoft.com/en-us/library/ms893567.aspx

hi jhoffa,
thanks for the solution links. but i already need help:
At MSDN:
Finally, if the card information structure (CIS) of the PC Card contains a network address value, Ndis.dll creates a \HKEY_LOCAL_MACHINE\Comm\Miniport Instance\Parms\NetworkAddress key to store the network address.
My registry dosent show the path ...\NetworkAddress
\HKEY_LOCAL_MACHINE\Comm\TNETW12511
DisplayName
IEEE 802.11b/g Compatible Wi-Fi Adapter
At: HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms\TcpIp it shows me: Autocgf, autointerval, automask, autoseed, autosubnet, dhcpdns, dhcpipaddress, dhcpserver, dhcpsubnetmask, enabledhcp, lease, leaseobtainedhigh, leaseobtainedlow, prevreqoptions, t1 and t2. but nothing like a mac address.
is it possible that i am looking the wrong way?
thanks for helping
strohrum

strohrum said:
hi jhoffa,
thanks for the solution links. but i already need help:
At MSDN:
Finally, if the card information structure (CIS) of the PC Card contains a network address value, Ndis.dll creates a \HKEY_LOCAL_MACHINE\Comm\Miniport Instance\Parms\NetworkAddress key to store the network address.
My registry dosent show the path ...\NetworkAddress
\HKEY_LOCAL_MACHINE\Comm\TNETW12511
DisplayName
IEEE 802.11b/g Compatible Wi-Fi Adapter
At: HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms\TcpIp it shows me: Autocgf, autointerval, automask, autoseed, autosubnet, dhcpdns, dhcpipaddress, dhcpserver, dhcpsubnetmask, enabledhcp, lease, leaseobtainedhigh, leaseobtainedlow, prevreqoptions, t1 and t2. but nothing like a mac address.
is it possible that i am looking the wrong way?
thanks for helping
strohrum
Click to expand...
Click to collapse
Have you tried adding
Network Adress as a (i'm presuming) a Dword to \HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms\ ?

i added "NetworkAddress" as String and typed a 12 letter mac in it. didnt work. Dword same.

jhoffa said:
I dug around in the registry a bit and it doesn't seem like there is a default setting for this on Xperia (well, that I could find), but I'm sure there's a way to change the NDIS miniport drivers to simply call a new string value containing whatever you're trying to change your mac to.
Click to expand...
Click to collapse
i skiped this as i read your posting before. i know that i cant handle this, i am too noobish in registry files edit.
maybe someone could help me with that?
thanks
strohrum

i found that at eggheadcafe.com:
Step 1 --> changes to driver
Steps [2-5] from C# application
1) In NDIS Intermediate driver (QueryMiniport function), I made the
following changes
a) When OID is CURRENT_MAC_ADDRESS , open registry , read a
registry name ChangeMAC,
b) if value of ChangeMAC is 1 then read registry value of "NewMAC"
and then convert it appropriately to MAC format
(remove extra unicode characters etc)
c) then do a NDISMoveMemory to current adapters MACaddr field.
d) close registry
2) Set value of ChangeMAC (DWord) to 1
3) Set value of NewMAC (string) to the new mac address
4) Invoke a NDIS_REBIND_ADAPTER (this internally will call
QueryMiniport ) and inturn execute step (1)
5) Set value of ChangeMAC (DWord) to 0
anybody an idea how does it work?

michaelthemage said:
Legal WHERE? 50% of the content here is probably not koscher! What a stupid question!
ANY medling with software is illegal worldwide! Read the license agreements!
I would suggest NOT to discuss this...waste of time and effort! Just a thought ;-)
Click to expand...
Click to collapse
Using an unofficial program "stealed" from other phone or cook a personal ROM is not paragonable as change MAC Address.
MAC Address changes are the same of IMEI's ones: if you want to create-problems to a WiFi network (for example) with your modified MAC Address, you are not more identificable...so this is illegal.
To prevent the possibility of this type of "problems", all changes acts to alterate UNIQUE IDENTIFICATION of a device (IMEI or MAC Address numbers) are illegal, because it will cause a POSSIBLE multi-identity.

Related

Does anyone know how to use Remote Desktop?

I downloaded the cab, but i dont know where to go from there. I am just a normal person with a laptop and a tilt.
Do you have a domain set up for your laptop? Probably not so there is no way for you to use the Remote desktop app there are other apps out there but most cost money
You dont need a domain setup to use it. You can just leave that blank. You need to know your IP address, and you need to have a password setup on your machine for remote desktop to work, you can not connect if you do not have a password.
If you are behind a router, you need to forward the correct ports for it to be able to connect to your pc as well.
After its setup, you just need to connect via ip address, through a connection that is not behind a nat, if you are using att, you need to have access to the isp.cingular apn, wap.cingular does not work.
This is a pretty loaded question. Along with the information from fastblack, you'll also need to ensure your version of Windows supports Remote Desktop and that remote connections are allowed. Also depending on the environment there may be other security settings on the machine you are trying to connect to that will need to be considered.
In short, if you don't know how to do this already, it might not be the right solution for you. It can get pretty complicated in some cases.
I have vista premium. Say was to use a router for my laptop and my tilt for wifi. How do i create a password for my computer?
unk3 said:
How do i create a password for my computer?
Click to expand...
Click to collapse
i can understand somewhat if someone comes here asking how to do something on a phone that is in the manual.......but now u're asking something about setting a password on your computer.......i dont use vista, so i can exactly tell you where to look but, i hear that vista comes with this brand new thing.......its called the help files, you should check it out
why not just use logmein (www.logmein.com) easier, faster, better
from logmein use hamachi mobile on the laptop and hamachi regular on the desktop to bypass firewalls....
Oh never mind, you would still need to know how to setup basic network security etc.
If this is the route you want to go pm me and I can send you some links to get started. It's not really that complicated but depending on the details there are alot of variables. Would post the links but would have to start googliny myself
But if you google you find allthe answers and any guide telling you how to RD from a normal computer to another - just treat the handhelp RD software the same.
This is how you do it in XP, Vista setup has to be very similar I bet:
Set the password for the windows user account you log on to on your PC. This can be done in Control Panel - in the User Accounts application.
Next you have to activate the remote desktop function. This can be found by right-clicking My Computer, go to properties, and then to the "Remote" tab. Check the "Allow Users to connect remotely to this computer" box.
Now check your local ip. this can be done by selecting the "Run" button in start, then type cmd and hit enter. In the that window type: "ipconfig" (without the quotes) and a line will read IP address . . . . . 192.xxx.xxx.xxx or something of the sort.
Thats the IP address you connect to, and when the prompt for username and password comes out, type in your Windows User Account respective username and password.
Good luck =)
delete. nm this
Jimmyy said:
This is how you do it in XP, Vista setup has to be very similar I bet:
Set the password for the windows user account you log on to on your PC. This can be done in Control Panel - in the User Accounts application.
Next you have to activate the remote desktop function. This can be found by right-clicking My Computer, go to properties, and then to the "Remote" tab. Check the "Allow Users to connect remotely to this computer" box.
Now check your local ip. this can be done by selecting the "Run" button in start, then type cmd and hit enter. In the that window type: "ipconfig" (without the quotes) and a line will read IP address . . . . . 192.xxx.xxx.xxx or something of the sort.
Thats the IP address you connect to, and when the prompt for username and password comes out, type in your Windows User Account respective username and password.
Good luck =)
Click to expand...
Click to collapse
this is correct assuming you are:
A. attached to wireless
B. on the same network as the PC you are trying to control
if you want to control your home PC externally, there would be 1 additional step, and two optional but recommended steps.
To access remotely (from anywhere in the world), you would have to go into your router configuration and map port 3389 to the ip address of your vista machine. now for the two optional steps that would make your life easier...
1. set a static ip on your vista machine that is out of dhcp range.
2. use a service like dyndns.org and either set this up in your router if compatible, or install the free update client on your PC.
with this setup you should be able to access all your pc resources from anywhere in the world, not only on your PPC device, but any windows PC with a Remote Desktop client.
security note - set a strong password on your vista machine. port 3389 is well documented and scanned for by hackers. if the option is there, while your in your router turn off ping reply.
if all this is foreign to you, find me @ www.insiteitsolutions.com and i will take care of you.
Cab??
I can't find the remote desktop cab anymore. I tried searching the forums. I've looked at Dutty's site and all the cabs. Can someone point me to it please. I think maybe I am just not seeing it for some reason. I'm sure it's there, I've downloaded it before. Thanks!
cliff_lusk said:
I can't find the remote desktop cab anymore. I tried searching the forums. I've looked at Dutty's site and all the cabs. Can someone point me to it please. I think maybe I am just not seeing it for some reason. I'm sure it's there, I've downloaded it before. Thanks!
Click to expand...
Click to collapse
this what your after?
thanks man... really works... I´m writing this from my Mogul... Remote Desktop way... way to cool... thanks a lot...

[Q] HTC TD2 & WPA Enterprise EAP PEAP MSchapV2

is it possible to connect to WPA Enterprise networks via WiFi? because I'm searching for a ROM which would allow to connect to the network on my university, which runs the following configuration:
SSID: eduroam
type: WPA-Enterprise
key exchange scheme: TKIP
authorization: EAP-PEAP-MSchapv2
IP: via DHCP
I tried it with the Energy ROM from the forum, but it doesn't allow me to enroll the certificate or it doesn't want to accept it. the other way round it doesn't allow me to enter a user name, I can only put in my password.
could somebody give me a hint what to do? I was searching the forum, found some registry hacks, but none worked
Try to change:
HKLM\\Comm\TNETW12511\Parms\WPAMixedMode
from 1 to 0.
ok, I tried it, but still the same happens:
I enter everything in the configuration menu of the comm manager, click 'next' and then I have to choose a certificate to log on - a little bit lower is a button called 'Enroll', which does nothing when hit. When I try to click 'done' it says that I have to enroll a certificate, so there's only cancel left ...
still doesen't work
well ... can somebody help please?
//edit:
well, as it seems nobody really knows how to work that out ...
Because I'm at my university every two weeks for the weekend, I'll be able to test this way of trying to connect to the WPA enterprise network in a week. but perhaps somebody else can confirm or obey this workaround:
Connect your device to your desktop/laptop and when WindowsMobileDeviceCenter (Win 7: just type the name in the search field in the start bar) opens go to Mobile Device settings >> More >> Get Device Certificates >> I know What Certificate I need to Enrol >> User ... then click enroll. Watch your device as you will be prompted to install the cert. Follow the prompts and after a few seconds you're done. When you setup your wifi connection choose PEAP and enter all the needed information.
Click to expand...
Click to collapse
It's help I got from microsoft social answers, perhaps somebody can try that out ...?
in case you understand german
http://www.rrz.uni-hamburg.de/fileadmin/internet_kommunikation/smartphone/htc-hd2_uhh-wpa.pdf
it's from my university. it also contains the instructions for eduroam.
in addition to that manual, I had to uncheck "check server certificate" in the certificate tab of the secureW2 plug-in
jones23 said:
in case you understand german
http://www.rrz.uni-hamburg.de/fileadmin/internet_kommunikation/smartphone/htc-hd2_uhh-wpa.pdf
it's from my university. it also contains the instructions for eduroam.
in addition to that manual, I had to uncheck "check server certificate" in the certificate tab of the secureW2 plug-in
Click to expand...
Click to collapse
yes, indeed, I understand german
thanks a lot for this tip, it looks a little bit different on a customized ROM and stuff, but in general it worked - I'll try it on friday or saturday, then I'll be at my university and able to give feedback!
when it'll work, I'll post a translated how-to in this thread...
sorry, I wasn't able to establish the connection with the tip by jones23 ... perhaps it works with WPA2, but not here ...
Hello,
what is the status of this? Did you find a solution?
I have the same issue since I flashed the EnergyROM.
Any ideas?
unfortunately it's truely not possible, I wasn't able to connect to the configuration from the first post using the HTC Diamond II ... damn thing!
but I'm gonna try this weekend something different: imho it's just a software problem, it's got nothing to do with hardware ... so I'm gonna try a dual boot with android and connect with that, perhaps this will work. I'll give feddback
ok, during clicking around on the device I found the solution:
Comm Manager -> Settings -> WLAN -> Network Cards
Here you can ignore the certificate and enter login data for the WIFI network.
Hopefully someone else can use this information.
@ taschenuhr
thats great to hear
@ others
perhaps you can use a notebook for testing purposes, since the connection & login data is the same. there's a windows (mac) version of that same client software.

Problem with mac address

Anyone know how to edit or force android to read the mac address of the phone?
Because my brother has a optimus black like me with rom Macay and i have cyanogemmod and we both have the same mac address.
comands like: ip link set..... our ifconfig....
don´t work.
and the software don´t work:
Wireless Mac Changer
The mac addres is associated with your net adapter, meaning its (or should be) unique and exclusive.
In theory, two devices cant have the same mac address. Furthermore, in most countries, its illegal to change the mac of a device, and it must be done by modding the hardware.
Are you sure your router isnt giving the same IP to both phones? That could be a possible error.
It is easy to change it:
Search nvram.txt (should be in /etc/wifi/ or something) and set permissions that you can edit it. Edit "macaddr=XX:XX:XX:XX:XX:XX" as you want and save. After it set permissions to default (note down before edit) and reboot. Done!

[GUIDE] Wi-Fi MAC address changing

Hello everybody!
This is my first contribution for the O4X community. Hope you like it!
I have managed to change the Wi-Fi MAC address of my device and now I share this technique with you.
What is a MAC address?
A Media Access Control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. It may also be known as a burned-in address, an Ethernet hardware address (EHA), hardware address or physical address. (Source: Wikipedia)
Why would somebody change his/her MAC address?
- To access the internet where it is restricted to particular addresses.
- To hide his/her illegal activity. (Though this is not effective enough since the Android system sends product information and a lot of other things to the Google servers and I'm sure that previous IP addresses could be searched for if somebody does something really nasty.)
Is it legal to change the MAC address?
As far as I know, it is. However, I firmly discourage you on doing anything illegal with changed/unchanged MAC.
Let's do it!
What do you need?
- A rooted device.
- A file manager that can explore the root filesystem.
How does this exactly work?
Normally, the Wi-Fi driver gets the MAC address from the built-in chip then it writes the address to '/data/misc/wifi/config_mac'. This is done at a very early stage at bootup, I didn't check when, probably in native binaries or somewhere at the framework (though I doubt the latter). This is the original burned-in address. This cannot be changed with software modifications, but only by soldering off the chip from the motherboard and rewriting its contents. Our Wi-Fi device is a Broadcom BCM4330. It has very good built-in features and the open source driver can be found in our kernel sources. So what you have to do is editing the '/data/misc/wifi/config_mac' file with a modified address.
Before you change your MAC address in any way, turn off Wi-Fi! I recommend writing down your original address somewhere (just to be extra secured).
- If you delete the file or use an invalid one (e.g. 000000000000, ffffffffffff or 133713371337), Wi-Fi will stuck at turning on and you need to do a reboot to get it working again.
- Since the file is created everytime again at boot, it is not persistent. If you reboot, it is gone. If you would like to use it permanently, create a script (like 'echo "001122334455" > /data/misc/wifi/config_mac') with some script manager application and set it to run at each reboot.
I did not test this on CM. Since CM has the Wi-Fi module built into the kernel (Anybody knows why??), it may not work. Somebody pls try and report.
Every custom modification to devices have risks. Use this at your own risk!
Have fun and enjoy!
Hi, thanks for the support
I would like to say that I have managed to change the mac adress on the Cyanogenmod (cm10.1) by editing a file called "bcmdhd.cal", which is located in system/etc/wifi; the line is for example
macaddr=00:90:4c:c5:12:38
Click to expand...
Click to collapse
I only change the "38" with "39".
I have to edit it before installing the rom (every time I install the rom, I must say ), because my sister has another 4X, and with the same mac adress the router goes crazy
Thanks for pointing it out. :good:
Does the bcmdhd.cal editing change the MAC persistently? I assume it does.
Sent from my LG-P880
Adam77Root said:
Thanks for pointing it out. :good:
Does the bcmdhd.cal editing change the MAC persistently? I assume it does.
Sent from my LG-P880
Click to expand...
Click to collapse
yes, i change it in the zip, then after the install the wifi menu reports the new adress.
EDIT.... i found that my trick worked on the first nightlies of the cm10.1; your way does work on the stable cyanogen and last nightly
sorry for my english...
I just use MAC Address Ghost from the play store
arx-7-arbalest said:
Hi, thanks for the support
I would like to say that I have managed to change the mac adress on the Cyanogenmod (cm10.1) by editing a file called "bcmdhd.cal", which is located in system/etc/wifi; the line is for example
I only change the "38" with "39".
I have to edit it before installing the rom (every time I install the rom, I must say ), because my sister has another 4X, and with the same mac adress the router goes crazy
Click to expand...
Click to collapse
I know this is an old thread, but this post of yours just solved a problem I've been having for months.

Q How to change wifi mac address

I'm using windows phone 8.1 lumia 1320 models. Wifi How do I need to change the mac address
To the best of my knowledge, you don't. That's not a thing you're even *supposed* to be able to do; there's basically no legit use for it except for certain types of security testing, and if that was your goal you bought entirely the wrong phone for the purpose. It might be possible - I've never tried - on an interop-unlocked phone, but unless Nokia is including very odd features in their OEM applications you're out of luck.
You could try running your requests through a PC (use a proxy server or set up the PC as a WiFi hotspot) and use the various driver tricks to change the MAC address on the PC, I guess?
You can't...it is saved into the rom of your wireless card of your phone. It is impossible with every device in the world
No, I could not tell you exactly. I want to change the mac address so fake. Previously I was using android and "wifi mac address changer" There was an application named. I currently do not have such an application in Windows phones.
I'm guessing that app required a rooted phone? Not (yet) possible on WP8.
Well, it works for me. What I needed was a Interop-Unlocked device (Lumia 520 for me), and an app named CustomPFD. Then, I went to this key path (0004 in my case), added a key (bc its not there), and added a String value.
Key Path:
Code:
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0004
Key Name:
NetworkAddress
Key Value:
AABBCCDDEEFF
(Output in about phone after reboot:
AA-BB-CC-DD-EE-FF)
Easy as pie, well not really.
You have to find the correct registry subkey containing your Lumia phone's Qualcomm Wireless Adapter (anything related to it, I guess).
Btw, if u want to reset your MAC address to default, u can just delete the key (NetworkAddress).

Categories

Resources