Anyone know how??
I am rooted using prime 2.0., can't figure out which file...
The /proc/sys/kernel/hostname file just says localhost, but the hostname shows up as Android_######### according to my dhcp server and other devices on the network.
AFAICT The TF gets the hostname from /init.rc around line 191. If you remounted things rw and edited the file, I assume the change would be reflected but I'm more familiar with BSD/Slackware/RedHat/Debian when it comes to such things.
There might also be something useful in a forum search here, idk if you've tried that.
You could also try this.
http://forum.xda-developers.com/showthread.php?p=19786131#post19786131
Related
To use wifi at school I have to wpa corporate + TTLS etc, and g-tablet does not support that. In one of the earlier post one person suggested that I use "wifi advanced configuration editor", but the secured signal does not show up so there is nothing for me to edit. I tried to manually add the wifi connection via "setting" but I can't.
I know what wpa_supplicant.conf looks like on my Pandigital Novel; if I could edit this file on my g-tablet then I should be okay, right? Any suggestions on how to do this editing? (sheepishly looking at my back) I still can't get ADB working with my g-tab, and in any case I assume there would be issue with permission...
Thanks!
if you can get root you can use root explorer to turn R/W access on to the conf file in /data/misc/wifi and edit the conf in text editor. You may be asking for more but that is where I was editing mine to get ad-hoc mode on. Sorry I dont know the exact settings to tell you to make the actual edits.
case-sensitive said:
To use wifi at school I have to wpa corporate + TTLS etc, and g-tablet does not support that. In one of the earlier post one person suggested that I use "wifi advanced configuration editor", but the secured signal does not show up so there is nothing for me to edit. I tried to manually add the wifi connection via "setting" but I can't.
I know what wpa_supplicant.conf looks like on my Pandigital Novel; if I could edit this file on my g-tablet then I should be okay, right? Any suggestions on how to do this editing? (sheepishly looking at my back) I still can't get ADB working with my g-tab, and in any case I assume there would be issue with permission...
Thanks!
Click to expand...
Click to collapse
Add it using the normal Android tool, assuming it's hidden? Anyway, then modify it with the WiFi Advanced Config Editor. It's always possible the firmware here isn't working well with that app, but if it's a hidden AP you might need to manually add, then edit.
khaytsus said:
Add it using the normal Android tool, assuming it's hidden? Anyway, then modify it with the WiFi Advanced Config Editor. It's always possible the firmware here isn't working well with that app, but if it's a hidden AP you might need to manually add, then edit.
Click to expand...
Click to collapse
By "normal android tool" I assume you mean "setting" -- that's what I used on the pandigital novel anything. But as I said in the OP, g-tablet does not allow me to manually add an entry, so I can't use the wifi config editor :-( I also tried the app "full wifi" but I (rather, g-tablet) does not seem to be able to save the connection so created.
I'll look into root explorer as mentioned in post #2 and see how it goes... If you have better/different ideas please do share it with us!
Set Hostname on tnt lite?
sgboy1202
You might need to be rooted/superuser but edit the hosts file and add a line
192.186.my.address thishostname
leave the 127.0.0.1 localhost line alone.
edit - This might not be the Android way to do things. If someone else knows a better way please let us know.
I don think that changing the hosts file, changes the name that other devices see the tablet as.
sgboy1202
You'd need to alter their hosts files too or add the tablet's info to a dns server
Found must do "setprop net.hostname name" at term, but does not stay with reboot. I also found a way to for the hostname to survive a reboot, but it requers disassembling and reassembling the services.jar in the system dir.
sgboy1202
Apologies in advance if I am posting in the wrong section.
I've been talking to some people over on the CM forums about this and we haven't found an answer yet.
If you look in my screenshot, right below the alarm, my name is on my lockscreen. This was put here using an old setting on CyanogenMod 6.1.2 on my HTC Evo 4g. You did this on CM6 by going to Settings > Location & Security. Then there was a checkbox to "Show Custom Message". You then put in text!
Does anyone know which file stores this value on CM7/Android 2.3? I've pulled the eri.xml file from my phone and I can edit my carrier text but I have not been able to find my name. I like being able to edit that text and I wanted to update it to something new but the settings no longer exist under CM7. Thanks for looking!
I have found a ton of utils for editing carrier text but nothing for the text pointed to in the red arrow.
.
.
.
.
.
.
.
*bump*
re
Not the answer you are looking for here but wouldnt it be easier and less annoying and stressful to just flash back to the rom where you could change it, change it to what you want and then flash back ?
that is if i am understanding you correctly and your name shows up now of course with the new rom...
i would think if you changed your name to whatever you wanted then you could go back to the new rom and it would appear the way you want it.
I'm going to give that a try tomorrow. Not sure if it sticks through an upgrade or not but worth a try. Im just curious at this point what confit file it is. Wish there was a filemon or similar tool for Android. Although, if can dump all the files off the phone before and after I should be able to do comparisons....hrm. Project for tomorrow.
OK, finally took the time to work on this a little further.
I reflashed CM6, booted and confirmed there was no lockscreen text. Took a nandroid and copied off the system.img
I then put a lockscreen text in - used a custom phrase that would not be in any of the config files normally. Rebooted, took a nandroid and copied off this system.img.
Extracted both system.img files using unyaffs.
I did a binary and CRC comparison off all the files, no differences. So apparently this setting is stored somewhere else. Hrm......
AHA. Found the little bugger finally.
Had to pull the data.img and extract that. The setting is located in
/data/com.android.providers.settings/databases/settings.db
lock_screen_custom_msgTESTTEXT
lock_screen_show_custome_msg1
These are the two options that I found. So, now to see if I can safely edit that DB file and modify the text on CM7. I already have the text on my screen so the data fields are in the DB file already so I suspect I can just edit that file and then replace it on my phone.
Hm. Editing is no good. Blew away all my settings and I not longer can enable any lockscreen.
Hah. Got it! Using ADB works. Instructions:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
.tables (you should see a secure table listed)
.header on
.mode column
select * from secure;
Now scroll through the results. Find the "lock_screen_custom_m" item under name. Note the ID number to the left. Write the ID number down.
update secure set value='your custom message here' where _ID=NN;
NN is the ID number you wrote down.
.quit
Reboot your phone.
There you go, just in case anyone else is interested.
jdostal said:
Hah. Got it! Using ADB works. Instructions:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
.tables (you should see a secure table listed)
.header on
.mode column
select * from secure;
Now scroll through the results. Find the "lock_screen_custom_m" item under name. Note the ID number to the left. Write the ID number down.
update secure set value='your custom message here' where _ID=NN;
NN is the ID number you wrote down.
.quit
Reboot your phone.
There you go, just in case anyone else is interested.
Click to expand...
Click to collapse
Nice find!
I used a derivative of your method to reset the alarm notification on the GB lockscreen when the buggy POS alarm app G-Alarm left it there after removing all the alarms and uninstalling it.
That one is in system instead of secure, and it can be set to a blank string per http://developer.android.com/reference/android/provider/Settings.System.html#NEXT_ALARM_FORMATTED to clear it
Neat! Glad it could help someone out.
jdostal said:
Neat! Glad it could help someone out.
Click to expand...
Click to collapse
Yup, much appreciated! Also great to learn how to edit databases on Android.
Also, I didn't have a USB cable so I did it with the terminal editor. For convenience (i.e. having a real keyboard) I used Webkey for PC access to my phone and its built-in terminal editor to make the changes.
That sounds painful!
I don't know where I read the guide, but definitely use ADB. With ADB you can basically connect to the shell on your phone from your PC through a command prompt. Makes doing this sort of thing MUCH easier!
jdostal said:
That sounds painful!
I don't know where I read the guide, but definitely use ADB. With ADB you can basically connect to the shell on your phone from your PC through a command prompt. Makes doing this sort of thing MUCH easier!
Click to expand...
Click to collapse
Did you miss the part where I didn't have a USB cable?
Hi,
Can anyone help me change the WIFI hostname of my TF?
All i can find requires rooting....
Cheers, rio
Out of curiosity, why are you trying to change the hostname? If you are using a samba server, it should have a section to change the netbios name. If you need to change the /proc/sys/kernel/hostname file, you will need root access.
I don't have my transformer yet, but as I recall on my DROID X it was the same as the bluetooth device name, so changing the bluetooth name also changed the hostname.
I would like to change the current name 'android-sdr4r55ed' to something easier.
And the BT name is different, and currently set to match my device name.
Rio
Hi!
I have a list of about 100 WiFi SSIDs and passwords that I've extracted from my old phone and I want to add them to the new phone that runs Android 10 and I couldn't find any useful information on the internet as everything seems outdated and not working.
The closest thing I've found is this: https://github.com/steinwurf/adb-join-wifi but I had to write a script, it adds only one network at the time and it doesn't work very well because often the networks aren't added and I also have problems escaping the SSID and passwords.
I've also tried to look for wpa_supplicant.conf but apparently it's not used anymore on Android 9 and 10, instead I've found a file called WifiConfigStore.xml but I'm not sure if and how it can be edited manually. Then I read I should use wpa_cli to add the networks but I get a service error when I run it. I also looked for Android apps but nothing like I need.
How can I add programmatically my networks? Is there an adb command, a file I could edit on the phone or an app that can help me with this?
Thanks in advance
ColOfAbRiX said:
UPDATE: I created this thread again on the development section because more pertinent but now I can't find how to remove this one here!
...
Click to expand...
Click to collapse
Update: The thread in the development forum has been deleted as not qualifying for that forum.
https://forum.xda-developers.com/galaxy-j/development/rules-posting-development-t3601282
ColOfAbRiX said:
Hi!
I have a list of about 100 WiFi SSIDs and passwords that I've extracted from my old phone and I want to add them to the new phone that runs Android 10 and I couldn't find any useful information on the internet as everything seems outdated and not working.
The closest thing I've found is this: https://github.com/steinwurf/adb-join-wifi but I had to write a script, it adds only one network at the time and it doesn't work very well because often the networks aren't added and I also have problems escaping the SSID and passwords.
I've also tried to look for wpa_supplicant.conf but apparently it's not used anymore on Android 9 and 10, instead I've found a file called WifiConfigStore.xml but I'm not sure if and how it can be edited manually. Then I read I should use wpa_cli to add the networks but I get a service error when I run it. I also looked for Android apps but nothing like I need.
How can I add programmatically my networks? Is there an adb command, a file I could edit on the phone or an app that can help me with this?
Thanks in advance
Click to expand...
Click to collapse
Well, there's one way: Titanium Backup
It can restore your wifi SSIDs and passwords from an xml file named
com.keramidas.virtual.WIFI_AP_LIST-20191012-065050.tar.gz
(file is inside the archive). This file contains SSID and password in plaintext.
strongst said:
Well, there's one way: Titanium Backup
It can restore your wifi SSIDs and passwords from an xml file named
com.keramidas.virtual.WIFI_AP_LIST-20191012-065050.tar.gz
(file is inside the archive). This file contains SSID and password in plaintext.
Click to expand...
Click to collapse
Inside the archive there's WifiConfigStore.xml which I've already found it. The format doesn't look trivial to me so this idea is not really usable. But thanks!