Ticket #85 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

WiFi Settings overwritten on boot

Reported by: alsutton Owned by: alsutton
Priority: minor Milestone: Android 2.2 alpha2
Component: Android 2.2 Version: Android 2.2 - alpha1
Keywords: Cc:

Description

Currently the wifi settings in the froyo install are overwritten by those in the ubi hidden partition.

This should be resolved so wifi settings are correctly stored.

Attachments

Change History

follow-up: ↓ 2   Changed 3 years ago by Gaap

Just comment in init.rc:
copy /mnt/ubi/misc/wifi/wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf

in reply to: ↑ 1   Changed 3 years ago by anonymous

Replying to Gaap:

Just comment in init.rc:
copy /mnt/ubi/misc/wifi/wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf

for first boot i think that you need an empty file at
/data/misc/wifi/wpa_supplicant.conf

  Changed 3 years ago by dm8tbr

I think we should try to modify the code so that it doesn't overwrite the file if it already exists. As I'd like to keep the feature of copying existing user config over. It's very convenient and makes for an seamless experience. (Advanced users might even want to symlink both files so that changes are automaticaly propagating in both directions)
with do_exec not working and 'if' not supporting all options this might not be that straight forward though.

  Changed 3 years ago by furies

Maybe a command like -n for "cp" to prevent override.

  Changed 3 years ago by anonymous

The init.rc language doesn't have a "copy if does not exist".

An empty wpa_supplicant.conf does not appear to allow the WiFi? code to work resulting in an error when starting WiFi? from the Android settings.

  Changed 3 years ago by furies

If it's just a problem with wpa_supplicant.conf, there's in fact no problem because we can recreate our new one.

  Changed 3 years ago by alsutton

  • status changed from new to closed
  • resolution set to fixed

Add/Change #85 (WiFi Settings overwritten on boot)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.