Commit graph

359 commits

Author SHA1 Message Date
Peter Kalauskas
4bbd30cfbd
msm8226-common: Convert IMediaCasService to use vintf_fragments
Bug: 119669996
Test: Run cts CtsMediaTestCases
Change-Id: I0745c3b2d8bb57e7a29585ec33c76ef38affdc6b
2020-01-05 11:55:53 +03:00
Suren Baghdasaryan
7e9aad2a15
msm8226-common: gps: Add libprocessgroup dependency to set_sched_policy users
Add libprocessgroup dependency required for set_sched_policy function.
Include sched_policy_ctrl.h header which now contains set_sched_policy
definition.

Bug: 111307099
Test: builds, boots

Change-Id: Id90ba4f0782c7a9a620e6bd273813e5a56dbd140
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-01-05 11:55:06 +03:00
RomanDesigner
8564da0229
msm8226-common: Move optimizations to msm8226.mk 2020-01-05 11:53:08 +03:00
pythonlimited
52b20554e8
msm8226-common: Drop common libinit.
Change-Id: I5ba14bda7b49c5dec294eb4dd3a8d6645bb7e5b7
2020-01-05 11:46:23 +03:00
Francescodario Cuzzocrea
7ed21fcb70 msm8226-common: fix more sepolicy denials
Change-Id: If81bc788428fdbbcd2c16d80f76316082e2c607f
2020-01-04 21:28:02 +01:00
isbon
54973f5b87 msm8226-common : allow sec_touchkey in sepolicy
Change-Id: Id2eeb041f04bb6f3b0919f31d50c9c1279b2e318
2020-01-04 14:57:38 +01:00
Francescodario Cuzzocrea
0b9054f915 msm8226-common: support fingerprint device
Change-Id: Ie1f37be4bff38c4cf343c76d1afc2bce84727c8f
2020-01-03 21:06:50 +01:00
BAProductions
a05beb8092 msm2886-commom: fix more sepolicy denial
Change-Id: Idb55755ced43fa48f12a9a7f1a7f7648f24cbd51
2020-01-03 17:58:59 +01:00
BAProductions
25a6078212 msm8226-common: use regex for brightness path 2020-01-03 17:58:04 +01:00
Francescodario Cuzzocrea
40cf4dda5e msm8226-common: add mdnie path to file_context 2020-01-03 17:57:48 +01:00
Arne Coucheron
5a837b6ab6 overlay: Add config_useSystemClockforRotationSensor
Change-Id: I866e8871f11e6ecfa6b9cfa3a74563009ec45237
2019-12-17 23:11:09 +01:00
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