Commit graph

741 commits

Author SHA1 Message Date
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
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