Commit graph

396 commits

Author SHA1 Message Date
matteo0026
4c23ca52a7 msm8226-common: camera: fixes for matisse/millet devices
* They don't support ZSL and HFR, so disable them (it generated dark slugghish back camera)
* Set different required preview sizes for photos and videos
* Remove exposure hack (it doesn't work)
* Fix indentations and make code more readable by putting the settings of s3ve3g, ms01 and kmini3g all together and matisse and millet in another if
* Add support for matisse3gjv, matissewifiue, milletwifiue
2020-09-23 21:32:21 +02:00
Kevin F. Haggerty
a7bb19fe64 Revert "klte-common: HAXX: "Fix" race condition in init"
* It seems that this old "fix" for G900V RIL actually makes the Q
  "opengapps issue", normally only evident in encrypted legacy devices
  with secure startup, more pronounced. In such devices, your ability
  to progress beyond the boot animation to an actual homescreen after
  entering an unlock PIN is completely at chance, but with much better
  chances after an update (dexopting, maybe?). Only with this HAXX in
  place, the issue happens with unencrypted devices.
* A nice side effect will be that all klte* devices will boot much
  faster.
* The root cause of this is some kind of timeout, but the logs are
  seemingly worthless.

This reverts commit 31509201c1dc83cb4db5aa759f042459e87878b4.

Change-Id: Iaf2a19a3ab7f8f8cf2f0add1bd6e3b87d06310a7
2020-09-11 23:28:17 +02:00
matteo0026
3c9767996b msm8226-common: add/edit some entries in manifest.xml
* W hwservicemanager: getTransport: Cannot find entry android.hardware.audio@2.0::IDevicesFactory/msd in either framework or device manifest.
* W hwservicemanager: getTransport: Cannot find entry android.hardware.camera.provider@2.4::ICameraProvider/external/0 in either framework or device manifest.
* W hwservicemanager: getTransport: Cannot find entry android.hardware.health@2.0::IHealth/default in either framework or device manifest.
2020-09-11 22:59:18 +02:00
Teledurak
9f326a0394 msm8226-common: disable Go optimizations
Change-Id: I20cf138f2f9497ed55c295846df9bd0a3bebd226
2020-07-23 22:30:27 +03:00
RomanDesigner
71ae2a9336 msm8226-common: try to fix offline charging 2020-05-17 20:50:41 +03:00
RomanDesigner
dde4a9b557 msm8226-common: correct charger path
With Android 10, Google introduced SAR (system-as-root), so now /system is rootdir.
Charger ignores it, so system will be in /system/system
2020-05-17 14:41:33 +03:00
matteo0026
b0b25241c6 msm8226-common: Transition to consumerir HIDL hal 2020-05-16 16:22:24 +02:00
matteo0026
a714638a5a msm8226-common: make msm8226 init files 2020-05-16 16:22:04 +02:00
RomanDesigner
4cc050c158 msm8226-common: decrease heap to 256MB 2020-05-08 10:59:06 +03:00
RomanDesigner
d483b33185 msm8226-common: Don't use Go defaults
* We can't set custom heap size in msm8226.mk because of it
* Set heap size to 384 MB to solve crashing apps problem
2020-05-07 14:10:44 +03:00
Roman Rihter
72b78959d0 msm8226-common: fix sepolicy build error 2020-04-23 12:19:36 +03:00
Roman Rihter
ff25828671 msm8226-common: use 512MB Go config instead of default
For increasing performance
2020-04-22 23:00:07 +03:00
Wei Wang
e0e6614e51 msm8226-common: skip wait for hwservicemanager
Wait for hwservicemanager is no longer needed
after this CL:
https://android-review.googlesource.com/#/c/356043/

Bug: 36399429
Test: nash boot

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: I12c5adab70dc519b5e834eb35262ff73d214978b
2020-04-22 22:49:04 +03:00
Wei Wang
545fca6a42 msm8226-common: Make sure graphics HAL services started before mounting data
Bug: 36409349

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: I1df0bd7878c7d67d3695ad1644c6b928cee0e323
2020-04-22 22:47:50 +03:00
Chia-I Wu
20c862831e nash: Start hwservicemanager early
Test: builds and boots
Bug: 35173320

Change-Id: I9f060904174103a6a145a83cbb4c100728ff6df6
2020-04-22 22:44:57 +03:00
Wei Wang
673882b27c msm8226-common: start bootanim before mounting data partition (init part)
Bug: 30118894

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: If84764e3ce51f467b2dfa867ce28e1e396422d45
2020-04-22 22:42:10 +03:00
Roman Rihter
6dfa508910 msm8226-common: sepolicy bringup for Q (FINAL PART) 2020-04-22 22:11:59 +03:00
DJABhipHop
6bb52d5a0c msm8226-common: sepolicy: Fix even more errors
WiFi, Audio & Bluetooth now work 100%!!!!
2020-03-13 12:04:11 -04:00
RomanDesigner
a0c7e49b26 msm8226-common: sepolicy: Fix more errors 2020-03-11 11:11:11 +03:00
RomanDesigner
ec3ab6930e Fix sepolicy errors 2020-03-11 11:03:44 +03:00
RomanDesigner
6ab05867f2 msm8226-common: Allow init to mount firmware_file dirs 2020-03-11 10:57:11 +03:00
RomanDesigner
82721325fa msm8226-common: Remove non-needed allows 2020-03-11 10:47:13 +03:00
RomanDesigner
d925b0625c msm8226-common: Remake Android Go optimizations 2020-03-10 18:58:14 +03:00
RomanDesigner
2f79cb53e0 Merge branch 'lineage-17.1' of github.com:S3NEO/android_device_samsung_msm8226-common into lineage-17.1 2020-03-10 18:33:25 +03:00
Mohammad Afaneh
1907fef93b [SQUASH] msm8226-common: bringup sepolicy to Q 2020-03-10 18:31:46 +03:00
RomanDesigner
adf16e831a msm8226-common: sepolicy: Add charger policy
* This is a copy of sepolicy/common/healthd.te file
2020-03-10 18:26:20 +03:00
Arian
5756d067a1 msm8226-common: rootdir: Set usb to mtp on charger
* Otherwise adb will try to start and crash the device
  while offmode charging at a computer.

Change-Id: I4752de69b765c4528cedf0ce58092a882bc584a3
2020-03-10 18:26:20 +03:00
RomanDesigner
3b9c1d533f msm8226-common: init: add charger seclabel back 2020-03-10 18:26:20 +03:00
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
Roman Rihter
fb891a69fd
msm8226-common: Don't include go_defaults.mk
It breaks build, and ROMs with this shit are not booting
2020-03-02 14:59:34 +03:00
RomanDesigner
b4bf3e8edd msm8226-common: sepolicy: Add charger policy
* This is a copy of sepolicy/common/healthd.te file
2020-02-29 18:51:49 +03:00
LuK1337
d299af582b msm8226-common: Inherit Android Go configuration product
Signed-off-by: iKeramat <iKeramat80@gmail.com>
Change-Id: I5ec53a3502be28559146dbcc8ab1af850b732e8b
2020-02-29 18:46:02 +03:00
Arian
c111833eb0 msm8226-common: rootdir: Set usb to mtp on charger
* Otherwise adb will try to start and crash the device
  while offmode charging at a computer.

Change-Id: I4752de69b765c4528cedf0ce58092a882bc584a3
2020-02-27 23:32:58 +03:00
RomanDesigner
28d885ca53 msm8226-common: init: add charger seclabel back 2020-02-27 23:31:00 +03:00
Paul Keith
4fce9c5328 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-02-27 23:18:31 +03:00
Arne Coucheron
ff6ff0911a msm8226-common: sepolicy: Resolve mediaprovider denial on external storage
Change-Id: I64ea2cef7c4dfad3f9ecbfb80727fc3a45e29ef8
2020-02-27 23:08:13 +03:00
Arne Coucheron
a25985218a msm8226-common: sepolicy: Fix wifi.active.interface denial
selinux: avc:  denied  { set } for property=wifi.active.interface pid=253 uid=0 gid=1010 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0

Change-Id: Ic06c5b6eb64a01ec5687e0a2dc778455ae0a7b59
2020-02-27 23:06:16 +03:00
RomanDesigner
6ca1b24cde msm8226-common: sepolicy: base bringup to Q 2020-02-27 22:48:32 +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