From 05fdc64679ce5e91a721a6482ed8773f5993d1d6 Mon Sep 17 00:00:00 2001 From: ivanmeler Date: Mon, 8 May 2023 22:30:09 +0000 Subject: [PATCH] Update readme --- README.md | 4 +-- patches/README.md | 3 -- patches/bionic.patch | 79 -------------------------------------------- 3 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 patches/README.md delete mode 100644 patches/bionic.patch diff --git a/README.md b/README.md index 45c397a..5ebc588 100644 --- a/README.md +++ b/README.md @@ -64,11 +64,9 @@ You may obtain a copy of the License at [https://www.apache.org/licenses/LICENSE ## TODO - check init for missing perms and stuff which might help fix remaining issues - consider libbt-vendor from stock/or check fw/config for stability -- camera lib should be edited for pthread, for now use bionic patch, also look into shim we use -- tethering/dual role doesnt forward internet +- tethering/dual role doesnt forward internet, probably just overlays - imporove audio - use more s7 blobs -- check init - notif led (might need init.rc changes) - nfc - perf tuning diff --git a/patches/README.md b/patches/README.md deleted file mode 100644 index e69653b..0000000 --- a/patches/README.md +++ /dev/null @@ -1,3 +0,0 @@ -bionic patch used in development -to be replaced with something like this -https://review.lineageos.org/c/LineageOS/android_device_xiaomi_msm8996-common/+/224764 diff --git a/patches/bionic.patch b/patches/bionic.patch deleted file mode 100644 index c8691ed..0000000 --- a/patches/bionic.patch +++ /dev/null @@ -1,79 +0,0 @@ -From f83f0ebb7708de5770c672873ae7dea5d87c263f Mon Sep 17 00:00:00 2001 -From: ivanmeler -Date: Fri, 5 May 2023 13:09:28 +0000 -Subject: [PATCH] bionic haxx - -Change-Id: Idea2dd24f80940121703421697f43c04626a945c ---- - libc/bionic/pthread_mutex.cpp | 20 ++++++++++---------- - 1 file changed, 10 insertions(+), 10 deletions(-) - -diff --git a/libc/bionic/pthread_mutex.cpp b/libc/bionic/pthread_mutex.cpp -index a15e981..94fe18b 100644 ---- a/libc/bionic/pthread_mutex.cpp -+++ b/libc/bionic/pthread_mutex.cpp -@@ -833,9 +833,9 @@ int pthread_mutex_lock(pthread_mutex_t* mutex_interface) { - } - return PIMutexTimedLock(mutex->ToPIMutex(), false, nullptr); - } -- if (__predict_false(IsMutexDestroyed(old_state))) { -+ /*if (__predict_false(IsMutexDestroyed(old_state))) { - return HandleUsingDestroyedMutex(mutex_interface, __FUNCTION__); -- } -+ }*/ - return NonPI::MutexLockWithTimeout(mutex, false, nullptr); - } - -@@ -862,9 +862,9 @@ int pthread_mutex_unlock(pthread_mutex_t* mutex_interface) { - if (old_state == PI_MUTEX_STATE) { - return PIMutexUnlock(mutex->ToPIMutex()); - } -- if (__predict_false(IsMutexDestroyed(old_state))) { -+ /*if (__predict_false(IsMutexDestroyed(old_state))) { - return HandleUsingDestroyedMutex(mutex_interface, __FUNCTION__); -- } -+ }*/ - - // Do we already own this recursive or error-check mutex? - pid_t tid = __get_thread()->tid; -@@ -911,9 +911,9 @@ int pthread_mutex_trylock(pthread_mutex_t* mutex_interface) { - if (old_state == PI_MUTEX_STATE) { - return PIMutexTryLock(mutex->ToPIMutex()); - } -- if (__predict_false(IsMutexDestroyed(old_state))) { -+ /*if (__predict_false(IsMutexDestroyed(old_state))) { - return HandleUsingDestroyedMutex(mutex_interface, __FUNCTION__); -- } -+ }*/ - - // Do we already own this recursive or error-check mutex? - pid_t tid = __get_thread()->tid; -@@ -997,11 +997,11 @@ int pthread_mutex_clocklock(pthread_mutex_t* mutex_interface, clockid_t clock, - case CLOCK_REALTIME: - return __pthread_mutex_timedlock(mutex_interface, true, abs_timeout, __FUNCTION__); - default: { -- pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); -+ /*pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); - uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); - if (IsMutexDestroyed(old_state)) { - return HandleUsingDestroyedMutex(mutex_interface, __FUNCTION__); -- } -+ }*/ - return EINVAL; - } - } -@@ -1010,9 +1010,9 @@ int pthread_mutex_clocklock(pthread_mutex_t* mutex_interface, clockid_t clock, - int pthread_mutex_destroy(pthread_mutex_t* mutex_interface) { - pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); - uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); -- if (__predict_false(IsMutexDestroyed(old_state))) { -+ /*if (__predict_false(IsMutexDestroyed(old_state))) { - return HandleUsingDestroyedMutex(mutex_interface, __FUNCTION__); -- } -+ }*/ - if (old_state == PI_MUTEX_STATE) { - int result = PIMutexDestroy(mutex->ToPIMutex()); - if (result == 0) { --- -2.34.1 -