[Q] How to change Bluetooth MAC Address in CyanogenMod 7 ?? - LG Optimus 2x

The title says it all
If everyone knows it, please tell me!
Thanks in advance
WingZero

I'll reply myself.
In a CM7 ROM It's enough to open "terminal emulator" and type:
su
bdaddr [new bluetooth address] && hciconfig hci0 reset
Click to expand...
Click to collapse
and it worked.

Follow up on altering the BT mac address
I'm in a situation where I have two Arias both on CM7.2 now, checked and they have the same BT mac address. I'm trying to pair them to a Panasonic home phone that can connect via BT to the cell. It will take one or the other but not both. I think if I change the mac on one of them I'll be in good shape.
Did it matter what you changed it to? Did you roll back to the stock ROM and see what that was to make it correct for your device or just pick something random? Thanks!
Edit: I followed the steps but it didn't keep my new address when I reset the phone. Any thoughts?

Related

Cyanogenmod 5.0.5.3 - Wireless_tether 2.0_pre8 (and older)

I just loaded my AT&T version with cyanogen 5.0.5.3, and the wireless tether app does not work.
No matter the security settings I use, it always shows unsecure network on my laptop (OSX, Ubuntu and Vista).. If I set it to unsecure in the app, it still does not connect.
I have never used it before, but I am assuming the cyanogenmod kernel has the required bits for the app to work properly.
Am I missing something stupid?
Thanks
-G
ghost_o said:
I just loaded my AT&T version with cyanogen 5.0.5.3, and the wireless tether app does not work.
No matter the security settings I use, it always shows unsecure network on my laptop (OSX, Ubuntu and Vista).. If I set it to unsecure in the app, it still does not connect.
I have never used it before, but I am assuming the cyanogenmod kernel has the required bits for the app to work properly.
Am I missing something stupid?
Thanks
-G
Click to expand...
Click to collapse
Did you turn off USB tethering?
hotweiss said:
Did you turn off USB tethering?
Click to expand...
Click to collapse
Never turned it on, and verified it is off...
how did you load the apk?
lpasq said:
how did you load the apk?
Click to expand...
Click to collapse
Downloaded to SD, and installed from browser download screen...
ghost_o said:
Downloaded to SD, and installed from browser download screen...
Click to expand...
Click to collapse
you may want to adb push method or adb install -r method instead. reboot after install. or try my rom linked in signature.
if you don't know how to use sdk's adb, do a search here on xda for one of the many basic tutorials or ask for details.
lpasq said:
you may want to adb push method or adb install -r method instead. reboot after install. or try my rom linked in signature.
if you don't know how to use sdk's adb, do a search here on xda for one of the many basic tutorials or ask for details.
Click to expand...
Click to collapse
Will do adb.. I have the linux sdk..
Thanks, will post back with results..
OK, installing with adb has the same effect.
There are posts from the google code pages where this has happened in the past (last year though), so I doubt related..
Out of ideas...!
eth0 IEEE 802.11-DS ESSID:"AndroidTether" Nickname:""
Mode:Ad-Hoc Frequency:2.437 GHz Cell: 3A:4E:3D:88:EC:41
Bit Rate=72 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-57 dBm Noise level=-57 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
This is with WEP set.. It must have something to do with wpa_supplicant somewhere.. I'll keep digging...
maybe it might have something to do with atnt not able to do it throught there network. like us tmobile users can use data while on the phone? dont know alot but that could be a possibility
Nah, wpa_supplicant is not negotiating wep for some reason. I just replace the wpa_supplicant.conf file with a very generic open key WEP config and it still does not work..
I need to dig through my broadcom nda's and find this chip, and see if I can use the firmware.. I'll just load it up in AP mode and run hostapd and be done with it....
Ad-Hoc just plain sucks, almost as much as wep...
Cant find find wireless apk anywhere can someone please give me link
ttieder said:
Cant find find wireless apk anywhere can someone please give me link
Click to expand...
Click to collapse
http://lmgtfy.com/?q=android-wifi-tether&l=1
deprecate said:
http://lmgtfy.com/?q=android-wifi-tether&l=1
Click to expand...
Click to collapse
lmgtfy.com - that was awesome - my family members are gonna feel like idiots asking me questions now!
I had not heard of that site before.
Regarding wep-encryption & CM 5.0.5.x:
http://code.google.com/p/android-wifi-tether/issues/detail?id=292
So, wep-encryption is broken (no idea why) on the latest cyanogenmod-build. Please use CM 5.0.4.1 - it works flawlessly there.
I will take a closer look the next days ... but it's hard to tell what is causing this - I don't know which changes were made on CM.
By the way ... why was this topic moved to Q&A
This is definitely an issue which needs to be solved and should stay in development!
Thanks - I googled for quite a while, and never came across that info. Tethering is not that critical (unless I am travelling), so I will just wait for a fix sometime.
I would have figured other in this forum would have hit it though?!?!?
-G
I've installed 5.0.5.3 and downgraded the kernel which came with 5.0.4.1 - and it start working again! So, I would say that this issue is related to the latest kernel (2.6.33.1)!
I've created an issue on cyanogemod:
http://code.google.com/p/cyanogenmod/issues/detail?id=1217
i have wifi tether pre 8 on latest CM mod and its working great, wep works, and no errors in log.
I am having the same problem. I have both a nexus one and motor milestone. Tethering on milestone doesn't have problems but my nexus can't seem to connect as well no Sep security. I can see the my SSID, anyone can help?
There are obviously factors that differ between devices somehow. I too can change kernels and the issue goes away. Something is "missing" somewhere. A git pulled vanilla 2.6.33 kernel works just fine when booting the zimage from fastboot..
I have not looked at the cyanogen .config or wireless module source yet to see any modifications that would effect it...
I'm more interested in the module working in AP mode now that the driver supports it, and have been working on that...
-G

Change MAC address on rooted N1

Hi, does anyone know how to permanently change the MAC address on a rooted Nexus One? Thanks.
Considering the root of this file system is linux, it should be pretty similar to this: http://linuxhelp.blogspot.com/2005/09/how-to-change-mac-address-of-your.html
If at all possible. Obviously, change eth0 to whatever is appropriate. Also, you'll probably have to su to do any of the commands.
Hi, thanks for the reply. I did try that already but after the following command:
ifconfig eth0 hw ether 00:80:48:BA:d1:30
I get this error:
ifconfig: bad address 'hw'
Any ideas?
It worked for me. Before you ran that command did you switch to root user?
Also, this won't permanently change it. It'll only change it for your current boot. If you want it to be permanently done, you'll have to put the command into a init.d script.
So, I have been looking into and testing this some more and I have found something strange. It seems as though something within android keeps reverting my MAC address back to the real MAC address and I am unable to connect to the network I am trying to connect to (it has MAC address filtering). Any thoughts?
And nachod0g in response to your error, double check and make sure that when you type the command "ifconfig -a | grep HWaddr" that eth0 actually comes up. If WiFi is not enabled, this will not work.

LG P970 Optimus Black cyanogenmod 7 Build 27

Hey everyone,
I have an issue that occurs on my Optimus Black P970 with CM7 Build 26 and 27.
My MAC address has switched to 00:00:00:00:00:00
and i dont have any idea how to change it.
I have followed some articals regarding this issue
REQUIREMENTS
1) ROOTED PHONE
2) BUSYBOX INSTALLED
3) Terminal App
OPEN UP TERMINAL AND WRITE
:su
:busybox iplink show eth0
(THIS WILL SHOW YOUR CURRENT MAC ADDRESS)
NOW TYPE IN
:busybox ifconfig eth0 hw ether 00:11:22:33:44:55
(INSTEAD OF 00:11:22:33:44:55, YOU CAN WRITE YOUR WANTED ADDRESS)
from this url http://forum.xda-developers.com/showthread.php?t=1385577
and i have verified that the file nvram.txt on system/etc/wifi/nvram.txt
contain the new MAC address i have input.
but still My wifi MAC address is 00:00:00:00:00:00 and its impossible to connect to a wifi.
Some1 know the Code for Engineering mode (Hidden menu) for P970 CM7?
Any suggestions?
Thanks in advance
I don't have this problem on a fresh installed n#27, so I would suggest clearing out everything and flashing clean. There is no hidden menu on cm7 as that requires some services in stock which are removed. Furthermore, this is not a development issue so it should be posted in general and not here.
Sent from my LG-P970 using XDA App
Hey , thank you for your replay.
As i found some instruction to write a MAC address properly , it requires to activate CP USB and this option only can be activated through Hidden menu
P.s , also my IMEI address has been resetted and this is 3rd time i am installing Build 26 and 27 on the phone (Clean install
I have fixed it ... i have returned to build: CyanogenMod-7-11162011-Nightly-OptimusBlack
God, change the thread title. Right now it's announcing a ROM, and you are talking about an issue with that ROM. Just post it in the Cyanogenmod Discussion Thread.
I think that the codification for each thing is pretty easy.
As has been said, this is not a development thing.
And if each one made a thread for each issue he has, we would be dead.
Thread moved and closed
Title edited, do not post questions in Development, and do not post them with [ROM] at the beginning of the title, it's very misleading.

[GUIDE] USB Modem ZTE MF626

Hi everyone,
I wanted to share my struggle of getting my USB Dongle to work. Others will probably work in a similar way and hopefully this helps someone.
What I did:
Disable CD mode on ZTE MF626 via PC
This needs to be done via AT commands on either a Windows or Linux machine. A usefull guide can be found here:
=> wiki.archlinux.org/index.php/ZTE_MF626_/_MF636
If the Modem doesn't show up as serialdevice (check dmesg for /dev/ttyUSB*) entries, ejecting the storage-device (/dev/sr0 for me) could make it to
Check if it registers as Modem on Android
I opened a terminal on my Nexus and checked dmesg if it created those /dev/ttyUSB* devices, which it should after disabling CD mode. I guess your Nexus needs a kernel with OTG enabled. I'm using the default one of codenameandroid.
Connect via PPP app while Wireless is off
I thought this will be the most difficult part, but I found a really usefull widget for that:
=> play.google.com/store/apps/details?id=de.draisberghof.pppwidget
All I needed to do was specifying the serialdevice manually (/dev/ttyUSB2 for me) and entering my connection details (access point name, username, password) and I also changed the dialing target to *99#.
That's all. To connect, you need to turn off WIFI, tapp on the widget and click connect. The screenshot shows the widget
Widget screenshot: imageshack.us/a/img854/9738/screenshot2012092110320.png
(I'm sorry, can't post real links yet..)
Hopefully you can share similar experiences in this thread to make multiple devices work with our (yet) 3g less Nexus 7
http://forum.xda-developers.com/showthread.php?t=1882832
if i am not mistaken the mf100 and the mf626 are the same.
Not similar
kendong2 said:
http://forum.xda-developers.com/showthread.php?t=1882832
if i am not mistaken the mf100 and the mf626 are the same.
Click to expand...
Click to collapse
The tips is Thrue, I use Putty as Hyperterminal. Working good!:good:
Thanks for the share, this is helpful specially the AT command guide. Im using ZTE MF190B and PPP widget does everything for me, but sometimes it does not work always. I'll try the AT command guide.
Putty
ryanrudolf said:
Thanks for the share, this is helpful specially the AT command guide. Im using ZTE MF190B and PPP widget does everything for me, but sometimes it does not work always. I'll try the AT command guide.
Click to expand...
Click to collapse
Read this: it may help you http://www.gprsplans.com/2011/03/how-to-executing-at-commands-under_01.html

WiFi connectivity problem

Hi,
I’m from Portugal and I’ve bought a Mi5 some days ago.
I have a problem for which I don’t find any solution.
The phone came with a modified fake ROM from the Chinese store but was working fine.
I unlocked the phone and installed TWRP to flash other ROMs. I flashed MIUI 8 global stable and a custom ROM from Xiaomi.eu without any problem.
Everything was working fine with the phone but I noticed that a lot of files from prior fake ROM (the one from the Chinese store) remained in the phone. So I decided to swipe everything in TWRP (including system and internal storage) and flashed MIUI Global Stable ROM again.
From this point, I never again been able to connect to a WiFi network and the 2G, 3G LTE connection became very weak and instable. The phone scan the wifi network available without problem, but after introducing the password, it tries to connect and just shows “Saved”.
I tried a lot of stuff. Static IP, reboot router, change router channel, change router security settings, flash different ROM, tweak build.prop file, but the problem persist.
In the phone test menu, when I try to connect to a WiFi I see that the phone scan, connect, disconnect, scan, connect, disconnect…
Any help?
Do you think it’s Hardware related issue? Or phone firmware and driver problem?
I’ll be very grateful for any assistance.
Hello
Yesterday I got the phone and I have exactly the same situation. Tried the same things, also flashing RR Nougat, RR Marshmallow, MIUI 7 and 8. Wifi isn't working in any situation. Did you solve it? Anyone have some ideas with it?
try another ROM
Just try the ROM "cm-13.0-20161211-NIGHTLY-gemini" .
My mi5 had the same problem when I got it, so I try unlock, bootloader, new cm14 rom, even went to change sim card, cause can't access 4G, still no luck. Then I backed to official ROM, factory reset, still have wifi and 4G problem. Finally after try the cm13 ROM, every thing became fine. It took me 5 days to resolved it.
FYI, mi5 's wifi signal strength is poor than others as so many complain you can see on the miui forum.
Tried that CM build, still nothing. I found in dev tools option to debug WIFI, and all the time I have RSSI of -127, even if I'm literally 1m from source (also I tried many sources). I'm out if ideas. Also It's not reception problem, because original ROM (like OP, probably fake global MIUI) had WIFI working just fine for me.
I have exactly the same situation.
I'll try the ROM "cm-13.0-20161211-NIGHTLY-gemini".
Thanks!!!
---------- Post added at 05:11 PM ---------- Previous post was at 04:37 PM ----------
Unfortunately, this ROM did not work for me either. :crying:
Any more help?
Thank you very much!!!
Try Xiaomi.eu 8.1.7.0 Nougat.
It's working for me, but my wifi wont connect in CM/ AOSP ROM
bajak85 said:
Try Xiaomi.eu 8.1.7.0 Nougat.
It's working for me, but my wifi wont connect in CM/ AOSP ROM
Click to expand...
Click to collapse
Hello friend, do you have the link for me to download this ROM?
Many thanks for helping.
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
ederluisf said:
Hello friend, do you have the link for me to download this ROM?
Many thanks for helping.
Click to expand...
Click to collapse
I found it, thank you. I'll flash the rom now. Thanks.
---------- Post added at 06:47 PM ---------- Previous post was at 06:41 PM ----------
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
I'll try this procedure too, thank you very much Pekkuky.
I'll be back to talk if it fired, thanks for the help.
I tried to install the ROM that bajak85 suggested and it did not work for me, however I tried the procedure that pekkuky taught in ROM Xiaomi.eu 8.1.7.0 Nougat (ROM that bajak85 suggested) and it started to work, changing the MAC address worked for me too.
I did exactly as taught by Pekkuky and tried with another randomly generated MAC. That also worked.
Thank you all for the help and thank you very much Pekkuky, saved my life with this tip.
Obtaining IP Address Loop...help..:crying:
artforcesilvia said:
Obtaining IP Address Loop...help..:crying:
Click to expand...
Click to collapse
Hello, did you make sure that the MAC address was actually changed? In my case, a reboot was necessary for the modification to take effect.
I needed to forget the network and try again too, try this too, make sure the MAC has really changed and forget the wifi network and try again.
Good luck. :good::good:
ederluisf said:
Hello, did you make sure that the MAC address was actually changed? In my case, a reboot was necessary for the modification to take effect.
I needed to forget the network and try again too, try this too, make sure the MAC has really changed and forget the wifi network and try again.
Good luck. :good::good:
Click to expand...
Click to collapse
I've tried it over and over again but it didn't work.:crying:
artforcesilvia said:
Obtaining IP Address Loop...help..:crying:
Click to expand...
Click to collapse
Another thing that can help is to configure Static IP in the advanced settings of your network, have you tried this?
ederluisf said:
Another thing that can help is to configure Static IP in the advanced settings of your network, have you tried this?
Click to expand...
Click to collapse
I set IP static it connected modem but no internet, some time messager "authentfication error" apear.:crying:
My problem has been solved.
Thank you very much
artforcesilvia said:
My problem has been solved.
Thank you very much
Click to expand...
Click to collapse
:victory: Very good.
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
Made an account to thank Pekkuky, because this worked for me. I also linked it on a couple of Xiaomi.EU posts about the same problem.
I had the same problem and this method really worked. I was angry af for 1 week, trying to solve this. Thank you very much Pekkuky
artforcesilvia said:
My problem has been solved.
Thank you very much
Click to expand...
Click to collapse
Are the same step above??
Why my wlan file,the latest one is not an number??
Sorry for my bad,help me please,i have been try this way,but still same

Categories

Resources