summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java
AgeCommit message (Collapse)Author
2020-10-09Merge SP1A.200921.001Scott Lobdell
Change-Id: I6a8d7215f874fed05e9fec71b17c8a3d1e2c94e0
2020-09-169/N Clean Up Keyguard Class StructureDave Mankoff
KeyguardInputView no longer implements KeyguardSecurityView. This cl seeks to clean up some of the lingering vestiges from this large chain of refactors. I have manually tested none, swipe, pattern, pin, and password views for successfully unlocking, as well as multiple failed attempts resulting in temporary lock outs. Fixes: 166448040 Test: atest SystemUITests && manual Change-Id: I36275598001184e774677cf2dbb16dec8dc7ab5b
2020-09-167/N controllers for remaining Keyguard Password Views.Dave Mankoff
No real functionality changes (hopefully). Just moving objects into controllers. Test: manual Bug: 166448040 Change-Id: I4b74eddd18d29dd8966caa32c5960ff8be2e6f43
2020-07-28Merge "Update language to comply with Android's inclusive language guidance" ↵Treehugger Robot
am: 17867fdf87 am: 0071fe0249 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1373531 Change-Id: I66ac5c84d1b5230657c867bf36bf7d0f5a4cd785
2020-07-28Update language to comply with Android's inclusive language guidanceCurtis Belmonte
See https://source.android.com/setup/contribute/respectful-code for reference Test: Presubmit Bug: 161896447 Change-Id: If0192e33d6d063c7dfda72af1509a3fbd16e3044
2020-05-07SystemUI:there is an unexpected swipe lockWeijie Wang
There is a time delay that the SystemUI get READY state from telephony,and the SystemUI think it's PIN_REQUIRED state when check state from telephony api. That will cause the internal status be in a wrong state and make the screen locked. Use new api check the SIM state. Change-Id: Iede5925c5af2a70cc15451f8560e31f76da64caa CRs-Fixed: 2663732
2020-02-28Created typed class for the pin resultDaniel Bright
The initial goal was to remove PhoneConstants. But in doing so, it made sense to replace an int[] array as a return type with a strongly typed class called PinResult. Bug: 147774309 Test: SystemUITests Merged-In: I42f2141f9378fc4f7a6f11af6073d38f917528bc Change-Id: I42f2141f9378fc4f7a6f11af6073d38f917528bc
2020-02-04Merge RP1A.200123.001Steven Laver
Change-Id: I16a4437d9876db7a6a2b07231b4584df4564bee4
2020-01-22Merge RP1A.200106.001Steven Laver
Change-Id: I321486af27bd4665b73da2c51d88e293b54f3a4c
2020-01-20Created typed class for the pin resultDaniel Bright
The initial goal was to remove PhoneConstants. But in doing so, it made sense to replace an int[] array as a return type with a strongly typed class called PinResult. Bug: 147774309 Test: SystemUITests Change-Id: I42f2141f9378fc4f7a6f11af6073d38f917528bc
2020-01-08Use proper Telephony API to supply sim pin and puk.Malcolm Chen
Bug: 146593004 Test: manual - pin and puk Change-Id: Ic64cc8a48c6e28f3ac8a013cbb4c15e7e58f7f4d Merged-In: Ic64cc8a48c6e28f3ac8a013cbb4c15e7e58f7f4d
2020-01-02Use proper Telephony API to supply sim pin and puk.Malcolm Chen
Bug: 146593004 Test: manual - pin and puk Change-Id: Ic64cc8a48c6e28f3ac8a013cbb4c15e7e58f7f4d
2019-11-22Merge RP1A.191114.001Steven Laver
Change-Id: I30dd2dce3b0c2fcd635381413a213fe3e97be97b
2019-11-08Remove usage of IccCardConstants hidden APIJayachandran C
This CL replaces all the reference of IccCardConstants.State with TelephonyManager SIM card state values. Bug: 111498835 Test: Manual atest com.android.systemui.statusbar.policy Change-Id: I810cce9ff418e34a8dbea06e91fa25b2300647e0
2019-11-04Remove usage of hidden API in System UIJayachandran C
TelephonyManager.getSimCount() TelephonyManager.getDefault() TelephonyManager.from() Bug: 111498835 Test: Manual DSDS test cases atest com.android.systemui.statusbar.policy Change-Id: I676a70a5dbd2dcbdbbee6cd889ffd614dc42fb9d
2019-10-14Merge RP1A.190923.001Steven Laver
Change-Id: I293059a06fd09d0377ea06c58cf62eeb31d4668e
2019-09-27Merge RP1A.190822.001Scott Lobdell
Change-Id: I515dc97a1060fccf4c2fd8f678f8f90753aa1289
2019-09-01[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791Hyunyoung Song
Test: presubmit setup on source branch Bug: 130289146 Create a Gradle build for SystemUI Bug: 136279712 Daggerize FalsingManager Bug: 137324767 "Unable to instantiate service com.android.systemui.doze.DozeService" exception breaks launcher tests Bug: 137563419 Remove Bouncer reveal delay from bypass flow Bug: 138787339 Allow Services and Activities to be injected into directly. Bug: 139128921 [AS 3.5 RC2, SDK API 29 rev 2] Overload resolution ambiguity: while removing element from HashMap Bug: 64712476 Import translations for dev branches Change-Id: Ib7fd4706c070907fd556c3532957f3b1b046de6d
2019-08-31Fix the looper that KeyguardUpdateMonitor is using.Dave Mankoff
Bug: 139051615 Test: atest SystemUITests && atest SystemUIGoogleTests Change-Id: Ic4dd5978001c208504c137cee41f363d7e70b1b5
2019-08-19SystemUI: Fix device keeps showing "Phone is starting"Yingren Wang
After device's pattern lock and SIM Card's PIN lock are settled, reboot and we can see screen keeps showing "Phone is starting". During the process of showing SIM Pin lock, SIM Pin class handle "Absent" event and dismiss keyguard. That keyguard has been hidden will trigger system resume the FallbackHome activity. The FallbackHome activity will show "Phone is starting" and leads to this issue. Remove the code for ABSENT in KeyguardSimPin/Puk class to fix it. Change-Id: I55e41f2d79fe057e413dd2724f504be8867040e5 CRs-Fixed: 2503092
2019-08-14Removing unnecessary R.java declaration for subpackages, to make gradle ↵Sunny Goyal
setup simpler Removed: com.android.settingslib.restrictedlockutils com.android.settingslib.helputils com.android.keyguard Moving sysui settings to use sysui settings resource package name Test: Everything compiles / presubmit Bug: 130289146 Change-Id: I5d760fa2f04439d24b455839f7bdd5cc499e840f
2019-08-02Fix issue where SIM PIN message would be visibleLucas Dupin
We're resetting the view state when a config change happens, but they can arrive even after the view is not visible anymore. Let's not update the message area if we're GONE, since the message area is shared with the Pattern and PIN pad views. Test: manual Fixes: 138751729 Change-Id: Idb4877f8ed22e8b640670bb9da66bb124a2f8166
2019-07-26SystemUI: abnormal is observed after entering PIN1sxia
SystemUI abnormal is observed after entering PIN1. Caused by wrong subid that be assigned when the SIM card status is ABSENT. Change-Id: Ic635105e1200b0759cdedd703d0378a38a3133fb CRs-Fixed: 2487131
2019-07-26Revert "SystemUI: abnormal is observed after entering PIN1"shaohua xia
This reverts commit a35c6e4fea6b10582cb7e60f0af9a1a61dae356d. Reason for revert: <INSERT REASONING HERE> CRs-Fixed: 2487131 Change-Id: I77c58862e2f05d516d69392c294f359a00d43804
2019-07-16SystemUI: abnormal is observed after entering PIN1sxia
SystemUI abnormal is observed after entering PIN1. Caused by wrong subid that be assigned when the SIM card status is ABSENT. Change-Id: I0c03a620fccfb58358f599cf8eac94e587cebfa4 CRs-Fixed: 2487131
2019-05-08Merge QP1A.190501.001Steven Laver
Change-Id: I0f9f887d6a33702a6988709d8296731cfdb8f73d
2019-04-19Fix SIM PIN listener registrationLucas Dupin
User correct lifecycle methods for listener regristion, otherwise error messages would show up on the shared text field Test: add/remove locked sim card Test: solve sim challenge, go to bouncer Fixes: 130906933 Change-Id: I5327c447b770da1148c3e3ef19c6a75e69832a90
2019-04-18Move padlock to the top of the lock screenLucas Dupin
Test: tap on notification on lock screen Test: tap on notification on shade locked Test: swipe down from the top expanding QS Test: swipe up from LS Test: switch between pin, pattern and password Test: add and remove locked sim card Test: atest KeyguardBottomAreaTest Test: atest KeyguardClockPositionAlgorithmTest Test: atest KeyguardMessageAreaTest Test: atest KeyguardIndicationControllerTest Test: atest StatusBarKeyguardViewManagerTest Test: atest KeyguardBouncerTest Test: atest KeyguardPatternViewTest Fixes: 130398499 Fixes: 130298363 Fixes: 129784068 Fixes: 130223966 Change-Id: Ib1706de259fa4b1f4ef13f654cbd931457733d82
2019-04-05Merge QP1A.190404.001Diego Wilson
Change-Id: Id8d32c9377185cecfb4bacc9a86ad7a98ab17a25
2019-03-28Show carrier name on pin lock screenFabian Kozynski
When user has DSDS and both sims are locked, the pin lock screen doesn't show which carrier is requiring the pin. b/128994337 tracks fixing the "Card 1" name on turning on the phone. Test: manual Bug: 125290365 Change-Id: I8c6b6ecd6b3c1e5f111ebbb1ceabbfb2b083ed0d
2018-12-21WIP - Improves PIN/PUK handling events in keyguardBrad Ebinger
1) Remove old bypass code for ABSENT in KeyguardPin/Puk class and move it into KeyguardViewMediator where it belongs. 2) Fix issue where pulling out sim and then putting it back in doesnt trigger PIN/PUK screen until turn off->on screen by clearing SimData state for the slot that became ABSENT. Bug: 119560495 Test: Move across eSIM and pSIM as well as manually remove PIN/PUK'ed SIMs Change-Id: Iebf2cb046b1a1d7e0689a2329a9f78e1cbb6aca4
2018-12-05Merge QP1A.181119.002Diego Wilson
Change-Id: Ieb6ae3730e8b01f867f9b5120de1ab3067653d21
2018-11-14Fixes import ordering.Gus Prevas
Test: n/a Change-Id: I432e11b52deb7974e50f62076af3b7aa07e364b6
2018-09-27SystemUI: Fix wrong SIM PIN messageWeijie Wang
When SIM card is pull out, the subId is changed to invalid, but ths subId in KeyguardSimPinView is not updated.It will display the default wrong PIN code message when sim card is re-inserted. Send all the sim state changed event to listeners in KeyguardUpdateMonitor, let listeners to decide whether to check the subId is valid. Change-Id: I67caa2f08bcad9a52083ddb1035896f1be0add01 CRs-Fixed: 2314055
2018-05-03SystemUI: Add SlotId for MultiSimWeijie Wang
Add slotId to distinguish between sim1 and sim2 in Simpinview Change-Id: Ia73aad3e6188d2c080dc72a0d984105056f2fdfa CRs-Fixed: 2226747
2018-04-11Update to PPR1.180411.001Jiyong Park
Conflicts: services/core/java/com/android/server/ConnectivityService.java services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java services/core/java/com/android/server/om/OverlayManagerSettings.java Change-Id: I44e49cb1dc1cf3f10e12b49ca84d0cb486925d08
2018-04-10Fix the TalkBack say wrong sentence after sim unlockfelkachang
After sim unlock, Telephony manager return result is ready and the remainAttemp is 0. The remainAttemp zero will make the following process get the password error message in showDefaultMessage. So, the process should reset the mRemainingAttempts to be -1 after confirming the sim state is ready. To reset the mRemainingAttempts will make the showDefaultMessage not to trigger the wrong talkback. Bug: 72663742 Test: atest SystemUITests Change-Id: I1b9b14282f74b3f41932af73c65d67379b9ed916
2018-03-30SystemUI: SIM PIN locked view can't pop up after removed one SIMWeijie Wang
RootCase:SimPinView is unlocked by incorrect subId Change-Id: I7c2b24e9c8d791d9c4f619d659e0f66e68bd3f01 CRs-Fixed: 2208323
2018-02-22Use accessibility pane API in keyguardPhil Weaver
Using the new accessibility pane title API to identify the pattern, pin, and password unlock screens. Bug: 73131182 Test: Verified that accessibility events are properly sent when unlocking the phone with each of the lock methods. Change-Id: I32594f4736b503e7f9e3be96e9f77a84ffcadc54
2018-01-29Add alert dialog for disabling current eSIM profile failedQingxi Li
This CL add an alert dialog under SIM PIN/PUK screen when users try to disable current eSIM profile and failed. Bug: 62680294 Test: E2E Change-Id: I97d8cf1ae8fb30ece48c4731e72bfdfedf69d49a
2018-01-11Allow custom keyguard "prompt reason"Lucas Dupin
Adds the possibility of presenting a custom message on the keyboard if you're trying to dismiss the keyguard. This is particularly useful when you're showing the bouncer because custom authentication (SmarLock) failed. Test: launch FLAG_SHOW_WHEN_LOCKED activity and call KeyguardManager#requestDismissKeyguard Fixes: 63940122 Change-Id: I0d88c0e59521887efa56d74874062b2b14970e4e
2017-12-07Fix available/remaining PIN/PUK attempts.Ruthwar Kumar Ambeer
* Fix to properly display attempts remaining for PIN/PUK. * On bootup show the available PIN/PUK attempts if sim is locked on PIN/PUK. * Show incorrect password message on entering wrong PIN/PUK password. In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on PIN and reset the flags to show the default message. Bug: 37782683 Change-Id: I46d7d5dd86977cddecf3147add73ef6ccc64b257
2017-10-06Merge "Fix NPE when removing PIN locked SIM during E911 call"Brad Ebinger
am: b7dc3a3b21 Change-Id: I16555b53bbf9c743921cbd36578af3550705a242
2017-10-05Fix NPE when removing PIN locked SIM during E911 callBrad Ebinger
There is the possibility of mCallback being null while the Keyguard still has a PhoneStateListener registered for onSimStateChanged callback. This can cause a NPE. Bug: 66986066 Test: Manual, PIN/PUK locked SIM Change-Id: I799c9521f787e800e259c3bdce9edee3f844f5f3
2017-09-01Merge "Remove PIN/PUK keyguard when SIM is removed/ready"Brad Ebinger
am: 43f9f0290c Change-Id: I9e28e3975331a7af11747065761632a0566deb56
2017-09-01Remove PIN/PUK keyguard when SIM is removed/readyBrad Ebinger
1) If the PIN/PUK keyguard comes up for a locked SIM, it can not be removed by removing the affected SIM. It can only be removed by rebooting the device or entering a bogus PIN. This change automatically clears the keyguard when when the locked SIM is removed. It will be shown again if the locked SIM is re-entered. 2) If the device is PUK locked and the code **05*PUK*new pin* new Pin# is entered in the emergency dialer, it will unlock the SIM. By listening to the READY state, we can remove the keyguard when the SIM is unlocked by other means. Bug: 64469515 Bug: 64044132 Test: Manual Merged-In: I7b576ee7e38f141075cae094e3d1f74b7145d53f Change-Id: I9507f80edcd4c04dfa0cc3b48a25e619aafa9eb3
2017-06-06Only show the "Disable eSIM" when eSIM profile is enabledqingxi
Before this CL, we always show "Disable eSIM" button in SIM lock screen if the device has eSIM chip. This may make the user who has never used eSIM or currently is not activated the eSIM Profile confused. This CL makes the "Disable eSIM" button only be shown iff the device has eSIM chip and the current activated Profile is eSIM profile. Bug: 37518023 Test: E2E Change-Id: Id5a1325f49733528a370ec7145fe49731243bcf7
2017-04-17Merge "Add disable carrier button for eSIM"Qingxi Li
2017-04-14Add disable carrier button for eSIMqingxi
This button is used for eSIM devices. For the phone without eSIM, when the SIM is lock, the user can remove the SIM card to unlock the phone. This button is used to let the user disable the current carrier to unlock the phone (the same as removing SIM card for non-eSIM devices). Bug: 37275510 Test: manual test Change-Id: I7e648e4bb5033c1ab3bfdfea9513e65632c49f2a
2017-04-14Remove unnecessary casts on calls to findViewByIdAlan Viverette
Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c