sanders: Switch to TARGET_FS_CONFIG_GEN for fs_config

* On Oreo, android_filesystem_config is generated by a python script
   that provides a nice way to add AIDs without overriding any header.
 * Switch AID values from 9xxx to 5xxx since accepted ranges
   for OEMs are only 5000-5999 and 2900-2999
 * Remove fs_config_files since it is already in embedded.mk
This commit is contained in:
Alberto97
2017-08-24 14:08:54 +02:00
committed by therootlord
parent 6906ef95aa
commit 7f34a5044e
6 changed files with 122 additions and 366 deletions

32
fs_config/file_caps.txt Normal file
View File

@@ -0,0 +1,32 @@
#
# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[system/bin/imsdatadaemon]
user: AID_SYSTEM
group: AID_SYSTEM
mode: 0755
caps: NET_BIND_SERVICE
[system/bin/ims_rtp_daemon]
user: AID_SYSTEM
group: AID_RADIO
mode: 0755
caps: NET_BIND_SERVICE
[system/bin/pm-service]
user: AID_SYSTEM
group: AID_SYSTEM
mode: 0755
caps: NET_BIND_SERVICE