Change Host name in stock rom 2.1.1C - Sony Ericsson XPERIA X10 Mini

i see on a lot thread but i have find a lot of suggestion but not response for what i need, for naming phone on wifi network like on MINIcm6 android_xxxxxxx Why ?
i have two x10mini with 2.1.1.C, we can't connect at the same time in wireless, i think the blank hostname was problem in the server for accept them with blank hostname at the same time, then i proceed to search how to change the hostname in my x10mini for resolving this issue
i try this and work perfectly and permanantly
just have a rooted phone
add this line at /system/etc/hw_config.sh
1- echo your_hostname >/proc/sys/kernel/hostname
if it doesn't work you can use these line and remove the first one added :
2- /system/bin/busybox hostname Your_Host_Name
when you see on dhcp server you find the name what you have put in variable
NB: you can let the two lines added, nothing to loose 1 & 2 !!!!
Good luck
Thanx To Jack_R1 for his posting http://forum.xda-developers.com/showthread.php?t=668300
Thanks to puppet13th for his post http://forum.xda-developers.com/showthread.php?t=1076903
if you find this thread helpful dont forget to click on thank button !!!

Related

Clone MAC address

Hi,
I have strange internet provide that lets only one MAC address on network. Long story short, I have to change a Wifi MAC address on my 8525. Any ideas?
I would prefer something simple, maybe a simple aplication to do so.
I have read post like
http://forum.xda-developers.com/showthread.php?t=322225
but, it is complicated, since I need to be able to change it back to original on daily bases with no access to external computer.
Thanks
sadik007 said:
I have read post like
http://forum.xda-developers.com/showthread.php?t=322225
but, it is complicated, since I need to be able to change it back to original on daily bases with no access to external computer.
Thanks
Click to expand...
Click to collapse
Sadly that's the only way it can be done; the WLAN MAC address is stored at a fixed offset within the ROM - the post you mention above is a guide to patching the ROM to update it with the required MAC address.
Mark.
Mark Crouch said:
Sadly that's the only way it can be done; the WLAN MAC address is stored at a fixed offset within the ROM - the post you mention above is a guide to patching the ROM to update it with the required MAC address.
Mark.
Click to expand...
Click to collapse
1 thought as my cable provider is like that to a certain regard,
Get a wireless router. then register the mac of the router with the provider, everything else is transparent to the provider as it would appear to come from the router ans is all ip based, aqs no Mac based services ( ie: netbios ipx/spx ) are used on the internet only on local network
hope this helps

Internet not working in Android [solved]

Hi,
I have been playing around with Android on my Niki300 (20 key, XDA Star, official O2 Germany ROM) for a while now, but I was not able to connect to the internet.
At the moment I am using the Ion-Android build found here: http://vogue-android.googlecode.com/files/Google-Ion-2009-09-12.zip
My default.txt looks like this:
set RAMSIZE 0x07000000
set RAMADDR 0x10000000
set FBDURINGBOOT 0
set MTYPE 1724
set KERNEL zImage
set initrd initrd.gz
set cmdline "board-htckaiser.panel_type=2 ppp.apn=internet ppp.username= ppp.password= board-kaiser-battery.battery_capacity=1800 mddi.width=320 mddi.height=480 lcd.density=160 msm_sdcc.msmsdcc_fmax=20000000 pm.sleep_mode=1 no_console_suspend board-kaiser-keypad.atttilt=1"
boot
Click to expand...
Click to collapse
I have also set up the same APN in Android. Modem App claims that it connected, but it didnt't. No connection symbol or working connection
I have already tried different Radios: 1.58.16.27 (originaly supplied with my phone), 1.58.21.23S Modded, 1.64.08.21K and 1.71.09.01K. It did not make a diference, so now I am back to the modded 1.58.
I hope someone can help me with this...
Greetings, mblaster
Internet
Turn your internet on in wm before you go to android
Thanks, unfortunately it didn't work for me either... Everything else seems to be fine, phone, sms and various apps work. Only internet is missing.
Another few things I have noticed: During the last bootup of android I got a force close error of com.htc.privider.. doesn't sound promising. Modem App seems to crash, when I use it after I made a call. Without a call it says "done" on startup and something like "already connected" after i press connect. After the call there was no status on startup and a hangup on pressing connect.
Any further suggestions? Or is there perhaps a better android port out there. I tried the Hero port from here: http://forum.xda-developers.com/showthread.php?t=544965 but it hangs in a loop during bootup on my phone.
Thank you for helping,
mblaster
Hmm, I also use the Hero port from NemanjaLo it it worked for me, only sending sms give's me a problem.
Maybe you can find more info in this thread http://forum.xda-developers.com/showthread.php?t=550541 or ask there a question.
Hope this helps
Thanks for the link, but I already have tried to follow those instructions without success. I managed to get the Hero image working by now. I works like a charm for me with the Ion basefiles, again except internet access. I am not sure if the problem lies in wrong apn settings or somewhere else. Perhaps I can test with another sim card in the afternoon.
Does anyone know where I can find the relevant log files for the modem/internet? I tried "logcat > log.txt" on the phone, but I did not find anything that seemed to be relevant to my problem.
mlaster
€: "logcat -b radio" seems more interesting...
€€: The Modem seems to be initialized with a strange IP as a parameter:
"AT< +CGDCONT: 1,"IP","internet","38.103.41.10",0,0"
The ip has nothing to do with my service provider (o2 germany), and also is not the dynamic ip that i had in wm. It is also not somewhere in my apn settings (neither in android nor in defaults.txt). Any ideas where this comes from and if it may be the cause for my problem?
OK, I found a workaround for that problem. I am still not sure what the cause is, but i suspect that the dialin number for a gsm phone is not dialed properly. Another thing might be that pppd is not started properly. If I have some spare time I will investigate that further.
My solution is a script that looks like this (where it says "surfo2" there should be your carrier's apn):
#/bin/sh
/bin/killall pppd
/bin/echo -e "AT+CGDCONT=1,\"IP\",\"surfo2\",\"\",0,0\r" > /dev/smd0
/bin/sleep 2
/bin/echo -e 'ATD*99***1#\r' > /dev/smd0
/bin/sleep 4
/bin/echo "startppp" > /smodem/control
Click to expand...
Click to collapse
I called it "net.sh" and placed it in the root of my sd card. After android has booted I run it with the terminal from the devtools (#su / #cd sdcard / #sh net.sh).
The script dials the dial in number *9***# and starts the ppp deamon. After running the script (sometimes twice, don't know why) the internet works normally. Connecting and disconnecting via modem app works too. I tested this in both android configurations described in one of my older posts in this thread.
Basically the dialup should be done on boot via ppp-on-dialer from the initrd. Dont know what goes wrong there...
I hope this information is useful to someone, perhaps the developers (btw: thanks for this great android port).
mblaster

[HOWTO] Rhodium, WEP, and You

(this item also posted on PPCGeeks)
I'd like to start by thanking arrrghhh and BoominSVX for running thru some tests to see whether or not I had actually found a working solution.
NOTE: This solution requires altering a configuration file. How you alter the file is entirely up to you (vi, desktop utilizing adb, telekinesis, etc.).
I recommend backing up any file that you plan to edit or replace prior to mucking about with it.
WARNING: Instructions will tell you to turn off or restart Wi-Fi.
This is to ensure that the changes you have made to your configuration files are reloaded by wpa_supplicant.
Simply changing the configuration file is not sufficient!
In addition, I am not responsible for any damage that these instructions may cause to your device, your data, and/or your well-being.
PERFORM THESE ACTIONS AT YOUR RISK
The following instructions will take you through the 'long' method:
Connecting to WEP-enabled Wi-Fi (Easy/Standard)
Go to Settings->Wireless & Networks -> Wi-Fi settings
Turn on Wi-Fi if it is not enabled
Setup your Wi-Fi connection
If your AP shows up in the list, select it and type in your WEP key
If your AP does not show up, use the Add Wi-Fi network. On the popup, type your SSID, select 'WEP' for Security, and type your WEP key in the Password.
NOTE: At this point, the Wi-Fi status will go from "Scanning..." to "Connecting..." to "Disconnected"
Turn Off Wi-Fi
Backup the following file: /data/misc/wifi/wpa_supplicant.conf
The file contents should be similar to this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="YOURSSIDHERE"
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0=YOURWEPKEYHERE
priority=1
}
The priority=1 may or may not be present, based on whether you selected from the scan list, or added it manually.
Edit /data/misc/wifi/wpa_supplicant.conf and remove either OPEN or SHARED from the auth_alg line. Which one depends on whether the access point is using OPEN, SHARED (if it's using both you can choose which one you prefer to use)
After editing, OPEN will look like this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="YOURSSIDHERE"
key_mgmt=NONE
auth_alg=OPEN
wep_key0=YOURWEPKEYHERE
priority=1
}
After editing, SHARED will look like this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="YOURSSIDHERE"
key_mgmt=NONE
auth_alg=SHARED
wep_key0=YOURWEPKEYHERE
priority=1
}
Go to Settings->Wireless & Networks and turn on Wi-Fi.
Your Wi-Fi status should now show the following values:
"Scanning..."
"Connecting..."
"Obtaining an IP address YOURSSIDHERE..."
"Connected to YOURSSIDHERE"
NOTE: If you fail to connect, return to step 4 and try using the other auth_alg value.
Some routers may be configured to only support one authentication mode.
That's the long method - for people who have never connected to a Wi-Fi connection, or don't mind losing saved APs can do the following
Connecting to WEP-enabled Wi-Fi (Advanced)
Create your own wpa_supplicant.conf file, either by hand, using the above code snippets, or one of the template files in the zip
Replace YOURSSIDHERE with the value of your ssid.
Replace YOURWEPKEYHERE with the value of your WEP key.
Place your edited wpa_supplicant.conf file in the /data/misc/wifi directory on your device
Restart/Turn on Wi-Fi
This method has been tested using FRX04 system image, with both Stock and F22's updated rootfs.img file, and against both FRX04 shipped and WisTilt2's debug kernels.
Feel free to share your success and/or failure stories in this thread.
lol, thanks for this. Now I just need to figure out how to communicate with my device using telekinesis....
I don't use WEP, but the masses that seemingly need it will love you for this. Still not sure how we're going to commit it .
Great work, thanks a lot!
So if I'm understanding this right, this modification is specific to an individual WEP access point, and has to be made once for each new WEP access point you come across? I wonder where we could make a change so that XDAndroid will make this change automatically.
I was trying to get WEP working earlier too, and I noticed that by using a different wpa_supplicant (not conf) file, I was able to connect to WEP access point and send and receive data, but for some reason DNS just wouldn't work.
manekineko said:
Great work, thanks a lot!
So if I'm understanding this right, this modification is specific to an individual WEP access point, and has to be made once for each new WEP access point you come across? I wonder where we could make a change so that XDAndroid will make this change automatically.
I was trying to get WEP working earlier too, and I noticed that by using a different wpa_supplicant (not conf) file, I was able to connect to WEP access point and send and receive data, but for some reason DNS just wouldn't work.
Click to expand...
Click to collapse
You are correct - the configuration is handled on a per-network basis. Remembered networks will be stored in that file, so a wpa_supplicant.conf can contain multiple network={ ... } structures, and each structure could contain an auth_alg line.
I don't know the status of other devices, and forcing it to write a specific value might break ones that are currently working.
There is speculation that a newer version of wpa_supplicant (we're running 0.5.x as is my understanding) may be able to handle the conf file the way it is currently written. The fact that a you used a different version and were able to connect would tend to confirm that.
Do you happen to know what version of wpa_supplicant you were using when it did connect?
Pohket said:
You are correct - the configuration is handled on a per-network basis. Remembered networks will be stored in that file, so a wpa_supplicant.conf can contain multiple network={ ... } structures, and each structure could contain an auth_alg line.
I don't know the status of other devices, and forcing it to write a specific value might break ones that are currently working.
There is speculation that a newer version of wpa_supplicant (we're running 0.5.x as is my understanding) may be able to handle the conf file the way it is currently written. The fact that a you used a different version and were able to connect would tend to confirm that.
Do you happen to know what version of wpa_supplicant you were using when it did connect?
Click to expand...
Click to collapse
Here's my post on it:
http://forum.xda-developers.com/showthread.php?p=11016773
I believe this was using wpa_supplicant v0.5.11.
Hehehehe, WEP works. Thanks for the tip.
this is bigger for me than gettin the cam working.
thx
its great but sorry i dont know how to mount it and where plz help ?? thanks in advance
wifi-ace
I'm using wifi-ace (android market or here: code.google.com/p/android-wifi-ace/) and wep is working fine.
Found it during my search for the hidden network problem.
You are able to adjust everything with this app.
So you don't need to change the "wpa_supplicant.conf", the app
does it for you.
My hidden network at home is working fine now
ohh i dont know how to use this program plzz anyone tell me how to mount this ???
ammmma2 said:
ohh i dont know how to use this program plzz anyone tell me how to mount this ???
Click to expand...
Click to collapse
Download it from the Market.
NO WIFI
Pohket said:
(this item also posted on PPCGeeks)
I'd like to start by thanking arrrghhh and BoominSVX for running thru some tests to see whether or not I had actually found a working solution.
NOTE: This solution requires altering a configuration file. How you alter the file is entirely up to you (vi, desktop utilizing adb, telekinesis, etc.).
I recommend backing up any file that you plan to edit or replace prior to mucking about with it.
WARNING: Instructions will tell you to turn off or restart Wi-Fi.
This is to ensure that the changes you have made to your configuration files are reloaded by wpa_supplicant.
Simply changing the configuration file is not sufficient!
In addition, I am not responsible for any damage that these instructions may cause to your device, your data, and/or your well-being.
PERFORM THESE ACTIONS AT YOUR RISK
The following instructions will take you through the 'long' method:
Connecting to WEP-enabled Wi-Fi (Easy/Standard)
Go to Settings->Wireless & Networks -> Wi-Fi settings
Turn on Wi-Fi if it is not enabled
Setup your Wi-Fi connection
If your AP shows up in the list, select it and type in your WEP key
If your AP does not show up, use the Add Wi-Fi network. On the popup, type your SSID, select 'WEP' for Security, and type your WEP key in the Password.
NOTE: At this point, the Wi-Fi status will go from "Scanning..." to "Connecting..." to "Disconnected"
Turn Off Wi-Fi
Backup the following file: /data/misc/wifi/wpa_supplicant.conf
The file contents should be similar to this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="YOURSSIDHERE"
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0=YOURWEPKEYHERE
priority=1
}
The priority=1 may or may not be present, based on whether you selected from the scan list, or added it manually.
Edit /data/misc/wifi/wpa_supplicant.conf and remove either OPEN or SHARED from the auth_alg line. Which one depends on whether the access point is using OPEN, SHARED (if it's using both you can choose which one you prefer to use)
After editing, OPEN will look like this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="YOURSSIDHERE"
key_mgmt=NONE
auth_alg=OPEN
wep_key0=YOURWEPKEYHERE
priority=1
}
After editing, SHARED will look like this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="YOURSSIDHERE"
key_mgmt=NONE
auth_alg=SHARED
wep_key0=YOURWEPKEYHERE
priority=1
}
Go to Settings->Wireless & Networks and turn on Wi-Fi.
Your Wi-Fi status should now show the following values:
"Scanning..."
"Connecting..."
"Obtaining an IP address YOURSSIDHERE..."
"Connected to YOURSSIDHERE"
NOTE: If you fail to connect, return to step 4 and try using the other auth_alg value.
Some routers may be configured to only support one authentication mode.
That's the long method - for people who have never connected to a Wi-Fi connection, or don't mind losing saved APs can do the following
Connecting to WEP-enabled Wi-Fi (Advanced)
Create your own wpa_supplicant.conf file, either by hand, using the above code snippets, or one of the template files in the zip
Replace YOURSSIDHERE with the value of your ssid.
Replace YOURWEPKEYHERE with the value of your WEP key.
Place your edited wpa_supplicant.conf file in the /data/misc/wifi directory on your device
Restart/Turn on Wi-Fi
This method has been tested using FRX04 system image, with both Stock and F22's updated rootfs.img file, and against both FRX04 shipped and WisTilt2's debug kernels.
Feel free to share your success and/or failure stories in this thread.
Click to expand...
Click to collapse
I do not understand how do I get to this file? I tried to use wifiace and terminal emulator but still no connection only scan, connect, and disconnect. I put my ssid and password in correctly but it still shows the lock symbol and also I can put any number in and it doesn't change just remembered, secured with wep! Any help and I really don't understand the Android SDK usage! thanks again!
SteelLife said:
I do not understand how do I get to this file? I tried to use wifiace and terminal emulator but still no connection only scan, connect, and disconnect. I put my ssid and password in correctly but it still shows the lock symbol and also I can put any number in and it doesn't change just remembered, secured with wep! Any help and I really don't understand the Android SDK usage! thanks again!
Click to expand...
Click to collapse
If you have any choice in the matter, please, please use WPA, or better yet WPA2 with AES.
WEP is ridiculously insecure, and only slightly better than running a completely open network.
If it's not your AP, and you have no choice... wifi-ace works great. Much easier than this method, although this method does work.
With previous experience in network security, a WEP key can be broken in as little as 2-5 Minutes. 30 Minutes with no prior knowledge and just following a guide.
For security sake, use WPA or WPA2 with either encryption, they are equally difficult to break the key.
Cracking a WEP key is as simple as collecting enough unique IVs and running it against a cracking tool.
Cracking a WPA/WPA2 key is not so simple, you need a handshake packet, then you need to run the handshake packet against a dictionary attack (that can last 30 minutes with a big dictionary on a good computer) until you find the word, if it is not in the dictionary it will have to be brute-forced requiring 7392 days on a very very good computer for a key that is 8 random characters. Hackers purely wont waste their time.
WPA/WPA2 is safe, for now. Use that.
arrrghhh said:
If you have any choice in the matter, please, please use WPA, or better yet WPA2 with AES.
WEP is ridiculously insecure, and only slightly better than running a completely open network.
If it's not your AP, and you have no choice... wifi-ace works great. Much easier than this method, although this method does work.
Click to expand...
Click to collapse
I have no choice! I tried the wifi-ace but it only scan connect disconnect. I don't know! Is there away to erased my SSID so I can start over!
Finallly online!
Ok, Im online had to put password in one of the key management thru wifi-ace!
thanks all!
SteelLife said:
I have no choice! I tried the wifi-ace but it only scan connect disconnect. I don't know! Is there away to erased my SSID so I can start over!
Click to expand...
Click to collapse
Do you not own the WAP? You should get rid of WEP at all costs.
arrrghhh said:
Do you not own the WAP? You should get rid of WEP at all costs.
Click to expand...
Click to collapse
Building share and want to stay on wep for whatever reason I don't know!
SteelLife said:
Building share and want to stay on wep for whatever reason I don't know!
Click to expand...
Click to collapse
Tell them anybody with a laptop and basic knowledge can hack into it no prob. Then not only could they potentially steal your internets, they could also easily get into your machines, as the intruder is now on your LAN.
Meh, do what you gotta do. Just be wary of the consequences for choosing poor security methods.
arrrghhh said:
Tell them anybody with a laptop and basic knowledge can hack into it no prob. Then not only could they potentially steal your internets, they could also easily get into your machines, as the intruder is now on your LAN.
Meh, do what you gotta do. Just be wary of the consequences for choosing poor security methods.
Click to expand...
Click to collapse
I know have been telling them for 6 months to change too no prevail!

[Q] X10 Mac Address Change/Spoof How to?

First of all, i would like to say hello guys and thanks to every developer in here.
I'm trying to change my x10 (FreeX10 from here) mac address, but i've tried a lot of commands like:
ip link wlan0 set address xx:xx:...
most of them just returns me invalid operation or siocsifhwaddr error
i've tried the app Set Mac Address with no luck.
Tried to find the /etc/wl/nvram.txt there is no file in there.
Tried to look for a file with any WL inside, most of them seems code not configuration.
Have someone already been able to change this?
I need this because in my work everyone can have only on mac address signed to, so if i want to use wifi i need to set every thing to the same mac address.
Sorry my bad english.
Thanks in advance
Ruan
Maybe you will find something useful here!
G-FACE said:
Maybe you will find something useful (Couldn't post the link because of forum rules blocking me)
Click to expand...
Click to collapse
It may be because of my lack of knowledge on linux system, but i couldn't understand most of the commands in there, tried to reproduce but i got nothing.
Does anyone knows any step by step for x10 using terminal commands if possible to do this?

[Q] Bulk or Many Message Sending Issue, Please Help

Hi Everyone
I am having Issue with the many text message sending, Means that When I forward a message to whole of my contact list or any group an error appears that
"A lot of Messages has been Sent. Click OK to continue and Cancel to Stop Sending"
I was not having this problem on the stock rom on my Samsung Galaxy Gio
I am having this problem on the custom rom like the CM7.2 and CM9
I have complaint this issue to the developers but they said its the cm7.2 and cm9 built in feature so we can't disable it.
Than I searched the method to solve this problem:
I hope so this is the link
http://forum.xda-developers.com/show...46&postcount=6
This is the text from the above link
I got it to work! Heres how(taken from link above):
Open Command Terminal and enter the following:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
Then you'll see: sqlite>
Then enter the following to alter the limit
INSERT INTO gservices (name, value) VALUES('sms_outgoing_check_max_count', 101);
(change 101 to your new limit)
I didnt try altering the limit so I hope it works for you guys.. but I can confirm this next one works. It completely turns off the limit altogether.
To turn off the limit enter:
INSERT INTO gservices (name, value) VALUES('sms_outgoing_check_interval_ms', 0);
It worked right away for me.. (SMS Bomber >)) Id reboot to be safe.
Please anyone who can help me to disable this issue error, as I am not a developer and I can't fix it my self.
I am sure the people in your address book are happy you figured this out.
85gallon said:
I am sure the people in your address book are happy you figured this out.
Click to expand...
Click to collapse
Hope so..
But is there any way to fix this???

Categories

Resources