This reverts commit da90fd9871.
Reason for revert:
1-18 13:33:52.927 2356 2356 E System : ******************************************
11-18 13:33:52.927 2356 2356 E System : ************ Failure starting system services
11-18 13:33:52.927 2356 2356 E System : java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.PreferredComponent.sameSet(PreferredComponent.java:266)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.PreferredIntentResolver.shouldAddPreferredActivity(PreferredIntentResolver.java:63)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.Settings.readPreferredActivitiesLPw(Settings.java:1315)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.Settings.readPackageRestrictionsLPr(Settings.java:1686)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.Settings.readLPw(Settings.java:3032)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3185)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2781)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:970)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.SystemServer.run(SystemServer.java:704)
11-18 13:33:52.927 2356 2356 E System : at com.android.server.SystemServer.main(SystemServer.java:444)
11-18 13:33:52.927 2356 2356 E System : at java.lang.reflect.Method.invoke(Native Method)
11-18 13:33:52.927 2356 2356 E System : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
11-18 13:33:52.927 2356 2356 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:946)
11-18 13:33:52.927 2356 2356 D SystemServerTiming: StartPackageManagerService took to complete: 158ms
11-18 13:33:52.927 2356 2356 E Zygote : System zygote died with fatal exception
11-18 13:33:52.927 2356 2356 E Zygote : java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.PreferredComponent.sameSet(PreferredComponent.java:266)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.PreferredIntentResolver.shouldAddPreferredActivity(PreferredIntentResolver.java:63)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.Settings.readPreferredActivitiesLPw(Settings.java:1315)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.Settings.readPackageRestrictionsLPr(Settings.java:1686)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.Settings.readLPw(Settings.java:3032)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3185)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2781)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:970)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.SystemServer.run(SystemServer.java:704)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.server.SystemServer.main(SystemServer.java:444)
11-18 13:33:52.927 2356 2356 E Zygote : at java.lang.reflect.Method.invoke(Native Method)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
11-18 13:33:52.927 2356 2356 E Zygote : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:946)
11-18 13:33:52.927 2356 2356 D AndroidRuntime: Shutting down VM
11-18 13:33:52.927 2356 2356 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
11-18 13:33:52.927 2356 2356 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.PreferredComponent.sameSet(PreferredComponent.java:266)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.PreferredIntentResolver.shouldAddPreferredActivity(PreferredIntentResolver.java:63)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.Settings.readPreferredActivitiesLPw(Settings.java:1315)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.Settings.readPackageRestrictionsLPr(Settings.java:1686)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.Settings.readLPw(Settings.java:3032)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3185)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2781)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:970)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:704)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:444)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
11-18 13:33:52.927 2356 2356 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:946)
11-18 13:33:52.928 2356 2356 E AndroidRuntime: Error reporting crash
11-18 13:33:52.928 2356 2356 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, android.app.ApplicationErrorReport$ParcelableCrashInfo)' on a null object reference
11-18 13:33:52.928 2356 2356 E AndroidRuntime: at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:156)
11-18 13:33:52.928 2356 2356 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
11-18 13:33:52.928 2356 2356 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
11-18 13:33:52.928 2356 2356 E AndroidRuntime: at java.lang.Thread.dispatchUncaughtException(Thread.java:2191)
Change-Id: I9c018f52c16dc6cf1a160db58e08fbeb42803af6
1. If retrying handover, do not tear down the
data connection on the source transport.
2. For handover fallback, fail fast the retry instead
of letting it retry and fail with ON_OTHER_TRANSPORT
error. This is no behavioral change but optimization
only.
(clean cherry-pick)
Fix: 170796126
Test: Manual
Merged-In: I1ee4e638892bfdba19f368c5e2ae7ecaf2c7364c
Change-Id: I1ee4e638892bfdba19f368c5e2ae7ecaf2c7364c
Currently, if BiometricPrompt is dismissed quickly (e.g. by tapping on
the top half of the screen to dismiss it while it's being shown) the
ongoing authentication session may not be canceled and the
onAuthenticationError callback may not be run. This commit fixes the
issue by ensuring that a dismissal reason is sent to callback if the
prompt is shown while in the "pending dismissal" state.
Test: atest com.android.systemui.biometrics
Test: Manual:
1. Using a custom test app, trigger BiometricPrompt to be shown
2. While the prompt is being shown, repeatedly tap top half of screen
3. Ensure the prompt is dismissed and onAuthenticationError is called
Bug: 173417042
Change-Id: I99284cb7fc413c0790f50056d553dc311117ce0c
Ensure that the memory lock is released before calling
persistPendingHistory in HistoricalRegistry.
Bug: 172776374
Test: none
Change-Id: I909de9f83cd43c695d0db99f82252ce36a0b972b
(cherry picked from commit 42387ceaed)
The change I41b38d4828f8dc5d90dbb3ae59462812b8c036f2 accidentally
started disting the public android.jar to the path where the system
android.jar is expected.
Move the dist rules from the public stubs to the system stubs where
they belong.
Bug: 172937217
Test: m sdk dist && \
zipinfo out/dist/apistubs/android/system/android.jar | \
fgrep telecom/Phone.class
Change-Id: If20cb4ec32e1eb631a824ecc180d33c5088ff7c8
- Make it apply to every thread, and thus remove the restriction
that it must be called while the program is single threaded.
- Make it change TCF0 itself (on all threads), instead of requiring
callers to do it themselves, which can be error prone.
And update all of the call sites.
Change the implementation of
android_mallopt(M_DISABLE_MEMORY_MITIGATIONS) to call
android_mallopt(M_SET_HEAP_TAGGING_LEVEL) internally. This avoids
crashes during startup that were observed when the two mallopts
updated TCF0 unaware of each other.
I wouldn't expect there to be any out-of-tree callers at this point,
but it's worth noting that the new interface is backwards compatible
with the old one because it strictly expands the set of situations in
which the API can be used (i.e. situations where there are multiple
threads running or where TCF0 hadn't been updated beforehand).
Bug: 135772972
Change-Id: I7746707898ff31ef2e0af01c4f55ba90b72bef51