Fix outpput of dumpsys package
`dumpsys package` intends to print user state attributes as one line and then additional install state with additional indentation on new lines. In ag/24359877 we added an additional quarantine user state that ended up getting prefixed to the install reason line: User 0: ceDataInode=1919 ... quarantined=false installReason=0 firstInstallTime=2023-08-04 15:14:41 uninstallReason=0 This led to CTS failures where the tests depended on the output of `adb shell dumpsys package`, in particular anything using `bedstead` with instant apps. This change restores the proper line separation and splits out the code with a comment to help avoid breaking the output again in the future: User 0: ceDataInode=1919 ... quarantined=false installReason=0 firstInstallTime=2023-08-04 15:14:41 uninstallReason=0 Fixes: 286970682 Test: atest --instant CtsContentTestCases:android.content.cts.ContentProviderTest Change-Id: I4359fccba2d03cc9e1c1cca45bcaa87d2de75905
Loading
Please register or sign in to comment