Commit graph

348 commits

Author SHA1 Message Date
Francescodario Cuzzocrea
ffd3e6104b msm8226-common: allow livedisplay to handle screen power reduce
Change-Id: I7294f3449c0566e78f3d291d819fa8acd2294755
2019-12-15 21:16:30 +01:00
Francescodario Cuzzocrea
8296402cb4 msm8226-common: resolve sepolicy denials
Change-Id: Iea4bbd17a420a06d55658a4a52bdcabf14cf4d2c
2019-12-15 18:41:15 +01:00
Francescodario Cuzzocrea
320c019e22 msm8226-common: rootdir: restore secontex of /efs
- also fix file permissions

Change-Id: If94b70a4008fcd1d00ca15e203c37ac8e94211ae
2019-12-15 18:30:17 +01:00
Francescodario Cuzzocrea
ead4fb50ef msm8226-common: selinux: add backlight path for panel and button brightness to file_context
This fixes backlight dimming not working on enforcing builds

Change-Id: Ic0b99ddaa502727ac8e4f34ce2dcf3e3187c060d
2019-10-18 22:07:52 +02:00
pythonlimited
709a208448 msm8226-common: rootdir: correct charger seclabel 2019-10-17 16:13:03 +02:00
PythonLimited
8bc870910c msm8226-common: update and cleanup sepolicy 2019-10-17 16:12:48 +02:00
Francescodario Cuzzocrea
1247fdbd54 msm8226-common : drop livedisplay manifest entry to device specific tree
some msm8226 devices (like the grand 2 and the S5 Mini duos) supports full mdnie display capability, while other (like the s3 neo) not.
drop the livedisplay manifest entry to device specific tree so every device can enable the service that it suports
2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
d5a4d8d567 msm8226-common: fix offline charging 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
d79f3a2047 msm8226-common: cleanup filesystem mounting when starting in offline charger mode 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
87854edbce msm8226-common: remove unnecessary stock samsung services for charger 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
6f5c6b7b59 msm8226-common : set the compiler filter for shared apks to quicken
* Rationale: speed has a lot of dex code expansion, it uses more ram and space compared to quicken.
    Using quicken for shared APKs on Go devices may save RAM.
    Note that this is a trade-off: here we trade clean pages for dirty pages, extra cpu and battery.
    That's because the quicken files will be jit-ed in all the processes that load of shared apk and the
    code cache is not shared. Some notable apps that will be affected by this are gms and chrome.

As seen here : https://android.googlesource.com/platform/build/+/refs/tags/android-9.0.0_r48/target/product/go_defaults_common.mk#45
2019-10-16 12:32:04 +02:00
Jorim Jaggi
f974d0793f msm8226-common: Pin HOME application
Test: adb shell dumpsys pinner after boot
Bug: 111132016
Bug: 78585335
Change-Id: I4ed0587ae5348bbe03ad9ac5f1c5b1726dbb8246
2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
1db45ac09f msm8226-common: set supported HFR video parameters 2019-10-16 12:32:04 +02:00
Harshit Jain
ae9edc11c6 msm8226-common: Strip off some debug packages
* Ref: https://source.android.com/devices/tech/dalvik/configure#compilation_options

Change-Id: Ia19ac5ab253337186492dccdc166c2b824563e82
Q: PRODUCT_MINIMIZE_JAVA_DEBUG_INFO what tf does this do?
A: https://android.googlesource.com/platform/build/+/master/target/product/go_defaults_common.mk#68
2019-10-16 12:32:04 +02:00
pythonlimited
42aaf85caa msm8226-common: pre-optimize more system apps for speed
* This should fix the light stuttering were getting in the trebuchet ui when launching certain apps like setting or snap.
2019-10-16 12:32:04 +02:00
Wei Wang
522d3b30a9 msm8226-common: add SysUI and Settings to PRODUCT_DEXPREOPT_SPEED_APPS
Test: Build
Change-Id: I088938462b389e1ebe783997f773dc5946345666
2019-10-16 12:32:04 +02:00
Adrian DC
e8e44209b9 init: Resolve kernel trace_marker permissions on post-fs
* The permissions were not set to 222 instead of 220,
    thus introducing regular logs from libcutils:
    "cutils-trace: Error opening trace file: Permission denied (13)"

 * Refers to frameworks/native/cmds/atrace/atrace.rc

Change-Id: I236ea25d2f2068f9f86a43492807f5f05e92da96
2019-10-16 12:32:04 +02:00
pythonlimited
7806fec660 msm8226-common: drop pre MM shim 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
a13a92fd8f msm8226-common: add BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
239f611e92 msm8226-common: move init.ril.sh to vendor 2019-10-16 12:32:04 +02:00
Michael Bestas
66e4c61446 msm8226: Move init.qcom.bt.sh to vendor
Change-Id: I6b9c508e3c2b3573fba0a5bdf9281be8947fffc0
2019-10-16 12:32:04 +02:00
dianlujitao
2e680523ba msm8226-common: Rename bt props for new HAL
* Also move some stuff to vendor

Change-Id: I1afd110bffed0f43b1afcbef99be8a3776d24e0b
2019-10-16 12:32:04 +02:00
Michael Bestas
50a1d315aa msm8226-common: Set vendor.post_boot.parsed=1 before starting mpdecision
* Allows mpdecision to work properly on boot to restore selected power profile

Change-Id: Ib92f971f28ed875481170b056ac16aad05aadcfc
2019-10-16 12:32:04 +02:00
Arne Coucheron
0451bc5df8 msm8226-common: rootdir: Ensure .bt_nv.bin is owned by bluetooth
This file is used by hciattach when turning on bluetooth,
and without correct permissions, MAC address will be wrong.

Change-Id: Ie700a4be1a6b83932a9cffac45cd63f179f3edda
2019-10-16 12:32:04 +02:00
dev-harsh1998
5284cfeba4 msm8226-common: Bring in some optimization from caf's qcom common
* Use speed profile services and wifi-service to reduce RAM and storage.
* Always preopt extracted APKs to prevent extracting out of the APK for gms modules
* Use a profile based boot image

Change-Id: I41bea46ded542b37910fef6a08e49a8ab70c7d2a
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-10-16 12:32:04 +02:00
Satya Krishna Pindiproli
9b23f325aa msm8226-common: ueventd.qcom.rc: add and edit permissions of audio nodes
Change permissions of AMR-NB device node and change owner
and group of AMR-WB node to fix failure in opening of these
nodes from OMX component.

CRs-Fixed: 2072938
Change-Id: I5508529726ce0a3b763ac1364960def32887c6a2
2019-10-16 12:32:04 +02:00
Michael W
15f38f5521 msm8226-common: wifi: Enable 2.4GHz channel bonding
* Improve WiFi speed

Change-Id: I06501a8d01d8a802fe5dd7a6c9edfa96c51afbce
2019-10-16 12:32:04 +02:00
Bruce Levy
a10c93e70b msm8226-common: init: 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
2019-10-16 12:32:04 +02:00
Sahitya Tummala
b6a27cf7a5 msm8226-common: init: Set ioprio for rmt_storage service
Earlier, this used to be set from rmt_storage service with
sys_admin capability. But now, that capability is dropped
off and hence, set it here in init scripts.

Change-Id: Ie8a3895c2b63da35d78fb9e571d74b735c969520
2019-10-16 12:32:04 +02:00
cb
4e61f543da msm8226-common: Lower audioflinger standby delay to reduce power consumption 2019-10-16 12:32:04 +02:00
D. Andrei Măceș
2540653e36 msm8226-common: init: Modify time_daemon to allow settimeofday() fallback
The legacy time_daemon binary relied on the old Android alarm dri-
ver for setting RTC at bootup. Once /dev/alarm support was removed
we found that time cannot be restored properly, unless a data con-
nection was available for NTP sync.

However, the blob already has a fallback mechanism that relies on
settimeofday(), except that it could never work properly. While
time_daemon is started under UID/GID of root, it immediately drops
to system/net_raw, which is required for subsequent socket commu-
ications (e.g., QMI, modem, etc).

The issue was that any UID transition from root triggers the remo-
val of all thread capabilities, including CAP_SYS_TIME, required
for settimeofday() or other RTC adjustments. Thus, time_daemon was
edited to skip the internal set[gu]id() calls altoghether, in order
to use the new capabilities mechanism introduced with Oreo init.

Change-Id: I8a0e220b724234c26b99a09b7f54af7996129d67
Signed-off-by: D. Andrei Măceș <andrei@unlegacy-android.org>
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-10-16 12:32:04 +02:00
Sevenrock
f6a6217861 msm8226-common: Set TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE
Needed after
https://review.lineageos.org/c/LineageOS/android_hardware_qcom_keymaster/+/224951

Change-Id: Ic1bc2ac43e00b90f82ee2f77bb066b5e0029bf66
2019-10-16 12:32:04 +02:00
sb6596
3243b69821 msm8226-common: Add seclabel to hciattach service
Change-Id: I4942c3203e67fa02ba3f93cd2a26f74e11b41753
2019-10-16 12:32:04 +02:00
Ben Romberger
f59cb37284 msm8226-common: init.qcom.rc: Updated audio calibration delta file path
Audio calibration delta files folder created at
/data/misc/audio/acdbdata/delta.
Path changed to provide access to media server.
Added /data/audio/acdbdata/delta path also
for backward compatibility

Change-Id: I53031d1aecd3f12a15d76db417d7a8eafd80cf8b
2019-10-16 12:32:04 +02:00
Ashish Kumar Dhanotiya
821469b3c8 msm8226-common: wlan: Disable fatal logging
Fatal logging feature is not applicable for LA.BR.1.2.9, disable
this feature from ini.

Change-Id: I4188900c1823a5efe466687cd7362ab369c1b4d6
CRs-Fixed: 2044606
2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
7a69c9070c HACK: msm8226-common: sensors: make it compile on P 2019-10-16 12:32:04 +02:00
Han Wang
d83b999e4a msm8226-common: Remove creation of /data/misc/wifi and /data/misc/dhcp
* The creation of /data/misc/wifi and /data/misc/dhcp was moved long ago
  to the core init.rc script. Moreover, /data/misc/wifi is deprecated
  since wpa_supplicant now relies on /data/vendor/wifi.

Change-Id: Ic0a33af44ffe163d3dd06cebdc1e192dc9bcb11f
2019-10-16 12:32:04 +02:00
Wang Han
e388f8ce4b msm8226-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2019-10-16 12:32:04 +02:00
Steve Kondik
279742f66e msm8226-common: Increase heap start size to 16m to minimize GC with larger bitmaps
Change-Id: I89af5e94c9aafdc6007c84d3fce60e4db349e967
2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
c749d17efe msm8226-common: Configure the p2p_search_delay to 100 msec 2019-10-16 12:32:04 +02:00
Glen Kuhne
4810c16e5b msm8226-common: Add p2p_no_group_iface=1 to p2p_supplicant_overlay
Configures wpa_supplicant to use p2p0 mgmt iface instead of dynamically
created p2p-p2p0-XYZ virtual interfaces for P2P group.

Bug: 65524423
Test: CtsVerifier WifiDirect
Test: Manual verification
Change-Id: I70582f114ab69684424aac41fbeb78fa7cc04847
Merged-In: Id9add59aa122adb7f39c80252061a8f5d3cc55cd
2019-10-16 12:32:04 +02:00
Roshan Pius
e05da8434e msm8226-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
2019-10-16 12:32:04 +02:00
Roshan Pius
53358075ee msm8226-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
2019-10-16 12:32:04 +02:00
Jeff Vander Stoep
f8d387d38b msm8226-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

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

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2019-10-16 12:32:04 +02:00
Jeff Vander Stoep
49f4349027 msm8226-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 8974 targets
Change-Id: Iaa2a8a42e4e3fd941c5be0f8fa691245cdb429e9
2019-10-16 12:32:04 +02:00
Jeff Johnson
bd514559fd msm8226-common: wlan: Update supplicant services for new calling sequence
Change-Id: I9a2b5b2c27c8fd0e7b13e78cf02985c1c19db1b6
2019-10-16 12:32:04 +02:00
Michael Bestas
187c23c689 msm8226-common: Move wpa_supplicant overlays to vendor
Change-Id: I42e8994585615c15fb069166a79b86488e8acb25
2019-10-16 12:32:04 +02:00
Nolen Johnson
be0042899e msm8226-common: Set TARGET_RECOVERY_DEVICE_DIRS
* In the previous commit, I failed to note that TWRP
  also needs the AIO property set, so append local path
  to TARGET_RECOVERY_DEVICE_DIRS to make both Lineage
  Recovery and TWRP happy.

Change-Id: Ie1d8dfa252dad02787544a73e9d4ee1d44d30dbf
2019-10-16 12:32:04 +02:00
Nolen Johnson
dd6fece29d msm8226-common: Set sys.usb.ffs.aio_compat in recovery as well
Change-Id: I36d76f74ceae3029f49c3cb564cd876bbb6b5b81
2019-10-16 12:32:04 +02:00
jrior001
3400a74693 msm8226-common: Disable network scan via TelephonyManager
Change-Id: I07ac2eee478d6edbc266447ef3209403a14285f1
2019-10-16 12:32:04 +02:00