| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| | |
Change-Id: I89664d8415ebae18d5e900bd48c7939e1152fe4e
|
| | |
| |
| |
| |
| |
| |
| | |
the Android releases until SDK28 are using the old property and should be maintained
as they were.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
|
| | |\
| | |
| | | |
Move WiFi MAC path prop to vendor namespace
|
| | |/
| |
| |
| |
| |
| | |
* Ever since PRODUCT_COMPATIBLE_PROPERTY was introduced,
vendor binaries are supposed to be using ro.vendor
namespace props.
|
| | |\
| | |
| | | |
[master] macaddrsetup: Replace cutils/log.h with log/log.h
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use log.h from VNDK.
In file included from macaddrsetup.c:12:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning:
"Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
Signed-off-by: Pavel Dubrova <pashadubrova@gmail.com>
|
| |/
|
|
|
|
|
|
| |
We want to use it on sony msm8974 as well, but enabling the sodp flag
there will cause other build errors when having newer sony devices
synced.
Change-Id: Ice41dce7213f7d0ba6e6bd126e1170d03f708151
|
| |
|
|
|
| |
* These includes aren't necessary,
macaddrsetup compiles without them just fine.
|
| |\
| |
| | |
Ensure that /data/vendor/wifi directory exist
|
| |/
|
|
| |
Signed-off-by: Matti Kosola <matti.kosola@jolla.com>
|
| |\
| |
| | |
macaddrsetup: grant NET_ADMIN and NET_RAW
|
| |/
|
|
|
|
|
| |
These capablities are required to be able to set the mac address in case brcmfmac is used.
With these capablities, the service is actually able to open the socket and write to it.
Change-Id: I916a30afddb55081862d0482081a8736d1a0d13c
|
| |\
| |
| | |
macaddrsetup: don't spam errors on warnings
|
| |/
|
|
|
|
|
|
|
|
|
| |
it happens after brcmfmac #ifdefing
/macaddrsetup_intermediates/macaddrsetup.o hardware/sony/macaddrsetup/macaddrsetup.c"
hardware/sony/macaddrsetup/macaddrsetup.c:22:27: error: unused parameter 'argv' [-Werror,-Wunused-parameter]
int main(int argc, char **argv)
Change-Id: Ia8bb8700269564254f319988d285d4aeba370ce9
Signed-off-by: Humberto Borba <humberos@omnirom.org>
|
| |\
| |
| | |
Add support for setting MAC address when using brcmfmac
|
| | |
| |
| |
| |
| |
| |
| | |
brcmfmac does not use sysfs to acquite MAC addresses, but the normal kernel APIs.
Add code to run the required IOCTL to change the MAC address of the wlan0 interface.
Change-Id: I4e5f6d9daa377e29b23b823dbeec9a309293251b
|
| |/
|
|
|
|
| |
Adding it to the main class still gives it enough time to do its work properly, so do that instead of depending on vold state.
Change-Id: Ia3018dbf9df4915796e37c305ddaf488bf06763c
|
| |
|
|
|
|
| |
...when there are alternatives. (It's faster and safer.)
Signed-off-by: Zoran Jovanovic <zoran.jovanovic@sony.com>
|
| |
|
|
|
|
| |
This change is necessary for selinux permisisons
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
|
| |\
| |
| | |
macddrsetup: fix coding style issues
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* Facilitates better code readability.
TESTS :- Compile the binary after the patch.
Signed-off-by: dev-harsh1998 <harshitjain6751@gmail.com>
|
| | |
| |
| |
| |
| |
| | |
* This was being detected as a warning by checkpatch.pl.
Signed-off-by: dev-harsh1998 <harshitjain6751@gmail.com>
|
| |/
|
|
|
|
| |
* These spacing errors were found using checkpatch.pl
Signed-off-by: dev-harsh1998 <harshitjain6751@gmail.com>
|
| |\
| |
| | |
Clean up includes
|
| |/
|
|
|
|
|
|
|
| |
* Now project compiles with BOARD_VNDK_VERSION=current and without it.
* Test:
m -j64 macaddrsetup
BOARD_VNDK_VERSION=current m -j64 macaddrsetup
Change-Id: If289cb6b6301166b6ba05d2ea472d31fa85f4fdd
|
| |\
| |
| | |
Fix potential null pointer dereference when dlopen or dlsym fails
|
| |/ |
|
| |\
| |
| | |
Add support for mirrored mac addresses
|
| |/
|
|
|
| |
* Some devices got shipped with mirrored
BT and WiFi addresses in TA.
|
| |\
| |
| | |
macaddrsetup: allow macaddr write sys path dinamically
|
| | |
| |
| |
| |
| |
| | |
using ro.wifi.addr_path we can define it dinamically bettwen platforms since this service is used by all sony devices
Signed-off-by: David Viteri <davidteri91@gmail.com>
|
| |\ \
| |/
|/| |
Run macaddrsetup in the wifi group
|
| |/
|
|
|
|
| |
In order to write the WLAN MAC address to /data/misc/wifi/wlan_mac.bin,
macaddrsetup needs to be in the wifi group. Without this file the wifi
interface won't come up with the correct MAC address.
|
| |
|
|
|
|
|
| |
we move the macaddrsetup service from different init files
to a separate macaddrsetup.rc
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
|
| |
|
|
|
|
|
|
| |
the QCA_CLD3_WIFI driver requires different mac address format and
since the driver should not be modified we should just provide
the needed format
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
|
| |\
| |
| | |
Fixes for creating MAC address files on Oreo
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The bluetooth service runs as bluetooth:bluetooth but the files created
by macaddrsetup are 600 system:system by default, so the bluetooth MAC
can't be read from /data/misc/bluetooth/bluetooth_bdaddr. This changes
the file's permissions to 640; a corresponding rc file change will put
the file in the bluetooth group.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The macaddrsetup service writes the WLAN MAC address to a file in /data
so it can be read by the kernel driver later in boot. Unfortunately the
file output by the service doesn't match the format the kernel is
expecting, so the driver silently goes on to make up a MAC for the
interface. This corrects the format of the file to match the kernel.
|
| |/
|
|
|
|
|
| |
from now on there is no need to manually add a new platform to each
of the project dependencyes
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The initial implementation was using build time linking and
was depending of the proprietary libta.so libray.
This change implements dynamic loading and the code can be
built without having the proprietary libta.so library at build time
Please note that the libta.so blob MUST be prezent on the device
Test 1: build will not fail without proprietary libraries
Test 2: MAC address is imported on device using the new macaddress
Signed-off-by: Alin Jerpelea <alin.jerpelea@sonymobile.com>
|
| |\
| |
| | |
macaddrsetup: move to vendor
|
| |/
|
|
|
|
|
|
|
|
| |
system for aosp stuff
vendor for OSS stuff
odm for prebuilt libs provided by OEM
make sure it will be used since api level 25 n-mr1
Signed-off-by: David Viteri <davidteri91@gmail.com>
|
| |\
| |
| | |
macaddr: add yoshino to build barrier
|
| |/
|
|
| |
Signed-off-by: David Viteri <davidteri91@gmail.com>
|
| |\
| |
| | |
sony: macaddrsetup: Restrict the project to Sony AOSP devices only
|
| |/
|
|
|
|
|
| |
* Avoid including macaddrsetup into a different device
built inside the same build tree as Sony AOSP
Change-Id: Id15ee12bfcaf49425e90feaf06c128bbbcb8c822
|
| |\
| |
| | |
macaddr: remove dangerous sepolicy permissions
|
| |/
|
|
|
|
|
|
| |
Write the bluetooth macaddr to a place that is natively readable
by bluetooth services, instead of creating new locations which
requires excessive permissions.
Signed-off-by: Adam Farden <adam@farden.cz>
|
| |\
| |
| | |
Bring in some improvements done previously
|
| |/
|
|
|
|
|
|
|
|
| |
* Some changes were done to AOSP macaddrsetup when it was initially
brought in for rhine, see http://review.cyanogenmod.org/117270
* Bring them in again, as they've been done after toying around
with MAC address handling quite a bit, and settling on this,
having tested multiple use cases
Change-Id: I5b2ec650e31f573874e37b4df9bd191e56cec6b8
|