Commit graph

324 commits

Author SHA1 Message Date
RomanDesigner
260468a75f
msm8226-common: Define extra folders in makefile instead of init.qcom.rc
With Android 10, these folders get wiped out unless declared at compile time.
2020-01-05 12:48:03 +03:00
padarshr
992b7b00be
msm8226-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.

Change-Id: Id1f94f34e100d616d91292efe514c201f7d24642
2020-01-05 12:35:01 +03:00
Bruno Martins
3b70fbcd31
msm8226-common: Binderize them all
* Switch to binderized HAL services as possible and update
   HIDL manifest accordingly.

 * Following considerations regarding those without any change:

   - Sensors left out of the game because wouldn't work
     otherwise.

Change-Id: Id50291488d655187aa013c51bdd6890dca010564
2020-01-05 12:27:24 +03:00
Arne Coucheron
2da3370a1e
msm8226-common: Add 0x2000U to additional gralloc usage bits
Fixes video playback error.

| Gralloc2: buffer descriptor contains invalid usage bits 0x2000
2020-01-05 12:22:27 +03:00
Hai Shalom
8bd7e0313f
msm8226-common: Uprev Wifi supplicant HAL from 1.1 to 1.2
Update manifest with hidl 1.2 required for WPA3 and OWE.

Bug: 112195778
Test: Functional tests
2020-01-05 12:21:08 +03:00
Michael Bestas
48d58e1210
msm8226-common: Update to power HAL 1.2
Change-Id: Ic58b75f8b7a662914e28cbcc9ffdb2b2a143134b
2020-01-05 12:20:31 +03:00
Lucas Dupin
510233e283
msm8226-common: Disable window rounded corner animations
For graphics performance reasons

Bug: 122347746
Test: visual; swipe up on overview
Change-Id: I7132a252efdada434ac9fce812eccdca94d9c635
2020-01-05 12:17:48 +03:00
John Stultz
b74d196491
msm8226-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.

Change-Id: I68a94f8f26b65ab383c37274e4f631227a3c7d5f
Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-01-05 12:17:21 +03:00
Roshan Pius
3680ad07cb
msm8226-common: hostapd(hidl): Uprev to 1.1
Bug: 112705137
Test: Compiles
Change-Id: Ia9b8f8a81ab774540ad8f0f0999a69d14d06d3da
2020-01-05 12:17:03 +03:00
Jong Wook Kim
566f22f28c
msm8226-common: Device Manifest Uprev Wifi HAL from 1.2 to 1.3
Move Wifi HAL from 1.2 to 1.3

Bug: 111753174
Test: builds and wifi works
Change-Id: I23f9c6923bebd87ff5b8d92c1c366c62fbfb30b9
2020-01-05 12:16:27 +03:00
Bruno Martins
65e60c96d8
msm8226-common: Switch legacy Wi-Fi service
Change-Id: I4556faa678f348ed27803a5f1615aaced75aa4c0
2020-01-05 12:15:54 +03:00
Anton Hansson
4412a3b04d
msm8226-common: Set cpu runtime variant to krait
This makes bionic and various art tools that compile/runs cpu-specific
code choose the kryo variant at runtime. It does not affect
build-time compilation.

Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I766f7bbd9f1fab35991c313da7bfad8563108ef8
2020-01-05 12:14:23 +03:00
Anton Hansson
064b0225ea
msm8226-common: Use generic arch variant
Follow blueline which has not demonstrated any regressions
after switching to a generic arch variant.

Bug: 120773446
Test: make
Change-Id: If64385d968cb923177f74b03a94633f0dbf42fbb
2020-01-05 12:13:51 +03:00
Katz Yamada
52a845523e
msm8226-common: gps: Fix for buffer overrun crash at copying nmea string
Add zero clearing of allocated nmea buffer to ensure
the nmea string is null terminated.

Change-Id: I78e8b03bc7d0f9b69e1a51356da379a57a647cad
CRs-Fixed: 2041933
2020-01-05 12:13:14 +03:00
Arne Coucheron
7f16443813
msm8226-common: Complete the removal of f2fs
We previously removed it from fstab, so this isn't relevant anymore.

Change-Id: I5045981d299966e95401f96ac2f0d4eca92e9ba8
2020-01-05 12:03:07 +03:00
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