18265 Commits

Author SHA1 Message Date
Alan Viverette
d5c72cbc23 Merge "Remove icon from base alert dialog, use light theme" 2014-07-09 21:45:32 +00:00
Alan Viverette
c65ff211af Remove icon from base alert dialog, use light theme
BUG: 16160305
Change-Id: I3cc5b5f0f02ddffb19b06b4796dedb98a6083454
2014-07-09 23:23:43 +00:00
Jeff Sharkey
30303faea6 Merge "Extend pm to support sessions and split APKs." 2014-07-09 21:45:32 +00:00
Jeff Sharkey
ec55ef0934 Extend pm to support sessions and split APKs.
Separate commands to create an install session, stream files into the
staging area, and then commit the install.  Streaming can accept data
from stdin across adb, avoiding extra copy from push.

Extend FileBridge to support blocking close().  Always destroy
session regardless of result.

Bug: 14975160
Change-Id: Ic3f462e7d1901079b785e210228950cdfa676466
2014-07-09 16:55:56 -07:00
Colin Cross
ed51d70df8 Merge "ActivityManager: pass the main uid of the app to lmkd" 2014-07-09 21:39:59 +00:00
Andres Morales
54f5884b35 Merge "Service for reading and writing blocks to PST partition" 2014-07-09 22:27:31 +00:00
Andres Morales
68d4acd205 Service for reading and writing blocks to PST partition
Permits apps with permission
android.permission.ACCESS_PERSISTENT_PARTITION to obtain
a read and write data blocks to the PST partition.

Only one block ever exists at one time in PST. When
a client writes another block, the previous one is
overwritten.

This permits storing a block of data that will live
across factory resets.

Change-Id: I8f23df3531f3c0512118eb4b7530eff8a8e81c83
2014-07-09 16:27:17 -07:00
Jim Miller
c522d1646a Decouple critical policy power update from SCREEN_ON broadcast
This attempts to fix a bug where ordered broadcasts like
ACTION_SCREEN_ON are substantially delayed by misbehaving
receivers.  Instead, we immediately send the state to mPolicy
so that it can wake/sleep the device without delay.

Fixes bug 14313639

Change-Id: I21a191f90e0a19f1ee75c160ecc4e63e8def709e
2014-07-09 21:12:09 +00:00
Jeff Sharkey
dbbf07a5c7 Upgraded system apps could be mono or cluster.
Derive old-style paths for monolithic installations, otherwise
assume cluster installation.

Bug: 16163776
Change-Id: I03f1a12f9c07f6177a5c09be2bfe967416c07652
2014-07-09 13:14:01 -07:00
Colin Cross
d908edd810 ActivityManager: pass the main uid of the app to lmkd
The uid and pid will be used to together to find any forked processes
and kill them.

Bug: 15313911
Change-Id: I2edb51527e5d1a977c0fad0e6c959c8438bb4be9
2014-07-09 11:30:51 -07:00
Robin Lee
284d0906cd am 06505d23: am 1f0180bf: am 74803e55: Merge "Make misc config directory during user creation"
* commit '06505d234ddf66cb71d1f7defd096bdf68bc222d':
  Make misc config directory during user creation
2014-07-09 17:57:54 +00:00
Robin Lee
06505d234d am 1f0180bf: am 74803e55: Merge "Make misc config directory during user creation"
* commit '1f0180bfa877373b239a5675f715288db829fa75':
  Make misc config directory during user creation
2014-07-09 17:43:56 +00:00
Robin Lee
1f0180bfa8 am 74803e55: Merge "Make misc config directory during user creation"
* commit '74803e559caffe235b86dc52cf76ef98343c0d74':
  Make misc config directory during user creation
2014-07-09 17:39:13 +00:00
Julia Reynolds
fe05380984 Restrict factory reset with user restrictions.
Bug: 15985879
Change-Id: I524bd8a790798a85a679aa195e634f6e0227d09f
2014-07-09 11:52:42 -04:00
Craig Mautner
3bc1bafaba am 6d6d2189: am 08881385: Merge "[ActivityManager] Prevent potential deadlock from system error dialog and InputMethodManager."
* commit '6d6d2189625a679948920861b957948b505cb53f':
  [ActivityManager] Prevent potential deadlock from system error dialog and InputMethodManager.
2014-07-07 21:24:41 +00:00
Craig Mautner
6d6d218962 am 08881385: Merge "[ActivityManager] Prevent potential deadlock from system error dialog and InputMethodManager."
* commit '08881385a86bf887669a555ae03759c374ec9c50':
  [ActivityManager] Prevent potential deadlock from system error dialog and InputMethodManager.
2014-07-07 21:19:45 +00:00
Craig Mautner
9d8a30d9e1 am a7f02a5c: am ef2e7667: Merge "[ActivityManager] Avoid keeping restarting home when only home activity exists."
* commit 'a7f02a5cda27147fe7076805187fb6fbc60fdcfb':
  [ActivityManager] Avoid keeping restarting home when only home activity exists.
2014-07-07 17:26:20 +00:00
Craig Mautner
a7f02a5cda am ef2e7667: Merge "[ActivityManager] Avoid keeping restarting home when only home activity exists."
* commit 'ef2e76675a6c60a2a4764a2e19fdb2c4d9beb00e':
  [ActivityManager] Avoid keeping restarting home when only home activity exists.
2014-07-07 17:23:06 +00:00
Craig Mautner
0a99270250 am 09c1af5d: am c66da9d6: Merge "[ActivityManager] Prevent kill a restarted process again."
* commit '09c1af5d5c43f716fb4093eae6cf5442e7bb88d1':
  [ActivityManager] Prevent kill a restarted process again.
2014-07-07 15:41:55 +00:00
Craig Mautner
09c1af5d5c am c66da9d6: Merge "[ActivityManager] Prevent kill a restarted process again."
* commit 'c66da9d606fa3091540bc4c51c2904cc949bf777':
  [ActivityManager] Prevent kill a restarted process again.
2014-07-07 15:36:33 +00:00
Craig Mautner
53cc7d7998 am 7611a5d3: am 5acdd0f6: Merge "[ActivityManager] Ensure alive process is not killedByAm."
* commit '7611a5d32889f54b1763cf076a442a0575c69b51':
  [ActivityManager] Ensure alive process is not killedByAm.
2014-07-07 15:06:41 +00:00
Craig Mautner
7611a5d328 am 5acdd0f6: Merge "[ActivityManager] Ensure alive process is not killedByAm."
* commit '5acdd0f67db9b5f41a89dfb5200f37d6f5f984ec':
  [ActivityManager] Ensure alive process is not killedByAm.
2014-07-07 15:00:47 +00:00
Craig Mautner
c66da9d606 Merge "[ActivityManager] Prevent kill a restarted process again." 2014-07-06 03:24:06 +00:00
riddle_hsu
7f1e3f3e93 [ActivityManager] Prevent potential deadlock from system error dialog and InputMethodManager.
Sympton:
When application crash in a special timing and system server's InputMethodManager is binding, deadlock may occur.

Root Cause:
Thread(1): When using InputMethodManager in system server, it will lock mH(handler) of InputMethodManager,
and sometimes it will call to InputMethodManagerService::showCurrentInputLocked and will call bindService at some condition,
then it will also lock ActivityManagerService.
Thread(2): When an application crashed, it will lock ActivityManager when showing crash dialog, inside the dialog,
it will call setEnabled of Button and lock mH of InputMethodManager.setEnable of TextView will lock IMM's handler.
So the deadlock happened as the flow: (2) lock AMS -> (1)lock mH -> (2)wait mH -> (1) wait AMS

Solution:
Reduce nested lock of error dialog: post message to let (2) lock mH after release AMS lock.

Change-Id: Id85c29406236db3b5fca9655fde1fcaf0afd1337
2014-07-08 04:30:19 +08:00
riddle_hsu
a4f1f8a239 [ActivityManager] Prevent kill a restarted process again.
Root Cause:
Use removeTask with flag ActivityManager.REMOVE_TASK_KILL_PROCESS will set waitingToKill = "remove task"
to the target process when its setSchedGroup is not BG_NONINTERACTIVE.
Later the target process may be killed when applying oom-adj due to setSchedGroup has changed to BG_NONINTERACTIVE.
If the process is needed to restart, the process record will be resued.
Then the restarted process may be killed again because its waitingToKill is not null.

Solution:
Clean waitingToKill when process is dead.

Change-Id: I5ffb5388127f4221da4c700d3f1c224f7ca6e7b2
2014-07-04 12:19:41 +08:00
riddle_hsu
abc69e93d6 [ActivityManager] Ensure alive process is not killedByAm.
Symptom: Unable to kill by Am again and will be skipped updating its oom adj.

Root Cause:
A restarted process will reuse original process record.
The flag killedByAm will keep previous state.

Solution:
Reset the flag killedByAm to false when the process is started.

Note: Found another similiar patch If95137d91939cc44882ad2813131bcde0edd0c1b


Change-Id: I59a86648ca8d0aed4c489d92751af120aae5ef90
2014-07-04 13:33:19 +00:00
Robin Lee
74803e559c Merge "Make misc config directory during user creation" 2014-07-02 20:49:53 +00:00
Craig Mautner
ef2e76675a Merge "[ActivityManager] Avoid keeping restarting home when only home activity exists." 2014-07-02 20:49:53 +00:00
riddle_hsu
3145b24902 [ActivityManager] Avoid keeping restarting home when only home activity exists.
Root Cause:
When there is only home activity existed,
updating home apk will call forceStopPackageLocked to finish the activity.
Then activity history becomes empty, then home will be launched,
but its package is still target to close that results a loop.

Solution:
If home activity has been force-stopped, do not stop the same home activity again.

Change-Id: Icff12028d407873c2e6f50a06bcad231b908ccbd
2014-07-04 17:01:56 +08:00
Nick Kralevich
6752cba464 Merge "ConfigUpdateInstallReceiver: pass content via content provider" 2014-07-09 05:53:23 +00:00
Wink Saville
3269ca6b0f Enable a couple more lines of debug in TelephonyRegistry.
Bug: 16148026
Change-Id: I8b934652e47a273fa66a86d031efb24c33c4fe39
2014-07-08 19:44:50 -07:00
Jungshik Jang
27c6745f72 Merge "Add empty OneTouchRecordAction." 2014-07-02 19:52:36 +00:00
Jungshik Jang
3dcdd71e20 Add empty OneTouchRecordAction.
It's to remove a TODO in HotplugDetectionAction.

Bug: 15844113
Change-Id: I74d5ed6ba220fb079b64b766a1354df1ea8e00ab
2014-07-09 09:41:05 +09:00
Wink Saville
b34acf94b5 Merge "Add debug to TelephonyRegistry." 2014-07-08 22:56:18 +00:00
Wink Saville
f4cd25b2c8 Add debug to TelephonyRegistry.
Also change all debug to use the new log method and send the debug
to Rlog rather than Slog. This way we don't spam the main log buffer
just our radio log buffer while we're debugging 16148026.

Bug: 16148026
Change-Id: I5571f7d07405ddb3c208efd1756106b78343c843
2014-07-08 19:03:20 -07:00
Jeff Sharkey
5e6643c137 Merge "Clean up IPackageManager install surface area." 2014-07-08 22:56:18 +00:00
Jeff Sharkey
513a074de6 Clean up IPackageManager install surface area.
Also more removal of encryption support.

Change-Id: If525dc5a8422134515f225a8ac4731e968069468
2014-07-08 17:41:29 -07:00
Jeff Sharkey
8d479b0c2d Derive library path for upgraded system apps.
Bug: 16156270
Change-Id: I368433063ff33d15129c8076ddc6f1e2a0963e54
2014-07-08 14:57:40 -07:00
Jeff Sharkey
65b1a7c0ba Offer to scan cluster packages at boot.
Bug: 14975160
Change-Id: Ib637f68354b3d4ce4b5b23d875d8e94ccd497fd2
2014-07-08 01:04:51 -07:00
Jeff Sharkey
d746057f24 Change new file installs to be cluster-based!
Now that all the other pieces are in place, we're ready to start
installing new file-based packages as a cluster (the new unified
directory-based layout).  This greatly simplifies the renaming
process.

Also add helper methods to ApplicationInfo to give a much clearer
mapping between it and internal field names, since we can't change
the public API.

Add recursive restorecon().

Bug: 14975160
Change-Id: I72a63c5ddbc594c2fec4a91dd59f73ef253fbfd7
2014-07-08 00:38:57 -07:00
Alexandra Gherghina
539a7ef5c9 Removes cross profile package information when removing an user
This makes sure that if the user id gets reassigned without restarting the phone,
we do not have old information from the preexisting profile.

Also renames method which needs write locks.

Bug: 15928463
Change-Id: I30b0f85cf90d3e0c289a37bcbaec8da63499a170
2014-07-08 14:35:56 +01:00
Joe LaPenna
4bb015d90a CW on Master: Disable CaptivePortalTracker, EthernetService
BUG: 15143878

Change-Id: I6c534a28c1fcd475982ae70e7f3af69f3a219e24
2014-07-08 22:52:02 +00:00
Jeff Sharkey
4ec2023349 Merge "Derive library path for upgraded system apps." 2014-07-07 17:47:39 +00:00
Christopher Tate
e64fb99144 Merge "Fix NPE in platform restore" 2014-07-08 18:08:48 +00:00
Christopher Tate
8f1bb3a0d4 Fix NPE in platform restore
Bug 16061451

Change-Id: I79d7913455886828a493a0c4ea850d259bfeeeab
2014-07-08 13:00:33 -07:00
Makoto Onuki
f621a5b1b3 Merge "Cross-user provider access no longer requires ..._FULL" 2014-07-08 17:33:57 +00:00
Makoto Onuki
4451419fc6 Cross-user provider access no longer requires ..._FULL
Now only INTERACT_ACROSS_USERS is required.

Change-Id: If5bdbfb055d9d57a3180885f2aea652b889e7705
2014-07-08 12:05:05 -07:00
Robert Greenwalt
9eb38a6ffa Merge "Remove dead code." 2014-07-06 02:28:07 +00:00
Robert Greenwalt
8283f8802d Remove dead code.
Also adds a TYPE_VPN so the VPN can be strongly typed.

Change-Id: Ibf39450c480f16ce5ab4c25b47965691b844fb92
2014-07-07 17:09:01 -07:00
Jeff Sharkey
56d69f01a7 Merge "Offer to scan cluster packages at boot." 2014-07-07 17:47:39 +00:00