aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'sony/master' into HEADHEADq10.0SpiritCroc2019-12-114-3/+20
|\ | | | | | | Change-Id: I89664d8415ebae18d5e900bd48c7939e1152fe4e
| * add legacy init.rc for SDK25Alin Jerpelea2019-12-112-1/+18
| | | | | | | | | | | | | | 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>
| * Merge pull request #31 from luk1337/patch-5Alin Jerpelea2019-12-111-1/+1
| |\ | | | | | | Move WiFi MAC path prop to vendor namespace
| | * Move WiFi MAC path prop to vendor namespaceLuK13372019-12-101-1/+1
| |/ | | | | | | | | | | * Ever since PRODUCT_COMPATIBLE_PROPERTY was introduced, vendor binaries are supposed to be using ro.vendor namespace props.
| * Merge pull request #30 from bartcubbins/master_headerAlin Jerpelea2019-09-131-1/+1
| |\ | | | | | | [master] macaddrsetup: Replace cutils/log.h with log/log.h
| | * macaddrsetup: Replace cutils/log.h with log/log.hPavel Dubrova2019-09-131-1/+1
| |/ | | | | | | | | | | | | | | | | | | 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>
* / Remove sony open device build barrierSpiritCroc2019-12-081-4/+0
|/ | | | | | | | 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
* Remove unused includesLuK13372019-02-081-2/+0
| | | | | * These includes aren't necessary, macaddrsetup compiles without them just fine.
* Merge pull request #28 from mkosola/masterAlin Jerpelea2018-10-231-0/+3
|\ | | | | Ensure that /data/vendor/wifi directory exist
| * macaddrsetup: Ensure that /data/vendor/wifi directory existMatti Kosola2018-10-231-0/+3
|/ | | | Signed-off-by: Matti Kosola <matti.kosola@jolla.com>
* Merge pull request #27 from oshmoun/brcmfmacAlin Jerpelea2018-10-091-0/+1
|\ | | | | macaddrsetup: grant NET_ADMIN and NET_RAW
| * macaddrsetup: grant NET_ADMIN and NET_RAWoshmoun2018-10-081-0/+1
|/ | | | | | | 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
* Merge pull request #26 from humberos/masterAlin Jerpelea2018-09-241-0/+1
|\ | | | | macaddrsetup: don't spam errors on warnings
| * macaddrsetup: don't spam errors on warningsHumberto Borba2018-09-241-0/+1
|/ | | | | | | | | | | 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>
* Merge pull request #25 from oshmoun/brcmfmacAlin Jerpelea2018-09-233-15/+46
|\ | | | | Add support for setting MAC address when using brcmfmac
| * macaddrsetup: add handling for brcmfmac wifi driveroshmoun2018-09-232-10/+45
| | | | | | | | | | | | | | 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
| * macaddrsetup: add to main classoshmoun2018-09-231-5/+1
|/ | | | | | 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
* Don't use shell in make fileZoran Jovanovic2018-09-101-1/+1
| | | | | | ...when there are alternatives. (It's faster and safer.) Signed-off-by: Zoran Jovanovic <zoran.jovanovic@sony.com>
* move the bluetooth mac address to /data/vendorAlin Jerpelea2018-09-101-1/+1
| | | | | | This change is necessary for selinux permisisons Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* Merge pull request #23 from dev-harsh1998/masterAlin Jerpelea2018-07-231-131/+137
|\ | | | | macddrsetup: fix coding style issues
| * macaddrsetup: Improve spacing in code-styledev-harsh19982018-07-231-131/+137
| | | | | | | | | | | | | | | | * Facilitates better code readability. TESTS :- Compile the binary after the patch. Signed-off-by: dev-harsh1998 <harshitjain6751@gmail.com>
| * macaddrsetup: migrate to octal permission usagedev-harsh19982018-07-231-1/+1
| | | | | | | | | | | | * This was being detected as a warning by checkpatch.pl. Signed-off-by: dev-harsh1998 <harshitjain6751@gmail.com>
| * macaddrsetup: resolve code-style errorsdev-harsh19982018-07-231-3/+3
|/ | | | | | * These spacing errors were found using checkpatch.pl Signed-off-by: dev-harsh1998 <harshitjain6751@gmail.com>
* Merge pull request #20 from luk1337/patch-3Alin Jerpelea2018-06-261-2/+0
|\ | | | | Clean up includes
| * Clean up includesLuK13372018-06-261-2/+0
|/ | | | | | | | | * 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
* Merge pull request #19 from luk1337/patch-2Alin Jerpelea2018-03-241-5/+25
|\ | | | | Fix potential null pointer dereference when dlopen or dlsym fails
| * Fix potential null pointer dereference when dlopen or dlsym failsLuK13372018-03-241-5/+25
|/
* Merge pull request #18 from luk1337/patch-1Alin Jerpelea2018-03-212-0/+12
|\ | | | | Add support for mirrored mac addresses
| * Add support for mirrored mac addressesLuK13372018-03-212-0/+12
|/ | | | | * Some devices got shipped with mirrored BT and WiFi addresses in TA.
* Merge pull request #17 from SonyAosp/macAlin Jerpelea2018-01-241-2/+1
|\ | | | | macaddrsetup: allow macaddr write sys path dinamically
| * macaddrsetup: allow macaddr write sys path dinamicallyDavid2018-01-241-2/+1
| | | | | | | | | | | | 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>
* | Merge pull request #16 from abioteau/masterAlin Jerpelea2018-01-241-1/+1
|\ \ | |/ |/| Run macaddrsetup in the wifi group
| * Run macaddrsetup in the wifi groupAdrien Bioteau2018-01-241-1/+1
|/ | | | | | 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.
* add macaddrsetup.rcAlin Jerpelea2018-01-242-0/+14
| | | | | | | we move the macaddrsetup service from different init files to a separate macaddrsetup.rc Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* add QCA_CLD3_WIFI mac address formatAlin Jerpelea2018-01-232-0/+9
| | | | | | | | 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>
* Merge pull request #15 from jlivings/masterAlin Jerpelea2018-01-231-2/+7
|\ | | | | Fixes for creating MAC address files on Oreo
| * macaddrsetup: Create bluetooth file with 640 permsJohn Livingston2017-11-161-0/+5
| | | | | | | | | | | | | | | | 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.
| * macaddrsetup: Correct WLAN MAC address formatJohn Livingston2017-11-151-2/+2
| | | | | | | | | | | | | | | | 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.
* | use PRODUCT_PLATFORM_SOD as build barrierAlin Jerpelea2018-01-221-1/+1
|/ | | | | | | 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>
* Implement dynamic linkingAlin Jerpelea2017-09-302-5/+19
| | | | | | | | | | | | | | | 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>
* Merge pull request #14 from SonyAosp/8.0-styleAlin Jerpelea2017-09-301-0/+4
|\ | | | | macaddrsetup: move to vendor
| * macaddrsetup: move to vendorDavid2017-09-301-0/+4
|/ | | | | | | | | | 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>
* Merge pull request #13 from SonyAosp/yoshinoAlin Jerpelea2017-06-091-1/+1
|\ | | | | macaddr: add yoshino to build barrier
| * macaddr: add yoshino to build barrierDavid2017-06-091-1/+1
|/ | | | Signed-off-by: David Viteri <davidteri91@gmail.com>
* Merge pull request #11 from AdrianDC/masterAlin Jerpelea2016-12-111-0/+4
|\ | | | | sony: macaddrsetup: Restrict the project to Sony AOSP devices only
| * sony: macaddrsetup: Restrict the project to Sony AOSP devices onlyAdrian DC2016-12-101-0/+4
|/ | | | | | | * Avoid including macaddrsetup into a different device built inside the same build tree as Sony AOSP Change-Id: Id15ee12bfcaf49425e90feaf06c128bbbcb8c822
* Merge pull request #10 from Contortrix/masterAlin Jerpelea2016-10-241-3/+1
|\ | | | | macaddr: remove dangerous sepolicy permissions
| * macaddr: remove dangerous sepolicy permissionsAdam Farden2016-10-241-3/+1
|/ | | | | | | | 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>
* Merge pull request #9 from SonyAosp/cdAlin Jerpelea2016-10-031-30/+12
|\ | | | | Bring in some improvements done previously
| * Bring in some improvements done previouslyChirayu Desai2016-10-031-30/+12
|/ | | | | | | | | | * 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