1664 Commits

Author SHA1 Message Date
Le Hong Duc
f8771e6f8d twolip: overlay: Checkout overlay from LineageOS
* from https://github.com/LineageOS/android_device_xiaomi_sdm660-common

Co-authored-by: Alexander Koskovich <akoskovich@pm.me>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Co-authored-by: Jorim Jaggi <jjaggi@google.com>
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Co-authored-by: Danny Baumann <dannybaumann@web.de>
Co-authored-by: Jesse Chan <jc@lineageos.org>
Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Co-authored-by: guaiyihu <guaiyihu@foxmail.com>
Co-authored-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-05-15 14:08:13 +07:00
Le Hong Duc
fe45c46e8b twolip: Build Aperture 2024-05-15 14:08:13 +07:00
Alexander Martinz
fbb871278d twolip: Switch to patchelf v0.17.2 for patching our blobs
[tedomi2705]: Adapt with twolip blobs

* All our fingerprint blobs are quite nasty, patchelf v0.9 could
  easily break loading of these fingerprint blobs

Change-Id: I8c3976f99c26314c97b2f1384a9091c7d7c29566
2024-05-15 14:08:13 +07:00
Bruno Martins
b837baa161 twolip: Use libhidlbase-v32 for select Android P blobs
To workaround the removal of gBn/sConstructorMap from libhidl just for
the blobs that call _ZN7android8hardware7details17gBnConstructorMapE
and/or _ZN7android8hardware7details17gBsConstructorMapE.

Change-Id: I2376734cefb9d63775bd4e82feca9c588cd191ac
2024-05-15 14:07:56 +07:00
Le Hong Duc
b2ba41d357 Reapply "tulip: Add hardware/xiaomi to Soong namespaces"
This reverts commit b26b6563fd.
2024-05-15 02:46:31 +07:00
Davide Garberi
c64260897a Rename tulip to twolip
* Due to a conflict with an older device with the same codename (zte_tulip), this is needed
* Assert for both tulip and twolip to make things easier

Change-Id: Ia4e81265b53ce58641eb57c4d943434e2d12d23b
Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-05-15 02:46:31 +07:00
Le Hong Duc
741019f89f tulip: Initialize for Evolution X 9.x
Change-Id: I51d135320618b983832443e73c25e2272f607b9a
2024-05-15 02:46:31 +07:00
Le Hong Duc
715c932847 tulip: Reserve more system partition size 2024-04-27 15:00:56 +07:00
Akash Srivastava
ca4288e0c2 tulip: overlay: Pin SystemUIGoogle instead of regular SystemUI
* Evo X uses SystemUIGoogle, so lets pin that. Seen in the logs:
02-19 21:28:39.783  1579  1720 E PinnerService: Could not pin file /system_ext/priv-app/SystemUI/oat/arm64/SystemUI.odex
02-19 21:28:39.783  1579  1720 E PinnerService: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at libcore.io.Linux.open(Native Method)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at android.system.Os.open(Os.java:494)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at com.android.server.PinnerService.pinFileRanges(PinnerService.java:975)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at com.android.server.PinnerService.pinFile(PinnerService.java:850)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at com.android.server.PinnerService.handlePinOnStart(PinnerService.java:305)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at com.android.server.PinnerService.-$$Nest$mhandlePinOnStart(Unknown Source:0)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at com.android.server.PinnerService$PinnerHandler.handleMessage(PinnerService.java:1219)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at android.os.Handler.dispatchMessage(Handler.java:106)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at android.os.Looper.loopOnce(Looper.java:201)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at android.os.Looper.loop(Looper.java:288)
02-19 21:28:39.783  1579  1720 E PinnerService: 	at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 21:28:39.783  1579  1720 E PinnerService: Failed to pin file = /system_ext/priv-app/SystemUI/oat/arm64/SystemUI.odex
02-19 21:28:39.783  1579  1720 D PinnerService: pinRangeStream: null

* Also pin SettingsGoogle

Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-04-27 15:00:56 +07:00
Le Hong Duc
cea2746908 Revert "tulip: rootdir: Remove cache on early boot"
This reverts commit 0c96b16acf.
2024-04-27 15:00:56 +07:00
Cyber Knight
f40f7722b0 tulip: Build OMX service
- I'm not going through the fuss to make Codec2 work on AOSP;
- Hence, let's build OMX service instead.

Change-Id: Ic1609cb632a4c0fe00addc48b1570ce30456e674
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2024-04-27 15:00:56 +07:00
Juhyung Park
941e80fa46 tulip: Stop shipping 32-bit Zygote
Pixel 7 onwards also do the same, meaning that the user inconvenience is
none if not minimal.

This saves non-negligible amount of RAM.

Change-Id: Ide8671817d15e79ab61a1665cf3f60e599ff3981
2024-04-27 15:00:56 +07:00
Le Hong Duc
ce511f2623 tulip: sepolicy: Remove duplicated context 2024-04-27 15:00:56 +07:00
Le Hong Duc
a25df5df42 tulip: Drop KernelSU 2024-04-27 15:00:56 +07:00
wHo-EM-i
5fe93ab896 tulip: rootdir: Increase zram size to 60% of Ram size
* now a days on a13 its a bit low
* on 3gb variant which is 2.7gb we get 1.3gb zram only
* it gets filled 60% just after bootup and after few min
of usage it reaches out upto 90%

Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: Amritorock <amritokarmokar5i@gmail.com>
Signed-off-by: Akshat <Legendleo90@users.noreply.github.com>
2024-04-27 15:00:55 +07:00
Edwin Moquete
2f6c9fdf68 tulip: Disable display refresh rate override
This got enabled by default on U, and it causes apps like
Chrome and Youtube to set the refresh rate to 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
2024-04-27 15:00:55 +07:00
kamikaonashi
f0e7c30602 tulip: rootdir: give permission to restrict_chg
Co-Authored-By: Tofu <ralph950412@gmail.com>
Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-04-27 15:00:55 +07:00
FlowerSea0208
4dec4295c6 tulip: rootdir: Add init.xiaomi.rc 2024-04-27 15:00:55 +07:00
Le Hong Duc
23194b26e4 tulip: overlay: Enable Lineage fastcharge preference 2024-04-27 15:00:55 +07:00
GlowingScrewdriver
ba258af5cf tulip: Implement FastCharge HAL
This HAL makes use of the sysfs attribute /sys/class/qcom-battery/restricted_charging
to control whether fast charging is allowed or not.
When fast charging is disabled (i.e. 1 is written to the sysfs
attribute), current is restricted to 1 A (the value at
/sys/class/qcom-battery/restricted_current, in uA).

This has been tested on the Nokia 6.1 (PL2); however, it should work
on other Nokia SDM660 devices as well since they share the same
kernel source.

Adapted from the work at android_hardware_samsung:
https://github.com/LineageOS/android_hardware_samsung/tree/lineage-20/hidl/fastcharge

FastCharge interface definition:
https://github.com/LineageOS/android_hardware_lineage_interfaces/tree/lineage-20.0/fastcharge/1.0

Change-Id: I78ce842ef6263c19088f29a40abfa1ef6534cc99
Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-04-27 15:00:55 +07:00
Le Hong Duc
659cd6cc5d tulip: Enable Lineage Health service 2024-04-27 15:00:55 +07:00
Luofan Chen
ede018e735 tulip: Build lineage health HAL
Change-Id: I1ca5f25f3a2d8734647b9cc0ff4885b0b817c6ad
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-04-27 15:00:55 +07:00
Le Hong Duc
1d766d8253 tulip: overlay: Set config_supportScreenOffUdfps to false 2024-04-27 15:00:55 +07:00
Pranav Vashi
c8dd69c0d1 tulip: Add temp divider value for cpu info overlay
Signed-off-by: Omar Mohamed <omarcoptan9@gmail.com>
2024-04-27 15:00:55 +07:00
Le Hong Duc
c248d73ae4 tulip: overlay: Hide battery charge cycles 2024-04-27 15:00:55 +07:00
Le Hong Duc
d043c19f3b tulip: overlay: Disable Smart Pixels 2024-04-27 15:00:55 +07:00
Le Hong Duc
cc1d8fb031 tulip: Evo-ify
Signed-off-by: Le Hong Duc <hongducthbk123@gmail.com>
2024-04-27 15:00:55 +07:00
Le Hong Duc
023cdfda12 Revert "tulip: configs: Update thermal-engine.conf from Miui"
This reverts commit 018281acd9.
2024-04-27 15:00:55 +07:00
Le Hong Duc
954b10cf05 Revert "tulip: overlay: Disable haptic feedback by default"
This reverts commit 020aeae4c3.

Change-Id: I695a3149fc5710cec68958d53bf6fd9663b21a9f
2024-04-27 15:00:55 +07:00
Le Hong Duc
82aef5043e Revert "tulip: init: Apply aggressive write caching."
This reverts commit 0ee289c316.

Change-Id: Iad96e519124316e5e2ae9df2bbcc22f81b759e30
2024-04-27 12:41:10 +07:00
Le Hong Duc
da75749d9c Revert "tulip: Add SettingsGoogle and DerpLauncherQuickStep to pinner service"
This reverts commit 988160e4b5.
2024-04-19 04:28:55 +07:00
Le Hong Duc
40b7809304 Revert "tulip: Import power HAL AIDL implementation from lineage"
This reverts commit b39b6f37b2.
2024-04-09 21:06:27 +07:00
Le Hong Duc
791530c9f5 Revert "tulip: Try to change default wallpaper"
This reverts commit 065f9e8538.
2024-04-09 21:06:27 +07:00
Le Hong Duc
d82ae36d76 Revert "tulip: overlay: Use MlkitBarcodeUI as default QR scanner"
This reverts commit 2a9fae59f5.
2024-04-09 21:06:27 +07:00
Le Hong Duc
9fee38cf47 Revert "tulip: prebuilt: Switch to GrapheneOS Camera"
This reverts commit 47c217b7bca617bef8322f48bf10466180226883.
2024-04-09 21:06:26 +07:00
GhostMaster69-dev
4c35f91933 tulip: fixup: overlay: Hide notch properly when hiding built-in display cutout
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-04-06 01:48:00 +05:30
GhostMaster69-dev
f1332fb93c Revert "tulip: Disable phantom process monitoring"
This reverts commit a0880754fd.

Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-04-03 15:23:46 +05:30
GhostMaster69-dev
7f6f3f5a83 tulip: overlay: Hide notch properly when hiding built-in display cutout
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-31 23:47:12 +05:30
GhostMaster69-dev
018281acd9 tulip: configs: Update thermal-engine.conf from Miui
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-31 23:44:42 +05:30
GhostMaster69-dev
3421e9a863 tulip: Remove sdm.debug.disable_skip_validate property
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-30 16:32:16 +05:30
GhostMaster69-dev
3c1accb090 tulip: rro: Override NoCutoutOverlay
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-30 16:30:10 +05:30
GhostMaster69-dev
54b3d74ec4 Revert "tulip: Disable gl preload in Zygote process"
This reverts commit f54edba6c4.

Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-30 16:30:10 +05:30
GhostMaster69-dev
5cf46217e8 Revert "tulip: overlay: Reduce use of accelerated graphics to tune down memory usage"
This reverts commit 81cd0615b9.

Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-30 16:29:52 +05:30
LuK1337
bcbc4c4275 tulip: Override fastboot-info.txt
[cafebabe] Adapt

Change-Id: I1b293436b23eb8dfbc3a60759fee97cc73ba852d
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-29 08:37:21 +05:30
GhostMaster69-dev
404b24efa9 tulip: Drop TARGET_SUPPORTS_GOOGLE_RECORDER flag
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-29 07:08:37 +05:30
GhostMaster69-dev
3fa8592b3d tulip: Drop RemovePkgs
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-29 07:08:26 +05:30
markakash
abd92daea1 tulip: overlay: Specify ambient color temperature sensor
* E DisplayPowerController[0]: failed to set up display white-balance: java.lang.IllegalStateException: cannot find sensor com.google.sensor.color

Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-28 16:33:31 +05:30
GhostMaster69-dev
2befd63a2b tulip: overlay: Define full gms component name for AutofillService
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-28 16:33:14 +05:30
GhostMaster69-dev
778675b120 tulip: overlay: Remove libRScpp.so from pinned files
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-28 16:32:48 +05:30
GhostMaster69-dev
64f6951e94 tulip: Update default wallpaper from nothing phone 2
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2024-03-28 09:43:53 +05:30