Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

WIFI password. password is always needed to be input on reboot of tablet, everytime #1040

Closed
ernmander opened this issue Jan 25, 2019 · 12 comments

Comments

@ernmander
Copy link

Description of the feature

Illustrations

  • Device:
  • Channel:
  • Build:

Steps to reproduce

Expected behavior

Actual behavior

Logfiles and additional information

@ernmander ernmander changed the title WIFI password WIFI password. password is always needed to be input on reboot of tablet, everytime Jan 25, 2019
@ernmander
Copy link
Author

BQ M10 HD RC build

@simoxxx
Copy link

simoxxx commented Feb 11, 2019

this is my last week experience:
-i bought two of these tablets.
-they came with oreo preinstalled and i "fastly" flashed ubuntu-touch.
-this bug appears, i can not live with it!
-going back to android i understand this is a bug that affects many mediatek devices.. you can find information about it duckduckgoing "NVRAM ERROR 0X010"
-i tried alltheways (twrp,supersu) , nearly bricking, since i succeed in rooting it to modify some system files as they say on some tutorial.
-the error was gone but as soon as i reflashed ubuntu it was there again.
-this bug persist after flashing new things...
-after i said: why shall i root my phone when i can be root in ubuntu's terminal?
-i made the system rw and with root i moved those files to nvram and changed their permissions.
-two easy steps and the MAC address is permanent again.

@Flohack74
Copy link
Member

Duplicate of a lot of other bugs...

@1896er
Copy link

1896er commented Oct 8, 2019

Is this issue really solved? Where can I get more instructions to solve?

@simoxxx
Copy link

simoxxx commented Oct 9, 2019

Flashing ubports on your M10 HD (NON UBUNTU TOUCH VERSION) you probably corrupted 2 files where the wifi MAC address was written. Following my instructions above, you can find some informations on XDA.

@ezze
Copy link

ezze commented Nov 16, 2019

@1896er, I was also searching for exact steps to fix it on my brand new Aquaris BQ M10 HD just flashed from Android 8.1.0 to Ubuntu Touch, and finally got it! Thanks to guys who posted a solution in this UBports thread. It's something @simoxxx told about but these are steps that worked for me.

  1. Download an archive with WIFI and WIFI_CUSTOM files to your tablet. Please note that zip archive rather than rar can be extracted on UT. So I had to repack it on my PC first:

  2. Open Terminal and switch to root user:

    $ sudo -i
  3. Go to Downloads folder:

    $ cd /home/phablet/Downloads
  4. Extract downloaded archive there:

    $ unzip nvram-by-skyneel.com.zip

    01

  5. Go to /data/nvram/APCFG/APRDEB directory:

    $ cd /data/nvram/APCFG/APRDEB
  6. You will probably see WIFI and WIFI_CUSTOM files there. Backup them:

    $ mv WIFI WIFI.backup
    $ mv WIFI_CUSTOM WIFI_CUSTOM.backup
  7. Now copy these files extracted from the archive:

    $ cp /home/phablet/Downloads/WIFI* ./
  8. Change files' permissions:

    $ chmod 660 WIFI*

    02

  9. Now close everything and reboot the system. After reboot go to WI-FI settings, remove all previously used networks <your wi-fi name>, <your wi-fi name 1>, <your wi-fi name 2>, etc... Finally, connect to your WI-FI network again entering a password (hopefully last time).

  10. Go to "System Settings" > "About" and check your device's MAC address. Reboot the tablet. Now it has to connect to your WI-FI automatically on startup and MAC address has to be left unchanged.

    03

Sources:

https://www.skyneel.com/how-to-fix-nvram-error-in-all-mediatek-devices
https://forum.xda-developers.com/showthread.php?t=2730486

@Flohack74
Copy link
Member

So to be clear here, does that mean that now all devices will have the same MAC address?

@simoxxx
Copy link

simoxxx commented Nov 17, 2019

Yes. I have two of these devices. i managed to find a file with a different mac for the second. But i was not able to modify the file and use the mac i like.

@Flohack74
Copy link
Member

So then thats not considered a real fix. It will make WiFi again unusable for 2 people in the same WLAN.

@ezze
Copy link

ezze commented Nov 17, 2019

@Flohack74, I agree with you but it was the only working fix I found so far.

As I mentioned above, I backed up the original WIFI file, and decided to make a little investigation. I opened the new (downloaded from Internet) WIFI file with Bless HEX Editor and compared it with the old one.

Screenshot_20191117_175755

As you can see (comparing with my previous "About" screenshot), MAC address is stored in six characters starting from 4th position (zero-based). It's D0 B3 3F 7D 95 B0 in our case. Looking at original WIFI.backup we get zeros only there. That's why MAC address was new on each reboot.

I guess that if you knew the original MAC address you can restore it easily using your favorite HEX editor. You also can change it to something different for a few devices in one network.

So you, guys, who want to have an original MAC address of device, please, get to know it from Android before flashing UT firmware.

@devonman01
Copy link

https://www.youtube.com/watch?v=n49kukPf8HI

This is a well made explanation of a problem with 16:04

is this in any way related to what we are repeatedly fixing,
or is it a way of getting it to fix itself .
please delete this if i am going off the rails here

@Flohack74
Copy link
Member

No thats only for desktops that are being hibernated or on standby, and the resume doesn´t work. The problem you are facing here is that the file storing the MAC was lost or the nvram deleted. We know cases that caused in wrong usage of the MTK flash tool to reflash Ubuntu Touch version over from Android version. In such cases you need to be super careful with which options you select on the flash tool.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants