summaryrefslogtreecommitdiff
path: root/cmds
AgeCommit message (Collapse)Author
2021-12-22Merge s-mpr-2021-12-05Eric Arseneau
Change-Id: Ic2889f5eb531008340529eadc36ec8efc62b1984
2021-09-10Merge "Fix AOSP boot animation black screen issue." into sc-qpr1-devTreeHugger Robot
2021-09-09Fix AOSP boot animation black screen issue.Shan Huang
Bug: 197740038 Test: Force stock android animation on a pixel phone in BootAnimation.cpp. (Remember to disable dynamic coloring.) Check stock android animation. Change-Id: I3c3979c344a351ec261bb12127cff971d6050367
2021-09-07Fixes boot animation not appearing issue on Oriole.Shan Huang
Test: Flash the updated animation to device. Reboot and check if the animation shows up. Bug:199179989 Fixes:199179989 Change-Id: Ic2a2496efcaca4b6ae90c167498b8cd794b46bea
2021-08-26Support rendering white pixels.Shan Huang
This CL allows dynamic color boot animations to render graphics in shades of white. Bug: 190093578 Test: adb shell stop; adb shell start. Complete reboot to see the full sequence (including the loader part) Change-Id: I672a49aff90fa04daa4bdd6fd3c0b5497cc1a115
2021-08-19Merge "Move boot color sysprop parsing to after loading zips." into sc-qpr1-devShan Huang
2021-08-19Merge "Update boot animation owners" into sc-qpr1-devTreeHugger Robot
2021-08-19Move boot color sysprop parsing to after loading zips.Shan Huang
Otherwise the sysprops would not be loaded yet and accessing them would return empty strings. Though unlikely, this is not 100% safe because boot color sysprops are not guaranteed to be loaded by the time zips are loaded. A TODO here is to understand boot steps and their timing implications so that we can fully avoid the race condition. Bug: 190093578 Test: adb shell setprop persist.bootanim.color(1-4), then reboot phone. Change-Id: I603da080b1732a436a10dbaca6f2be9f158124dc
2021-08-18Update boot animation ownersLucas Dupin
Test: none Bug: 190093578 Change-Id: Id83d1ff6bbec63ec94402260a29c3ddcbf0ae414 (cherry picked from commit 273227d1acdd9901664d7536adbd1826844c728d)
2021-08-18Revert "Revert "Revert "Revert "Implement dynamic colors for boot animation.""""Shan Huang
This reverts commit ad9cf52df959489b615f30cbf072415b3352063b. Reason for revert: Fixing broken atv test Test: atv atp test tv/platform/simple_boot_test Bug: 190093578 Change-Id: I9d6ecb6024ce49eef8007458b0d9bf0ff24906c7
2021-08-16Revert "Revert "Migrate boot animation from GLES 1.0 to GLES2.0.""Lucas Dupin
This reverts commit 2ded80094ee534cfbf360e89562f9d6f1cee33e0. Reason for revert: Working on fixing the regression that happened on Wembly, so we can resume feature work. Change-Id: I9a624beffdaf97f131046fd4441a251ed3a448ad Test: adb shell /system/bin/bootanimation Bug: 190093578 (cherry picked from commit 8eedc0293d53d31f96c2f9cd2f773149aaf5d63f)
2021-07-27Merge SP1A.210723.002Scott Lobdell
Change-Id: I220cdfc5cb9db40162fd33f400a54591018d54cf
2021-07-19Use binder-based iterator to retrieve FRROsRyan Mitchell
If for some reason there are a lot of fabricated overlays in the resources cache, the binder limit of the list of fabricated overlay infos could exceed the maximum binder transaction size. Rather than return all of the frro infos in one transactions, register an iterator with the native idmap2d service and use multiple binder transactions to iterate through all of the frros. Bug: 192948522 Test: Toggle device theme colors several times and observe frro cache Reboot device and observe old frros are deleted Change-Id: I5e9cf3ae9d1d45eda683c24141a0cd4e4301e02f
2021-06-23Merge SP1A.210618.002Scott Lobdell
Change-Id: I72d03812a8377fc014aebad8db4e68eeded2d531
2021-06-17Merge SP1A.210604.001Brian Orr
Change-Id: I5200ee05285ae422d5e9c1c00f45709a5d6188be
2021-06-15Stop exporting symbols from app_processRyan Prichard
Any symbols exported from the executable override everything else in every linker namespace. Previously, app_process exported the signal/sigchain API, but that interposition is now handled by libsigchain.so. Bug: http://b/190100879 Test: `nm -D --defined-only app_process{32,64}` shows no symbols Change-Id: I1ab1fc700c34e91535c3e679a471debbb4eb71e3 (cherry picked from commit 6b86dfb159bd26bff4aa74895221e09dce7b0718)
2021-06-03Merge changes I6da18cdb,I9de6ba64,I1af88c6d,I154783ff into sc-devRyan Mitchell
* changes: idmap2: fix cpplint warnings OMS: include idmap data in dump idmap2: create in-memory FRRO before creating file OMS: update shell command --help
2021-06-02idmap2: fix cpplint warningsMårten Kongstad
Bug: 189963636 Test: frameworks/base/cmds/idmap2/static-checks.sh Change-Id: I6da18cdbbd2fc33db711696445230a9f316dc143
2021-06-02OMS: include idmap data in dumpMårten Kongstad
Teach the overlay manager to ask the idmap service to pretty print the contents of each idmap file as part of OMS dump. This creates a single entry point for dumping both OMS and idmap data, and circumvents the problem of accessing the idmap service if it has been killed due to inactivity. Example idmap section: ---- 8< ---- IDMAP OF com.android.theme.color.sand Paths: target path : /system/framework/framework-res.apk overlay path : /product/overlay/AccentColorSand/AccentColorSandOverlay.apk Debug info: W failed to find resource 'string/accent_color_overlay' Mapping: 0x0106006e -> 0x7f010000 (color/accent_device_default_dark -> color/accent_device_default_dark) 0x01060070 -> 0x7f010001 (color/accent_device_default_light -> color/accent_device_default_light) ---- >8 ---- Bug: 189963636 Test: adb exec-out dumpsys Test: adb exec-out cmd overlay dump Test: adb exec-out cmd overlay dump <overlay-identifier> Change-Id: I9de6ba646ad4714c9d0f0d8081fbf632577107e7
2021-06-02idmap2: create in-memory FRRO before creating fileMårten Kongstad
Re-order the serialization of an FRRO and creation of the backing file. This prevents a dangling (empty) file if the serialization fails. Bug: 189963636 Test: manual: cmd overlay fabricate <bad parameters>, verify no file created in /data/resource-cache Change-Id: I1af88c6d2d1c3a881beecfb50ccaf541a249f39b
2021-05-27Disable incremental hardening on own resourcesRyan Mitchell
When an application is incrementally installed, and a resources operation fails due to the resources not being fully present, the app should crash instead of swallowing the error and returning default values to not alter the experience of using the application. Disable IncFsFileMap protections on ApkAssets that are a part of the application that is running (base and splits). Bug: 187220960 Test: atest ResourcesHardeningTest Change-Id: Ibc67aca688720f983c7c656f404593285a54999b
2021-05-21Updates OWNERS filesPatrick Baumann
Bug: 186864416 Test: Builds Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21Revert "Change mounting storage data and obb flag to on by default"Wale Ogunwale
Revert "Remove storage app data isolation checking in CTS" Revert submission 14325408-enable_storage_iso_2 Reason for revert: b/187939590 Reverted Changes: I6391b7381:Change mounting storage data and obb flag to on by... Ic2f3d1be2:Remove storage app data isolation checking in CTS Iffa8339b1:Change mounting storage data and obb flag to on by... Bug: 187939590 Bug: 148049767 Change-Id: I7fa2947593d0fe743def804bf4f7b57920978e40 (cherry picked from commit 6f5423bb8c7a50f0f964e09f02da90ef8da47f2a)
2021-05-21Merge SP1A.210513.004Chris Gross
Change-Id: Ic23aece12c3bbd2b4dcf3205fdbcdd1601deabec
2021-05-14Merge "Revert "Change mounting storage data and obb flag to on by default"" ↵Ricky Wai
into sc-dev
2021-05-14Revert "Change mounting storage data and obb flag to on by default"Wale Ogunwale
Revert "Remove storage app data isolation checking in CTS" Revert submission 14325408-enable_storage_iso_2 Reason for revert: b/187939590 Reverted Changes: I6391b7381:Change mounting storage data and obb flag to on by... Ic2f3d1be2:Remove storage app data isolation checking in CTS Iffa8339b1:Change mounting storage data and obb flag to on by... Bug: 187939590 Bug: 148049767 Change-Id: I7fa2947593d0fe743def804bf4f7b57920978e40
2021-05-13Merge SP1A.210510.001Brian Orr
Change-Id: Ia86f3e18206beabe334e3081cedbaf5b3274f78e
2021-05-07Fix the argument list to logcat from am instrumentJing Ji
Bug: 186570682 Test: am instrument Change-Id: I3290022c865ca16150c3392657f1fe9d31834fc5
2021-04-29Merge SP1A.210425.001Scott Lobdell
Change-Id: I8d45e47c131320cac5e794fd629fdef84dd3bcfc
2021-04-29Change mounting storage data and obb flag to on by defaultRicky Wai
Change mounting storage data and obb flag to on by default Test: unbundled/launcher/nexus_unit_test_multi_device_platform Test: atest android.appsecurity.cts.ExternalStorageHostTest Test: atest AdoptableHostTest Test: pass cts/cts_postsubmit_cf_stable-cloud-tf Bug: 148049767 Change-Id: Iffa8339b10427bea96aa90030463ed18c96eafce
2021-04-28Merge "Revert "Revert "Changed dpm shell commands to use 'cmd ↵Kholoud Mohamed
device_policy'""" into sc-dev
2021-04-27Revert "Revert "Changed dpm shell commands to use 'cmd device_policy'""Kholoud Mohamed
This reverts commit dc70c57eaf807641cfdf4ec164942d635f7b517d. Reason for revert: Fixed failing test Change-Id: Ib434365f441d69853ea3af6da7f3c663c16e5e1e
2021-04-27resolve merge conflicts of 2028343503da83876907ff877448bb1bf0236c97 to sc-devJooyung Han
Change-Id: I2c9c8597a967a3af3b9bf07df562c6e0f51ca3dd
2021-04-27Merge "Make OverlayablePolicy as enum type" am: 8e87bfb4fb am: 7e9f9ed9f9Jooyung Han
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686174 Change-Id: I0127ff53eec8c1e8d9847574a097160fc3e84be6
2021-04-26Merge "Conditionally show bootanimation for quiescent boots" into sc-devRobert Horvath
2021-04-26Make OverlayablePolicy as enum typeJooyung Han
It's been used as a container of constants. "enum" suits better. Fixes: 179836191 Test: m Change-Id: Icbcda5707c0d2528dcbfad7e5add8d50bc4ec5b9
2021-04-23Merge "Revert "Changed dpm shell commands to use 'cmd device_policy'"" into ↵Martin Stjernholm
sc-dev
2021-04-23Revert "Changed dpm shell commands to use 'cmd device_policy'"Martin Stjernholm
This reverts commit e311f273d4593e135d83bd41f1d4d8b4fd9fc9ad. Reason for revert: Suspected to break git_sc-dev: https://android-build.googleplex.com/builds/tests/view?invocationId=I95100008561539923&testResultId=TR98321419962361792 Bug: 186208038 Change-Id: I0dc3ee2d509f395677600590d0cbb42b4d9f1682
2021-04-23Merge "Changed dpm shell commands to use 'cmd device_policy'" into sc-devKholoud Mohamed
2021-04-22Changed dpm shell commands to use 'cmd device_policy'kholoud mohamed
Added the missing commands to DevicePolicyManagerServiceShellCommand and changed 'adb shell dpm' to call 'adb shell cmd device_policy' Fixes: 173381875 Test: atest com.android.bedstead.nene.devicepolicy.DevicePolicyTest Test: atest com.android.bedstead.nene.devicepolicy.ProfileOwnerTest Test: atest com.android.bedstead.nene.devicepolicy.DeviceOwnerTest Test: manually tested the migrated commands Change-Id: Id86382f11cf8197230ef62c33961e01b0b541358
2021-04-22Merge "Move CtsDevicePolicyManagerTestCases to group presubmit-large" into ↵Chun-Yi Lee
sc-dev
2021-04-21Merge "bootanimation: ensure that if a percent is shown, we'll get to 100." ↵Nicolas Geoffray
am: 87c254de0e am: 10e844df41 am: 55b2ba298c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681127 Change-Id: I1ee402945af4207affb77d61eb76a21c175ac1fc
2021-04-21Merge "bootanimation: ensure that if a percent is shown, we'll get to 100." ↵Nicolas Geoffray
am: 87c254de0e am: 10e844df41 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681127 Change-Id: I6c86286bdb5eb45231ea1106d0e439970b3ec7bc
2021-04-21Merge "bootanimation: ensure that if a percent is shown, we'll get to 100."Nicolas Geoffray
2021-04-21Move CtsDevicePolicyManagerTestCases to group presubmit-largeeasoncylee
The test config takes longer than 15mins to run. Move it to a dedicated group for running slow presubmit Test Mapping test. Some more context is in the referenced bug, e.g, b/174495337 The group will work exactly the same as presubmit for now. Bug: 174654670 Bug: 174495337 Test: none Change-Id: I71b6e5b285d0f12b43bf5312f9cde814d2f5f7da
2021-04-20Fix build error due to null annotations in core platform APIDaulet Zhanguzin
Change https://r.android.com/1667508 adds nullability annotations to the core platform APIs which broke this code with the error: javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException com.sun.tools.javac.code.Symbol$CompletionFailure: class file for androidx.annotation.RecentlyNonNull not found Bug: 183938110 Bug: 185929373 Test: m checkbuild Change-Id: I83e3071f851720a9f719cb226f0e84fd731a8f37 Merged-In: I83e3071f851720a9f719cb226f0e84fd731a8f37
2021-04-20bootanimation: ensure that if a percent is shown, we'll get to 100.Nicolas Geoffray
Seeing 100 while booting is not finished, or seeing eg 90 while booting is not finished isn't user-friendly. Test: update ART module, see percent progress Change-Id: I5509c83f661f937f00a7d28c789df509e3528a37
2021-04-20Merge "Fix build error due to null annotations in core platform API" into ↵Daulet Zhanguzin
rvc-qpr-dev-plus-aosp am: b016acc8c3 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14236420 Change-Id: Iedceb78f447cdaaadf1a816f0ea073c3043d70fa
2021-04-20Fix build error due to null annotations in core platform APIDaulet Zhanguzin
Change https://r.android.com/1667508 adds nullability annotations to the core platform APIs which broke this code with the error: javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException com.sun.tools.javac.code.Symbol$CompletionFailure: class file for androidx.annotation.RecentlyNonNull not found Bug: 183938110 Test: m checkbuild Change-Id: I83e3071f851720a9f719cb226f0e84fd731a8f37 Merged-In: I83e3071f851720a9f719cb226f0e84fd731a8f37
2021-04-15Conditionally show bootanimation for quiescent bootsRobert Horvath
Allow bootanimation to play if the boot is quiescent and the system property ro.bootanim.quiescent.enabled is set to true. This allows the bootanimation to become visible if the display is turned on during the bootanimation. If OEMs want this behavior and the device implements suppression of video/audio during quiescent boot, they can set the system property ro.bootanim.quiescent.enabled. Bug: 185118020 Test: PRODUCT_PRODUCT_PROPERTIES += ro.bootanim.quiescent.enabled=true adb reboot quiescent Spam `adb shell input keyevent POWER` during boot Test: Repeat the above test with the property set to 0 Change-Id: I54a4ad552704106ca06c4992fed4a2d501aa3fa5