blob: 7cc45bde7c1aee2cbb7b4d3eb6768e61af161388 [file] [log] [blame]
Christopher Wiley5ec95102016-07-13 10:34:47 -07001#
2# init.rc fragment for hostapd on Android
3# Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi>
4#
5# This software may be distributed under the terms of the BSD license.
6# See README for more details.
7#
8
9on post-fs-data
Roshan Piuscc817562017-12-22 14:45:05 -080010 mkdir /data/vendor/wifi 0770 wifi wifi
11 mkdir /data/vendor/wifi/hostapd 0770 wifi wifi
Huajun Tong527b3ba2018-04-20 16:29:50 +080012 mkdir /data/vendor/wifi/hostapd/sockets 0770 wifi wifi
Christopher Wiley5ec95102016-07-13 10:34:47 -070013
Roshan Piuscc817562017-12-22 14:45:05 -080014service hostapd /vendor/bin/hw/hostapd
Roshan Pius65ff09b2018-02-05 16:14:40 -080015 interface android.hardware.wifi.hostapd@1.0::IHostapd default
Roshan Piuse2d21012018-08-17 11:22:06 -070016 interface android.hardware.wifi.hostapd@1.1::IHostapd default
lesl1a842e62019-12-02 19:00:37 +080017 interface android.hardware.wifi.hostapd@1.2::IHostapd default
leslf8b1b402020-08-04 17:09:39 +080018 interface android.hardware.wifi.hostapd@1.3::IHostapd default
Christopher Wiley5ec95102016-07-13 10:34:47 -070019 class main
Tom Cherry82f002d2018-03-22 16:34:29 -070020 capabilities NET_ADMIN NET_RAW
Christopher Wiley5ec95102016-07-13 10:34:47 -070021 user wifi
Ningyuan Wangbee0fd92017-05-26 15:43:55 -070022 group wifi net_raw net_admin
Christopher Wiley5ec95102016-07-13 10:34:47 -070023 disabled
24 oneshot