- Rearrange apps and processes to be spoofed alphabetically
- Drop Turbo spoofing
- Add a constant set for Tensor features
- Move to using switch cases for spoofing
This more closely aligns with bf6cfe2320/libs/com.android.internal.util.custom/src
Co-authored-by: Hridaya Prajapati <info.hridayaprajapati@gmail.com>
Change-Id: I61662a1d89ccea4776d78e2c9446b7c1e75314ba
Some apps (such as miui camera) resets the auto brightness adjustment
to 0.0f instead of correctly using Float.NaN, causing auto brightness
animation to be disabled afterwards. Prevent this scenario by
overriding it to Float.NaN ourselves.
Change-Id: Idc39d120db306403482c7011db7c556f4f902468
Photos checks the device model in addition to system features for
enabling unlimited photos backup. On non-pixels with the pixel
feature sysconfigs, it misleadingly shows unlimited backup while
actually counting towards storage.
Change-Id: I300552bc84acf67c3f755a0803ddf8a736272857
Brand and manufacturer may also be used for attestation checks, as seen
by _FOR_ATTESTATION fields added in Android 14 [1]. Refactor certified
properties to allow setting any Build or Build.VERSION string or integer
field, to make it more scalable for future.
[1]: fb32aac1ea
Change-Id: I16dc8e18a67ffd8fdba8eb9c6928447f82b7d810
GMS uses its DroidGuard service (the same that's used for safetynet)
to get the device name from the build fingerprint, which from our
current certified props, is Pixel XL. The device name after Google
login shows up in the login alert accordingly as Pixel XL, which is
inconvenient especially when you have multiple devices on the same ROM.
By restarting the DroidGuard service process (gms.unstable) as soon as
the user starts adding Google account (i.e when the GMS add account
activity is started and moved to the top of the task stack), we can
skip spoofing to certified props in this instance. When the user
stops/finishes adding account (GMS add account activity is no longer
at the top of the task stack), restart the process again, this time
spoofing to certified props in order to be ready for safetynet.
This ensures while adding a Google account, GMS reads the original
properties of the device and labels the device with its original name,
while in any other situation GMS reads certified properties required
to pass SafetyNet/Play Integrity.
Test:
- Add google account from setup wizard, settings, any other app
- Observe correct device name in gmail login alert
- SafetyNet (basic, CTS), Play Integrity (basic, device) passes.
Change-Id: Ia5463f220a8262f7963fc5b2640a7a5311a73210
Fixes NPE on devices which are incapable of haptic feedback.
Change-Id: I67538559978e8b0dc2282d06b09675ffea6ba3a6
Signed-off-by: Pranaya Deomani <pranayadmn@proton.me>
The current silent and vibrate volume icons in the status bar have
slightly too much padding compared to all of the other status bar icons,
which makes it look out-of-place. Remove the excess insets to make it
more even.
Note that the silent icon still has 0.5 dp of padding on its left and
right sides to make its total size match that of the vibrate icon, which
is 19 dp, while the silent icon is 18 dp.
Change-Id: I7fb9a6e0113f6103eed308ac2d25c392fe8abb73
* Having both bootloader and fastboot might be confusing
Change-Id: Id46ee99a4b39274f4cb96baa37a158d925f31883
Signed-off-by: Leonardo Ledda <leonardoledda@gmail.com>
In the annals of technology, the Zenfone 4 Max stands as the ultimate hero
a phone that has transcended time and space itself. With the bravado of
an isekai protagonist, it has embarked on an epic quest, unveiling powers
beyond imagination. Today, the Zenfone 4 Max is more than just a phone.
It symbolizes heroism and excellence, supporting our quest to conquer
CTS and Play Integrity. As we harness the extraordinary capabilities
of this legendary device, we embark on an epic journey to ensure the
'destruction' of "Google Employees" and burning up everyone standing
before it.
NOTE: The above AI generated description is a joke, and thanks to chiteroman for
finding a FP that still works.
Test: Play integrity
Change-Id: I4f61268b3d088689fef1175aad198c88734e9f34
Signed-off-by: Dyneteve <dyneteve@hentaios.com>
* set a solid color by configuring config_udfpsColor
* set a custom image by setting udfps_icon_pressed and making
config_udfpsColor #00ffffff (transparent)
[Anay Wadhera]: Adapt to udc-qpr2
Change-Id: I028e0ba6ee012dc84cd365078ef4cbfbaad5cedc
Problem: {
1. Open youtube video premium. Start any video.
2. Press back make the video smaller.
3. Then press home or back from navigation buttons.
4. Observe animation surface is very weird.
}
Solution: {
1. Youtube itself has set very small pip args. That causes surface to first scale then animate.
2. So set the sourceHintRect to null. To show only color overlay and animate the task snapshot only.
3. Will make better user effect.
}
Bug: 263842271
Signed-off-by: pioush.kumar-IN009423 <pioush.kumar@oppo.com>
Change-Id: I33e29c504a33be992ab4dc74d23240ad98720c91
This change switches the QS carrier label text from an
AutoMarqueeTextView -> TextView. This stops the text from
scrolling to begin with. Then we expand the width of the
text box and right align the text which prevents the text
from forming an ellipsize.
Much needed UX improvement since with some long carrier names
the scrolling text would be really annoying to me and users.
This also keeps in mind that the dual SIM view so both carrier
names are properly visible.
Test: m and check expanded QS carrier text. Tested with T-Mobile
and Wi-Fi Calling enabled.
Change-Id: I46cc908ab01efa9e252e71007236cb1570dee21b
Reduce scroll friction to a better default
value which is used in Scroller and Overscroller.
Change-Id: I66a7663a18bb80263c51f3d54a2bb1e3fe5d0b4d
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.
This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.
Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)
Change-Id: Iad52a35120212c871ffd35df6184aeb678ee44aa
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
In 9.0 it shows a string in the qs panel telling you how to add/remove tiles and after 'SystemUI: Allow user to add/remove QS with one click' it still says "Hold and drag to add tiles". Update string to the correct way.
Change-Id: I2912e9254f9ed14436119addc913fe9907dc7f4e
* location and data saver
Old Change-Id: I87c641449978cbdb6054fb3370039202b262cfd3
Change-Id: Icfe80ad7597108d6844e7a8edebf1d19c414094d
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
The loading "spinner" animation is quite jerky by default when the progress xml's from
drawable are called in applications that don't use the holo progress animation. The holo
"spinner" animation is already smooth by default. This makes every other "spinner"
animation smooth.
We've been changing this value in all ROM's we release, both AOSP and CM based ones
as well as stock ROM's, since it gives a more polished look to the entire system. In the past
3 years we've been using this small tweak we have not noticed anything that would
adversely affect battery life or system operations as a whole.
Change-Id: I06573dd36130d14d8c6c99cda01540f1ec78bd95
Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
System icon pack changes were previously managed by reconstructing
some components which used them, such as KeyguardStatusBarView. This
introduced a memory leak where KeyguardStatusBarViewController never
unregistered a callback, thus it was not being garbage collected.
Furthermore, some usages of the system icons were not updated on a
pack change. Change that by recreating the icons on theme changes.
This reverts commit db9671c8544cce1cb20dc5c439e8eea15df21ce0.
Change-Id: Ic2b774d243546a88ac2e17f8441e073629caa1c8
Add deep sleep ratio to "About Phone" -> "Uptime"
originally from Stefan
**DU Edits**
- Simplify the code used to show Deep sleep
Change-Id: I6949a66bae077b5132304448a7c8d7130665437a
* Now we don't need to check DeviceConfig flag to add this
* Simply add those volume control uris
as same as how AOSP does it on their Settings app
Change-Id: Ia24b4b8efe021927da3cd9b24e73dbe37c0ae45c
Signed-off-by: someone5678 <nemui3353@gmail.com>
This adds support for adjusting the display's RGB color balance
globally via ColorDisplayManager. This is implemented as a simple
color transformation matrix that scales each channel.
The effect is similar to LineageOS' LiveDisplay feature, but being a
native color transform, it doesn't require changes to native code,
SELinux policies, or custom HALs.
Change-Id: Ia7ce363e3042ecfae438e452dbf155811a6bedeb
Signed-off-by: Leonardo Ledda <leonardoledda@gmail.com>
Improves the UX while dragging the brightness slider.
Change-Id: I79d9d8fd1133a9e166821ff8f7135ccb761edd58
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
By default, modern compilers optimize code by eliminating the frame pointer
and using other techniques, such as register allocation and stack unwinding,
to locate function parameters and local variables.
Using the fno-omit-frame-pointer flag disables this optimization, which actually
causes regression, instead of improvement.
Suggestion by Kazuki.
Change-Id: I2eb48741a8fded593cfeddb2fe83af638a2c68f2