Commit graph

715 commits

Author SHA1 Message Date
LuK1337
9ec976d022 msm8937-common: Handle moved blobs in update-sha1sums.py script
Change-Id: Iccab8c8620c7ff680768aac2d9cbf5b5067af8d7
2018-08-23 16:42:29 +02:00
LuK1337
a4041980ad msm8937-common: Add script to update sha1sums of kanged blobs
Change-Id: Id2e8cfb8d3b6f65f69c91a89bacd615fdcc45753
2018-08-23 16:42:29 +02:00
Isaac Chen
3978128913 msm8937-common: Include bdroid header path
* Missed in commit 9731cbf799

Change-Id: Ia8a0a5a958bb4a1c90070f2b98c517a371f40f80
2018-08-23 16:42:28 +02:00
Jeff Vander Stoep
1a5154f087 msm8937-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 8937 targets
Change-Id: Ic1bade0bf3c234aff24664492b97e05d15d3e8de
2018-08-23 16:42:28 +02:00
LuK1337
ca0f8dc480 msm8937-common: Restart HIDL camera provider after decryption
* HIDL camera provider starts too early for our 7.0 camera HAL.

Change-Id: I7baded6d877bab724ab105ad7eb78eea7ecbc5d4
2018-08-23 16:42:27 +02:00
Isaac Chen
f5022f9278 msm8937-common: Move hci_common_init to oem_2901 group
Change-Id: Idc41def813f8ceaf45f67701385c7a496871b396
2018-08-23 16:42:26 +02:00
Ritesh Harjani
87e8679e98 msm8937-common: Add AID_RFS, and AID_RFS_SHARED to config.fs
Change-Id: I4fb6739f63a1abfbd7737d29a636b6cf4bc72e3b
2018-08-23 16:40:27 +02:00
Wei Wang
537037e27c msm8937-common: enable zram on boot_complete
This help to save ~50ms in boot time and bootanim shown time

Bug: 62957152
Test: marlin boot and swap look normal after boot
Change-Id: Icabec31aa677bd606ca8735fe9d2acb54e88bd75
2018-08-08 10:32:50 +02:00
Remilia Scarlet
e25b0ab393 msm8937-common: rootdir: Purge zcache
It's way outdated and being replaced by zswap

Signed-off-by: Remilia Scarlet <remilia.1505@gmail.com>
2018-08-05 18:24:39 +02:00
Remilia Scarlet
a3c26ff2a1 msm8937-common: init: Set zram size according to RAM size 2018-08-05 18:23:35 +02:00
karthick111
079e05c76f Revert "msm8937-common: post-boot: Set read_ahead_kb values"
This reverts commit 66440068ec.
2018-08-05 18:21:04 +02:00
karthick111
9731cbf799 msm8937-common: Remove fragments
* Also cleanup unnecessary configs
2018-08-03 22:32:00 +02:00
Shashi Shekar Shankar
66440068ec msm8937-common: post-boot: Set read_ahead_kb values
Set read_ahead_kb values as per device RAM size.

CRs-Fixed: 2210107

Change-Id: I3a937b49d8fbae8b9ae3ed1f8c7762e0448a36aa
2018-08-01 18:23:37 +02:00
Vijay Dandiga
3bf8f219e8 msm8937-common: post_boot: Tune/configure ZRAM memory parameters
1) Set zRam size to 1GB for 3GB and above targets
Increasing the swappiness and zRam size improves zRam savings and app concurrency.

2) Corrected the vmpressure_file_min value.

CRs-Fixed: 2176961

Change-Id: I4eb71110f35f67b984bea4106d6cec3c2586d024
2018-08-01 18:23:37 +02:00
karthick111
c8c77b1c95 msm8937-common: Cleanup config.fs 2018-08-01 07:01:14 +02:00
Vijay Ganti
a0e515a7b9 msm8937-common: perflock: Changes in the initialization of perf lock
Change the order of initializing perflock and add
property to trigger post boot stage completed.
2018-07-31 17:38:01 +02:00
Isaac Chen
b072417101 Revert "msm8937-common: Cleanup power script"
This reverts commit 52aa1b7292.
2018-07-30 17:58:07 +02:00
TheScarastic
87977f631c msm8937-common: Regenerate VNDK-SP 2018-07-24 15:51:55 +02:00
Michael Bestas
293be5ace8 msm8937-common: Set TARGET_PROVIDES_QTI_TELEPHONY_JAR 2018-07-21 00:01:25 +08:00
Danny Baumann
bf53880235 msm8937-common: Update call recording overlay. 2018-07-21 00:01:25 +08:00
Wei Wang
1b6d1bd174 msm8937-common: Use mke2fs to create ext4 images
Set TARGET_USES_MKE2FS := true to use new EXT4 tool chain

Bug: 62421233
2018-07-21 00:01:25 +08:00
Isaac Chen
09316a5599 msm8937-common: proprietary-files: Update blobs from tissot
* From tissot 8.1.0 OPM1.171019.019
2018-07-16 00:00:08 +08:00
Isaac Chen
8e8e50af73 msm8937-common: Commonize media.camera.ts.monotonic prop 2018-07-13 00:00:09 +08:00
Bruno Martins
62b19a845a msm8937-common: overlay: Remove deprecated Snap config
* This was ripped out of Snap
2018-07-12 00:00:06 +08:00
Michael Bestas
7285fa9928 msm8937-common: Update networkAttributes and radioAttributes from marlin 2018-07-12 00:00:06 +08:00
LuK1337
d257a1d6c6 msm8937-common: overlay: Remove bnep\\d from tetherable BT interfaces 2018-07-12 00:00:06 +08:00
Bruno Martins
0a30e12d54 msm8937-common: Use sdFAT for exFAT support 2018-07-12 00:00:06 +08:00
Mahantesh Sanakall
f2a7d883a0 msm8937-common: Enable quota feature for userdata partition.
This will enable quota feature for the data partition.
2018-07-12 00:00:06 +08:00
Sashidhar Ganiga
50aa3a00fe msm8937-common: Enable noatime mount option for CTS failure
Enable noatime mount option for userdata, cache and
persist partitions.
2018-07-12 00:00:06 +08:00
Bruno Martins
82c5ce1ade msm8937-common: Simply copy prebuilt .jar files
* No need to have them as build targets.
2018-07-12 00:00:06 +08:00
Bruno Martins
ee1fd01107 msm8937-common: Drop USB HAL service
* None of the Xiaomi 8937 devices have support for dual role type-C,
   therefore there's no need to build it.
2018-07-12 00:00:06 +08:00
Isaac Chen
3e5f6f88db msm8937-common: Update media configs from Nokia 6 2018-07-10 00:00:03 +08:00
Isaac Chen
be4f1986d7 msm8937-common: Cleanup radio props 2018-07-09 00:00:47 +08:00
TheScarastic
c92c41b3d6 msm8937-common: Add persist.sys.usb.config.extra
* Fixes USB tethering.
2018-07-09 00:00:47 +08:00
Isaac Chen
d5fe8be114 msm8937-common: sepolicy: Address more denials
* Also arrange sepolicies
2018-07-09 00:00:47 +08:00
Isaac Chen
28b0c3173b msm8937-common: proprietary-files: Update BT and WiFi blobs to O-MR1
* From : vince 8.1.0 OPM1.171019.019
2018-07-09 00:00:47 +08:00
Michael Bestas
67d29484d5 msm8937-common: Switch to QTI Bluetooth impl
* Fixes wrong BT MAC address and slow turn on when
  booting with BT turned off
2018-07-09 00:00:47 +08:00
Rashed Abdel-Tawab
21cff78bb0 msm8937-common: Move qcamerasvr to main and restart on service restarts
* Move qcamerasvr to main to it restarts on decryption
 * Also trigger a qcamerasvr restart when media or all services restart,
   since it needs to be properly restarted with cameraservice
2018-07-09 00:00:47 +08:00
Alex Yustasov
64948b0418 msm8937-common: biometrics: Fix random crashes
Add a slight delay before passing authenticator id to frameworks.
2018-07-09 00:00:47 +08:00
Bruno Martins
46fe437546 msm8937-common: Drop deprecated OpenGLRenderer props
* In Android 8.1 and later, only the ro.zygote.disable_gl_preload
   property still applies. All other properties have been removed.
   Reference: https://source.android.com/devices/graphics/renderer
2018-07-09 00:00:47 +08:00
Ethan Chen
01bd83cf4c msm8937-common: rootdir: Move mm-pp-dpps to hal class 2018-07-09 00:00:47 +08:00
Michael Bestas
0f9e6e3a3a Revert "msm8937-common: Grant netmgrd proper unix perms"
* No longer needed

Change-Id: I7ad8217405011b67d5fc27a83c27b57d8fc6b444
2018-07-09 00:00:47 +08:00
Michael Bestas
95f7c5508d Revert "msm8937-common: Grant rmt_storage proper unix perms"
* No longer needed

Change-Id: Idcf1c5b9ccf4d42c0ec6b22f32a5813ba2b497a5
2018-07-09 00:00:47 +08:00
Bruno Martins
848ee28b5a msm8937-common: sepolicy: Allow rild to set radio props 2018-07-09 00:00:47 +08:00
Michael Bestas
2858a9103a msm8937-common: Get rid of recovery-only fstab
* Mounting /system and /vendor partitions is handled in kernel now,
   however removing the entries from fstab caused issues building
   the OTA. The workaround was to have a separate fstab, but turns out
   that simply setting the recoveryonly flag does the trick because
   those are then ignored during a normal Android boot.
2018-07-09 00:00:47 +08:00
Rashed Abdel-Tawab
b93a294b74 msm8937-common: Build QTI HIDL power 1.0 HAL 2018-07-09 00:00:45 +08:00
Bruno Martins
d761cec8e3 msm8937-common: sepolicy: Add debug rules for rmt_storage
Change-Id: Ie0c94ac657127b1653afbbb82b06789dfe34032d
2018-07-09 00:00:21 +08:00
Martijn Coenen
a85558ea52 msm8937-common: Add selinux/private/service_contexts.
This makes sure that the remaining binder services
for radio end up in plat_service_contexts.

That in turn allows us to enforce that servicemanager
will only serve services from plat_service_contexts
on FULL_TREBLE devices.

Bug: 36866029
Test: boot, verify radio services still work
Change-Id: Ib67b3a03e5599484c5c4fb27a0f323a37dd51636
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:21 +08:00
Isaac Chen
5478c86bac msm8937-common: sepolicy: Address keylayout denial
05-30 07:55:45.151   987   987 W InputReader: type=1400 audit(0.0:10): avc: denied { read } for name="gf3208.idc" dev="mmcblk0p48" ino=1329 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0
05-30 07:55:45.151   987   987 W InputReader: type=1400 audit(0.0:11): avc: denied { read } for name="gf3208.kl" dev="mmcblk0p48" ino=1333 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0
05-30 07:55:45.199   987   987 W InputReader: type=1400 audit(0.0:12): avc: denied { read } for name="gpio-keys.kl" dev="mmcblk0p48" ino=1334 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0
05-30 07:55:45.299   987   987 W InputReader: type=1400 audit(0.0:13): avc: denied { read } for name="ft5x06_720p.kl" dev="mmcblk0p48" ino=1332 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0

Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:21 +08:00
Isaac Chen
57f366a761 msm8937-common: sepolicy: Address cas HAL denial
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:21 +08:00