Commit Graph

103 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
npjohnson 603bbe069b msm8976-common: Set sys.usb.ffs.aio_compat in recovery as well 2020-04-27 20:49:03 +02:00
ripee f40d286569 msm8976-common: Remove F2FS 2020-04-22 23:27:39 +02:00
Tri Vo 526caab0c0 msm8976-common: Move device-specific entries to /vendor/ueventd.rc 2020-04-22 23:24:50 +02:00
John Stultz ac522297f7 msm8976-common: Disable nonblocking_ffs to avoid recent crashes with adbd
Recent changes to adbd have enabled nonblocking_ffs by default.

These have seeminly uncovered some bad memory corruption in the
kernel ffs gadget driver on every kernel I've tried so far.

Unfortunately I've not been able to diagnose what is going wrong,
so for now, lets disable the nonblocking_ffs.

We still need to root cause the issue as its a problem even with
the mainline kernel on HiKey, so its likely a generic kernel issue.

Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-04-22 23:20:54 +02:00
ripee e474914e6b msm8976-common: Do not create directory for TZ Apps 2020-04-12 11:54:58 +02:00
ArianK16a 2851c3581c msm8976-common: rootdir: Set usb to mtp on charger
* Otherwise adb will try to start and crash the device
  while offmode charging at a computer.
2020-04-05 14:52:00 +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
bgcngm 71f503b90d msm8976-common: Address 'LOCAL_MODULE_TAGS := eng debug' deprecation.
Newer AOSP deprecates LOCAL_MODULE_TAGS := eng debug.
We now remove that and instead add the package to
PRODUCT_PACKAGES_ENG or PRODUCT_PACKAGES_DEBUG as applicable.

To ensure that we don't miss out on any package during this switch,
we add these explicitly, even though it might have been already
added under PRODUCT_PACKAGES at some other location.
2020-04-04 13:24:05 +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
syphyr 07bb0522cf msm8976-common: adjust lowmemorykiller settings
Upstream does not use these settings

Fixes: "Revert "lowmemorykiller: adapt to vmpressure""
       "Revert "lowmemorykiller: Introduce sysfs node for ALMK
        and PPR adj threshold"

Change-Id: Ifa2a8b2aaa0ab9c6326ded570ccaf91c2ad5b8e1
2019-07-29 23:47:41 +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
Jerry Zhang 4e8ecc64e8 msm8976-common: Set sys.usb.ffs.aio_compat
The kernel does not support aio with ffs.
Set the property so adb/mtp know to use the compatible
functions, and the same while in recovery.

Bug: 37916658
Test: Use adb / use adb in recovery
Change-Id: Id35a05fcb9952dcf7239bd15a61cc620537419bc
2018-08-16 12:15:12 +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
Michael Bestas 3a418b2310 msm8976-common: Get rid of recovery-only fstab
* Mounting /system partition is handled in kernel now,
   however removing the entry from fstab caused issues building
   the OTA. The workaround was to have a separate fstab, but turns out
   that simply setting the recoveryonly flag does the trick because
   those are then ignored during a normal Android boot.

Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4
2018-03-10 14:06:55 +01: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 703ea171cf msm8976-common: rootdir: Remove tabs 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 653d154f45 msm8976-common: Move uevent.qcom.rc to /vendor
Change-Id: Iab2699bf26ca4402b835d1af8d4493f9b28595d9
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
Bruno Martins 1bb48181f8 msm8976-common: Enable low-power mode on boot complete
Change-Id: I2d6b1acda1bff74fd3c6c005d889213854ef625e
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
Rashed Abdel-Tawab c83d95716c msm8976-common: Update for early-mounted system partition
* This removes /system entry from fstab, since this partition
   is now early-mounted and the fstab entry is specified in device tree.

 * At the same time, also include a fully populated fstab, in order to avoid
   build breakage while generating recovery updater scripts.

Change-Id: I8e558458b984e97a45a920c3751a6b7c3f2ebc5c
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