18 Commits

Author SHA1 Message Date
Tianjie
7d15b33b93 walleye: Use light boot animation on first boot only
Today, the dark boot follows the Dark Theme mode in Settings. Now
the UI team decide to always use dark boot after the device is
provisioned. So users will see fewer disturbances when a scheduled
update is taken at night

Bug: 181339788
Test: flash a Pixel -> boot -> dark theme is set;
      boot again -> observe dark boot
Change-Id: Id4989e4e78471bcefc2730ba7d9adc36f5ac9c75
2024-07-20 23:25:35 +08:00
Tianjie Xu
fd8e984334 Use more specific option to set dark mode
We have switch misc_writer to use more specific flags to set the dark mode.
Modify the caller as well.

Bug: 131775112
Test: set dark mode, check device boots with dark mode
Change-Id: Icbf3377e514f79b9b4bcf5c5a2dff9b0c8324df5
2019-11-11 22:47:49 -08:00
Tao Bao
f0a2c6de3a Dark boot on dark theme.
Bug: 113028175
Bug: 134157796
Test: Build and flash walleye with the matching bootloader change.
      Check serial log regarding the start of vendor.darkboot and
      vendor.darkboot_clear services when toggling dark theme in
      Settings. Also read the value via `dd bs=1 skip=14408
      if=/dev/block/sdd1 count=32 | xxd` to confirm the change.
Test: Trigger a factory reset via Settings. Check the value in /misc
      after the reset.
Change-Id: Ie8504cec4358576890cc395de8df1679fa52fa01
2019-06-17 11:31:52 -07:00
Jaegeuk Kim
92400286d4 Revert "Boottime: remove all block-related tunes including readahead size"
This reverts commit 08e352d88b.

Reason for revert: boottime regression found by b/126431810

Change-Id: Ie9b9f05bfff86518fe59fdd06d1a33f423567184
2019-03-11 23:18:27 +00:00
Jaegeuk Kim
08e352d88b Boottime: remove all block-related tunes including readahead size
With a request size fix, 2MB-sized readahead would not be a way to gain
boottime.

taimen - PVT - Hynix 128GB - boot_complete timestamp (avg of 100 loop)
Base [1]      : 10.943
New  [2]      : 10.7495

taimen - PVT - Hynix 128GB - boot_complete timestamp + fastboot -w (avg of 100 loop)
Base [1]      : 32.5857
New  [2]      : 31.7474

[1] w/o this CL, revert commit 7c37954411e9 ("mm: readahead back to 128KB")
[2] w/  this CL, keep commit 7c37954411e9 ("mm: readahead back to 128KB")

Bug: 122246531
Bug: 120757803
Change-Id: I2c3236b0b0cd4f2a8610a1af64de694f8a4d7997
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2019-02-11 09:19:01 -08:00
Wei Wang
bed30a438f Set runtime readahead to 128KiB
Reduce readahead to 128KiB to reduce thrashing under memory pressure.

Bug: 110908295
Bug: 111855179
Test: Boot
Change-Id: I449d2733bc836ed7661653efb2400fc031a76644
2018-07-26 21:15:27 +00:00
Tim Murray
722ea29d02 Revert "Switch to deadline IO scheduler post boot."
This reverts commit ae780bce59.

Test: boots
bug: 63630139
2018-06-05 15:22:31 -07:00
Thierry Strudel
875ef6a9c2 init-common.rc: map sys.retaildemo to persist.vendor.charge.*.level
Bug: 75293289
Change-Id: I0cfc3538fb7f377d578e4bf8fdc6e338a3d0a097
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-04-03 16:20:10 -07:00
Thierry Strudel
05b4cbe47c init-common: map sys.retaildemo.enabled to persist.vendor.charge.*
Bug: 73647497
Change-Id: Id317f390da648b935819e25342725a4663ee5841
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-03-26 17:27:35 -07:00
Mohan Srinivasan
ae780bce59 Switch to deadline IO scheduler post boot.
The deadline IO scheduler results in lower latency SD, and pulls in
latency outliers (especially when the flash starts getting fragmented).
Switch to deadline post boot.

Test: various workloads, both synthetic (fio) as well as actual
workloads (app launch, ioshark).

Bug: 63630139
Change-Id: I94b90ac09e921fdf01564bd4c6e1a1b809f3f8ec
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
2017-10-27 16:27:13 -07:00
SzuWei Lin
645a109bfd Fix walleye to boot with GSI
Walleye requres /sys/class/uio/uio1/device/rtel/rtel in userdebug build,
and GSI will change the device to userdebug. So, we need to switch rtel
with the build type in boot time, even the device is in user build.

Bug: 65229896
Test: Boot (aosp_)walleye-(user|userdebug) with/without GSI to home screen
Change-Id: I8fa74c02a0a48feeef87d8e9caa702e4a44aedf7
2017-09-19 15:10:26 +08:00
Thierry Strudel
5be9d89166 init-common.rc: set ro.boot.hardware.revision
Bootloader set androidboot.revision on kernel command line and we set
ro.boot.hardware.revision to a numerical string accordingly.

Bug: 64375827
Change-Id: Ib814f765b53155721d86035405fbc6490fb5a2c3
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-08-09 22:04:22 -07:00
Maggie White
798459c745 UFS-specific runtime I/O tuning
Tested 1/2x, 1x, 2x, and 4x the current readahead buffer and noop and
cfq I/O schedulers for /dev/block/sda, which contains /data. The most
consistent performance boost was seen across all UFS vendors and storage
sizes using cfq and a readahead buffer of 1024.

Bug: 38000161
Test: Compared 1P app launch times using app-launcher for schedulers
(noop, cfq) and readahead buffer sizes (128,512,1024,2048)

Change-Id: Ifcc9145d6f7a77ba4b3844b7892291eb348d9e1c
2017-07-21 15:29:58 -07:00
John Dias
e49327c478 Change i/o scheduler back to cfq
With noop scheduler, I see dramatic jank with an irritant i/o thread;
going back to cfq, which doesn't have nearly the same negative impact
on UX.

Bug: 62375787
Test: boot, scroll a lot
Change-Id: I3c1ad17f432b25b5359f813e070fd1266dac1f87
2017-06-20 17:16:28 -07:00
Wei Wang
a21f76d060 init-common.rc: enable dm-verity boottime tuning
Bug: 36780513
Test: muskie boot

Change-Id: I102abd2807efd43aa66852efde6dfddf277217b6
2017-06-02 22:30:48 -07:00
Steve Muckle
a035f6bbef disable kernel module loading after boot
Disable kernel module loading after boot on user builds.

Bug: 38204366
Test: boot walleye, confirm kernel module does not load after boot
Change-Id: I40217ff37c1b1bcf00155e5bec74b92a020481f7
2017-05-10 16:28:53 -07:00
Wei Wang
2b9bd3ff9a muskie/walleye: boot time optimization
Bug: 36780513
Test: walleye boots and touch screen works
Change-Id: Ib3ff955886109a000ab43dc6013540bb03a31b78
2017-04-04 09:48:28 -07:00
Thierry Strudel
1db28dc80b init-common.rc: add muskie/walleye specific rc file
Change-Id: I4ef62518124a8c78dbb940e8f533704f9ee8fcb8
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-27 20:47:11 +00:00