Commit graph

359 commits

Author SHA1 Message Date
Paul Keith
a7ec81ccbf Revert "msm8226-common: Don't mess with APN or CDMA CarrierConfig options"
* It turns out, this is now necessary for Sprint

This reverts commit b1352d7bec.

Change-Id: Ifaa71b0cfc0879d881a8ab9d1cb54aa8255a74d2
2020-03-10 18:26:20 +03:00
RomanDesigner
e8af831705 [DNM] msm8226-common: selinux: set enforcing state back 2020-02-27 22:44:52 +03:00
Sujin Panicker
2a8ce17641
msm8226-common: media: Update opus omx codec ranking
Update opus omx codec ranking to give c2 implementation
higher priority.

Change-Id: Id6f1064483980e5fb9079ef19163ada083f6de60
2020-01-25 20:13:13 +03:00
ripee
eba5589d67
msm8226-common: sepolicy: Define sysfs_disk_stat 2020-01-25 20:10:19 +03:00
Demon Singur
2b78290510
msm8226-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
2020-01-25 20:06:29 +03:00
Tri Vo
f851456f2d
msm8226-common: Move device-specific entries to /vendor/ueventd.rc
Change-Id: I1e530edace4c5692bc1fa063eb731c6551e39da6
2020-01-25 20:00:56 +03:00
Abhishek Arpure
1daf0485a9
msm8226-common: Move ueventd.qcom.rc to /vendor
Change-Id: Iab2699bf26ca4402b835d1af8d4493f9b28595d9
2020-01-25 19:57:01 +03:00
RomanDesigner
e9bd7422fe
[DNM] msm8226-common: Remove charger's seclabel 2020-01-25 19:44:42 +03:00
Subbaraman Narayanamurthy
ba042ba0a3
msm8226-common: rootdir: add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.

Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
2020-01-25 19:43:50 +03:00
Subbaraman Narayanamurthy
87b6b7223e
msm8226-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.

Change-Id: Id1dc46f335087147b7d8cf674664c26f0b511de1
2020-01-25 19:42:59 +03:00
Subbaraman Narayanamurthy
a21254abcd
msm8226-common: rootdir: Update charger service path
charger binary is moved to /system/bin. Update it accordingly.

* also set seclabel

Change-Id: I78574238f9fc5ec028d10ab866676bfc0cd36370
2020-01-25 19:41:38 +03:00
RomanDesigner
327ee766cf
msm8226-common: Don't fix /dev/alarm permission in init
We are already fixed it in ueventd.rc, so this is not needed now

This reverts commit 88892c76f5.
2020-01-25 19:36:52 +03:00
Alex Naidis
12744f193e
msm8226-common: overlay: Add missing ephemeral resolver package definition
GMS needs to be considered a package which contains
an ephemeral resolver to match with vendor/google.

Change-Id: Iaa839d09b436ea3f5d7015169589d34c001a721e
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2020-01-24 16:38:09 +03:00
beanstown106
a409c8b423
msm8226-common: overlay: Add the google location provider 2020-01-24 16:37:15 +03:00
Kevin Tang
57aa215504
msm8226-common: gps: Sub milli sec part in the relevant NMEA Strings
NMEA Strings should introduce the sub milli sec part in the
relevant NMEA Strings for NHZ Sessions

Change-Id: I9bac4caa26e87741e5e82e16a8047af20ac8012b
CRs-Fixed: 951144
2020-01-24 16:22:29 +03:00
Steven Moreland
a08bb59d7b
msm8226-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I640a3f0e0839214523627bf0b59fd5ae9dd2c61c
2020-01-24 16:20:14 +03:00
dev-harsh1998
67be5b8d30
msm8226-common: rootdir: Assign gps group to camera
* fixes geotagging of photos

Change-Id: I79a62012d94b3e3ffb5f76aaa6d55707dc2b32c4
Signed-off-by: Ad!thya R <gh0strider.2k18.reborn@gmail.com>
2020-01-24 16:08:24 +03:00
RenanQueiroz
d3667b4a3b
msm8226-common: Add triple buffering back
* Fixes tearing
 * Put SF_START_GRAPHICS_ALLOCATOR_SERVICE into a prop

This partially reverts commit cc4e308a68fe57ccba2bd6032a1380bd1dd3c0ac.
2020-01-24 16:01:03 +03:00
Chia-I Wu
3bc809efd9
msm8226-common: switch to IMapper 2.1
Change-Id: I33be48cd40457ceabc24ff5e085fa8ddaa4670e4
2020-01-24 15:56:29 +03:00
Nicolas Geoffray
6275607c04 msm8226-common: Adjust pinned files following runtime module work.
Test: adb shell dumpsys pinner
Bug: 119868597

Change-Id: I44ef66fd56b6bb64b09976561b734a77b09331dd
2020-01-24 15:23:45 +03:00
RenanQueiroz
b4b610fc13 msm8226-common: Add Android Go changes brought in Q 2020-01-24 15:20:46 +03:00
DJABhipHop
34a11ac4cd WIP: Video recording fixed
Video recording fixed on the Tab 4, But there no audio at all & it only Snap can record videos
 ATM
2020-01-22 20:00:01 -05:00
Francescodario Cuzzocrea
1abb19916d msm8226-common: camera: add support for galaxy tab4 devices
Change-Id: I349ff302765a47d4b188d8deb0bfd88959da9c61
2020-01-22 11:55:10 -05:00
RomanDesigner
d602959b23
s3ve3g-common: Fix alarm permission in ueventd.rc 2020-01-19 18:25:49 +03:00
RomanDesigner
88892c76f5
msm8226-common: Fix /dev/alarm permission in init 2020-01-19 18:20:04 +03:00
RomanDesigner
0ea94cc42b
msm8226-common: Delete sepolicy contexts from init.qcom.rc 2020-01-06 16:51:52 +03:00
RomanDesigner
174ab1f5ea
msm8226-common: Add missing separator 2020-01-06 14:59:51 +03:00
RomanDesigner
9b49628cc2
msm8226-common: Add sepolicy type flag 2020-01-06 14:51:48 +03:00
RomanDesigner
631706483c
msm8226-common: sepolicy: Drop unknown sepolicy type 2020-01-05 18:41:48 +03:00
Arne Coucheron
8d18e24346
msm8226-common: manifest: Remove widevine instance
In Q, this looks like it's making the system wait for a
specific widevine service, which we don't have.
Removing this appears to make L3 start working again.

Change-Id: Ib410029519e1d3cb0f0f3a5aa553976b36bca8c3
2020-01-05 14:11:53 +03:00
Couchy
e536679885
msm8226-common: camera: add libnativewindow and libgui libs
These are now needed to access some native buffer headers.
2020-01-05 13:11:28 +03:00
Hai Shalom
7e57ce4586
msm8226-common: Uprev wifi supplicant to 1.2 in init.qcom.rc
Update manifest with hidl 1.2 required for WPA3 and OWE.

Bug: 112195778
Test: Functional tests
2020-01-05 13:08:36 +03:00
Kim Le
1fd4b63df2
msm8226-common: Move fstab to vendor/etc 2020-01-05 13:06:17 +03:00
RomanDesigner
58de415064
msm8226-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.

Signed-off-by: Joshua Primero <jprimero155@gmail.com>
2020-01-05 12:56:38 +03:00
John Stultz
802f5e740f
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: I81ac10edf5ddf9040852a4cb1f0f07c4ca16ef67
2020-01-05 12:50:04 +03:00
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