Commit Graph

339 Commits

Author SHA1 Message Date
TARKZiM
96b176c3ba kitakami-common: Disable PPDaemon & Livedisplay legacymm
* Causing deepsleep issues.
2021-04-21 14:40:28 -04:00
Bernhard Thoben
d4b37e32a8 kitakami-common: Removed deprecated wifi driver.
Change-Id: Idbc65220952e791f882b00502bd8af7178c22098
2021-04-21 14:39:36 -04:00
Bernhard Thoben
5370499f1f kitakami-common: rootdir: Removed deprecated entries.
Change-Id: I95243a9541ecac080e4568f9f438aba6a2940b04
2021-04-21 14:39:24 -04:00
Bernhard Thoben
4045556346 kitakami-common: Fixed P2P crash.
Change-Id: Ie7535c1d1e522e8b819ba298c136604426252543
2021-04-21 14:39:08 -04:00
Bernhard Thoben
ae56d3c6d8 kitakami-common: Removed deprecated entry "p2p_supplicant.conf"
Change-Id: I2d4d70f87432325a133f13b64024d3675e2220dc
2021-04-21 14:38:56 -04:00
Joel16
cb0396878a kitakami-common: Remove unused dependencies 2021-04-21 14:38:44 -04:00
Jia Cheng She
20199daa9a
Merge pull request #6 from joel16/lineage-17.1
Back-port a couple changes and fixes to 17.1
2020-11-11 14:04:53 +08:00
Joel16
2a1ea1e35c Revert "kitakami-common: Remove libhwbinder/libhidltransport deps"
This reverts commit b9db9dabbb.
2020-11-11 01:03:30 -05:00
pavlaras
2872d109cf kitakami-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.
log error:
E/audio_hw_extn(704): audio_extn_perf_lock_acquire: Failed to acquire perf lock, err: -1
E/audio_hw_extn(704): audio_extn_perf_lock_release: Perf lock release error

Change-Id: Ie54202c0a82741f139e72a10019d520768766eb7
2020-11-06 22:33:15 -05:00
Steven Moreland
b9db9dabbb kitakami-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I640a3f0e0839214523627bf0b59fd5ae9dd2c61c
2020-11-06 21:31:00 -05:00
TARKZiM
0abacc1101 kitakami-common: fingerprint: Proper implement 2.1 functions
* Rename it to 2.1 properly.
2020-11-06 21:28:57 -05:00
Bernhard Thoben
a25b1ef08c kitakami-common: sepolicy: Added more camera policies.
Change-Id: I7a1e1a3a02382488c416236cbb8ce04ee7e6ded9
2020-11-03 19:47:46 +08:00
TARKZiM
a099e6e160 Revert "kitakami-common: camera: defer start_preview until surface is valid"
This reverts commit a4aa4dbe75.
2020-10-30 10:41:59 +08:00
TARKZiM
ec847f795d kitakami-common: overlay: Update overlays for Snap
* Disabled open_legacy.
* Disabled Camera API v2.
* Disabled preview restart.
* Set default preview size to 720P.
2020-10-26 10:15:22 +08:00
razorloves
06a8bc88c6 kitakami-common: Snap: Set the default video quality to 1080p
Change-Id: I74d4656f13b2d174a01606f9b6185e5698d54410
2020-10-26 10:15:22 +08:00
TARKZiM
d074c8bf0f kitakami-common: camera: Directly open camera3 device
* Open camera2 device causing errors.
2020-10-26 02:17:40 +08:00
TARKZiM
4c15483b97 kitakami-common: rootdir: Disable iddd for now 2020-10-26 02:17:40 +08:00
TARKZiM
0540092ab9 kitakami-common: rootdir: Remove service overrides 2020-10-26 02:17:40 +08:00
TARKZiM
24c28e308b kitikami-common: Revert IMS changes 2020-09-18 13:47:05 +08:00
TARKZiM
5ffe4abd93 kitakami-common: libshim: Import hima's camera shim functions
* From https://github.com/AICP/device_htc_hima/tree/q10.0
2020-08-26 16:28:54 +08:00
TARKZiM
7e7ae0bd36 kitakami-common: sepolicy: Fix ims policies for building 2020-08-26 11:31:33 +08:00
TARKZiM
27d3e852ab kitakami-common: libshim: Add missing symbols for imsvt shim 2020-08-21 11:33:42 +08:00
TARKZiM
ed4e11b3cf kitakami-common: sepolicy: Add more ims policies 2020-08-19 09:53:46 +08:00
TARKZiM
f96a8d1ae2 kitakami-common: sepolicy: Fix wrong paths 2020-08-17 09:48:23 +08:00
TARKZiM
2445d294c5 kitakami-common: radio: Add missing RIL/IMS components 2020-08-15 20:54:02 +08:00
Ketut P. Kumajaya
4523f4da91 kitakami-common: Add boringssl shim for IMS
* Adapted to new O shim flag (TARGET_LD_SHIM_LIBS)
* Rename: libshim_boringssl ==> libshims_boringssl

Co-authored-by: Louis Popi <theh2o64@gmail.com>
Signed-off-by: Ad!thya R <gh0strider.2k18.reborn@gmail.com>
2020-08-14 16:49:01 +08:00
Adithya R
3292d211ee kitakami-common: libshim: Fix IMS shim build for Q 2020-08-14 16:39:50 +08:00
Mukul
fd4433cd68 kitakami-common: Kang IMS stack from Oneplus2
- Bring back VoLTE support using https://github.com/eErenYeager/ims_apk/
2020-08-14 16:38:12 +08:00
TARKZiM
6f3a75d1d9 kitakami-common: sepolicy: Allow light hal to access sysfs nodes 2020-08-13 09:53:52 +08:00
TARKZiM
2949861d08 kitakami-common: light: Switch back to classic HAL
* Trying to fix notification led blinking, will re-write
  our HIDL HAL in the future.

* Move led permissions to on init before HIDL service starts.
2020-08-12 16:19:15 +08:00
TARKZiM
f72b37b65f Revert "kitakami-common: light: Always apply RGB brightness scaling"
This reverts commit 13abfb0a5e.
2020-08-12 12:05:45 +08:00
TARKZiM
e751152c9d kitakami-common: overlay: Update LED capabilities for Q
* Fixes notification LED.
2020-08-12 10:25:20 +08:00
TARKZiM
5b9dd451dd kitakami-common: sepolicy: Allow zygote to r/w foreground tasks
* avc: denied { open } for path="/dev/stune/foreground/tasks" dev="tmpfs"
  ino=672 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
2020-08-11 09:57:45 +08:00
oshmoun
de4499afd2 kitakami-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
2020-08-10 17:08:27 +08:00
Bruno Martins
5898b4624c kitakami-common: Drop mediaextractor seccomp policy
These syscalls are now allowed by default.

Change-Id: Ide9e29d5333e427baaabcbaa03d6b3db77948f17
2020-08-10 16:27:50 +08:00
Christian Oder
0c0be27d0a kitakami-common: sepolicy: Allow vold to read the tee_prop
This fixes Encryption on (at least) tone devices
2020-08-10 15:28:59 +08:00
TARKZiM
995525cda0 kitakami-common: sepolicy: Address offline charge denials 2020-08-10 12:34:44 +08:00
Subbaraman Narayanamurthy
1577377b52 kitakami-common: 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-08-10 12:34:44 +08:00
Subbaraman Narayanamurthy
839426c5b0 kitakami-common: Update charger service path and label
charger binary is moved to /system/bin. Also the label got changed
to charger. Update it accordingly.

Change-Id: I78574238f9fc5ec028d10ab866676bfc0cd36370
2020-08-10 12:34:33 +08:00
Chaosmaster
7759d19774 kitakami-common: Update graphicbuffer shim
P: GraphicBuffer::lock(uint32_t inUsage, void** vaddr);
Q: GraphicBuffer::lock(uint32_t inUsage, void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
we would need pass outBytesPerPixel and outBytesPerStride since the camera wont be able to load and cause an nullptr reference

Signed-off-by: Kai Jones <joneskai626@gmail.com>
Change-Id: I0b2acd4ee03ecb0aac0416637b87220437352b4d
2020-08-06 15:18:36 +08:00
TARKZiM
4524a888eb kitakami-common: sepolicy: Address camera and secd denials 2020-08-05 09:46:05 +08:00
TARKZiM
a4aa4dbe75 Revert "Revert "kitakami-common: camera: defer start_preview until surface is valid""
This reverts commit 64c98e5b7a.
2020-08-04 17:36:18 +08:00
TARKZiM
548fc050b5 Revert "kitakami-common: libshim: Add more shims for camera"
This reverts commit 6478449f70.
2020-08-04 16:05:05 +08:00
TARKZiM
5a39441ff4 kitakami-common: Remove sepolicy-minimal 2020-08-04 15:50:02 +08:00
TARKZiM
64c98e5b7a Revert "kitakami-common: camera: defer start_preview until surface is valid"
This reverts commit d24333ef88.
2020-08-04 09:48:55 +08:00
Simon Shields
6bc32fc50e kitakami-common: camera: add missing libs for headers
Change-Id: If38b2da4fe5b8dddba7e202165f00b647e614453
2020-08-03 20:06:51 +08:00
Benoît Laniel
d24333ef88 kitakami-common: camera: defer start_preview until surface is valid
Some apps like Snap start preview very early to setup camera while initializing
UI. It then calls setPreviewDisplay (set_preview_window) to define the surface
used for preview.

According to https://developer.android.com/reference/android/hardware/Camera.html#setPreviewDisplay%28android.view.SurfaceHolder%29
"This allows camera setup and surface creation to happen in parallel, saving time."

But https://developer.android.com/reference/android/hardware/Camera.html#startPreview%28%29
"Preview will not actually start until a surface is supplied with setPreviewDisplay(SurfaceHolder) or setPreviewTexture(SurfaceTexture)."

However, hero camera hal starts preview with an internal buffer when surface
is not valid / null.

[CAM_ID(0)][]-WARN(setPreviewWindow[204]):Preview window is NULL, create internal buffer for preview
[CAM_ID(0)][]-INFO(startPreview[519]):setBuffersThread is run

On the next set_preview_window call (the one defining the surface), camera hal
restarts preview since it is already running using the internal buffer.

[CAM_ID(0)][]-WRN(setPreviewWindow[187]):Preview is started, we forcely re-start preview

Problem with this is that it deadlocks quite often. It loops here

[CAM_ID(0)][]-INFO(m_mainThreadQSetup3AA[1078]):m_flagThreadStop(1)

Let's handle the situation in the wrapper so no restart is done by the hal.

Change-Id: I762af781e5af96b52407387aa9ae67874a8ab8b6
2020-08-03 19:59:58 +08:00
TARKZiM
d36a3ef993 kitakami-common: camera: Disable face detection 2020-08-03 11:59:02 +08:00
TARKZiM
3ee9f64abf kitakami-common: Build camera wrapper 2020-08-03 11:39:57 +08:00
TARKZiM
2178ba8f8f kitakami-common: Rename vendor camera hal
* For wrapper.
2020-08-03 11:39:28 +08:00