Any way to name my phone - Captivate Q&A, Help & Troubleshooting

Just wondering cause i like seeing names for the devices that are connected to my router without having to check on each item.. My phone comes up as blank on my router settings page. My wifes iphone(hate saying that word) shows up as her name. Same with all my PCs just wish my phone showed up other than a blank.

My Uncle had asked me about that at one point as well. He uses MAC address approval on his AP at his house and had no clue how to distinguish which from phone from who had it. We have 3 Captivates in my house.

Sucks having to check mac address just to see whos connected to my router.
For now I know I'm the only one on it but I check everyday to see if some one tried to jump on my ship and would love to see a name. .
Sent from my SAMSUNG-SGH-I897 using XDA App

Couldn't someone just change their device name and MAC address to match yours?
On any note, some devices use the same name stored for bluetooth. I can't really test it right now, but try and change it from the default BT name. Sounds dumb, usually I would test these things before saying anything though, so forgive me if I'm wrong!

I don't use mac address security.
The blue tooth is a good idea. Image test after work today. If u get a chance before me just let me know what happens.
Thanks for the idea
Sent from my SAMSUNG-SGH-I897 using XDA App

Our phone does not use the BT name as its network name. I have been trying to figure out where it would keep its name, because I would like to accomplish the same thing. I mean, all my devices have names, even my network printer, the kid's wii, etc.
on a normal linux box, the host name would be stored in /etc/hostname

Pirateghost said:
Our phone does not use the BT name as its network name. I have been trying to figure out where it would keep its name, because I would like to accomplish the same thing. I mean, all my devices have names, even my network printer, the kid's wii, etc.
on a normal linux box, the host name would be stored in /etc/hostname
Click to expand...
Click to collapse
Haven't confirmed it on the captivate (mines at the shop getting repaired) but i did try this method on my tilt2 running xdandroid (froyo 2.2) and a smartq V7 android tablet (eclair 2.1).
edit your init.rc file
find the section that looks something like this
Code:
on boot
#basic network init
ifup lo
hostname localhost
domainname localdomain
change hostname localhost to hostname name_of_device.
For example I called mine XDAndroiD. This is how the section looks like.
Code:
on boot
#basic network init
ifup lo
hostname XDAndroiD
domainname localdomain
This method will survive a phone reboot. Another method (that wont survive reboot) is to issue this command in a terminal under root
Code:
su
echo name_of_device > /proc/sys/kernel/hostname
This example using my XDAndroiD name would look like this.
Code:
su
echo XDAndroiD > /proc/sys/kernel/hostname
***Again I haven't tried this on my Captivate yet. Will test it out when I get my phone back from the shop.

thanks for that. i will have a look later today and see what happens.

Related

Mount Hero on a wireless network

Hello folks, ive had a scout around but haven't found any answers,
Is it possible for me to mount my Hero via an app etc, onto a wireless network, so I can push files to it OTA?
(only locally, doesnt need to be able to do so when on a different network or 3G)
Jim
slimjimwoods said:
Hello folks, ive had a scout around but haven't found any answers,
Is it possible for me to mount my Hero via an app etc, onto a wireless network, so I can push files to it OTA?
(only locally, doesnt need to be able to do so when on a different network or 3G)
Jim
Click to expand...
Click to collapse
Might just be because you are wording it as "mount" you need to tether your phone over wireless? search for wireless tether on the forums.
Try Websharing.
if you use mcr you can use scp, also rsync is available for the hero. if you don't know what i am talking about this is probably not the right solution for you (geeky linux commands involved...).
SSH works for me
thanks for these suggestions guys, i am in no way Linux affiliated, so it looks like Websharing all the way, might have to purchase the full version tho
If i was to start looking into Linux instead, would that allow me to see my phone as a simple networked drive?
G8D said:
SSH works for me
Click to expand...
Click to collapse
Im experienced with doing this on iPhone, whats the process for the Hero?
slimjimwoods said:
Im experienced with doing this on iPhone, whats the process for the Hero?
Click to expand...
Click to collapse
- get a rom with dropbear (mcr for example) or install dropbear in your rom
- for mcr find your password in settings -> about phone
- find your ip address whichever way you want (about screen, wifi router, adb shell ifconfig)
- continue as you're used to
thats brilliant, thankyou- I am on MCR 3.1 which is handy =]
right, im probably being thick, ive discovered the Hero is using port 2222, and discovered my ip and password, but the username for the device? Im almost there......
slimjimwoods said:
right, im probably being thick, ive discovered the Hero is using port 2222, and discovered my ip and password, but the username for the device? Im almost there......
Click to expand...
Click to collapse
You don't need a user name.
Generally the name will just be the name you want to give the preset within your SSH program.
I use WinSCP and all you need to enter is the IP, the port (2222 as you said) and the password within the About Phone section of the settings app.
Also, you need to connect via SCP and not S/FTP.
that'll be it then, i was using a mac and some free program that would only let me FTP, I'll wait until i get home and find something a bit better, thanks for your help-
slimjimwoods said:
right, im probably being thick, ive discovered the Hero is using port 2222, and discovered my ip and password, but the username for the device? Im almost there......
Click to expand...
Click to collapse
sry forgot to mention the port... you can set the username in /system/bin/dropbear.sh, but actually it doesn't change anything. you set the userid=0 and are root, that's it.
a new app just got released called Onair that mounts the SD as a network drive, perfect
i use webshare in the market its brillent

Transfer Files using Wifi + Android Name

Hi, i`ve been looking for a way to transfer files to the phone without using the USB cable.
I found: OnAir which does not work and SwiFTP which works but...
- i`m using Conectify to share my laptops internet connection. This in turn offers IP`s with DHCP.
Is there a way to name your phone to something fixed so that i can use it's name to connect?
If you have any other tips on how to do this, please feel free to let me know
qiuness said:
Hi, i`ve been looking for a way to transfer files to the phone without using the USB cable.
I found: OnAir which does not work and SwiFTP which works but...
- i`m using Conectify to share my laptops internet connection. This in turn offers IP`s with DHCP.
Is there a way to name your phone to something fixed so that i can use it's name to connect?
If you have any other tips on how to do this, please feel free to let me know
Click to expand...
Click to collapse
you can use WebSharing, connect using IP address + port number..
qiuness said:
Hi, i`ve been looking for a way to transfer files to the phone without using the USB cable.
I found: OnAir which does not work and SwiFTP which works but...
- i`m using Conectify to share my laptops internet connection. This in turn offers IP`s with DHCP.
Is there a way to name your phone to something fixed so that i can use it's name to connect?
If you have any other tips on how to do this, please feel free to let me know
Click to expand...
Click to collapse
on air does work fine on both 5.0.7 and froyo for me.
I suppose you're talking about Windows network. Is the phone rooted or not?
Non-rooted have no such option, but can use FTP. If you want to address it by a name - install DynDNS on the phone.
Rooted can change hostname to whatever you like (look up my thread about it in Development section - but it doesn't show on Windows network, since it's not NetBIOS name, it needs DNS server to be addressed) and/or install Samba+Netbios (look up Samba thread in Android General section, this one shows your phone as a computer on the Windows network with an SDCARD share, but it's a bit quirky - slows down when phone goes into sleep). Both things require interaction with O/S on a level of browsing system dirs, executing system commands and changing system text files. If you're not comfortable with it - I don't suggest trying.
I would just use ES File Explorer and pull the files from your Windows shares that you want rather than trying to go through all of the trouble to push a file to your phone.
Estrongs File Explorer does work very well browsing windows/smb shares over wifi. Astro can do this as well as an option for sftp for connecting to your linux box. As for a static IP you can do this manually from the wifi options in the phone. Or a nice app was made called WiFi Static, and is available free from the market.
A bit of a different choice, but Dropbox is free and can share files between any number of devices, in the cloud.

[XAP] Functional Webserver

I've enhanced my Webserver sample to support reading from the device (where allowed), as well as reading/writing IsolatedStorage
The XAP is located in the Webserver project.
To access the webserver, open the app on your phone (it will disable the idle timer and run behind the lock screen--but WiFi will turn off, so you'll want to be connected via USB or don't let it sleep)
//phone_ip/IsolatedStorage
//phone_ip/Windows
IsolatedStorage is a special case (virtual directory that uses the SDK IsolatedStore APIs), the filesystem is mounted at the root of the webserver. Note that if you navigate to //phone_ip/, you will not see anything, as we are not able to list the contents of the root directory.
I am working to create a real socket library that mimics System.Net/.Sockets, and System.IO for file access. TcpClient and TcpListener are in a mostly functional state already.
Most of the socket and I/O code came from jmorrill. I have pulled code from mono to mimic System.Net.
Perhaps I'll spend some time on the web UI next, maybe a fancy Silverlight uploader. There doesn't seem to be a ton of interest though, so we'll see.
Update ("v2"):
- Authentication
- UI
- Adapter list
- More reliable
nice.. will try it out.
Very nice! Thanks!!
I've updated the sample to one with a UI, Authentication and more reliability.
Looking at your code WP7 looks more and more like a normal windows CE with a secured UI.
Yeah, I think someone with a strong WM background could port code to [native, homebrew] WP7 pretty quickly. Pretty much everything works just fine.... I just wish we could add the System.Net .NET CF assemblies back to the GAC. :/
davux said:
I've enhanced my Webserver sample to support reading from the device (where allowed), as well as reading/writing IsolatedStorage
The XAP is located in the Webserver project.
To access the webserver, open the app on your phone (it will disable the idle timer and run behind the lock screen--but WiFi will turn off, so you'll want to be connected via USB or don't let it sleep)
//phone_ip/IsolatedStorage
//phone_ip/Windows
IsolatedStorage is a special case (virtual directory that uses the SDK IsolatedStore APIs), the filesystem is mounted at the root of the webserver. Note that if you navigate to //phone_ip/, you will not see anything, as we are not able to list the contents of the root directory.
Click to expand...
Click to collapse
Noob questions: It says "connect to your wifi address below". How? Also, connect the phone or the pc? And navigate via IE mobile?
As I said, noob questions. Thanks for any help.
start ie and type in http://wifi address
I have found on alternateboot.reg
HTML:
; Disable MTPz USB function driver
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\CompositeFN]
"ClientDriverList"=multi_sz:"Serial_Class"
What is MTPz USB function driver?
ajhvdb said:
start ie and type in http://wifi address
Click to expand...
Click to collapse
... which gives me the ever-popular "cannot find server or DNS address". What am I doing wrong? I assume you meant IE on my phone.
piaqt said:
... which gives me the ever-popular "cannot find server or DNS address". What am I doing wrong? I assume you meant IE on my phone.
Click to expand...
Click to collapse
I think (might be misreading your question), you'll need to plug your device in to USB (or be prepared to loose the connection), then on your desktop, go to one of the IPs listed (in IE or any other browser).
On the screenshot shown, WiFi is the last one, with "BCMSDDHD1" attached to the label, thought the device name may be different for you. Try one that has "192.168.1." as that'll be the most likely option.
l3v5y said:
I think (might be misreading your question), you'll need to plug your device in to USB (or be prepared to loose the connection), then on your desktop, go to one of the IPs listed (in IE or any other browser).
On the screenshot shown, WiFi is the last one, with "BCMSDDHD1" attached to the label, thought the device name may be different for you. Try one that has "192.168.1." as that'll be the most likely option.
Click to expand...
Click to collapse
Thanks. Next noob question: It asks for a user/password. What do I use and or where do I set it?
piaqt said:
Thanks. Next noob question: It asks for a user/password. What do I use and or where do I set it?
Click to expand...
Click to collapse
I don't know what the default password is, but if you type admin/admin in on the device for user/pass that works fine.
EDIT:
Code:
// In order to secure the device, the default password is a random number, not a static default
So you'll need to change it, unless you can read minds
l3v5y said:
I don't know what the default password is, but if you type admin/admin in on the device for user/pass that works fine.
EDIT:
Code:
// In order to secure the device, the default password is a random number, not a static default
So you'll need to change it, unless you can read minds
Click to expand...
Click to collapse
OK. admin/admin works. Next nq: I get "Error opening directory:O". Is there a specific path to enter?
piaqt said:
OK. admin/admin works. Next nq: I get "Error opening directory:O". Is there a specific path to enter?
Click to expand...
Click to collapse
Try 192.168.1.XX/Windows and that should work.
l3v5y said:
Try 192.168.1.XX/Windows and that should work.
Click to expand...
Click to collapse
Ba-da-bing! We are in business.
this works great! does this work just over USB? I assumed that since I didnt see an SSID advertised that the webserver wasn't broadcasting over WiFi.
A few feature suggestions:
* Make it clearer in the device UI to use the last IP address. I had assumed I would use the SERIAL ON USB IP address
* When browsing files, show a detail view so that you can see date/time modfied, type (optional), size
* when in a subdirectory add an Up ellipsis (...) to more easily walk back up the directory tree.
* be able to filter a directory listing so that you can display just certain file types (ie *.exe)
* Be able to download files
I love it! Its handy to be able to get a file listing that you can copy so that you can capture file listings.
Scratch the suggestion to add downloading files, the filenames are of course URLs which enable http downloads
I found a bug. When you click on a file to download it the href seems to have an issue since the file extension is stripped. You can easily add it during the save but it would be easier to have that done by default. I need to check the syntax but for example for filebrowser.exe the html is:
FileBrowser.exe<br />
This was handy so that it was possible to download an EXE and see what certificate is used for signing.
It looks like if you press Back or Start the webserver shuts down or is tombstoned.
I wonder if anyone has come up with a way to keep an application from being killed.
If that was possible then the webserver could provide active control. In that case if it was running in the background a great feature to add would be a screen capture function.

Got a weird issue. Looking for help.

Ok. So I did a NV flash on both my wife's and my steak 7. Well apparently tthe NV flash files I used had pt23 in it and now I have two tablets with identical Mac addresses. Now I know what this means as I have managed many networks before. My router is no kicking me and my wife off one at a time every so often as we have an IP conflict. What I'm looking for is either a way to edit the pt23.img of the NV flash fileto have the correct info for each tablet. Or is there a way to issue a Mac address to a tablet through adb or something like that. I figure I can get the true info by taking the tablet apart. That's not a issue. Just need to know how to issue the info once I get it.
GUIDE
scarmon25 said:
Ok. So I did a NV flash on both my wife's and my steak 7. Well apparently tthe NV flash files I used had pt23 in it and now I have two tablets with identical Mac addresses. Now I know what this means as I have managed many networks before. My router is no kicking me and my wife off one at a time every so often as we have an IP conflict. What I'm looking for is either a way to edit the pt23.img of the NV flash fileto have the correct info for each tablet. Or is there a way to issue a Mac address to a tablet through adb or something like that. I figure I can get the true info by taking the tablet apart. That's not a issue. Just need to know how to issue the info once I get it.
Click to expand...
Click to collapse
DO THE FOLLOWING AT YOUR OWN RISK DO NOT BLAME ANYONE BUT YOURSELF FOR FAILURE.
I'm assuming this is honeycomb. and if so here what I did. I'm not sure you can change the mac but here is a guide to help.
You may can even change the IP addresses in your devices to a static IP.
I did the same thing by accident myself. You have successfully changed Dell service tag, MAC, ppid and if its 3g the imei.
1). find all of these numbers and if you know your mac address get it too. Write all of these down for the edit.
2). Get yourself HxD this a hex code editor.Then Install on your computer.
3). open the p 23 file that you flashed. Starting on line 200 going into 210 is your ppid place your cursor on the line just before the number on the far right of the editor DO NOT HIGHLIGHT. just start typing and it will replace each number.
4). On line 220 four spaces in, is your Service tag change it.
5). Save
This completes the rewrite for p23.
6). open p 24 the first and second lines are mac addresses line 00 is WIFI and 10 is bluetooth. As you will see both numbers will be the same except the last letter. Change accordingly. WIFI will be a letter before the bluetooth.
7).FLASH( i just replaced the files and NVFLASHED the whole set again just to make sure there were no problems.
Hope this helps.
My Streak is wifi only maybe someone else can chime in on how the change for the imei.
---------- Post added at 09:51 AM ---------- Previous post was at 09:36 AM ----------
Found this link too.
http://www.tabletroms.com/forums/honeycomb-streak-7/3402-service-tag-help.html
datfat said:
DO THE FOLLOWING AT YOUR OWN RISK DO NOT BLAME ANYONE BUT YOURSELF FOR FAILURE.
I'm assuming this is honeycomb. and if so here what I did. I'm not sure you can change the mac but here is a guide to help.
You may can even change the IP addresses in your devices to a static IP.
I did the same thing by accident myself. You have successfully changed Dell service tag, MAC, ppid and if its 3g the imei.
1). find all of these numbers and if you know your mac address get it too. Write all of these down for the edit.
2). Get yourself HxD this a hex code editor.Then Install on your computer.
3). open the p 23 file that you flashed. Starting on line 200 going into 210 is your ppid place your cursor on the line just before the number on the far right of the editor DO NOT HIGHLIGHT. just start typing and it will replace each number.
4). On line 220 four spaces in, is your Service tag change it.
5). Save
This completes the rewrite for p23.
6). open p 24 the first and second lines are mac addresses line 00 is WIFI and 10 is bluetooth. As you will see both numbers will be the same except the last letter. Change accordingly. WIFI will be a letter before the bluetooth.
7).FLASH( i just replaced the files and NVFLASHED the whole set again just to make sure there were no problems.
Hope this helps.
My Streak is wifi only maybe someone else can chime in on how the change for the imei.
---------- Post added at 09:51 AM ---------- Previous post was at 09:36 AM ----------
Found this link too.
http://www.tabletroms.com/forums/honeycomb-streak-7/3402-service-tag-help.html
Click to expand...
Click to collapse
awesome man. thanks so much, one question. what did you use to open or decompile the p23.img and p24.img will the hxd editor do this?
NM just figured it out. one last question. did you have to take yours apart to get the info or did you find anotther way?
Also mine is wifi only too. so your guide is perfect. man you are seriously awesome. thanks a ton
scarmon25 said:
awesome man. thanks so much, one question. what did you use to open or decompile the p23.img and p24.img will the hxd editor do this?
NM just figured it out. one last question. did you have to take yours apart to get the info or did you find anotther way?
Also mine is wifi only too. so your guide is perfect. man you are seriously awesome. thanks a ton
Click to expand...
Click to collapse
I did not take mine apart to find the mac yet. since mine was not having the conflicts I decided to wait.
datfat said:
I did not take mine apart to find the mac yet. since mine was not having the conflicts I decided to wait.
Click to expand...
Click to collapse
Right on. Do you think I could use a Mac generator and just general new ones. Or just change the last letters on the two that's there?
scarmon25 said:
Right on. Do you think I could use a Mac generator and just general new ones. Or just change the last letters on the two that's there?
Click to expand...
Click to collapse
I haven't used a generator before. Changing it may work as long as you dont have a duplicate in your network. Im not 100% sure though. Also the ppid and service tag are printed in the sd card cover and on the box if you have it. I forgot to mention this in my post before
datfat said:
I haven't used a generator before. Changing it may work as long as you dont have a duplicate in your network. Im not 100% sure though. Also the ppid and service tag are printed in the sd card cover and on the box if you have it. I forgot to mention this in my post before
Click to expand...
Click to collapse
Yeah I saw that when I was looking at it. I have made sure the Mac I want to use isn't on the network anywhere. Do I need to do anything with the PPID?
scarmon25 said:
Yeah I saw that when I was looking at it. I have made sure the Mac I want to use isn't on the network anywhere. Do I need to do anything with the PPID?
Click to expand...
Click to collapse
The Dell service tag and ppid are your device identifiers for any service issues with dell since your probably rooted any warranty you may have had is void (supposedly) . The mac address is probably the main concern I'm sure. so you dont have to change the p23 at all, unless you want to.
datfat said:
The Dell service tag and ppid are your device identifiers for any service issues with dell since your probably rooted any warranty you may have had is void (supposedly) . The mac address is probably the main concern I'm sure. so you dont have to change the p23 at all, unless you want to.
Click to expand...
Click to collapse
Gotcha. Awesome. Well I'm gonna start changing Mac addresses on this one until it sticks and works. Once I can't get it to change Mac addresses then the issue is solved. Thanks again ffor all your help.
[Guide][Technical]Restoring your device specific data (including Service Tag)
I've covered 95% of it in my guide already, I thought I had it linked in the sticky, I'll add it some time then.

[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.

Categories

Resources