Commit graph

81 commits

Author SHA1 Message Date
aviraxp
08ebba53cf msm8976-common: Import and bind mount loader config for media swcodec
* This config needs to be modified for legacy devices. As
   there is no easy way to split it, import it into device
   tree and bind mount it instead.

 * Head at android-10.0.0_r2
   (3ac371484399da6efbd0c835aa461d3326263ab1).
2020-04-27 23:14:55 +02:00
ripee
e474914e6b msm8976-common: Do not create directory for TZ Apps 2020-04-12 11:54:58 +02:00
Subbaraman Narayanamurthy
17cb046079 msm8976-common: rootdir: add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.
2020-04-04 17:37:13 +02:00
Subbaraman Narayanamurthy
84ba1fbeaa msm8976-common: Change user/group permission for for charger
Make charger binary run as system instead of root. Since it
needs to handle input key events, add input as a supplemental
group in addition to system and graphics.
2020-04-04 17:37:13 +02:00
Subbaraman Narayanamurthy
e610027c1f msm8976-common: rootdir: Update charger service path
charger binary is moved to /system/bin. Update it accordingly.
2020-04-04 17:37:13 +02:00
youngguo18
f84502f992 msm8976-common: Uprev Wifi supplicant HAL from 1.1 to 1.2
Update manifest with hidl 1.2 required for WPA3 and OWE.
2020-04-04 17:36:58 +02:00
Bruce Levy
d2305a880b msm8976-common: Mark rmt_storage as shutdown critical
rmt_storage should not be automatically killed by Android during
shutdown since it is needed to actually process the peripheral
shutdown

Change-Id: I58a29fe86955f0abad944727bb4208dad89f495d
2019-09-06 20:58:49 +02:00
Demon Singur
9d3d34ab77 msm8976-common: rootdir: Do not symlink sdcard legacy path
Solves the following denial.
denied  { write } for  pid=548 comm="init" name="storage" dev="rootfs" ino=15996 scontext=u:r:vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0

Change-Id: If246f497bd8384f0fee81469d8d29dcb528d4d4e
2019-01-18 23:22:35 +01:00
LuK1337
3866a7d974 msm8976-common: rootdir: Update camera provider HAL service name
Change-Id: Idc1a1e3da87c6c57e23c5c4cedcd77f4e0da5119
2019-01-11 14:41:26 +01:00
LuK1337
b23351f18a msm8976-common: Update wcnss_filter blob
Change-Id: If230d61d60941a0cb049e42d50aeaf90bcea29dd
2018-10-19 11:09:41 +02:00
Roshan Pius
d8be2cbe4d msm8976-common: Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2018-08-16 12:13:02 +02:00
Roshan Pius
50495a3b51 msm8976-common: wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-08-16 12:13:01 +02:00
Jeff Vander Stoep
bf39ae8cb5 msm8976-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: Test wifi on 8996 targets
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-08-16 12:13:00 +02:00
Jeff Vander Stoep
6c2e7b1be7 msm8976-common: wifi_supplicant: Deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
(cherry picked from commit 1f2b2f3a780bb7a6ed489bf86e18e77382f37514)
2018-08-16 12:11:42 +02:00
Paul Keith
a3186e740e msm8976-common: Transition to TARGET_LD_SHIM_LIBS
* Limits security exposure from shims

 * As a bonus, we no longer need noatsecure
   to make LD_SHIM_LIBS persist through services

Change-Id: I877192422062f3e59c81a7130ad1a2b4be5d1647
2018-02-17 09:34:47 +00:00
LuK1337
af54e51b92 msm8976-common: Restart HIDL camera provider after decryption
* HIDL camera provider starts too early for our 7.0 camera HAL.

Change-Id: Ia757e9d07de26008f426fca582439d68b6d6fecb
2018-02-16 16:37:51 +01:00
LuK1337
4d85a068c6 msm8976-common: rootdir: Remove audiod service
* Dropped by Qualcomm in O.

Change-Id: Id1c6e9d475b59b41c0cc4e4633e2ce7faabd19ef
2018-02-12 18:34:14 +01:00
LuK1337
8a6d90945c msm8976-common: Correct charger groups 2018-02-12 18:34:13 +01:00
LuK1337
b8623ef48f msm8976-common: Move fstab to /vendor
Change-Id: I2e86c3be08d0d4f19a6cf89a931f4a1e6ac12cdf
2018-02-12 18:34:13 +01:00
Abhishek Arpure
1ea17708fe msm8976-common: Move hardware specific .rc files to /vendor/etc/init/hw
The reason these files are moved to /vendor/etc/init/hw and
not /vendor/etc/init is because 'init' scans the /vendor/etc/init folder
for vendor service .rc fragments to import. That would either result
in duplicate imports or out-of-order imports of these hardware
specific .rc files and that *may* have unintended consequences.

In order to preserve the current import order for MTP, we move all
hardware specific .rc files to /vendor/etc/init/hw which is not
autoscanned by init BUT leave the init.${ro.hardware}.rc (i.e.
init.qcom.rc in this case) in root for 'init' to find.

Change-Id: I14531da05e2a3a256f734f8de96e1f1969c753f9
2018-02-12 18:34:13 +01:00
LuK1337
f387e6602e msm8976-common: Binderize them all
* Leave out camera and graphics composer as they
  can't be binderized on current blobs.
2018-02-12 18:34:13 +01:00
LuK1337
71cc7f7a90 msm8976-common: Kill qseeproxydaemon 2018-02-12 18:34:12 +01:00
Alin Jerpelea
8f9aac337d msm8976-common: init: Remove the timekeep service
the service has been moved to the timekeep git

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2018-02-12 18:34:11 +01:00
LuK1337
4cb91ebb10 msm8976-common: rootdir: Remove unused cnd and dpmd services 2018-02-12 18:34:11 +01:00
Bruno Martins
436b2f46a9 msm8976-common: Move IPC router config to vendor
Change-Id: I8d6892c8205a307f3a236f7ce8c78f9bdead2ba5
2018-02-12 18:34:11 +01:00
Bruno Martins
c86d342b41 msm8976-common: Move Wi-Fi files to vendor
Change-Id: I7e95baa01490ec76cf8ddfa051f01fc9b0bc5c7a
2018-02-12 18:34:11 +01:00
Luca Stefani
f7f672f6fb msm8976-common: Add rild socket shim
Change-Id: Ia5aa2cf867678045215625f6297708db6f49fdaa
2018-01-26 15:47:21 +01:00
LuK1337
5d063b3f78 msm8976-common: Set printk loglevel to KERN_WARNING 2018-01-26 15:47:21 +01:00
LuK1337
6e8f6148bd msm8976-common: Replace QCOMs groups with oem_2950-oem_2952 2018-01-26 15:47:20 +01:00
LuK1337
d2efa15d0b msm8976-common: Remove useless rm -rf /efs/dmverity
* It wasn't working anyway:
/init.qcom.rc: 73: rm requires 1 argument
2018-01-26 15:47:20 +01:00
LuK1337
7ae5254b74 msm8976-common: Update time data file path to match O changes 2018-01-26 15:47:20 +01:00
LuK1337
2807542d4b msm8976-common: /system/bin -> /system/vendor/bin 2018-01-26 15:47:20 +01:00
Luca Stefani
3b1d4dda68 msm8976-common: Remove hostapd daemon
* It lives in it's own rc extension now
2018-01-26 15:47:20 +01:00
Roshan Pius
38d48d92b5 msm8976-common: wifi: Move wpa_supplicant to vendor partition
Bug: 35684372
Test: Compiles
Change-Id: I1bf1355c22f5fc4f6a68032f3b30cced91d0bfed
2018-01-26 15:47:20 +01:00
Christopher Wiley
9eec850757 msm8976-common: wifi: Do not define superfluous wpa_supplicant service
Bug: 30816535
Change-Id: Iab4e212b1c2dcbb97e73945e6b807b37174e0ae0
2018-01-26 15:47:20 +01:00
Roshan Pius
054d9243de msm8976-common: init: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root
permissions to access this path for firmware reloads.

Bug: 33435250
Test: Compiles.
Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
2018-01-26 15:47:20 +01:00
Luca Stefani
7e70804173 msm8976-common: Use proper seclabel for charger service
* Partically taken from angler f2f207d2594b
2018-01-26 15:47:20 +01:00
Woody Lin
094f6917e1 msm8976-common: rootdir: Symlink platform/soc/${ro.boot.bootdevice} to bootdevice
Make symbolic link from
/dev/block/platform/soc/${ro.boot.bootdevice} to
/dev/block/bootdevice.

Change-Id: I7b7f4c728656103445e7fb68ccca92402fa36ff5
2018-01-26 15:47:20 +01:00
Luca Stefani
62679c3e53 msm8976-common: Build biometricts HAL
* Remove now unused fingerprintd daemon
2018-01-19 00:15:58 +01:00
Luca Stefani
9fe4b83c29 msm8976-common: Add libcamera_client shim
Change-Id: I4cc4eb52bc41e5174342e5571f096edb0e5a5c75
2018-01-19 00:15:57 +01:00
Luca Stefani
313cbb8738 msm8916-common: gps: Add get_process_name shim
Change-Id: I10ce654b14866d41610c7e4098df9691b983d515
2018-01-19 00:15:57 +01:00
Bruno Martins
6d58bd23b5 msm8976-common: Grant rmt_storage proper unix perms
Do not grant DAC override permission which would allow this daemon
unix permissions to everything.

avc: denied { dac_override } for pid=2664 comm="rmt_storage" capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0

Add wakelock group to access:
/sys/power/wake_lock
-rw-rw----  1 radio  wakelock 4096 2017-06-28 00:37 wake_unlock

Change-Id: Ib02b4aedab479f5ad8aca3a2100b5c489397002a
2017-07-04 18:40:56 +02:00
LuK1337
b2f7745ad4 msm8976-common: Update blobs from T813XXU2BQD1
Change-Id: I3e3938773fddd721129a85552caec00f3ab8b17c
2017-04-23 22:44:42 +02:00
LuK1337
070cd34492 msm8976-common: Remove useless debugging writes
* We don't set those:
[    6.369929]  [3:           init:    1] init: write: cannot expand '${persist.sys.ssr.enable_debug}'
[    6.370081]  [3:           init:    1] init: write: cannot expand '${persist.sys.mba_boot_timeout}'
[    6.370234]  [3:           init:    1] init: write: cannot expand '${persist.sys.modem_auth_timeout}'
[    6.370381]  [3:           init:    1] init: write: cannot expand '${persist.sys.modem_dbg_cfg}'
[    6.370535]  [3:           init:    1] init: write: cannot expand '${persist.sys.pil_proxy_timeout}'
[    6.370688]  [3:           init:    1] init: write: cannot expand '${persist.sys.external}'

Change-Id: I64bfe89618744dd33a8173eaab1a4613208fc74b
2017-02-05 21:13:05 +01:00
LuK1337
d08ada9a36 msm8976-common: Clean up IIO permissions
* Remove stuff that is being denied by SELinux
* Get rid of weird Samsung's intendation

Change-Id: I23c868db3d7a1d53323acb2b6780e12f8bbc2e70
2017-02-03 18:08:09 +01:00
Luca Stefani
8b0db50e14 msm8976-common: Create ramdisk symlinks & folders at build-time
* Create dsp, efs, persist and modem folders
* Symlink bt_firmware and tombstones

Change-Id: I6b67e15e9cbde875f564bcb72f024ce9ce5e0ccf
2017-01-31 14:54:48 +00:00
LuK1337
1dfa316616 msm8976-common: Reenable fingerprint
Change-Id: Ic65f7c6cab4a89edaaf34454abadf7f43a2d9a33
2017-01-27 12:34:26 +01:00
Luca Stefani
e601781cca msm8976-common: Cleanup bt
* We don't need hci_qcomm_init and init.qcom.bt.sh
* Remove hci_filter_root
* Update sysfs permissions from bullhead

Change-Id: Id0b80f188cc3dd6d3595f5216bb3b927179afced
2017-01-26 22:36:58 +01:00
Luca Stefani
039887cb7c msm8976-common: Remove btnvtool
* We don't read bt address from NV

Change-Id: I4f2eeeed70ae830937c4d4c86fe5665dac0f8c99
2017-01-25 11:23:35 +01:00
Michael Bestas
c77c730833 msm8976-common: Cleanup init.qcom.bt.sh
* Remove bluez support
* Bring closer to AOSP devices' script

Change-Id: I6eeb69487b02070a84bc2958fb8a939a684ab915
2017-01-25 11:11:55 +01:00