Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9636a4e9 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Add check_for_ufs.sh script

When run as root on an Android device, this script "succeeds" (exit
code of 0) if UFS is being used for userdata on the device.  It gives
a non-zero exit code otherwise.

UFS has substantially better performance than eMMC in terms of
both raw throughput, and cases like performing reads while writing
back to disk.

For this reason, some future test suites will start checking whether
devices are using UFS or eMMC.  There is no simple property to check
for UFS vs. eMMC, so we need some logic which this script implements.
While future test suite changes will be across different areas, we
want this specific logic centrally located within AOSP code so all
implementations are the same and any bugs can be centrally fixed.

Bug: 409357709
Test: Run across a couple different devices with UFS and eMMC
Flag: EXEMPT for standalone script
Change-Id: I27461cd7d98a0a4e138d662aed6a0796af3cf362
parent ebd35be8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment