Commit Graph

476 Commits

Author SHA1 Message Date
sebaubuntu
753ea1bf83 RMX3031: libinit: Fix adb in recovery mode
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-11 10:34:04 +05:30
Nishant Kumar
cb2e932b97 RMX3031: Skip bootreason check in recovery
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-07 15:25:30 +05:30
kubersharma001
d0a4c26cb6 RMX3031: Don't inherit updatable_apex.mk
This is because of the following reasons:
- Many build scripts force disable it anyways by settings OVERRIDE_TARGET_FLATTEN_APEX env flag so why bother rendering differences in official and local builds [1][2].
- Compressed apex causes issues with OTA on A only devices [3].
- Compressed apex may cause issues on devices which do not meet kernel requirements [4].
- Highly anticipated mainline modules update aka Play System updates is limited to OEMs/Pixels only [5], we don't do such things on AOSP; shipping Pixel prebuilt apex components feels somewhat unethical.

Ref:
[1]: 8e435ce7ff/android/build.sh (L9)
[2]: https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/updatable_apex.mk#L19
[3]: RecoverySystemService: Failed to reserve space for compressed apex
[4]: https://source.android.com/devices/tech/ota/apex#kernel-requirements
[5]: "pushed to end-user devices, either by Google (using the Google Play Store infrastructure) or by the Android partner (using a partner-provided OTA mechanism)." as stated in https://source.android.com/devices/architecture/modular-system#architecture

Also, Remove ro.apex.updatable prop from vendor_prop.mk.

test: m, boots and ota.

Change-Id: I5b5c2366398791100fa2222ef779ca4d90842211
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-07 15:25:30 +05:30
Nishant Kumar
addc713330 RMX3031: Update pin of ImsService
* Add patches for android t

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-06 18:05:24 +05:30
Nishant Kumar
bff1cdc10a RMX3031: Drop DT2W service
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 18:17:07 +05:30
Jake Weinstein
3eda500b1c RMX3031: overlay: Only allow 5G SA on Jio
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I63b8c439196570aac7b5e0fb33aac316c9d51b98
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 17:49:48 +05:30
Himanshu Tyagi
dee83f78c2 RMX3031: overlay: Import Carrier Config overlay
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: Ia9a5fb51782030a1dbc2687e714d126f40ffeadb
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 17:49:48 +05:30
Himanshu Tyagi
09dc9f418e RMX3031: Bump vendor security patch string
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: If49e66351a6262b0804f0dc246311a52c0339cbe
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 17:44:30 +05:30
Adithya R
c5a40da311 RMX3031: overlay-aosp: Show AOSP volume panel on the left side
- cuz this is where our volume buttons are
- Matches stock behaviour

Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I961662d6d62062a77653db9b6c08b53f63ccd175
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 17:43:57 +05:30
Himanshu Tyagi
ba40c3b5eb RMX3031: Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I4536dc8489ab16a699a0d27f6b7f24bf3a0d237e
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 17:42:51 +05:30
Nishant Kumar
5724154506 RMX3031: Re-order blobs
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 17:41:01 +05:30
Nishant Kumar
73d67aee1c RMX3031: Pull some more blobs for oplus-cam
* Fixes night mode infinite processing

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-05 14:49:02 +05:30
Nishant Kumar
41c11dbc96 RMX3031: Use armv8-2a as 2nd arch variant
* build/make/core/combo/TARGET_linux-arm.mk:47: error: Incorrect TARGET_2ND_ARCH_VARIANT, armv8-a. Use armv8-2a instead..
12:58:07 dumpvars failed with: exit status 1

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 18:54:51 +05:30
Himanshu Tyagi
369dc0b5f9 RMX3031: vintf: Add nxpnfc entry to framework_compatibility
stderr:ERROR: files are incompatible: The following instances are in the device manifest but not specified in framework compatibility matrix:
    vendor.nxp.nxpnfc@1.0::INxpNfc/default

Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I7b88372549ea64f1ed2f761f1218c074c6674171
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 18:54:51 +05:30
SagarMakhar
b5c78693aa RMX3031: Add NFC support
Change-Id: Id303635e56248d6ae96c8c99402054fa772a7f84
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 18:54:51 +05:30
Himanshu Tyagi
0c4c8d320d RMX3031: Use TARGET_CPU_VARIANT instead of RUNTIME
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I96d88a05769742beceee46b6ab18c5f401ac54bf
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 12:14:58 +05:30
Himanshu Tyagi
1a51e7363a RMX3031: fingerprint: Set proper permissions for fingerprint node
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: Id08257e9c3d4ec954335c35492ca6b5b4d50a503
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 12:14:16 +05:30
Kishor Krishna Bhat
c9491972b2 RMX3031: Remove frozen and unfrozen cgroup
Removed frozen and unfrozen cgroup configuration which
are outdated and are also not required. This passes
testFreezerKillExitCode test case.

Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I30d6993e30b9c4358f143cae4400e288a9a68788
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 12:14:16 +05:30
Albert Tang
23ebf1eb80 RMX3031: Import task_profiles.json
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: I40950952dec92257d97580592387cfa9bd244c35
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 12:14:16 +05:30
Nishant Kumar
068e9b4f94 RMX3031: Switch to public FWB for fetching and picking required commit
* Other users can build too now
* Also silence cherry-pick log in terminal

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
594cecb7c4 RMX3031: Fix vendor tree link in vendorsetup.sh
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
37c6315fd6 RMX3031: drop some duplicate entry in proprietary-files
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
c123bcfdab RMX3031: Pull libYTCommon from odm
* Required by oplus cam text reader mode
03-03 15:43:08.355 30298 30298 E vndksupport: Could not load libSuperTextWrapper.so from sphal namespace: dlopen failed: library "libYTCommon.so" not found: needed by /odm/lib64/libSuperTextWrapper.so in namespace sphal.

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
37e68a54bf Partially revert "RMX3031: overlays: Update from RMX3031-11-F05"
* Revert only brightness related overlays

This partially reverts commit a372e456a51bb8bd459e555ca32cb561b288aa3b.

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Iscle
5a636e3cba RMX3031: Switch to reverse engineered V4A
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
149143dffa RMX3031: Copy some more needed blobs by oplus-cam
* Oplus cam requires this for video :- 02-27 15:25:44.741   959 10939 E VideoNightPreview: [loadLib][287]: loadlibrary dlopen /odm/lib64/libVideoEnhance.so failed!!! reason = dlopen failed: library "/odm/lib64/libVideoEnhance.so" not found

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Alex Damaratski
60927c7ba1 RMX3031: Build libsuspend * Required by kpoc_charger
Change-Id: Ia33222329585abc451d9490c40728e7ab4287298
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Adithya R
9e9ce03252 RMX3031: Add touchpanel keylayout for DT2W
* touch driver dispatches KEY_F4 (62) keycode instead of KEY_WAKEUP
   for dt2w event, intercept this and dispatch wakeup event to the
   framework to fix dt2w wakeup

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
3136ed59c1 RMX3031: Include recovery in zip
* Also drop shipping md1img since we switch to RUI4 FW now
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
Nishant Kumar
5b0e86c8c5 Revert "RMX3031: touch: Add touchscreen gestures HIDL HAL"
This reverts commit 5cb974ea37.

* No kernel source as of now to expose gesture nodes

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:35 +05:30
neilchetty
b9360853bd RMX3031: Fix ZRAM
Signed-off-by: neilchetty <neilchetty4559@gmail.com>
2023-03-04 11:30:35 +05:30
neilchetty
05a02a24ec RMX3031: overlays: Update from RMX3031-11-F05
Signed-off-by: neilchetty <neilchetty4559@gmail.com>
2023-03-04 11:30:34 +05:30
SamarV-121
a0b82fd423 RMX3031: lights: Handle more low brightness values
Change-Id: Iac95a605030b6fa4b065e650e30a3512e7af5b69
2023-03-04 11:30:34 +05:30
SamarV-121
faf1375305 RMX3031: lights: Fix brightness curve
* These devices report values in 0-2047 or 0-4095 which results in
  extremely uneven behaviour in brightness slider
* Map brightness values logarithmatically to match aosp behaviour
* Generated using https://gist.github.com/SamarV-121/3fe97552db73d9cc673ce7cf250d27b7

Change-Id: I794fdca04bb29b8431fd20b769fc09749481645b
2023-03-04 11:30:34 +05:30
SamarV-121
d7f29e30e1 RMX3031: Fix booting of AOSP recovery
Co-authored-by:  neilchetty <neilchetty4559@gmail.com>
2023-03-04 11:30:34 +05:30
sebaubuntu
03a4ced635 RMX3031: Add script for reordering blobs
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
afcd3c5d22 RMX3031: Reorder blobs
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
a26cd8a093 RMX3031: Oplus Cam
* It is now fucking working

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
bb111a36db RMX3031: Pin ImsService from RUI3
* Untill we fix RUI4 ImsService's oplus fuckery

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
108416d642 RMX3031: Cherry-pick in FWB before building
* Will cause build error if not picked

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
3b7061017e RMX3031: Set hwui to use vulkan
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
rthelolchex
a1f095ebee RMX3031: disable HW Overlays
Signed-off-by: rthelolchex <rthelolchex@gmail.com>
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
f02f6ba300 RMX3031: Drop pinned ImsService
* Since now we can use oplus-framework as boot jar no need to pin this

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
ef1ba9bebb RMX3031: pull oplus-framework
* A fix in fwb is needed to fix dexoat64 error

Requires :- 34e724ebc0

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
53d8146d46 RMX3031: Drop oplus-telephony-common from bootjar
* Cause google apps to crash
* E AndroidRuntime: java.lang.RuntimeException: java.lang.NoSuchFieldError: No field a of type Lcom/google/gson/internal/Excluder; in class Lcom/google/gson/internal/Excluder; or its superclasses (declaration of 'com.google.gson.internal.Excluder' appears in /system/framework/oplus-telephony-common.jar)

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:34 +05:30
Nishant Kumar
52ce5058b5 RMX3031: Drop ims-extension-plugin from bootjar
* ImsService cant access its classes

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:33 +05:30
bengris32
8a8c3785e6 RMX3031: Pull oplus-telephony-common
* Oplus IMS service has dependencies in these frameworks, so   pull them from stock and add them to bootjars.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I5d83053d82e8fd03a3561e347973e9333d0034a0
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:33 +05:30
bengris32
295854fb75 RMX3031: Defer auto brightness light sensor reading for 1s after screen on
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I8eaf033249cfc186588861893fdb83092db9eb49
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:33 +05:30
neilchetty
3c4e2d921b RMX3031: Add more mediatek jard as boot jars
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:33 +05:30
LuK1337
f5a4b508dd RMX3031: Add script to update sha1sums of kanged blobs
Squash of:
* Add script to update sha1sums of kanged blobs
* Handle moved blobs in update-sha1sums.py script
* Add unpinning support to update-sha1sums.py script
* Format update-sha1sums.py with yapf
* Better handle line breaks
* Handle line with opts

Signed-off-by: LuK1337 <priv.luk@gmail.com>
Signed-off-by: wimbiyoashizkia <wimbiyoashizkia@yahoo.com>
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
2023-03-04 11:30:33 +05:30