Commit graph android_device_samsung_a20/universal7885-common/rootdir
Author SHA1 Message Date
Tim Zimmermann
eef1ead4a2
universal7885: Enable UDFPS on boot
- Also select out HAS_GESTURES if UDFPS

Change-Id: I6375c5de54d61a5e274ef1806d0a5ce16cdd5dba
2023-11-29 14:18:40 +09:00
roynatech2544
a280fa63b2
universal7885: Fill in missing parts of parts 2023-11-29 14:18:38 +09:00
roynatech2544
745ca56170
Revert "universal7885: Support changing readonly filesystem type with a flag"
This reverts commit 740b27bccf.
2023-11-29 11:39:24 +09:00
kevios12
cf829e944e universal7885: adjust cpuset's and switch to LZ4
* results in better performance
2023-11-22 08:03:56 -08:00
roynatech2544
eb95614f9d universal7885: Source the same file for 2 fstabs 2022-12-27 07:37:15 +09:00
roynatech2544
1845c09098 [SQUASH] universal7885: Revert health related commits
Revert "universal7885: sepolicy: Address charger_vendor denial"

This reverts commit f35e7ce2a6.

Revert "universal7885: Switch to health AIDL HAL"

This reverts commit d80918f7b5.

Revert "universal7885: health: remove unused namespace"

This reverts commit 19139783b3.

Revert "universal7885: Remove unused deps from health impl"

This reverts commit 478b6f760c.

Revert "universal7885: Implement health 2.1 hal"

This reverts commit f90a9a09cf.
2022-10-17 18:01:00 +09:00
roynatech2544
5dd7c38c2c universal7885: rootdir: Remove chowning of fm radio device
FM HAL is root daemon, it causes dac_override
2022-10-17 17:57:43 +09:00
Tim Zimmermann
740b27bccf universal7885: Support changing readonly filesystem type with a flag
[roynatech2544: Rename flag to TARGET_FS_TYPE]

Change-Id: Ie9c749a37b3d42844b1824ab1cdb7a2fa51a186b
2022-10-11 14:25:26 +09:00
Tim Zimmermann
d80918f7b5 universal7885: Switch to health AIDL HAL
Change-Id: Icbb7194943388679abd25b2dbd105424c34496a1
2022-10-11 13:50:02 +09:00
roynatech2544
4296d27bea rootdir: Drop chown fastcharge sysfs to system
Also fix errors of aidl
2022-10-08 00:04:59 +09:00
roynatech2544
cb8ce57122 universal7885: Enable tracing support
- rootdir: Remove chmod 222 to tracefs
2022-09-22 13:12:22 +09:00
neobuddy89
dcd42d191d universal7885: Drop zram writeback
* Causing memory corruption.

Signed-off-by: anandhan07 <anandhasayanan007jb@gmail.com>
2022-09-17 15:24:54 +09:00
Roberto Sartori
18ec4c2a39 universal7885: rootdir: Drop quota flags
- Not supported on Android 13.
  Upgrade from previous releases is working.

Change-Id: I6654673964d4a9ede9f503242a8097fcc1678c3b
Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Signed-off-by: anandhan07 <anandhasayanan007jb@gmail.com>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-09-17 15:16:40 +09:00
Gabriel
6adf22d550
rootdir: increase zram to 1.54GB 2022-08-18 07:51:51 -03:00
Soo-Hwan Na
4c9d50ef37
universal7885: rootdir: Use static numbers instead of % 2022-06-17 21:15:43 +09:00
Soo-Hwan Na
9c844c2fae
universal7885: Switch back zram compressor to zstd 2022-06-04 11:31:54 +09:00
roynatech2544
043d4db5cf
universal7885: rootdir: Allow tracing
Also address some selinux denials
2022-05-07 13:58:08 +09:00
Tim Zimmermann
671bd6f797
universal7885: Use omr as /metadata
Change-Id: If93ec5ea8ce8770e23d2ba622fc8ae4e66ecfbbf
2022-05-04 20:29:10 +09:00
roynatech2544
f35f7010ff universal7885: parts: Set priority when mounting
* Also increase swappniess back, implment apply on boot
2022-04-19 11:51:24 +09:00
roynatech2544
d0fdbc6489 universal7885: zram: Reduce size to 30% of physical RAM
The original 80% was too much, with that zram size, the idle RAM usage was around 75%. Now with 30%, the system boots fine and idle RAM usage has been decreased to around 55%. Also, reduce swappiness a bit
2022-04-15 14:59:25 +09:00
roynatech2544
01d6f13145
universal7885: rootdir: Convert to blueprint
* Also, set rule of copying ueventd rc in one Makefile

Change-Id: I0c4ba12d1d579a61cd52d473e24febf91a5e3380
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 21:38:54 +09:00
Wei Wang
459bac7e0c
universal7885: rootdir: Tune zram performance
- Switch to LZ4 for better overall performance
- Set max_comp_streams to num of cores since upstream also moves this to
percpu.
- Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

[roynatech2544: Adjust swappiness too]

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ia40c30978b0805988b80b41b7c43007e339b1fbd
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:07 +09:00
roynatech2544
df3bc53dbe
universal7885: rootdir: Decrease zram size
* More zram size -> less performance. The device doesn't use all of zram even on 3GB device, so decrease it

Change-Id: I5b4bea809c507fa0a62a6b6d3e928cff9685d34c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:07 +09:00
Rick Yiu
ec51afb989
universal7885: Remove some camera-daemon commands
Those commands have moved to init.rc.

 Bug: 170507876
 Bug: 171740453
 Test: build pass
 Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e

Signed-off-by: madmax7896 <madmax78968@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Change-Id: I03679e7c4daf5893b2838b426541d1166f6727c3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 09:37:14 +09:00
Soo-Hwan Na
dd29f90752
exynos7885: rootdir: change zram compressor to zstd 2022-03-22 19:03:25 +09:00
Kevios12
eb6e9adc06
Revert "universal7885: Enforce android-S new launch debugfs restrictions"
This reverts commit 19aae2603657f49e56addc3bbee7087db2c694b9.

Revert reason: /d/wakeup_sources is needed for kernel wakelock reader
2022-03-22 19:03:25 +09:00
roynatech2544
24cc2cdcae
universal7885: fix drm widevine L3
* make directory for sec_efs partition
* Address selinux denials while using it
* HACK: Since oemcrypto looks for /factory/wv.keys, mount sec_efs partition on /factory instead of /efs

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:03:20 +09:00
roynatech2544
3b84359b35
universal7885: remove debug.rc
* Now we have binary for that (debug_daemon)
2022-03-22 19:03:14 +09:00
roynatech2544
dffab3bb92
universal7885: tidy up tree
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:50 +09:00
P.Adarsh Reddy
4aa696c82e
universal7885: Enforce android-S new launch debugfs restrictions
This removes the default mounting of debugfs, as
it is no longer allowed from android-S new-launch.

Change-Id: I3e2e65315854d72de21239bd5a7edec5584494e0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:49 +09:00
roynatech2544
127f17a0be
universal7885: move cpuset mkdir up to init
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:49 +09:00
roynatech2544
b6bfca414e
universal7885: tune zram parmameters
* Increase swappiness to 160
* Comp algorithm to lz4

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:48 +09:00
YH_Lin
236e59d4da
universal7885: fstab: correct zram parameter names
[libfs_mgr]Warning: unknown flag: zram_loopback_path=/data/per_boot/zram_swap
[libfs_mgr]Warning: unknown flag: zram_loopback_size=512M

We don't use zram_loopback_path any longer so remove it.
We also changed zram_loopback_size with zram_backingdev_size so correct it.

Bug: 145330273
Bug: 145116439
Test: confirmed there is no warning and zram backing device was configured

Change-Id: I51be34c59203813a2f493eee6ab442c9940b75d7
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: YH_Lin <yhli@google.com>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:48 +09:00
Jenhao Chen
30db4a7d90
universal7885: enable zram writeback
Enable Zram writeback feature to allow unused pages in zram be written to flash.

Bug: 128889899
Test: Boot to home

Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:48 +09:00
roynatech2544
4e8f041f6e
universal7885: address denials for 7904 2022-03-22 19:02:10 +09:00
Soo-Hwan Na
7393d54ec5
universal7885: zram: mount 100% of memory 2022-03-22 19:02:09 +09:00
roynatech2544
c5e1598aaa
treewide: decommonize sensor service 2022-03-22 19:01:48 +09:00
roynatech2544
07b209df81
universal7885: Major (de)commonize due to prev commit 2022-03-22 19:01:33 +09:00
Soo-Hwan Na
7f457b56ee
universal7885: Add support for f2fs
* /cache, /data
* Basic ideas from https://github.com/henricaodopao1/android_device_asus_X00QD
2022-03-22 18:56:53 +09:00
Tim Zimmermann
5fc20541b8
universal7885: Switch to AIDL libperfmgr power HAL
Change-Id: I56928037bf543accb3175ea50c674f80a3f60b99
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:23 +09:00
roynatech2544
c7b6d4e7b5
universal7885: rootdir: Hide Magisk Better
* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

226e285aa6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:39:26 +09:00
roynatech2544
93778fc639
universal7885: Fixup merge errors 2022-03-22 18:35:49 +09:00
roynatech2544
5649875a43
universal7885: rootdir: Add back missing init rcs 2022-03-22 18:34:35 +09:00
roynatech2544
860693ece4
universal7885: Import A20e ueventd.rc
* Previous one was 7904's

Change-Id: I5dbbdf6a049624bc0933a505cf7792a60509b6e9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:31:31 +09:00
Gabriel2392
af95ebdf2b
universal7885: Import debugging script
* https://github.com/SamarV-121/android_vendor_extra/blob/android-12.0/prebuilt/init/debugging.rc
2022-03-22 18:18:36 +09:00
roynatech2544
9dc93122f1
universal7885: rootdir: Mount 75% of physical memory
Change-Id: I26b10e401b2473aca9f93bc490d59e738cbae7a0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:13:49 +09:00
SamarV-121
4210766d4d
universal7885: rootdir: Increase swappiness
Change-Id: Iecac741764c6242d350ce947581809c41db07e49
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:13:07 +09:00
roynatech2544
f8eb3e1258
universal7885: Inital port to A20/A20e
Addtitionally, Add device-specific trees as well

Change-Id: Icbbc31c063b18bce3702d0b208a0aee78148a7c0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:08:09 +09:00