[GUIDE] Mi3 Change WiFi Mac Address on Official CM12.1 or CM13 - Mi 3 General

In official CM rom for cancro, you can change the wifi mac address, so we don't have to worry the mac address is different from the original one, as now we can change it to any value.
Step 1: You need root explorer(all cm rom should be rooted, you can enable root in Settings > Developer options)
Step 2:Go to /sys/devices/fb000000.qcom,wcnss-wlan
Step 3: Edit the file wcnss_mac_addr , change 00:00:00:00:00:00 to other value then save it.
Step 4: Enable Airplane mode for a few sec, then turn off airplane mode to apply the change.

Related

[Q] Connect to the internet with 3G usb modem?

Dears,
I would like to connect my gtab to the internet using Huawei E156G usb 3G modem.
I found related post http://forum.xda-developers.com/showthread.php?t=1016921 but it is detailed for a new user (I couldn't understand the steps like "Repack boot.img" & "Use with mobile option's setting.apk" and how to connect to the internet.
I think a detailed steps will help many users in that regards.
Any help is appreciated.
Rgrd,
Any help!!
same question
how about a verizon 3g usb ?
Help required from Android experts?
Dear all,
I think that this is a very important topic that will add more value to our GTabs but unfortunately, I couldn't understand/ follow all the steps due to my limited Android experience.
Follow is the summary of the mentioned steps:
1) Extratct the files in system.rar in the relevant directories
2) Edit /init.rc and add the additional code
3) Repack boot.img ---> How?
4) Edit system/build.prop with the mentioned code.
5) Use with mobile option's setting.apk --> what is required in this step? What shall We do with the listed code?
6) How do you make a 3G connection? Where can We add the APN settings for the provider?
I appreciate that anyone who tried this solution clarify the missing steps (3,5& 6).
Dears, GOOD NEWS - MANY THANKS TO OUR CHAMP "Russian Beast" --> http://forum.xda-developers.com/showthread.php?t=991342
After 3 weeks of work with 3 different roms using different techniques, I MADE IT to connect with my HUAWEI E156G and this simple intelligent steps from our hero
Follow my experience:
Upgrade your ROM to VEGAn-TAB GingerEdition --> http://forum.xda-developers.com/show...031250&page=17
Note: the upgrade from non-Geng roms (like TNT Lite & VEGAn 5.11) requires NVFLASH --> http://forum.xda-developers.com/showthread.php?t=861950
Follow the clean mentioned steps:
1. Switch 3G modem to modem mode by (echo -e "AT^U2DIAG=0\r" > /dev/ttyUSB0) command.
2. Place all files from the attached 3G USB.rar (pls get it from the original post --> http://forum.xda-developers.com/showthread.php?t=991342 to:
/system/bin/Chat give it full rights rwxrwxrwx
sdcard/gscript/ppp-start.sh
sdcard/gscript/ppp-stop.sh
/system/etc/ppp/peers/megafon --> give it full rights rwxrwxrwx & rename megafon with your relevant internet provider 's name
3. Review /system/etc/apns-сonf.hml , if your internet provider name is not listed, add a new section for it with the following format
<apn carrier="aa" mcc="bb" mnc="cc" apn="dd" user="" server="" password="" mmsc="null" type="default" />
where aa, bb, cc, dd are relevant to your service provider.
4. Install GScript from the market and add ppp-start.sh & ppp-stop.sh to it
5. Restart gtab.
6. Insert USB modem, connect using ppp-start & disconnect using ppp-stop.
during ppp-start connection you will receive some stderr messages, don't panic and keep an eye on the USB modem's led, at the last script lines you will see that it assigns an IP address and the modem led will turn into blue (or according to the modem type).
You are ONLINE now, have fun.
There is other posts for the same issue but this is the simplest and straight forward one.
Regards.

[TRICK] Blocked on WiFi Network (root only) (Finished)

Hey guy/gals, I've got a nifty little trick here for you. Now, the trick I'm about to explain is a rather low-level trick that most of you may know, but its for those who don't or are new. So, at the school i attend, they have wifi throughout the school. They make the password something simple like "internet", and then wait for someone to figure it out and tell everyone. Once everyone start joining the network and using it, they just go through and blacklist (ban) the MAC addresses that aren't pre-approved. This was a huge mistake on their part. So here is a method that allows you to spoof your MAC (ghosting) address and regain access to the network.
Method 1: Go to the market and download 2 apps, "BusyBox" and "MAC Spoofer (changer)". Install BusyBox and run it to give it SU permissions. Then run MAC Spoofer and give it permissions. Turn on your wifi and try to connect to the desired network. If you are blacklisted, it will just loop over and over trying to connect. Don't stop it from looping. Press the home button and then open MAC Spoofer. Now, when you run MAC Spoofer there will be a black box in the center of the screen and it should say ">CHECKING FOR ROOT PERMISSION AND WIFI FILE: OK!" then on the next line it will show your original MAC address and your current one. In the entry box between the black box and the spoof button, you can enter your desired address and press "Spoof my MAC". It will then say ">ATTEMPTING TO MODIFY MAC ADDRESS:" and on the next 2 lines it will show your original and current MAC. On the last line it should say "**SUCCESS** MAC OF INTERFACE wlan0 CHANGED TO: (Whatever you chose)". Now you can exit the app and go back to your wifi network selection. Select the network you were trying to join and it should connect.
I hope this works for you all. If you have any questions or issues, just reply to this thread. Don't forget to give me a thanks!
Note: Your MAC will reset to the original MAC when you turn off your wifi or if your reboot your phone.
Note: I am running ME7 with 4.2.2 JellyBean and stock rom.
(Deleted)

[Q] How to enable developer mode and mock locations in source

Hi, I am trying to build a custom rom that has developer mode -> Mock locations=true, Auto-rotate screen=false by default. Here is what I have tried:
Pulled the settings database from `data/data/com.android.providers.settings/databases`
Edited the database so that the mock locations flag was set to 1
Wrote a script to add to the makefile that would move the new database to `/data/data/com.android.providers.settings/databases` on build.
and
Adb push the new database file to proper location
Reboot
Neither of these options seemed to work out properly. I need an option to set some of the settings, including the hidden Developer option "enable mock locations" so that I can build an image with these settings enabled by default. If anyone can help, would be much appreciated.
Thanks!
methodeguy said:
Hi, I am trying to build a custom rom that has developer mode -> Mock locations=true, Auto-rotate screen=false by default. Here is what I have tried:
Pulled the settings database from `data/data/com.android.providers.settings/databases`
Edited the database so that the mock locations flag was set to 1
Wrote a script to add to the makefile that would move the new database to `/data/data/com.android.providers.settings/databases` on build.
and
Adb push the new database file to proper location
Reboot
Neither of these options seemed to work out properly. I need an option to set some of the settings, including the hidden Developer option "enable mock locations" so that I can build an image with these settings enabled by default. If anyone can help, would be much appreciated.
Thanks!
Click to expand...
Click to collapse
I am also looking for this. Being able to access adb on a fresh install on a device that has trouble getting into recovery would be very beneficial.
I had to flash back to factory stock this morning because the kernel I was using prevented me from accessing the bootloader and the ROM I was developing was missing a key apk. Had this had been built into the ROM, I could have been able to reboot to recovery.
Sent from my MyTouch 4G Slide

VPN wont tunnel whole device in CM12.1, any fix for this?

Hi im just new here and im totally want to fix the VPN issue in CM12.1 im hoping that somebody could help me ..
Lenovo a536 user MT6582
Seaking for answers
Gio1317 said:
Hi im just new here and im totally want to fix the VPN issue in CM12.1 im hoping that somebody could help me ..
Lenovo a536 user MT6582
Seaking for answers
Click to expand...
Click to collapse
I'm still searching for the fix but heres a temporary fix to use.
====================================================================================================
A workaround for VPN follow these steps :
1. Go to psiphon and choose Browser-Only mode don't tunnel whole device.
2. Go to its logs tab and check the port of http proxy.
3. Now open WiFi setting and long press to your WiFi network (from which u are connected) go to modify tab and from check the advanced options.
4. Chosen manual proxy option and put host name as 127.0.0.1 and port as the no. which you noted in step 2 (eg. 8080) and click save .
Enjoy you have set up a VPN connection successfully.
You can open your browser and check your IP
Note: You have to undo this after you don't need VPN by changing manual proxy to none .
- Suraj Rawat (nervehammer) : thanks man
For those who want to use Orbot vpn
This is very similar to previous vpn workaround for psiphon
Just follow these step for Orbot
1. Open Orbot and long press to start orbot.
2. When all bootstrapped done go to check browser it will ask for normal browser or install Orweb .
3. Open Orweb and volla you r connected to tor but actually its not to tunnel your traffic to vpn go to Orweb settings.
4. Now note the proxy host and proxy port generally it is localhost(same as 127.0.0.1) and 8118 respectively but it may change so better to keep updated with port numbers.
5. Now go to wifi setting and long press the wifi (from which u r connected) and check advanced options.
6. Choose manual proxy option and put the host name 127.0.0.1 and port no. (e.g. 8118 ) which u noted in step 4
Now u can check https://check.torproject.org from any browser and volla Congo this browser is configured to use tor.
Sorry for long guide but it is detail enough so that anyone can easily setup tor in cm builds.
Note: You have to undo manual proxy option to none after you don't use vpn.
- Suraj Rawat (nervehammer) : thanks man
====================================================================================================
Credits : mtkroms.com that has a fix for almost every mtk issue
http://www.mtkroms.com/2015/11/fix-bugs-in-all-cyanogenmod-12-roms-mtk.html

Solved Hard Ware Encryption issue best Solution with out Formatting internal Storage

Hi Friends,
Following Procedure helps you to fix hardware encryption issue in any Oreo or Pie rom
# Before Flashing
Step 1: Go to Settings > Security > Screen lock > change it to Swipe Or None
Step 2: again set new pin (only pin) at this time it will ask do you want to enable Secure Start up select Yes
Step 3: now go to recovery it will ask password to decryption enter your password
Then flash what ever rom you want to flash :fingers-crossed:
# After Flashing
Step 4: In set up your Phone at this time again enable Secure Start up Don't worry if Your Torch or VOLTE does not works at this time we will fix it
Step 5: once u setup your phone go to Settings > Security > Screen Lock > Change it to Swipe Or None
Step 6: Now Reboot your phone
Step 7: once it boots VOLTE ,Torch ,Camera will work Normally
Step 8: Go to Settings > Security > Screen lock >now you can set what ever lock screen you want but don'n enable Secure Start Up :good:
Hit thanks if it works :angel:
Else
Report & let me help
Step 4 we enable secure start up and step 8 we disable secure start up again??
Trovies said:
Step 4 we enable secure start up and step 8 we disable secure start up again??
Click to expand...
Click to collapse
S we have to enable on initial boot then we can disable it other wise we will get bugs like green camera , volte issue

Categories

Resources