Mount of tracefs in /sys/kernel/debug/tracing will fail when DEBUG_FS
is disabled. So, mount tracefs in /sys/kernel/tracing to still use all the
tracing abilities when CONFIG_DEBUG_FS is disabled
Change-Id: Ib37332c3f1108d7c4798717f0f009c891db72850
Signed-off-by: pix106 <sbordenave@gmail.com>
* That makes clang17 happy
* Fix:
device/xiaomi/violet/gps/android/utils/battery_listener.cpp:191:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
auto r = mHealth->unlinkToDeath(this);
^
device/xiaomi/violet/gps/android/utils/battery_listener.cpp:189:9: note: previous statement is here
if (mHealth != NULL)
^
1 warning and 1 error generated.
Change-Id: I3be1e3de45ce184c9d3dbcede57a312375a91498
Signed-off-by: Nanhumly <admin@warbler.cc>
Signed-off-by: pix106 <sbordenave@gmail.com>
* As https://source.android.com/docs/security/features/encryption/file-based said emmc_optimized is a inlinecrypt flavor and can only be applied on emmc 5.2 device which has not been released yet
* Apparently Xiaomi 660 is launched with emmc 5.1 5 years ago and never met the 5.2 spec
* Now really enables inlinecrypt hardware by adding it in mnt_flags
* Use AOSP recommended inlinecrypt_optimized
* Use lazytime for reducing meaningless io
* Label metadata partition
(pix106) i use logdump partition for metadata, not cust
Signed-off-by: pix106 <sbordenave@gmail.com>
Sdcardfs in deprecated
Enable Project ID Quota support on userdata.
* These features enable wide inodes on userdata, which
is required for project ID quotas. Wide inodes can
only be set at MKFS time.
* This also enables casefolding, which is required for the
removal of SDCardFS.
Bug: 138321217
Test: Examine filesystem features for project quota and wide inodes.
Change-Id: I9c17cda2af34c6fbd73c2d90eb6b465f4939df67
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: pix106 <sbordenave@gmail.com>
* as c999a1a2b9d975610ffa359ba34cb27d016165cc has unlocked setupwizard rotation, auto rotation default as "on" is not meaningless now
Signed-off-by: pix106 <sbordenave@gmail.com>
* as rom with vendor_gms repo will set this as true and locks the orientation for setup
* that is not so good for tablet type device
* override this prop in vendor_init to make it always landscape available
Signed-off-by: pix106 <sbordenave@gmail.com>
* allowing any extra permission for "untrustred_app" domain is DANGER
* the "untrustred_app" domain rule should ONLY be defined by aosp
* kill all don't audit except getopt for untrusted_app. it's a tool to show which app are evil, let it show in audit logs
Signed-off-by: pix106 <sbordenave@gmail.com>
* We don't have the chre binary and MIUI also disabled it.
Change-Id: I57a95643c366f8b1ce1a8af5ff2ebbf9b29e316d
Signed-off-by: YumeMichi <do4suki@gmail.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
* this won't cause zram not to work, but will cause dmesg spit a
"denied" warning
* removing swapon in "fs" scope following aosp instruction
* ref -> https://source.android.com/docs/core/perf/boot-times
Signed-off-by: pix106 <sbordenave@gmail.com>
* previously, these background cgroups running freely with uclamp unset
* now set the max cpu utility for these cgroups, following pixel tablet, but extended a bit as sdm660 is weaker
* when duration = 3000, it may be too short for a app to complete the launch process
* follows pixel tablet launch boost value(5000) and extend to 6000 as sdm660 can't follow up gs201 speed
* this value is only working on the "first cold start" for an app, so make it larger is not affecting the whole battery life but just speed up the launch process
Signed-off-by: pix106 <sbordenave@gmail.com>
* also adjust and added Chinese(Traditional) language by self
* big thanks to all my users
* alphabetical order below
* EL(Greek) ES(Spanish) IT(Italian) JA(Japan) RU(Russian)
Co-authored-by: Graviphone <gravi@loungestudio.com>
Co-authored-by: hackruu <hackru@gmail.com>
Co-authored-by: kamvrosidis <amkirk94@yahoo.gr>
Co-authored-by: Maximilian Swag
Co-authored-by: SBWater <136105193+sbsoda@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>