first, i did search, second, i need personalised help due to the specific nature of the failure.
that out of the way
-{edit}-
android transformer tf101 b70 (i think the dock is b70) must be sbkv1 due to certain things working, but i peeled stickers off
prime vanilla 2.1
latest roach kernel for prime
-{/edit}-
i installed chroot ubuntu over prime, worked fine, got in with vnc was happy, closed ubuntu, wifi disconnected in android, wont connect, sticks on obtaining ip address
with more than one wifi network, so its not just one networks dhcp being borked, its all of them
it authenticates, and then sticks changing security type, does not help, changing to open does not help,
i tried setting reserved ip in router, no effect, router allocates ip to device, device is seen in router, device does not acknowledge ip allocation.
i have tried android terminal to check if ubuntu is the problem, it force closes on boot, have updated with sideloaded apk, still force closes, root explorer also crashes, blank screen and force closes
es file explorer, cannot find contents of /data/ reports it as empty so cannot delete dhcp cache.
have done settings > privacy > factory
no effect
have done CWM wipe cache and data
no effect.
will try re-flashing prime via adb after work (10:30pm GMT today) unless someone else has other suggestions, also will try going into ubuntu via ssh, as wifi was working within ubuntu, i think i may have exited ubuntu wrong once (was having difficulty with lxde and tightvnc) so will check that but beyond that im stuck.
ok i see no one else had any ideas, no matter, anywho, i formatted /system /data /cache /staging and then reinstalled prime from the recovery console,
works, so, if you do this, problem fixorred.
will probably reinstall ubuntu again and see if it causes this problem, if so i can fix but also can contact dev to get a fix for chroot
EDIT: This is meant to resolve the following issue:
http://forums.androidcentral.com/ht...tomatically-connecting-att-wifi-hotspots.html
For this your phone needs to be rooted and you need Root Explorer from the Market:
1) Open root explorer
2) Tap on "Mount R/W" to mount the file system
3) Navigate to /data/misc/wifi
4) Press and hold on wpa_supplicant.conf and select "Open in Text Editor"
5) Delete the following lines from the file:
network={
ssid="attwifi"
key_mgmt=NONE
priority=1
}
6) Once deleted tap on the 3 dot's in the top right hand corner of the app
7) Tap on "Save and Exit"
8) Reboot
After that you will no longer be forced to connect to "attwifi"
good for security, seems stupid to auto connect to those!
When you open the Hot Spot app, the above code to remove does the following:
- Instead of the ssid being "HTC Portable Hotspot" - default; it's "attwifi"
- Instead of using WPA2 (AES Encryption), it sets it use none instead.
These can be changed even without editing the above, before turning on the hotspot ability.
Again, it doesn't remove anything, simply doesnt preset anything.
Cheers Though.. Keep tinkering
JSLEnterprises said:
When you open the Hot Spot app, the above code to remove does the following:
- Instead of the ssid being "HTC Portable Hotspot" - default; it's "attwifi"
- Instead of using WPA2 (AES Encryption), it sets it use none instead.
These can be changed even without editing the above, before turning on the hotspot ability.
Again, it doesn't remove anything, simply doesnt preset anything.
Cheers Though.. Keep tinkering
Click to expand...
Click to collapse
Not on AT&T's version you can't. They force you to connect to it so you don't have to use their sucky network. It has nothing to do with changing the hotspots name.
Can't we just freeze it with TiB?
spyz88 said:
Not on AT&T's version you can't.
Click to expand...
Click to collapse
Edit in regards to my first post: It doesnt remove it, it simply stops the forced connection to the AT&T wifi hotspot instead of your saved personal wifi points (the prority=1 entry).
I was incorrect, but you're still incorrect at saying it removes it. Sorry.
Edit 2: "Remove "attwifi" from your AT&T One X"
nothing is being' removed'. the hot spot is still there, though forced connection to it is not longer occuring. nothing hard to grasp.
Cheers.
Look if you are having an issue grasping the concept of what this does then please move on.
The whole point of it is -> TO STOP THE FORCED CONNECTION TO AT&T <-. NOT instead of, it FORCES you to connect to these wifi spots at&t has all around the US. They do this so you utilize attwifi's bandwidth and it eases their network congestion.
IIRC Rogers doesn't do this type of garbage to manage their network congestion. So, I am not wrong. You are the one who is having a hard time grasping this concept. Cheers, keep tinkering though.
spyz88 said:
EDIT: This is meant to resolve the following issue:
http://forums.androidcentral.com/ht...tomatically-connecting-att-wifi-hotspots.html
For this your phone needs to be rooted and you need Root Explorer from the Market:
1) Open root explorer
2) Tap on "Mount R/W" to mount the file system
3) Navigate to /data/misc/wifi
4) Press and hold on wpa_supplicant.conf and select "Open in Text Editor"
5) Delete the following lines from the file:
network={
ssid="attwifi"
key_mgmt=NONE
priority=1
}
6) Once deleted tap on the 3 dot's in the top right hand corner of the app
7) Tap on "Save and Exit"
8) Reboot
After that you will no longer be forced to connect to "attwifi"
Click to expand...
Click to collapse
I saved a backup of the file just in case anything went wrong, and then deleted those lines. Is there a way to just comment out the lines instead of deleting them?
I also noticed that the keys for all my wifi connections are stored as plain text in this file, including some corporate ones that use my network credentials to log in. Seems a tad insecure to me.
belyle said:
I saved a backup of the file just in case anything went wrong, and then deleted those lines. Is there a way to just comment out the lines instead of deleting them?
I also noticed that the keys for all my wifi connections are stored as plain text in this file, including some corporate ones that use my network credentials to log in. Seems a tad insecure to me.
Click to expand...
Click to collapse
Yeah that's one of the security issues they don't seem intent on fixing. I would assume malware could just snatch that file off our phones.
I'm pretty sure because its a .conf file and its not actual code we can't comment them out. I could be wrong though.
Does this mod work for anyone? Granted I tried it on the HTC One X+ phone and if I remove that entry I can no longer enable wifi, it shows "Error". Any other changes that need to be made? I also found /etc/wifi/wpa_supplicant.conf, made the same change there and still no luck.
Does it work reliably on the HOX phone?
Ah, ES File Explorer screwed me! First time I use it to edit a file and what it did it saved the original file as a .bak and created a new file with my changes. The problem is that the new file is owned by root and rw by root only, but the original conf file is owned by system:wifi and 660 perms. Once I fixed ownership and perms, wifi starts even without the attwifi entry.
So yes, we can remove the attwifi entry, but there's still a problem: once you manually connect to attwifi once, the entry is put back in and cannot be removed via the UI, you have to edit the file all over again. It seems that we need a proper fix from a ROM developer to allow the UI to forget the attwifi entry, it must be hard-coded that the attwifi entry is not editable.
sirxdroid said:
Does this mod work for anyone? Granted I tried it on the HTC One X+ phone and if I remove that entry I can no longer enable wifi, it shows "Error". Any other changes that need to be made? I also found /etc/wifi/wpa_supplicant.conf, made the same change there and still no luck.
Does it work reliably on the HOX phone?
Click to expand...
Click to collapse
I saw your other post too, but quoting this one.
This is a very old thread and this method is dated. Root your phone, get a proper ROM, and then try.. I just tested with a One X+ using Viper XL+ ROM and it works no issues.
YOUR SECTION
sirxdroid said:
Does this mod work for anyone? Granted I tried it on the HTC One X+ phone and if I remove that entry I can no longer enable wifi, it shows "Error". Any other changes that need to be made? I also found /etc/wifi/wpa_supplicant.conf, made the same change there and still no luck.
Does it work reliably on the HOX phone?
Click to expand...
Click to collapse
I tried this on my SGN2 and had the same problem. .. My wifi would no longer work and I had to restore the phone from a backup as even restoring a backup of the file wouldn't enable wifi.
Wow, I looked inside that file and lo and behold the password for my home network is stored there as unencrypted ascii text. How stupid is that... The moment my phone is compromised so is my home network.
GroovyGeek said:
Wow, I looked inside that file and lo and behold the password for my home network is stored there as unencrypted ascii text. How stupid is that... The moment my phone is compromised so is my home network.
Click to expand...
Click to collapse
You could encrypt your phone and set a PIN/password. If someone steals your phone I'm sure they would be more interested in wiping it clean so they can sell it than in your data, so they would not bother to get past your PIN. If you are thinking of a different type of compromise, e.g. someone remotely connecting to your phone while you are using your phone, or a rogue app/virus, then the encryption won't help.
GroovyGeek said:
Wow, I looked inside that file and lo and behold the password for my home network is stored there as unencrypted ascii text. How stupid is that... The moment my phone is compromised so is my home network.
Click to expand...
Click to collapse
Same thing would happen if you lost your laptop.
barry99705 said:
Same thing would happen if you lost your laptop.
Click to expand...
Click to collapse
Um . . you realize you are replying to a thread that has been dead for 7 months?
redpoint73 said:
Um . . you realize you are replying to a thread that has been dead for 7 months?
Click to expand...
Click to collapse
Yea, sorry about that. The stupid rubbed off on me. :laugh:
I've been trying to change my mac address on my Moto G3 but to no success. The first method I tried, was using an app. When I changed the mac with the app, (also called 'Mac Changer') it actually changed what the device said the mac address was, seemed very promising. So to test it I went into 'Kali Linux' on my computer and ran a command that shows the mac address on nearby hotspots or devices. It runs for a few seconds, and up pops my mac address, but not my new one. It shows my old mac address (A4:70:Blah:Blah:Blah) which means it didn't work even though the actual device settings said it did! Surprised me. Next thing I tried was using 'Terminal Emulator'. I had 'Busybox' installed and 'Superuser' installed from rooting so I got right into it. I entered in the command 'su' and hit enter. Now I have root access. BTW: My device has been fully rooted and all unnecessary bloatware, (like Google) completely removed using 'Debloater', not hidden like most app removers will do. Next I typed in 'Busybox iplink wlan0' and it showed my mac address, (Take notice that you have to have your wifi on to be able to do this, alot of people have had this problem where they don't turn their wifi on and it doesn't work. I struggled with it for a while til I found out wifi has to be on. I'am not sure why the wifi has to be on because on my computer I can check my mac address through command prompt with command 'getmac' and it shows my mac address without wifi being on.) Anyways, I then typed 'busybox ifconfig wlan0 hw ether (mac address)' and hit enter. To check if it worked I did the iplink command I did earlier. It showed the new mac address but when I went to 'Kali Linux' it showed it being the same old mac address. If anyone knows how to successfully change a mac address on a Android 6.0.1 device, please let me know. Also if you need help with anything and think I might be able to help you based off what you read just now, please let me know, I'd be glad to share my knowledge and help somebody out. Thanks!
Team,
I have a nice S4 that is not used anymore so I started experimenting different stuff, there is not any warranty active so I tested the root/unroot, different images etc.
It all went well till I tried to start working with the wlan0 configuration. I tried all possibile solutions found around, on the busybox/term even if every command does not return an error nothing changes. I've tried differents apps they all claim is fine but nothing changes, even modifying the efs/wifi files does not have any result.
I tried rebooting after changes... the max I was able to achieve was turn off wifi, change the files, reboot, check max 02:00:00:00:00, turn on wifi... mac back to original.
Is there anyone can help me? is it a problem related to the image? or to the phone?
Thanks,
M
m.savazzi said:
Team,
I have a nice S4 that is not used anymore so I started experimenting different stuff, there is not any warranty active so I tested the root/unroot, different images etc.
It all went well till I tried to start working with the wlan0 configuration. I tried all possibile solutions found around, on the busybox/term even if every command does not return an error nothing changes. I've tried differents apps they all claim is fine but nothing changes, even modifying the efs/wifi files does not have any result.
I tried rebooting after changes... the max I was able to achieve was turn off wifi, change the files, reboot, check max 02:00:00:00:00, turn on wifi... mac back to original.
Is there anyone can help me? is it a problem related to the image? or to the phone?
Thanks,
M
Click to expand...
Click to collapse
If you are getting problem in Macoptimizer you can perform following steps:
Open up settings and then go to WiFi.
Now, you will see gear on the top of this screen, click it. But if you don’t see it, look for “Configure WiFi” option and click it. Some Android system have Advanced option in WiFi, MAC address can be found there also.
You can find the MAC address on the bottom of this screen. Keep a note of it.
In order to get the interface name, you will have to install Terminal Emulator for Android. Go to Google Play Store and download it or click the link to get it.
Then open it and type the following command : ip link
You screen will be filled with lot of information, useful and useless. Now, remember I told you to keep a note of your MAC address. Just look for this MAC address under “link/ether” for all the cases.
The one that matches our MAC address, is the connection name. For most of the devices it is either “wlan0” or “eth0”.
Now, that we know our MAC address and the connection name, we can go on to change the MAC address with this terminal emulator only. Before that you should have a valid MAC address in your mind or generate one from this link. Once, you have a new MAC address, just get on with the below steps:
Launch the Terminal Emulator
Just type the following command: ip link set wlan0 address XX:XX:XX:YY:YY:YY, where wlan0 is the name of the interface and XX:XX:XX:YY:YY:YY is the MAC address you want to set.
Important thing to keep in mind that the manufacturer name should be kept unchanged while changing the MAC address i.e. XX:XX:XX (first 6 digits) should be same as before, otherwise you might face a lot of authentication issue.
This is only a temporary change and when you restart your device, your previous MAC address will be retrieved back."
I am trying to make my phone child friendly with no ability to access the internet. Does anyone know how to permanently disable data by editing settings apk or by deleting a permission (the phone has been rooted).
I don't know why so controlling but who am I to say anything anyway, hope you know what you're doing to your child.
Google parental control can do this, but if you want it the hard way then:
You can mess with the APN in cellular data settings, just type random gibberish and you're done. Alternatively you can disable communication with towers by dialing *#*#4636#*#* in dialer and disabling it from there.
If you need WiFi too, then you can do this with root (Again, you can just use google parental control).
Simply remove those lines from build.prop (Backup your ROM first!!):
wifi.interface=
wifi.supplicant_scan_interval=
To permanently disable Wi-Fi you can try
either in Android's system file named build.prop to comment the line
Code:
# wifi.supplicant_scan_interval=xxx
if it exists
or run this ADB command
Code:
adb shell "settings put global WifiOn 0"