Tethering via WiFi - Install Procedures - Updated 1/29/09 - G1 Android Development

Tether via wifi setup 1.1 (Can someone make this a sticky!?!?)
This wifi is not an Encrypted connection, please take necesassry step to protect your data (ie: https)
Speed are fast, speed tests give me 900kbps down / 200 kbps up on 3G
Requirements:
G1 with Root
JFv1.31 Image (either AD1 or RC30)
tether-1.6.tar Fixed error in 1.5
tether-1.5.tar [/URL] Has an error in dnsmasq.conf
tether-1.2.ZIP[/URL]
tether-1.1.ZIP[/URL]
Windows XP with wifi card
*******************************************
New Way:
1. Connect phone to computer via USB cable.
2. On the phone, select Mount on the USB connect Notification window.
3. Download the latest tether package and save it to the sdcard(G1 Storage).
4. DISCONNECT THE USB CABLE!!!
5. Open the Terminal Emulator application on the G1
6. Type:
su and press enter (Select Yes to the warning about superuser access)
7. type:
tar xf /sdcard/tether-1.6.tar and press enter
If there are no errors you can proceed..
8. Make sure the G1 wifi is disabled. (settings/wireless controls/Uncheck wi-fi enabled)
type:
tether start ( to start tethering)
tether stop ( to stop tethering)
9. Connect to G1 ad-hoc access point – Ensure Ad-hoc networks is enabled on your windows box .
On WidowsXP (start/settings/network connections/wireless network connection/properties/wireless networks/advanced/
(make sure Any Available Network is enabled)
Then select view wireless networks, you should see an ad-hoc network access point called g1, please note any can connect to this network and surf the internet. You should have dnsmasq assign your laptop a static IP address and then use IP tables to block unwanted access. This is not in this document! Also the G1 gets hot, no worries.
10. You must always be root to start/stop tethering. Open the terminal application, type su, then tether stop/start.
ERRORS:
************************
insmod: init_module '/system/lib/modules/wlan.ko' failed (Operation Not Permitted)
fatal error opening "/sys/android_power/aquire_partial_wake_lock"
error : SI0CSIFADOR (permission denied)
error: SI0CSIFFLAGS (permission denied)
Could not open socket to kernal: Operation not permitted (X5)
/data/local/bin/tether: cannot create /proc/sys/net/ipw4/ip_forward: permission denied
dnsmasq: cannot open or create lease file /data/local/dnsmasq.leases: Permission denied.
error: SIOCSIFFLAGS (Cannot assign requested address)
#
***********
Either you forgot to uncheck enable wifi on the G1 or you're not root, (type su(enter) then tether start(enter))..
*********************************
Old - Manual Setup - Reference
1. Download tether-1.1.ZIP file
2. Create a directory c:\tether on your workstation
4. Unzip tether-1.1.ZIP file to c:\tether directory (5 Files)
3. Use adb utility to copy files from c:\tether to phone (This is done via a windows command window Start/run/cmd/)
(I copied the adb.exe & AdbWinApi.dll into my c:\windows\system32\ directory, this allows you to start adb.exe from any folder.)
C:\>cd c:\tether
Connect your phone via the USB cable.
************************
If you see this error:
C:\tether>adb push tether /data/local/bin/tether
'adb' is not recognized as an internal or external command, operable program or batch file.
You need to use the complete path to adb.exe executeable for all commands!!
C:\tether>C:\folder-where-adb.exe-is-located\adb.exe push tether /data/local/bin/tether
***********************
C:\tether>adb shell
#mkdir /data/local/bin/ (This directory may exists, if it does ignore the error, this needs to be a directory NOT a file!)
#exit
C:\tether>adb push tether /data/local/bin/tether
C:\tether>adb push iptables /data/local/bin/iptables
C:\tether>adb push dnsmasq /data/local/bin/dnsmasq
C:\tether>adb push tiwlan.ini /data/local/tiwlan.ini
C:\tether>adb push dnsmasq.conf /data/local/dnsmasq.conf
4. Change file permissions
C:\tether>adb shell
# chmod 755 /data/local/bin/tether
# chmod 755 /data/local/bin/dnsmasq
# chmod 755 /data/local/bin/iptables
# chmod 755 /data/local/dnsmasq.conf
# chmod 755 /data/local/ tiwlan.ini
5. Make sure the G1 wifi is disabled. (settings/wireless controls/Uncheck wi-fi enabled)
6. Start and stop tether
#tether start
7. Connect to G1 ad-hoc access point – Ensure Ad-hoc networks is enabled on your windows box .
On WidowsXP (start/settings/network connections/wireless network connection/properties/wireless networks/advanced/
(make sure Any Available Network is enabled)
Then select view wireless networks, you should see an ad-hoc network access point called g1, please note any can connect to this network and surf the internet. You should have dnsmasq assign your laptop a static IP address and then use IP tables to block unwanted access. This is not in this document! Also the G1 gets hot, no worries.
#tether stop (stop tethering)
You can enable and disable the tethering after install directly from the phone without being connected to the PC. (MUST HAVE ROOT, OR JF's). Just go into Terminal Emulator..... and simply type the following....
TO START:
$ su (Click yes when it says a program is asking from root)
# tether start
TO STOP:
$ su (Click yes when it says a program is asking from root)
# tether stop
*********************
To restrict who can connect to your wifi network.
You need to get your MAC address of the wifi card, (start/run/cmd/ipconfig /all)
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 2915ABG Netw
k Connection
Physical Address. . . . . . . . . : 00-13-CE-B7-A8-0E
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.2.30
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DNS Servers . . . . . . . . . . . : 192.168.2.1
Lease Obtained. . . . . . . . . . : Thursday, January 29, 2009 11:23
Lease Expires . . . . . . . . . . : Thursday, January 29, 2009 11:25
Then on the phone, copy the dnsmasq.conf-sure to dnsmasq.conf then either use vi or echo to insert that MAC address and unique ip for each MAC address. Everyone that isn't staticly assigned will be give 192.168.2.254 which is dropped via iptables.
su
cp /data/local/dnsmasq.conf dnsmasq.conf-old
cp /data/local/dnsmasq.conf-secure dnsmasq.conf
(replace XX:XX:XX:XX:XX:XX with your MAC Address in that format)
(for each MAC address/host you have use a unique IP address starting at 192.168.2.40)
echo dhcp-host=XX:XX:XX:XX:XX:XX,192.168.2.40 >> /data/local/dnsmasq.conf
echo dhcp-host=XX:XX:XX:XX:XX:XX,192.168.2.41 >> /data/local/dnsmasq.conf
echo dhcp-host=XX:XX:XX:XX:XX:XX,192.168.2.43 >> /data/local/dnsmasq.conf
tether start
**********************
Someone write a gui app would be greatly appriecatied!
I have some ideas, but don't know java!
Also, I've made some suggestions on how to better secure the connection. Basically:
Start the wifi
Have IPTABLES drop all traffic
Have the user connect to the access point
Have the user click a allow/deny box
The loads the dnsmasq.leases file, which contains the ip/hostname
The user selects which ip/hostname they want to allow access
flush iptables
create new IPTABLE rules with the ip/hostnames allowed.

Use which ever method you prefer, please leave comments at http://forum.xda-developers.com/showthread.php?t=444004
If one of these posts need to be changed or there is a new method please PM me.

Related

[GUIDE] UK "3" USB Modem ZTE MF110/112 Working on ZT-180!

hey guys n gals, iv been reg'd a few days now n thought id make my first post a worth while one
Alot of the credit though must go to Christian Buchner for his initial guide of getting a ZTE usb modem working with vodafone over in Germany.
NOTE: BASED ON ZT-180 SLATE 0929 FIRMWARE (rooted)
To get your ZTE modem working you must be able to use adb confidently!
ok first things first, as Christian pointed out in his guide, if the Flash drive side of the modem is enabled, your slate wont recognise it, so our first job is to disable it.
*Nix Users - Im assuming you have a good knowledge of AT commands already and how to use them so just run
Code:
AT+ZCDRUN=8
Windows Users See Here hxxp://3g-modem.wetpaint.com/page/executing+AT-commands+under+Windows
and execute the above AT command
Right, so now our slate recognises our Modem, now lets get this rocking and get connected.
You will need to Pull the following files from your slate
note: some files may not exist so you will have to create them
/system/etc/ppp/peers/cdma
/system/etc/ppp/peers/cdma_h
/system/etc/ppp/peers/cdma~
/system/etc/ppp/options-3g
/system/etc/ppp/chat-3g-connect
/system/etc/ppp/chat-3g-disconnect
/system/etc/ppp/pap-secrets
/system/etc/ppp/chap-secrets
Now heres what goes in them...
/system/etc/ppp/peers/cdma
Code:
file /system/etc/ppp/options-3g
connect '/system/xbin/chat -v -f /system/etc/ppp/chat-3g-connect'
disconnect '/system/xbin/chat -v -f /system/etc/ppp/chat-3g-disconnect'
user three
/system/etc/ppp/peers/cdma_h
Code:
file /system/etc/ppp/options-3g
connect '/system/xbin/chat -v -f /system/etc/ppp/chat-3g-connect'
disconnect '/system/xbin/chat -v -f /system/etc/ppp/chat-3g-disconnect'
user three
/system/etc/ppp/peers/cdma~
Code:
file /system/etc/ppp/options-3g
connect '/system/xbin/chat -v -f /system/etc/ppp/chat-3g-connect'
disconnect '/system/xbin/chat -v -f /system/etc/ppp/chat-3g-disconnect'
user three
/system/etc/ppp/options-3g
Code:
/dev/ttyUSB3
921600
nolock
crtscts
modem
passive
novj
defaultroute
noipdefault
usepeerdns
noauth
hide-password
debug
nodetach
ipcp-accept-local
ipcp-accept-remote
/system/etc/ppp/chat-3g-connect
Code:
ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "VOICE"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
ABORT "DELAYED"
ABORT "ERROR"
REPORT CONNECT
TIMEOUT 10
"" AT
OK AT+CGDCONT=1,"IP","3internet"
OK ATDT*99#
TIMEOUT 20
CONNECT ""
/system/etc/ppp/chat-3g-disconnect
Code:
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
SAY "\nSending break to the modem\n"
"" "\K"
"" "\K"
"" "\K"
"" "\d\d+++\d\dATH"
SAY "\nPDP context detached\n"
/system/etc/ppp/pap-secrets
Code:
# client server secret IP addresses
three * three
/system/etc/ppp/chap-secrets
Code:
# client server secret IP addresses
three * three
Now Push all the files back into your slate and reboot.
Once you plug your modem in you will notice it show signal strength, however sometimes it requires you to set an APN up manually, but try a hard reset first if that fails, this is how to do it...
Settings > Wireless & Networks > Mobile Networks > Access Point Names
Name : Anything
APN : 3internet
Username : three
Password : three
Authentication Type : PAP or CHAP
and thats really all there is to it!
nitr0genics said:
hey guys n gals, iv been reg'd a few days now n thought id make my first post a worth while one
Hello !!! I received 180 ZT 1030 and have upgraded the firmware. Now I want to use ZTE 3G modem mf100 follow your instructions but still not on the internet. I live in Russia and the Beeline network using WCDMA. Looking forward to your help. Excuse my English . Thanks !!!
Click to expand...
Click to collapse
Hi nitr0genics,
I tried this with Frojo and it works perfect . Thank you for this also to all other experts.
(google translate, hope you understand )
Hi people
I read the surfstick from german provider 1und1 (ZTE MF110) to run in the ZT-180. Do any of you can experience the driver has to extract? i will use the stick in my gome flytouch2
thx
working on android
hello, does anyone know if this means that we can use the MF110 on any android device with froyo??
thanks
”You will need to Pull the following files from your slate
note: some files may not exist so you will have to create them
/system/etc/ppp/peers/cdma
/system/etc/ppp/peers/cdma_h
/system/etc/ppp/peers/cdma~
/system/etc/ppp/options-3g
/system/etc/ppp/chat-3g-connect
/system/etc/ppp/chat-3g-disconnect
/system/etc/ppp/pap-secrets
/system/etc/ppp/chap-secrets”
How can i make these files, because if iuse notepad those are no more executabiles ?

[SOLVED] Change wifi MAC Address

I have succesfully changed wifi mac address of my optimus.
We have to just insert a line "macaddr=XX:XX:XX:XX:XX:XX" in the nvram.txt
Here is how I did it:
You require:
1.)Rooted phone.
2.)anroid sdk
1.)First pull the nvram.txt file from /etc/wl to sdcard:
in cmd(windows) goto android-sdk-windows\tools and type
adb shell
2.)Copy nvram.txt from /etc/wl to sdcard
cp /etc/wl/nvram.txt /sdcard/nvram.txt
3.) Using text editor in phone add following line at the end:
macaddr=XX:XX:XX:XX:XX:XX (replace XX:XX:.... with desired mac addr.)
4.)Save file and copy it to /etc/wl from adb shell
cp /sdcard/nvram.txt /etc/wl/nvram.txt
5.)Reboot and it is done.
To restore orignal mac address just delete the macaddr line.
Note:
1.) Tested only in stock LG rome with GNM OC kernel. In other roms or kernel the location of nvram.txt may differ according to the parameter using which driver module (wireless.ko or bcm4325.ko) just find that file and use the above process. It will work.
2.) The file cannot be edited in windows as windows has different new line character than linux. It has to be edited in some linux compactible file editor like Programmers Notepad.
y wud u wanna change ur mac?
B'Coz I can access free Internet by doing this.....
Nice one
And to change hostname? Any ideas?
I changed it, and in phone it appears to be changed. But my router doesn't say the same... Has original hostname...
Yup thats worked with me thanks for sharing
Sent from my LG-P500 using XDA App
Yea bcoz android does'nt use hostname to connect with router. I'm trying to figure out the configuration file for that.....
how to find mac address
how to find the mac address in lg optimus one???
Thats why my optimus one can not take the ip from some puplic networks??
make this thread sticky
not working on Acer Liquid E ! !!
how can I change my mac !!??!!
1st step i already duno how to do T_T
know the pull things from nvram.txt file from /etc/wl to sdcard which require me to root my phone 1st then only can pull out
but after that in cmd(windows) goto android-sdk-windows\tools and type
adb shell
my computer can't detect that was a file in computer,and what is the android-sdk ?
Screw android-sdk ..LOLz..Do this install root explorer on your phone ..navigate to that file on your phone using root explorer , click on mount r/w button ,then long press and select open in text editor, then go to the end of the file and add this
macaddr=xx:xx:xx:xx:xx:xx
replace xx with a combination of hex letter i.e. 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
example DB:12:3F:4F:11:AA
Save and exit
Reboot
You are all done check phone status in settings
sarfaraz1989 said:
Screw android-sdk ..LOLz..Do this install root explorer on your phone ..navigate to that file on your phone using root explorer , click on mount r/w button ,then long press and select open in text editor, then go to the end of the file and add this
macaddr=xx:xx:xx:xx:xx:xx
replace xx with a combination of hex letter i.e. 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
example DB:12:3F:4F:11:AA
Save and exit
Reboot
You are all done check phone status in settings
Click to expand...
Click to collapse
after root my phone using z4root/gingerbreak,then download the root explorer from here is it ??
https://market.android.com/details?id=com.speedsoftware.rootexplorer&feature=search_result
if correct navigate to which file ??
sry android newbie here T_T
How about IMEI in some other file.
Wohhh atom bomb.
Sent from my LG-P500 using XDA Premium App
arrgh need solve my wifi problem ASAP
already more than 2week can't connect wifi in my college wifi T_T
Awesome, I've been looking for this everywhere. I can verify this method also works on stock rooted LG Optimus V.
whant's next
i've been change macaddr 'but nothing happen .device not connet wifi.it sitll ask password
you said you can access free internet.
i was just curious that how?
i mean free internet from the service provider or from where???
i too want to use it.
does that mean that if there is any wifi network then i will be able to use it without any pass???
Its simple to change your wifi mac address xD
Root you phone
install busybox (market.android. com/details?id=stericson.busybox) remove the space in link
download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)
in terminal emulator
type -
su
then
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx
busybox ifconfig wlan0 up
YOU'RE DONE
DONT FORGET THE THANKS BUTTON
vermilion871 said:
Root you phone
install busybox (market.android. com/details?id=stericson.busybox) remove the space in link
download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)
in terminal emulator
type -
su
then
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx
busybox ifconfig wlan0 up
YOU'RE DONE
DONT FORGET THE THANKS BUTTON
Click to expand...
Click to collapse
is there a way to revert this?
I mean get back to the original hardware mac?

How Repair USB Brick [Alternative Method]

After 3 days trying to fix my USB Brick in My Touch 3G HTC Magic, and got nothing, invented this method:
1. We climbed and mtd0.img flash_image files to an FTP server, I have mine on a server that will give them to you, do not use is:
FTP host name: geecko.site90.com
FTP user name: a4977439
FTP user password: freepass01
2. Terminal Emulator and download the install it, reminding him of the Market full suction, I just connect my phone with wifi and enter the market.com (I think it's that xD) and they look and then give up and is sent to your phone, of course if you have your gmail account open in your phone and PC.
3. Download a FTP manager for android, I use the AndFTP, we can do in the same way that we installed in the Terminal Emulator.
4. Open the terminal emulator and enter the following commands
"su" - to have administrator permissions
chmod 777 / data / - to change the permissions to the folder where you downloaded the file data
5. Then we connect to the host via FTP with AndFTP and then configure it by selecting the folder where we asked DATA "folder where you download the files."
6. connect to the server, enter into the public_html directory and select the files mtd0.img and flash_image and unloaded, and we expect the HOME key
7. walked into Terminal Emulator and type chmod 775 / data / to protect the folder and then write data / flash_image misc / data/mtd0.img and reboot.
Sometimes the data / flash_image misc / data/mtd0.img ami fails but gave me errors, just restart and ready and had my memory ready xD
I just hope it does not change the password to the HOST xD
My English no so good
i have a good idea
xD Enjoy!!!!!

[Q] backtrack permission denied

Hi,
I download backtrack-v10-image and I used the Linux Installer from linuxonandroid to launch it, but when I want to install anything, it's shows me "permission denied" in terminal emulator :crying: as well as in console of backtrack "requested operation requires superusers privilege" and when i tape Vnc password's it's show me "authentications failure" .
So I try to start the image manually using the bootbt provided by the website of backtrack. this faith it, the console shows me backtrack
[email protected] by red, against the keys of keyboard are completely messed up, whether in the physical or virtual keyboard.
Sorry if I'm not in the right section .... thank you
tf300t , ww_epad -10.6.1.15.3-20130416, rooted
ps: I can't post any link, you have to google it (To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!) as you can see that I'm noob here .
solved by my self, i was able to do it by modifying the directory of the image and using linuxonandroid launcher, but i took precaution to note the password now, like this:
[email protected]:/ $
[email protected]:/ $ cd /sdcard/BT5
[email protected]:/sdcard/BT5 $ su
[email protected]:/storage/emulated/legacy/BT5 # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/BT5/backtrack.img
Checking loop device... MISSING
Creating loop device... OK
mount: mounting /storage on /data/local/mnt/external_sd failed: Invalid argument
No user defined mount points
net.ipv4.ip_forward = 1
Config file not found, using defaults!(/root/cfg/backtrack.img.config)
Starting first boot setup.......
Creating User account (named backtrack)
Enter new UNIX password: <you have to note this password to use it in backtrack console after sudo su
Retype new UNIX password:
passwd: password updated successfully
The user `backtrack' is already a member of `tty'.
Please enter a password for VNC (must be between 6 and 8 characters long
Using password file /home/backtrack/.vnc/passwd
Password:
Password too short
groupadd: group 'sdcard-rw' already exists
Start VNC server? (y/n)
y
Start SSH server? (y/n)
y
Now enter the screen size you want in pixels (e.g. 800x480), followed by [ENTER]:
1280x752
New 'X' desktop is localhost:0
Starting applications specified in /home/backtrack/.vnc/xstartup
Log file is /home/backtrack/.vnc/localhost:0.log
If you see the message 'New 'X' Desktop is localhost:0' then you are ready to VNC into your backtrack OS..
If connection from a different machine on the same network as the android device use the address below:
eth0: error fetching interface information: Device not found
If using androidVNC, change the 'Color Format' setting to 24-bit colour, and once you've VNC'd in, change the 'input mode' to touchpad (in settings)
* Starting OpenBSD Secure Shell server sshd [ OK ]
Save settings as defaults? (y/n) (You can always change it later in the app)
y
Config saved to /root/cfg/backtrack.img.config
To shut down the Linux environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!
Click to expand...
Click to collapse
I just want to know how to clean the installation of the "chroot"
without move / rename the image in android to return to the initial state of "chroot"
(without the files are installed in the backtrack)

[HOW TO] Spoof/Change Wi-Fi MAC Address & Hostname in Yuphoria (Root)

Requirements:
1. Rooted Yuphoria phone.
2. Terminal Emulator app.
Steps:
1. Turn Off Wi-Fi and Open Terminal Emulator app.
2. Enter 'su' and grant root access.
3. To change MAC address, Enter the following:
Code:
echo [I]XX:XX:XX:XX:XX:XX[/I] > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
(Replace XX:XX:XX:XX:XX:XX with your desired MAC address like 12:34:56:78:9a:bc)
(You can even edit the file 'wcnss_mac_addr' present in /sys/devices/soc.0/a000000.qcom,wcnss-wlan/ if you don't like Terminal )
4. To change the hostname (device id shown in router), Enter the following:
Code:
setprop net.hostname [I]ZZZZZ[/I]
(Replace ZZZZZ with any desired name)
5. Now Turn ON your WiFi
That's it!!
NOTE:
The MAC Address & Hostname restores to original values after reboot (or Power Off )
Alternatively, you can create a script like this:
Code:
#!/system/bin/sh
echo 12:34:56:78:9a:bc > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
setprop net.hostname Anonymous
and execute it (give su permission before executing)
I also made a flashable zip to make the job easy. Just flash it and open Terminal and for example, enter:
Code:
su
spoof 12:34:56:78:9a:bc Anonymous
Reply if you have any doubts/issues
Nice thread ..
Sent from my YU5010 using XDA Free mobile app
How to get hostname?
like you mention in example "net.hostname" where can i find it?
kai_bond said:
How to get hostname?
like you mention in example "net.hostname" where can i find it?
Click to expand...
Click to collapse
To get your current hostname:
Code:
su
getprop net.hostname
To set your own hostname:
Code:
su
setprop net.hostname any_text
Please
My Motorola Moto G 2014 has no MAC address? Help me ? please a script forever? There is a possibility ?
rogerdlucca said:
My Motorola Moto G 2014 has no MAC address? Help me ? please a script forever? There is a possibility ?
Click to expand...
Click to collapse
First of all, this thread is for Micromax Yu Yuphoria phone only.
You should have asked in Moto G 2014 sub-forum
Anyway, how do you know that your phone doesn't have MAC address?
Without MAC address, you can't even connect to the internet..
BTW, check Settings->About Phone-> Status -> MAC Address if there is a MAC address..
If there's no MAC address, better flash modemst1.img and modem2st.img
Terminal emulator is showing non existant file after i entered the command
In my phone soc folder is located in sys/devices/system/soc
Sent from my LG-E405 using XDA Free mobile app
sai mohan said:
Terminal emulator is showing non existant file after i entered the command
In my phone soc folder is located in sys/devices/system/soc
Click to expand...
Click to collapse
This is only for Yuphoria phone.
This varies for other phones....
When I try change that one my mobile going to switch off what to do
GokulNC said:
Requirements:
1. Rooted Yuphoria phone.
2. Terminal Emulator app.
Steps:
1. Turn Off Wi-Fi and Open Terminal Emulator app.
2. Enter 'su' and grant root access.
3. To change MAC address, Enter the following:
Code:
echo [I]XX:XX:XX:XX:XX:XX[/I] > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
(Replace XX:XX:XX:XX:XX:XX with your desired MAC address like 12:34:56:78:9a:bc)
(You can even edit the file 'wcnss_mac_addr' present in /sys/devices/soc.0/a000000.qcom,wcnss-wlan/ if you don't like Terminal )
4. To change the hostname (device id shown in router), Enter the following:
Code:
setprop net.hostname [I]ZZZZZ[/I]
(Replace ZZZZZ with any desired name)
5. Now Turn ON your WiFi
That's it!!
NOTE:
The MAC Address & Hostname restores to original values after reboot (or Power Off )
Alternatively, you can create a script like this:
Code:
#!/system/bin/sh
echo 12:34:56:78:9a:bc > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
setprop net.hostname Anonymous
and execute it (give su permission before executing)
I also made a flashable zip to make the job easy. Just flash it and open Terminal and for example, enter:
Code:
su
spoof 12:34:56:78:9a:bc Anonymous
Reply if you have any doubts/issues
Click to expand...
Click to collapse
Name-Himanshu
Hi, I have redmi 4 ... and redmi 4 wifi path same as yuphoria phone like - /sys/devices/soc/a000000.qcom,wcnss-wlan/wcnss_mac_addr
but when i change the mac address suddenly my phone restard.. please solve my problem..

Categories

Resources