[Q] How to change Txpower in JellyBean. - Android Q&A, Help & Troubleshooting

Hi, huys,
I want to increase the txpower of my phone. Now it is set to 19 and I think that, this is the reason for the poor Wi-Fi signal that I get.
I am with Android 4.2
On the older versions, there are two options:
1. Change the txpower via terminal with "iwconfig" command. Or change it with a program (discussed before here). The problem is that when I've tried to add iwconfig or iwmulticall it simply does not want to do the trick.
2. Edit a file in /system/etc/wireless. The problem is that in this version there is no such folder. Instead of it, there is a folder, called "wifi" and there is no such file.
So, where is the file containing the tx power information in this version of Android? :angel:

Related

Tethering the Streak to another phone...

Has anyone, (thinking others who've been shutdown by AT&T), tried tethering their Streak to a phone using PdaNet, or something similar?
A friend tried with his Streak and BB (using PdaNet), but didn't have much success.
Thanks,
AG
gersztoff said:
Has anyone, (thinking others who've been shutdown by AT&T), tried tethering their Streak to a phone using PdaNet, or something similar?
A friend tried with his Streak and BB (using PdaNet), but didn't have much success.
Thanks,
AG
Click to expand...
Click to collapse
i use barnacle to connect with ipad.root necessary.
i have a US streak and im having issues getting it to tether to my HTC Aria (using wireless tether). Ive tried the original rom, the O2 1.6 and 2.1 rom. But still no luck, my laptop, and 2 friends ipods will connect through the aria, but the streak doesnt even see it.. So not sure whats going on!
I have a Sprint EVO 4G that can serve as a hot spot but haven't tried it with my Streak yet. But I plan to. I bought the Streak without activating the AT&T part. Don't need two cell phones.
Thanks all.. I know the Archos 5 (which I believe also runs 1.6) advertises the cell phone tethering capability. Anyone know what software it uses? I don't know much about that specific sofwtare, but will start researching...
Yeah Barnacle works.
gersztoff said:
Thanks all.. I know the Archos 5 (which I believe also runs 1.6) advertises the cell phone tethering capability. Anyone know what software it uses? I don't know much about that specific sofwtare, but will start researching...
Click to expand...
Click to collapse
the archos 5 will not tether if u are using adhoc. found out the hard way... (long time ago before the streak came out i thought i could use that and tether with my iphone and it didint work.. apparantally it doensnt support adhoc wifi. but bluetooth tethering worked fine on the archos 5
Maybe someone can get this to work?
Tried to connect to to my WM Omnia via WMWiFiRouter- No Dice.
tried using wpa_supplicant file attched below- i can see and connect to ad hoc network(s), but can not establish IP --> copied to /system/bin
the apk and files below look more promising but perhaps need editing by someone who actually knows what they are doing. the app installs and runs but there is a location mismatch.
then ran across this info here: http://www.slatedroid.com/pandigital-novel-android-tablet-discussion/4505-i-have-infrastructure-adhoc-working-same-time-do-you-want-look-here.html
"Okay, I'm not taking 100% credit for this because all I did was modify the work that this user did:
'Originally Posted by YasinSiddiqui
NOTE: I'm using Rogerbraun Custom ROM 5.1 on Rockchip APAD, but I don't see any reason why this shouldn't work on the PDN too.
Hi Guys,
Finally figured this out.
Since the wpa_supplicant.conf file is read-only, an Android app can't modify the file. Hence, we were having to go back to connecting the APAD to the PC and use DroidExplorer to overwrite the wpa_supplicant file everytime we wanted to enable Adhoc Wifi.
I realized that when you upload a file to the APAD using DroidExplorer, it gets write permissions
And once you have the file with write permissions, an app CAN modify the file.
So, I've created a small app for easy switching between Normal and Ad-hoc wifi modes.
Here are the steps:
1. Step removed because the files were replaced (see below!)
2. Use DroidEXplorer to copy the 3 files: wpa_supplicant.conf, wpa_supplicant.conf.adhoc and wpa_supplicant.conf.normal to /data/misc/wifi folder
3. Install AdhocAble.apk using any File Manager or even DroidExplorer
Now, start up adhoc wifi tethering on your phone (Barnacle Wifi Legacy on Android, JoikuSpot on Symbian, WMWifirouter on Windows Mobile, MyWi on IPhone etc.) and set the adhoc SSID to: adhocable with NO password.
Remember that you have to Turn wifi off and on everytime you switch modes.
For experts: How the app buttons work:
1. Switch to Ad-hoc Wifi Mode: Overwrite wpa_supplicant.conf with wpa_supplicant.conf.adhoc
So if you want to change the adhoc SSID or give it a password, edit the wpa_supplicant.conf.adhoc before copying it via Droidexplorer
2. Switch to Normal Wifi Mode: Overwrite wpa_supplicant.conf with wpa_supplicant.conf.normal
3. Backup Normal Settings: Overwrite wpa_supplicant.conf.normal with wpa_supplicant.conf
This allows you to avoid having to type the normal wifi passwords every time. But, remember not to use this button when you are in ad-hoc mode, otherwise you'll lose all your saved wifi passwords.
4. Do let us know: opens up an email compose window so that you can tell me whether you like the app or not. Do write your name, country and details of which devices and ROMs you have.
My modifications to these instructions are as follows:
Instead of the supplicant files supplied by the user above use mine
Also feel free to open "wpa_supplicant.conf.adhoc" and change the SSID to whatever you want, i.e. I called mine "AndroidTether"
Also I didn't bother with any security because I'm just using the access control feature on my tethering program, I'm not sure if they all have this feature but basically, my phone tells me when someone is trying to connect and asks if I want to allow the connection before the device is assigned an IP.
1. download: "wpa_supplicant_files_WORKING.zip and unzip
1.1 Open "wpa_supplicant.conf.adhoc" and edit SSID to whatever you want
2. place "wpa_supplicant.conf" , wpa_supplicant.conf.adhoc & wpa_supplicant.conf.normal into the sdk's "tool" folder (where adb.exe is)
3. download "AdhocAble_apk.zip" and unzip
4. Place "AdhocAble.apk" into the sdk's "tool" folder (where adb.exe is)
5. Open the command prompt and get to the folder where your adb.exe iscd c:/where_your_sdk_is/tools
6. enter: " adb push wpa_supplicant.conf /data/misc/wifi "
7. enter: " adb push wpa_supplicant.conf.adhoc /data/misc/wifi "
8. enter: enter: " adb push wpa_supplicant.conf.normal /data/misc/wifi "
9. check to see the files are there by entering " adb shell ls /data/misc/wifi "
10. install the apk, you can use my batch file to do this if you'd like here
11. unzip the file manager batch script and place it in the sdk's "tools" folder (where adb.exe is)
12. open the batch file (it should open a new cmd window)
13. select 2
14. select 1 (install an app)
15. it'll ask for the name of the apk. Enter " AdhocAble.apk " exactly, its case sensitive.
16. reboot the PDN
17. Start your cell phone tether and set the SSID to whatever you set in the .conf.adhoc file at the begining
18. Open up the AdhocAble app and select "backup your normal settings", this should save all of the remembered infrastructure network's SSIDs and passphrases
18.1 select Enable Adhoc, it will prompt you to make sure to turn your wifi connection off and back on.
19. Do so.
20. You should see your cell phone's SSID in the connection list (remember the SSID is hardcoded into the .conf.adhoc file so you have to set it to the same thing in the tether program or vice-versa.
21. If you don't see the tether connection enter it manually
To get back to infrastructure - simply open the app and select enable normal mode and turn the wifi off then back on again - after a short bit you should see the networks as usual. It might take a bit longer to obtain an IP, but it should work...if not reboot the PDN and try it again.
Another success - Flytouch2 / Eclair
What an adventure... I tried lots of different approaches to getting my 10" Flytouch2 running Eclair to my Moto Cliq the instructions in this thread formed a good basis for success. I had to make a few changes which I will describe.
First, I am using a rooted Moto Cliq (1.5 I think) running Barnacle to serve up Ad Hoc Wi-Fi. It worked great with my PC and iPad but I really wanted my Flytouch2 to have network access through the Cliq.
So far I have not yet been able to get the Flytouch2 to connect to my PC using ADB; this is a problem for another day. As such I was side loading until I realized that I could place APK's in Dropbox (great free app) and net-load?? them. I also had to get creative with Root Explorer and other file managers / editors to make the required changes
To accomplish this I did the following on my Flytouch2 (less the stuff that didn't work including a couple of bricking episodes)
- Rooted (permanent) painlessly using Z4Root
- Installed Root Explorer (essential for copying and renaming R/O system files)
- Installed TED to edit files
- Install ASTRO File Manager which is helpful for non root file manipulation activities
- Used Root Explorer to mark the /data/misc/wifi directory as R/W so files could be added/modified (the default is RO)
- Installed AdhocAble.apk which is nice but it turns out not really needed in my case
- Disabled Wi-Fi until done
- Installed the wpa_supplicant.conf.adhoc (after editing - attached and below)
- Renamed old wpa_supplicant.conf file as wpa_supplicant.conf.normal)
- Replaced wpa_supplicant.conf using wpa_supplicant.conf.adhoc (basically leaving backups of each in the directory)
After doing this and enabling Wi-Fi I was able to see and connect to my Cliq running Barnacle. I am also able to connect to my standard Access Point as well without any configuration change. The only issue is that I am not running any security but I think this is not a difficult update to the .conf file. I may add a second network SSID entry with a PSK and use "Wireless Tether" on my Cliq to test. For now I am just happy to connect and Barnacle allows me to screen and block all connection requests. The primary deviation from the great instructions earlier in this thread that got me up and running was the content of the wpa_supplicant.conf file. I used part of my original file and part of the file .adhoc file from earlier in this thread.
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system
update_config=1
eapol_version=1
ap_scan=2
network={
ssid="JJJ"
scan_ssid=1
key_mgmt=NONE
mode=1
priority=1
}​
Obviously my SSID is set to JJJ (I like J's). I got my inspiration from a file I found buried in my Android file system (attached as ...notes.txt). It is not very interesting reading but it provides lots of clues and it explains the meanings of all the parameters.
So, Ad Hoc connection is possible possible on A Flytouch2 under Eclair.
Now, my rant... it is unconscionable that this is not supported natively in Android. I would speculate that this was a conscious decision by Google resulting from pressure from the big carriers. What I don't understand is how this capability is available in the iPad!? Apple would certainly bow to external pressure (witness the iPhone) from carrier relationships. They also come with $40/mo built in service... so go figure. Now I am delighted to use both my Android Tablet and my iPad with Ad Hoc WiFi served up from my Cliq on T-Mobile!
I hope my additional notes help someone else.
Im gonna have to look at this tomorrow and see if i can finally connect to my omnia 2 running wmwifirouter
Im using an AT&T Streak now on dj steves froyo 1.5.1, I hotspot tether just fine to other devices.
Sent from my Dell Streak using Tapatalk
urphonesux said:
Im gonna have to look at this tomorrow and see if i can finally connect to my omnia 2 running wmwifirouter
Click to expand...
Click to collapse
Interested if it worked? please let me know what settings were needed on the Omnia/WmWiFirouter
Shadowphox said:
Im using an AT&T Streak now on dj steves froyo 1.5.1, I hotspot tether just fine to other devices.
Sent from my Dell Streak using Tapatalk
Click to expand...
Click to collapse
as a client? or you can create a network using your 3g->WiFi hotspot

[4.1.2 XT912] Need help with changing MAC Address

I'd like to change MAC addresses for this purpose and this purpose only: gaming.
[Android] StreetPass Riilay: The HomePass method on your phone[/url] (The forums are down for maintenance and I still have the 10 post limit)
According to that thread, Android phones have their Wi-Fi configurations in these directories.
Code:
/system/etc/wifi/nvram.txt
/data/misc/wifi/config
/data/.nvmac.info
/factory/wifi/.mac.info
/data/etc/wlan_macaddr
/pds/wifi/wlan_mac.bin
However, none of these paths contain those MAC configuration files.
These three paths exist on my phone: /system/etc/wifi/ and /data/misc/wifi/ and /pds/wifi/ but do not have any MAC address configurations.
Is there another directory where the MAC configurations are located? Is it even possible to change the MAC address on the Razr?
I've tried apps from the play store, and those don't work. I'm not using any ROMs, but I installed BusyBox files.
So basically my questions are:
1) Where are the MAC configurations stored?
2) Do certain ROMs have different Wi-Fi configurations in different paths in the system's files?
3) I am not doing this so I can connect to networks, I am doing this so that other devices can connect to my phone's Wi-Fi network. Most MAC address apps don't do that
Well thanks for the help anyway. I just copied the system files onto my desktop then looked into every nook and cranny. The answer was in my face all this time.
For anyone else who needs this in the future:
data/misc/wifi/firmware/wl12xx-nvs.bin
pds/wifi/nvs_map.bin
That's where the MAC configurations are stored. The values are stored little-endian, so just read along the first line and you'll know what I'm talking about. Change the values to your desired MAC address, then presto, your MAC address is changed. Do this for both .bin files.
This is only temporary, so you should make a copy of your desired MAC available in your file manager so you can just paste them into the directories with ease.
lazy9090 said:
Well thanks for the help anyway. I just copied the system files onto my desktop then looked into every nook and cranny. The answer was in my face all this time.
For anyone else who needs this in the future:
data/misc/wifi/firmware/wl12xx-nvs.bin
pds/wifi/nvs_map.bin
That's where the MAC configurations are stored. The values are stored little-endian, so just read along the first line and you'll know what I'm talking about. Change the values to your desired MAC address, then presto, your MAC address is changed. Do this for both .bin files.
This is only temporary, so you should make a copy of your desired MAC available in your file manager so you can just paste them into the directories with ease.
Click to expand...
Click to collapse
I can't make any sense of what's in those files...
Wat do?

[Q] ADB files will push to phone but will not open.

Hey Guys,
I am currently trying to modify Instagram.apk using adb transfer to my Android Galaxy S4 i505. The program is Apk_manager and I am on mac os x 10.8.5
My problem is that, after i upload the Instagram.apk, I receive the error
"Incompatible Device. Unfortanatley this device doesnt seem to meet minimum camera requirements. For more infomation please visit http: (space) //bit.ly/igdevices"
I have tried multiple Instagram.apk files of the latest version (5.05) and they say the same.
I have found that if I compile as non-system app and sign with batch file the app will run and work perfectly, however if I want to modify the app I am certain it needs to be compiled as system app.
I then say "yes" to transfer additional files and hit remove resources.arsc and hit enter. Then I press 9 to abd push and file into:
system/app/Instagram.apk
It installs but every time comes up with the error message mentioned above:
(Incompatible Device. Unfortanatley this device doesnt seem to meet minimum camera requirements. For more infomation please visit http: (space)//bit.ly/igdevices[/url])
I know that my device is supported by the app version.
Please help!!!!
Sorry bit of a noob.

Any way to change MAC and connect to Password Router?

Hi!
I tried several guides on the internet to change my MAC address, at first, using one of the "MAC spoofer" Apps, but they all just change it "softly" so you can't connect to Password protected Routers (same happens if you use the busybox/terminal method), but my router is password protected and i need that protection. Next i've tried this guide:
"After your rooted head into terminal emulation type su and go into /data/misc/wifi
Look for a file called nvram.txt
Copy it to your sdcard and then to your cpu desktop open it with notepad and at the bottom of nvram.txt is the mac address
This i was able to verify and test on android Citrus Ciena
Edit that mac address and save it as nvram1.txt onto sdcard
Now go back to data wifi misc and copy nvram.txt to nvram.bak
Head into gui and then settings then wifi then turn on the wifi but don't connect to any wifi
turn off the wifi,switch back to terminal
Copy the nvram1.txt to data misc wifi
remove the original (make sure you got it backed up)
Rename nvram1.txt to nvram.txt
head back into gui and then settings then wifi
Now for me it immediately stated unable to turn on wifi
Ignore it and try to turn it on anyways
When it turns on your newly edited mac address will take effect
Connect to your AP
NOW B4 REBOOTING YOU MUST CHANGE NVRAM BACK TO THE ORIGINAL!"
but I haven't found the nvram.txt, so i searched and searched and found out the "s3 version" of it, is "/etc/wifi/nvram_net.txt" but in this file, my s3 shows me a completely different MAC, as my handy actually has. I tried the method with this file anyway, but it didn't work, i still had my old mac, but the MAC written in the file was not reset, so it seems like the system doesn't even care about the MAC-line in that file. So next I found the ".mac.info" file in "/efc/wifi/" and in this file, there is just my MAC written, which really is my actual MAC. So i tried the Method i've pasted above with that file, and it didn't work, the system did just overwrite that file and as i checked after turning my WLAN back on, there was again my old MAC in the file. Then i tried changing it and making it read-only through Root Explorer, but it didn't work either. This time the system afterwards still had the old MAC, but the file didn't change, so in .mac.info there was still my new MAC written, but the system still had the old one. After some time i checken the file once again, and then suddenly the old MAC was written in the file, and the system did automaticly gave writing-permission back. Now i'm just desperate, so if anyone can tell my any method to change the MAC, which works on galaxy s3, please tell me.
Try Pry-Fi from Chainfire.
https://play.google.com/store/apps/details?id=eu.chainfire.pryfi
____________________________________________
P3110 / I9300 / I9100 / NEXUS 5 / iPAD2

Wifi Codes - Change Country Codes - Enable Wireless Channels

Hi all, I copy - pasted the title from an older thread :
https://forum.xda-developers.com/showthread.php?t=1982149
because I have exactly the same problem, but all the solutions I have found so far look outdated and don't work for Android Nougat (Samsung Galaxy S7 SM-G930F rooted with Odin as explained here). I need to access channel 149 (the wifi camera of my quadcopter)
So this is what I have tried :
1. WifiCodes.apk, described here. Gets root permits but when run, freezes and does nothing
2. Edit /data/data/com.android.providers.settings/databases/settings.db to change my country code, as explained here. The directory doesn't exists, and cannot find the settings.db file anyplace
3. Same but on /data/data/com.android.providers.telephony/databases/carriers; not sure where i saw this, but anyway doesn't exist neither
4. RegionChanger app. Gets root permit but does nothing
Of course Nougat has not advanced Wifi configuration to tinker with country codes nor 2.4 vs. 5.0 GHz networks.
Any other suggestion?
Thanks a lot!
i have nougat but on Galaxy note 5
i have tried those methods and i didn't found setting.db but i found that there is another files (like they changed setting db file with another way) the file called settings_global.xml and settings_secure.xml u can check this too u can find them in
data/system/users/0
u will find something like
(setting id="97" name="wifi_country_code" value="us" package="android" />)
<setting id="100" name="wifi_sns_visited_country_iso" value="us" package="android" />
the point is i changed them it change back to the default setting it was b4
donno how to force it to not get change by it self
Can change code but still KO
Hi, thanks a lot. I have changed the country code but still cannot see the camera's network. After googling a bit more, looks like the camera is not compatible with Android!!! (whatever this means). That is, doesn't show up in any Android device, but does on iPhones. Mysteries of Chinese engineering... So I gave up and acquire a different camera.
Btw, I don't have the problem you mention of reverting configuration.
Thanks again!

Categories

Resources