Commit graph android_device_samsung_a20/universal7885-common/rootdir/etc
Author SHA1 Message Date
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
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
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