Commit Graph

94 Commits

Author SHA1 Message Date
Christopher Tate
1e99f0ce41 Properly target the factory-reset broadcasts
Bug 34587823
Test: attempt factory reset from UI

Change-Id: I4ba65f4b7e07792b37e7587008ad0ab1bc6c1fb0
2017-01-31 20:52:52 +00:00
Sudheer Shanka
ee2d592c72 Update MountService to StorageManagerService.
Bug: 30977067
Test: N/A
Change-Id: I8c5eda7ed068bc7c184d559c0a27c52a74094f1a
2016-11-09 15:47:53 -08:00
Sudheer Shanka
1d8da1d51a Update usage of IMountService constants.
Bug: 30977067
Test: Existing tests passing.
Change-Id: I9430b1153d277f312aff95e42adad79ba2d92500
2016-10-19 15:16:30 -07:00
Jim Miller
8ec45f877e Show signal strength indication while in CryptKeeper
Fixes bug 28011104

Change-Id: I66186e3f47b469489578cd776a31bdd6193b6d92
2016-05-03 16:39:11 -07:00
Seigo Nonaka
259775314a Revert "Revert "Fix no keyboard on N builds""
Looks like the underling issue is not fixed yet.

This reverts commit 7bb0465687.

Bug: 26190615
Bug: 28151196
Change-Id: Icee6d90fc4336e832f082ce2974edfa558170030
2016-04-13 08:41:43 +00:00
Yohei Yukawa
7bb0465687 Revert "Fix no keyboard on N builds"
This reverts the previous commit [1] since the keyboard shows up without
such a workaround.  Presumably someone might have fixed something in
somewhere.

 [1]: Ifd588bf7db76f9ea5d6a90854f8e92f86f4c2910
      250faf9243.

Bug: 25942488
Bug: 26190615
Change-Id: Ie0e0ead960473a3504fc88a4f7d4d18108ef0e18
2016-04-01 17:20:37 -07:00
Paul Lawrence
250faf9243 Fix no keyboard on N builds
Bug: 25942488
Bug: 26190615
Change-Id: Ifd588bf7db76f9ea5d6a90854f8e92f86f4c2910
2015-12-15 02:33:27 +00:00
Paul Lawrence
278410435a Store cooldown state through rotation
Bug:24361606
Change-Id: Ifc732ce7d157aaa9a21aaedb9e64bca9ae4a56c4
2015-11-24 12:42:09 -08:00
Jason Monk
39b467482d Depend on support lib preferences
Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
2015-10-13 10:12:20 -04:00
Paul Lawrence
ae4a557a3f Revert "Remove don't kill flag from CryptKeeper to stop logspam"
This reverts commit 4f60679b76.

Bug: 24197523
Change-Id: I8c1ebef08f9b5cef4e4c31187a8ba80306afc840
(cherry picked from commit b33741fce7)
2015-09-19 17:31:08 +00:00
Paul Lawrence
4f60679b76 Remove don't kill flag from CryptKeeper to stop logspam
Bug: 23500739
Change-Id: Ibf06121bf37a42853eeeaef699f5074420b2af31
2015-09-14 14:55:57 -07:00
Paul Lawrence
2a6552ed50 Disable back button on crypto screen
The back button cannot do anything from this activity as it is
only ever launched first thing at boot. So do not permit going back.

Note that screens launched from here (emergency dialer, keyboard config)
still work and their back buttons still work.

Bug: 20730074
Change-Id: I939e05450e5fbd61d12890325c4afe9dcad35c1e
2015-05-27 20:34:14 +00:00
Paul Lawrence
c04420ce25 Honor password visible setting in CryptKeeper
Requires matching framework change:
  https://googleplex-android-review.git.corp.google.com/#/c/692822/

Bug: 20184626
Change-Id: I04bfb9ed61a7b40fbc28fbc0b4b10bf848b34a2c
2015-05-27 20:33:46 +00:00
Seigo Nonaka
e792729b4c Making the behavior deterministic when the IME picker is shown.
In the language & input settings, the auxiliary IME subtypes have been
hidden since they should not be a default.  With Id156c85535a22, now we
can explicitly control the behavior of input method picker.
Note the this CL should not change any user visible behaviors.

Bug: 20763994
Change-Id: I9f797d07ba02363fab58ceb9aecb3cc11fbc407e
2015-05-07 23:18:49 +00:00
Fyodor Kupolov
19280af592 Use primaryUserOnly attribute to disable CryptKeeper
CryptKeeper activity is now disabled by using primaryUserOnly, instead of
broadcast receiver. This allows to avoid bringing up the process, when it
is not necessary.

Change-Id: I5d1f979b96093c6769f6c920b18517971835a7ad
2015-01-27 12:07:16 -08:00
Fyodor Kupolov
1b5cc427f0 Disable CryptKeeper activity for secondary users
For secondary users, disable CryptKeeper activity in a broadcast receiver of
USER_INITIALIZE intent. This change has the following benefits for guest
user switching:
 - The code will be executed earlier in the user switching flow, when the
   screen is frozen by WindowManager.
 - Initialization of CryptKeeperActivity is skipped

Bug:18670536
Change-Id: I60300198b605c26ad15afe2c874d5f1be7da5087
2014-12-16 02:48:36 +00:00
Paul Crowley
13b8b564f8 Reduce number of attempts before factory reset to 30.
Bug: 18292029

Change-Id: I2a78775d0505a3064838443ea631fee0ad612e5c
2014-11-21 09:44:09 +00:00
Paul Crowley
51e0811a7a Force power cycle on cooldown.
Bug: 18292029
Change-Id: I02b6eff56902859ae3aba4909656553f4b322b0c
2014-11-13 14:52:19 +00:00
Paul Crowley
2555e5f104 Prevent factory reset for short passwords in CryptKeeper
Since patterns and passwords can't be shorter than 4
elements, we shouldn't count them against attempts to unlock
the device.  If we do, we risk resetting the device
due to stray input.

Bug: 18211475
Bug: 18273380

Change-Id: Ib329cd3383471483cda68bfac4278b17d0c09c57

Conflicts:
	src/com/android/settings/CryptKeeper.java
2014-11-08 01:43:45 +00:00
Paul Crowley
a8c760691d Use the right message for pattern/password.
Bug: 17875087
Change-Id: I7729a4fcb993def912e950ad0ea59fd64bfc34d3
2014-11-07 23:54:56 +00:00
Paul Crowley
529834dae1 Add a new flow for decryption checking.
Bug: 17875087

Change-Id: I78ba98901bc74ae654414c0a4a303b104a629965
2014-11-06 15:49:39 +00:00
Elliott Hughes
f9d6d29163 Use the StorageManager constant for the PatternVisible key.
Bug: 17659622
Change-Id: Ibd44f5c619f61764ef4e4a3447f241e2f73339b5
2014-10-02 13:29:58 -07:00
Jeff Sharkey
d642d1abcf Merge "Include reason when wiping data." into lmp-dev 2014-09-24 23:28:00 +00:00
Jeff Sharkey
1de688d911 Include reason when wiping data.
This will help us track down who requested a data wipe.

Bug: 17412160
Change-Id: I46b3f12a661a406450d23a7974513f40beb23c8d
2014-09-24 14:08:05 -07:00
Paul Lawrence
ced7db460f Hide controls once password is known good
Bug: 17551103
Change-Id: I4fd182b7ac7a9ad7c1483979d4510b50b52e520f
2014-09-18 11:23:40 -07:00
John Spurlock
2c52651577 Settings: Ensure CryptKeeper dismisses secure keyguards.
Otherwise, the lockscreen can be shown during the decryption
challenge, which hides the challenge activity window until
the next reboot.

Bug:17512377
Change-Id: Idb6b5b3dddb3cf2dc70b784413ea310c401880af
2014-09-17 13:33:38 -04:00
Tyler Gunn
3e71b197f7 Renaming Telecomm to Telecom.
- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: Ia6e2d082eac1c1f306da691e95dd9bfb9afd37eb
2014-09-12 20:22:25 -07:00
Paul Lawrence
87abbd3ea0 Get correct factory reset reason from encryption failure
Requires matching framework change
https://googleplex-android-review.git.corp.google.com/#/c/535832/

Bug: 17213613
Change-Id: Ia8006f4a9cb5909d83f1848d9acfbc3f1e0ab5fb
2014-09-02 18:26:38 +00:00
Nancy Chen
a1ca4ed14d Merge "API Review PhoneManager -> TelecommManager. Rename methods (3/6)" into lmp-dev 2014-08-25 22:24:15 +00:00
Nancy Chen
db848a5de6 API Review PhoneManager -> TelecommManager. Rename methods (3/6)
PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both

Bug: 16960458

Change-Id: I8285f15747b66fdfad93d203d848d4a62c0f9b2a
2014-08-22 15:12:01 -07:00
Paul Lawrence
0f11e15f50 Honor hide pattern on crypto screen
Also clear pattern a little more quickly, and show owner info
even from before encrypting (since we're fixing pattern visible,
we should fix owner info too in the same way)

Bug: 17059314

Change-Id: Ie9ccd4a892a1dec32ebe60567d3b72dd6fe25060
2014-08-21 15:41:42 -07:00
Paul Lawrence
384d8e52b6 Bring up factory reset UI when decryption fails but password is correct
Needs string change
Bug: 11477689

Change-Id: I1dcca59483bff32a939b8a7d052eafebd8a1eef0
2014-08-11 15:28:47 -07:00
Paul Lawrence
bd4c3210e1 Show countdown of remaining decrypt attempts before wiping device
Bug: 16496992
Change-Id: Ibdd4bbbf9a9eeafee5e0e5ed48464d524628cf12
2014-07-24 08:38:24 -07:00
Paul Lawrence
7ae20e3ce9 Allow CryptKeeper dialogs to rotate on tablets
Tablets may be used in docking stations thus need to support landscape mode.
Phones will not be, and having them rotate is both ugly and annoying.
Also this matches lock screen behavior.

The attribute screenOrientation is not themeable, so the only way of doing
this is programmatic.

Test for truth of bool which is only set for sw600dp devices and
clear the nosensor setting from the manifest if set.

Bug: 16405551
Change-Id: I5b3f945b89402e5aa39642c2c06e98f9ca1ce298
2014-07-23 14:39:31 +00:00
Paul Lawrence
89c7570dd4 Make crypt dialogs material
White on black material theme
Center text
Remove fade to black task
Fix emergency call button

Note - does not implement all requirements of frames in the defect. More
to follow.

Bug: 15328359
Change-Id: I878e59dccffff366ba2484bb77482e168cbd2b81
2014-07-16 08:07:35 -07:00
Santos Cordon
35230e9ed7 Update CryptKeeper to use PhoneManager APIS.
Change-Id: Ie0ba36ef55869f2d7cfd3e460541c6f3bd08da55
2014-07-09 18:53:29 +00:00
Paul Lawrence
08c6ab0fea Fix back button on crypto screen
Did not reenable after entering wrong password.

Bug: 12434219
Change-Id: If8b0c22213a345b3dd0f92e02710c155c7adcd1c
2014-07-08 22:17:35 +00:00
Paul Lawrence
5a70f05e0d Fix assorted problems on Crypto screen
Show keyboard on retry with PIN or password
Show correct message on cooldown
On return from emergency call, don't override cooldown
Don't show keyboard on return from emergency call if in cooldown
Show back functionality on emergency call

Change-Id: I5cc93cb09ad758b72521bd43cfad1040be2e5f8d
2014-06-17 18:33:28 +00:00
Paul Lawrence
f6cda3b176 Remove crypto pattern after two seconds
Currently pattern is left on after a failed attempt. This change removes
it after a timeout.

Change-Id: I77830510b17396f6e64a482816f6041af0fdc166
2014-06-17 18:32:55 +00:00
Paul Lawrence
b15c68fbf1 Show time to go while encrypting drive
Bug: 15159008
Change-Id: I9bb6f86c2941cbd93572c25716d21691a4fefbef
2014-06-05 20:15:37 +00:00
Paul Lawrence
f5ca71751e Adding comment
To enable marquee'ing, you have to call setSelected on the relevant control.
Comment added to explain this. Also see defect 15327172 filed against
SDK documentation to properly explain this.

Change-Id: If8f70baa1b682070b312fa689b2edd77b50d2d6e
2014-06-02 09:33:13 -07:00
Santos Cordon
5a1233e7df am 3afbdf00: Update showCallScreen to use Telecomm (6/6)
* commit '3afbdf006057c93f930694e26306a3cc9cea34e4':
  Update showCallScreen to use Telecomm (6/6)
2014-05-30 21:32:50 +00:00
Santos Cordon
3afbdf0060 Update showCallScreen to use Telecomm (6/6)
Use TelephonyManager instead of ITelephony for showCallScreen so that
the invocation routed to telecomm instead.

Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
2014-05-29 22:35:43 -07:00
Paul Lawrence
7836ae8b55 Fix marqueeing of OwnerText on CryptKeeper screens
Have to call setSelected to make marqueeing work.

Change-Id: Ic00012c150a9cacfff2b11f2938ea0674a1f45e9
2014-05-29 10:19:08 -07:00
Paul Lawrence
c9cf31ca55 Merge "Improve power fail/reset" 2014-05-19 14:22:46 +00:00
Paul Lawrence
73456acfb4 Improve power fail/reset
On power fail/reset, an encrypted device will sit at the enter password screen
indefinitely, chirping. This is designed to attract the attention of the user.

However, it also flattens the battery, and the user who's attention is not
drawn will discover a discharged phone the next morning. We have had many
complaints about this.

Keep current functionality, but power down after 10 minutes. It's a compromise,
but seems reasonable.

@bug 12582489

Change-Id: I895c0147bed978ecf6984af2c748f971dfa0d221
2014-05-16 11:43:21 -07:00
Paul Lawrence
04425f1617 Fixing decryption messaging
Messaging currently implies encryption only works with PIN or password
(K functionality). Now that in L we support encryption with PIN, pattern,
password or swipe/none, we need to update the strings accordingly.

@bug 14257692
@bug 13674657

Change-Id: I055db1289c2c2750d217b50b653a7f36ff304aca
2014-05-16 09:22:49 -07:00
Paul Lawrence
9ac2d81d9f Show OwnerInfo on CryptKeeper screen
Depends on framework change from
  https://googleplex-android-review.git.corp.google.com/#/c/435138/

Bug 13526708

Change-Id: I16189b629b5515ec5175e05155ba4ec0c27d22fb
2014-04-01 13:47:01 -07:00
Paul Lawrence
dafbc9b02d Merge "Handle pattern cooldown correctly" 2014-03-20 13:33:54 +00:00
Paul Lawrence
2daf2641d3 Handle pattern cooldown correctly
We need to disable pattern control when in cooldown. We also need
to hide the back button completely in pattern mode.

Bug: 13329798
Change-Id: Idefea60d95db1810d340c69cc730a286011363db
2014-03-14 09:20:24 -07:00