Commit graph

683 commits

Author SHA1 Message Date
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
Isaac Chen
1a6dae3d38 msm8937-common: sepolicy: Address camera daemon denial
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:21 +08:00
Isaac Chen
724868de36 msm8937-common: sepolicy: Organize for treble compatibility
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:20 +08:00
Isaac Chen
3e93f804b6 msm8937-common: sepolicy: Initial O denial
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:20 +08:00
Isaac Chen
d68a5f8ca5 msm8937-common: Enable Full treble
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:20 +08:00
Daniel Rosenberg
c5d6900f95 msm8937-common: Remove unnecessary sdcardfs prop
Test: Boot device. Ensure device boots using sdcardfs
2018-07-09 00:00:20 +08:00
Isaac Chen
51a8da8ec8 msm8937-common: rootdir: Cleanup 2018-07-09 00:00:20 +08:00
Michael Bestas
1cf86829f5 msm8937-common: Remove unused packages from privapp permissions 2018-07-09 00:00:20 +08:00
Bruno Martins
ff3af16c99 msm8937-common: Ship and enable atfwd daemon
* The atfwd daemon is responsible for handling AT command
   forward requests from modem and should be enabled
   for all targets except sda, apq, qcs.
2018-07-09 00:00:20 +08:00
Rashed Abdel-Tawab
80ce01536e msm8937-common: Pin modified qti_libpermissions.xml
* Modified to allow qcrilmsgtunnel to access android.hidl.manager

Change-Id: I3cd25e36cb4e397844724d249209b88a38bbfe9f
2018-07-09 00:00:20 +08:00
Isaac Chen
92ce0754bc msm8937-common: Remove unused services from QTI whitelist 2018-07-09 00:00:20 +08:00
Isaac Chen
18ed322ef3 msm8937-common: Cleanup GPS makefiles and configs
* Update configs from bardock 8.1.0 OPM1.171019.019
* Cleanup unused blobs
2018-07-09 00:00:20 +08:00
Isaac Chen
10d1134bef msm8937-common: Decommonize mixer_paths_qrd_sku1 2018-07-09 00:00:20 +08:00
ezio84
9270e5e3b3 msm8937-common: doze: use ExecutorService for listener registration
Replicate what Google did for SystemUI in this commit.
fabc743bcf

Registering a sensor seems to be an expensive operation,
and we do it on each screen-on event, so moving it to
an asynchronous task looks like a good idea anyway.

By moving all non-essential binder calls of the main thread or to the
next frame, we bring this down to 5ms, such that window animation
and Keyguard animation starts about at the same time.

The interesting part about the ExecutorService:
"Memory consistency effects: Actions in a thread prior to the submission
of a Runnable or Callable task to an ExecutorService happen-before any
actions taken by that task, which in turn happen-before the result is
retrieved via Future.get()."
(from https://developer.android.com/reference/java/util/concurrent/ExecutorService)

Change-Id: I4f37bb9a7dc9d7775d587d4ebd4b6619f3b77e81
2018-06-29 00:05:46 +08:00
Bruno Martins
3fcd6d5cc4 msm8937-common: Doze: Minor code simplification and clean up
Change-Id: Idff05f2626138c96dccd3ab4c26c4df1be40a606
2018-06-29 00:05:32 +08:00
Bruno Martins
f601f8c507 msm8937-common: Doze: Build with AAPT2
Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a
2018-06-29 00:05:16 +08:00
Bruno Martins
e2ae78bbd7 msm8937-common: Doze: Re-integrate into Settings
* Apply the default Oreo theme and inherit the layouts
   from Google for the Settings app, in order to keep
   UI consistency.

 * Get rid of SettingsDrawerActivity as it no longer fits in
   and include the back button in the action bar.

 * Kill the icon drawable not only because is a leftover,
   but also doesn't really serve any puropose in the new UI.

Change-Id: I53b6d3bb99d63852ba34d71e16ae99f05223569e
2018-06-29 00:05:04 +08:00
Bruno Martins
24a0226499 msm8937-common: Doze: Apply LineageOS rebrand
Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08
2018-06-29 00:04:52 +08:00
Isaac Chen
488a587dfd msm8937-common: doze: Import from msm8996-common
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-06-29 00:03:49 +08:00
Michael Bestas
4cdf8432fb msm8937-common: Set subsystem restart_level to "related" 2018-06-29 00:02:44 +08:00
Michael Bestas
002face0cc msm8937-common: Load system props on offline charger mode
* load_all_props does not exist
2018-06-29 00:02:44 +08:00
Wei Wang
3634a47c7b msm8937-common: time_daemon: use /persist to store offset to RTC
Also cleanup sepolicy files that was using /data/vendor as they are not
needed and /data is not ready by the time we start time_daemon

Bug: 62184939
Test: walleye boot with correct time in airplane mode
2018-06-29 00:02:44 +08:00
Paul Keith
8f03601238 msm8937-common: Reorder tetherable connection types
* In O, the default setting for mobile data always active was
  changed from off to on, meaning that when non-WiFi tethering
  is being attempted, more than one connection can be active
* Since the first active connection type in this overlay is used,
  reorder the values to get WiFi connections first, and then
  any type of mobile data connection, instead of vice versa
2018-06-29 00:02:44 +08:00
Bruno Martins
f26c7275e4 msm8937-common: Fix typo from CodeAurora in the QTI whitelist
* Let com.qualcomm.qcrilmsgtunnel break free
2018-06-29 00:02:44 +08:00
blunden
dcd3e6238e msm8937-common: Enforce privapp permissions whitelist 2018-06-29 00:02:44 +08:00
dianlujitao
cbffbc57ac msm8937-common: Build LiveDisplay HAL 2018-06-29 00:02:44 +08:00
rago
cce360b467 msm8937-common: Set voice call volume steps to 7
Bug: 28426597
2018-06-29 00:02:44 +08:00
Jean-Michel Trivi
a4f30d8aa1 msm8937-common: Media volume: from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
2018-06-29 00:02:44 +08:00
LuK1337
c7a441534a msm8937-common: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.
2018-06-29 00:02:44 +08:00
Bruno Martins
7d8256a304 msm8937-common: Increase cached app limit
* Frameworks support was recently added
2018-06-29 00:02:44 +08:00
oshmoun
852bf8a7c9 msm8937-common: Add public.libraries.txt
Android needs this text file to know what libraries are allowed to be loaded by apps directly.
For now, add:
libOpenCL.so to the list, in order to get OpenCL to function properly.
adsprpc related libraries, since they were also declared public in stock.

Change-Id: I15ef7a7ab7d1f1a0cc6b484cd2ca9993f40de23b
2018-06-29 00:02:44 +08:00
Michael Bestas
7fcaa86e0f msm8937-common: Add powerhint.xml
* Based on LA.UM.6.6.r1-07400-89xx.0, adapted for the new format.
 * Required by perf_hint in libqti-perfd-client.so.

Change-Id: Ief38dc242a92de05305452634fe2318e4de42f90
2018-06-29 00:02:44 +08:00
Bruno Martins
b6653e608a msm8937-common: Remove wificond from device makefiles
* This package is being built globally
2018-06-29 00:02:44 +08:00