Skip to content

Revert "Format formattable partitions if mount fails"#2

Open
bheatleyyy wants to merge 19 commits intoP-404:tokui-oldfrom
beet-stuffs:tokui
Open

Revert "Format formattable partitions if mount fails"#2
bheatleyyy wants to merge 19 commits intoP-404:tokui-oldfrom
beet-stuffs:tokui

Conversation

@bheatleyyy
Copy link
Copy Markdown

This reverts commit 29dd6b6c01295222fee5ef2fc70692b2ecb12504.

Change-Id: I7b76cd920019ae8cb7270b3f83e777ea9de7f7a4
Signed-off-by: Joey Huab joey@evolution-x.org

Former-commit-id: 5de050876046dead9e0c5e2b9a31b735912088cb Change-Id: Ib44b0890aae6f82861f4f9579db3971519b2f5cb

Former-commit-id: d7515219627eef99b4bd62b03d51312c35fa1308
Signed-off-by: spkal01 kalligeross@gmail.com

David Ng and others added 19 commits September 2, 2022 08:14
Allow optional vendor-specific initializations
within init.  This can be used for runtime
initialization setup that init rc scripts do
not support.

Change-Id: I7623a0d59b18f9ec8e3623958e2f7ccd72b877bf
Change-Id: I99d6884b98e537a58150e2791a0dfc7b99fd2d39
[Adrian DC] Preserve the log while permissive

Change-Id: I3f2887930e15d09014c2594141ba4acbbc8d6d9d

Former-commit-id: fa9542f0bb4ac8c3da3c0e240a4f9f39e85221cb
Change-Id: I03e442859d458ca6badc56d69cf72b75c5035cf4
HVDCP_3 is a high voltage DCP charger where the charger's voltage
can be changed by issuing pulses on the D+/D- lines. Add support to
recognize it and treat it as an AC power source.

Change-Id: Ib719529904e8b7a676bbdc5f5953f0f9da6df3fa
(cherry picked from commit e9b949ddb926a52cc256dbd8cae2c4b835656c3c)
Booting up the device without usb, the kernel sets the usb power supply
type as UNKNOWN. The type of usb power supply changes at run-time as
various chargers are plugged in/out. However, healthd initilizes the
charger list only at bootup. Change it such that it checks for charger
type changes with every battery or usb uevent.

While at it, the kernel may have a power supply type which is not known
to healthd. This is perfectly fine. Update healthd to not print a
warning.

Change-Id: I2ec9f9a420ca61814d43c316b418ce94de3691bc
(cherry picked from commit 282857e89d591b6704e5d69ec2ae1e53a5de74cf)
Change-Id: Ie422840c85c247cba866c370ce8d970058df2c2f
Change-Id: Ie1ca5018c465f6b2c15cbc00bdf3bb866d98ddef
Sometimes we need to override ro.* properties by using our vendor init
extension.

Previously there was a security check which was blocking that.
To resolve the issue, we need to weaken the security check during the
execution of our vendor init extension.

This is safe because the vendor init extension gets executed as part of init
construction and it is considered a trusted system component.

Change-Id: Ia7d60686968695f1fb43be4ed58770ce10da88c5

Former-commit-id: 91d12168b9500a44211a7d5a092e0ebcfed48d4d
Change-Id: I07629b6c19b5ebfa019307c497c18d8bcc719685
Doing this in the userspace allows more properties to be spoofed
and eliminate the needs for a hack in the kernel.

Former-commit-id: e036a461c7dd4d97e1df77979c85f3c198e1e784
Change-Id: I76f6e210247a032b764dea2f5a23a184745f59a0
aswinas@pixysos: add some more props from magisk hide to userspace hack by arter97

Former-commit-id: fc79269db601c9cd0dad3781d4e6ee8f209c55fc
Change-Id: I8a88862674ca5a9eb8df5050e04344a2acb0a79f
Change-Id: I740afaa27de82bec1e6d58b58d431141ca6b4e3f

Former-commit-id: ca62a22d017f44c9f63553a44f5017eb5b8e9095
Change-Id: Icea7076c6c0ffc2ab3d66899335a5a477ccc519a
Change-Id: Ic07539b4a7a97316720defd000425d1b6d15fd67

Former-commit-id: 9d4ca9403943feecd6f902e69d581aad3ee84839
Change-Id: Ic34d95c23afd8caf95c7b2a2517650dbf116fdde
Also reformat code

Change-Id: I98aafcc2c1d8dae1448ecf3c18981fb7945599ba
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: Ib6d3808c3b8f3e0cffab685a24d3cdd436b0fe9b
This can have a major impact on performance.

We don't want this, even on userdebug/eng builds.

Use the new property "ro.console.enable" to
enable the console service explicitly.

Change-Id: I93e7c65e92261443d1c9c70cfef9aa2ed5ff328a
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
Signed-off-by: Akash <akashniki@gmail.com>
When opening and closing activities in Settings, a measurably
significant amount of CPU time is spent processing and logging stats
events in statsd:

0.02%     /apex/com.android.os.statsd/lib64/libstatspull.so                                                                                         @plt
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    @plt
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    SocketListener::runListener()
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    android::os::statsd::LogEvent::parseBuffer(unsigned char*, unsigned long)
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    android::os::statsd::LogEvent::parseAnnotations(unsigned char, int)

Over longer device uptimes with real-world usage, statsd uses a
substantial amount of total CPU time. We have no use for the stats
recorded by statsd, so disable the service entirely to save CPU in
potential hotpaths.

This is the system/core part of the change; changes to frameworks/base
are also required.

Test: simpleperf record -a; verify that statsd no longer appears in
      sample hits
Change-Id: Idf6fdb0eff987169bd5f370dd72315e831a669e6
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
It is only intended for performance analysis and can
impact I/O throughput.

Change-Id: Ia7d3a449d52625d911e2cea16249972d01e5cfcf
Signed-off-by: Adithya <gh0strider.2k18.reborn@gmail.com>
This allows remount to gracefully mount /system when Magisk
is installed.

As a sidenote, the ro.debuggable property check can safely
be removed due to the simple fact that CPP preprocessor flag
ALLOW_ADBD_DISABLE_VERITY=1 is passed when building
userdebug/eng.

Change-Id: Ic10eccbf5d225468c3dc42f8ae3ae7c05b49a699
This reverts commit 29dd6b6c01295222fee5ef2fc70692b2ecb12504.

Change-Id: I7b76cd920019ae8cb7270b3f83e777ea9de7f7a4
Signed-off-by: Joey Huab <joey@evolution-x.org>

Former-commit-id: 5de050876046dead9e0c5e2b9a31b735912088cb
Change-Id: Ib44b0890aae6f82861f4f9579db3971519b2f5cb

Former-commit-id: d7515219627eef99b4bd62b03d51312c35fa1308
Signed-off-by: spkal01 <kalligeross@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.