- 30 Nov, 2016 14 commits
-
-
Hugo Benichi authored
Change-Id: I854eddda678934d0da083d22b99b855ed57fd644
-
Narayan Kamath authored
We close the android logging related sockets prior as late as possible before every fork to avoid having to whitelist them. If one of the zygote's children dies after this point (but prior to the fork), we can end up reopening the logging sockets from the SIGCHLD signal handler. To prevent this from happening, block SIGCHLD during this critical section. Bug: 32693692 Test: Manual (cherry picked from commit e9a525829a354c92983a35455ccab16d1b0d3892) Zygote: Unblock SIGCHLD in the parent after fork. Follow up to change e9a525829a354c92983a. Allows the zygote to receive SIGCHLD again and prevents the zygote from getting into a zombie state if it's killed. Contributed-By:
rhed_jao <rhed_jao@htc.com> Bug: 32693692 Test: manual (cherry picked from commit c7161f756e86b98f2244a04d9207b47149965fd7) Change-Id: If89903a29c84dfc9b056f9e19618046874bba689 (cherry picked from commit dfcc79ee8ecd4166cba19be7493c6175cb0c65a9)
-
neo.chae authored
Fix a idmap leak in AssetManager::addSystemOverlays. And, The fix could also prevent fd leak of idmap. Test: none Bug: 32691930 Signed-off-by:
Hyangseok Chae <neo.chae@lge.com> (cherry picked from commit 6a742a38) Change-Id: Idc4af77db2b0cb739bd6b009b6af0f9123be1aac (cherry picked from commit 0244ca8d10dfc27e14f481fe649b89f7638c48eb)
-
Narayan Kamath authored
On M and below, we provide a blanket whitelist for all files under "/vendor/zygote_whitelist". This path is whitelisted purely to allow this patch to be applied easily on legacy devices and configurations. Note that this does not amount to a loosening of our security policy because whitelisted files are reopened anyway. Bug: 32691930 Test: manual Change-Id: If5b53f6f0a707f8d36603c09bfd3f72dbfbbbb99 (cherry picked from commit 5e2f7c6229d7191183888d685b57a7d0a2835fce)
-
Narayan Kamath authored
Partially cherry picked from commit 1c15c635. These files are safe to reopen for the same reason that files in /system/framework are. They're regular files and will not change after the first zygote fork. Bug: 32618130 Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f (cherry picked from commit 25cd01cc69fcad34756b00e52a79c0c54178f2e6)
-
Jeff Sharkey authored
When a public (vfat) device is inserted, it's strongly associated with the current foreground user, and no other users should be able to access it, since otherwise that would be a cross-user data leak. To use the device under a different user, switch users and then eject/remount the device. Test: verified user isolation of USB drive Bug: 32523490 Change-Id: I590c791996f1fea8d78f625dc942d149f1f41614 (cherry picked from commit 6566fbe99bcd34a8d842299e835dc1b65d674436)
-
gitbuildkicker authored
-
Hugo Benichi authored
Change-Id: I854eddda678934d0da083d22b99b855ed57fd644 (cherry picked from commit 476da32d865f942cc470405ca84fadecf507ce9b)
-
Narayan Kamath authored
We close the android logging related sockets prior as late as possible before every fork to avoid having to whitelist them. If one of the zygote's children dies after this point (but prior to the fork), we can end up reopening the logging sockets from the SIGCHLD signal handler. To prevent this from happening, block SIGCHLD during this critical section. Bug: 32693692 Test: Manual (cherry picked from commit e9a525829a354c92983a35455ccab16d1b0d3892) Zygote: Unblock SIGCHLD in the parent after fork. Follow up to change e9a525829a354c92983a. Allows the zygote to receive SIGCHLD again and prevents the zygote from getting into a zombie state if it's killed. Contributed-By:
rhed_jao <rhed_jao@htc.com> Bug: 32693692 Test: manual (cherry picked from commit c7161f756e86b98f2244a04d9207b47149965fd7) Change-Id: If89903a29c84dfc9b056f9e19618046874bba689 (cherry picked from commit dfcc79ee8ecd4166cba19be7493c6175cb0c65a9)
-
neo.chae authored
Fix a idmap leak in AssetManager::addSystemOverlays. And, The fix could also prevent fd leak of idmap. Test: none Bug: 32691930 Signed-off-by:
Hyangseok Chae <neo.chae@lge.com> (cherry picked from commit 6a742a38) Change-Id: Idc4af77db2b0cb739bd6b009b6af0f9123be1aac (cherry picked from commit 0244ca8d10dfc27e14f481fe649b89f7638c48eb)
-
Narayan Kamath authored
On M and below, we provide a blanket whitelist for all files under "/vendor/zygote_whitelist". This path is whitelisted purely to allow this patch to be applied easily on legacy devices and configurations. Note that this does not amount to a loosening of our security policy because whitelisted files are reopened anyway. Bug: 32691930 Test: manual Change-Id: If5b53f6f0a707f8d36603c09bfd3f72dbfbbbb99 (cherry picked from commit 5e2f7c6229d7191183888d685b57a7d0a2835fce)
-
Narayan Kamath authored
Partially cherry picked from commit 1c15c635. These files are safe to reopen for the same reason that files in /system/framework are. They're regular files and will not change after the first zygote fork. Bug: 32618130 Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f (cherry picked from commit 25cd01cc69fcad34756b00e52a79c0c54178f2e6)
-
Jeff Sharkey authored
When a public (vfat) device is inserted, it's strongly associated with the current foreground user, and no other users should be able to access it, since otherwise that would be a cross-user data leak. To use the device under a different user, switch users and then eject/remount the device. Test: verified user isolation of USB drive Bug: 32523490 Change-Id: I590c791996f1fea8d78f625dc942d149f1f41614 (cherry picked from commit 6566fbe99bcd34a8d842299e835dc1b65d674436)
-
gitbuildkicker authored
-
- 14 Nov, 2016 1 commit
-
-
gitbuildkicker authored
-
- 27 Oct, 2016 9 commits
-
-
Sungsoo authored
Resolve merge conflict into nyc-release ExifInterface.saveAttribute() didn't throw UnsupportedOperationException before. Use IOException instead of UnsupportedOperationException for backward compatibility. Bug: 30936376, Bug: 32068647, Bug: 31319086 Change-Id: Ifb478db3af820eb846c5373d3a284367da3495a0 (cherry picked from commit 5a7bd1b9f09ed0b67b0807e12cf4b1e477af5f90) (cherry picked from commit 965e4f23)
-
Christopher Tate authored
More specifically, they get a PackageManager binder -- necessary for Android process startup and configuration -- but none of the other usual preloaded service binders. Bug 30202228 Change-Id: I3810649f504cd631665ece338a83d2e54d41ad05 (cherry picked from commit 2c61c57a) (cherry picked from commit 47796319)
-
Jason Monk authored
Launch it as a pending intent. Change-Id: I2adf9347facb9c6fb58cbf8549233c34fcc87350 Fixes: 23909438 (cherry picked from commit d0408f00)
-
Todd Kennedy authored
When using the new "cmd" command, APKs must be streamed instead of specifying a file. Change-Id: I977cd817ac545d7c5293f53b9fa4b155bea7449e Fixes: 31251489 Test: manually installed packages using 'adb install', 'adb shell cmd package install' and 'adb shell pm install' (cherry picked from commit d220683d)
-
gitbuildkicker authored
-
Christopher Tate authored
More specifically, they get a PackageManager binder -- necessary for Android process startup and configuration -- but none of the other usual preloaded service binders. Bug 30202228 Change-Id: I3810649f504cd631665ece338a83d2e54d41ad05 (cherry picked from commit 2c61c57a) (cherry picked from commit 47796319)
-
Jason Monk authored
Launch it as a pending intent. Change-Id: I2adf9347facb9c6fb58cbf8549233c34fcc87350 Fixes: 23909438 (cherry picked from commit d0408f00)
-
Todd Kennedy authored
When using the new "cmd" command, APKs must be streamed instead of specifying a file. Change-Id: I977cd817ac545d7c5293f53b9fa4b155bea7449e Fixes: 31251489 Test: manually installed packages using 'adb install', 'adb shell cmd package install' and 'adb shell pm install' (cherry picked from commit d220683d)
-
gitbuildkicker authored
-
- 26 Oct, 2016 5 commits
-
-
Christopher Tate authored
More specifically, they get a PackageManager binder -- necessary for Android process startup and configuration -- but none of the other usual preloaded service binders. Bug 30202228 Change-Id: I3810649f504cd631665ece338a83d2e54d41ad05 (cherry picked from commit 2c61c57a) (cherry picked from commit 47796319)
-
Jason Monk authored
Launch it as a pending intent. Change-Id: I2adf9347facb9c6fb58cbf8549233c34fcc87350 Fixes: 23909438 (cherry picked from commit d0408f00)
-
Todd Kennedy authored
When using the new "cmd" command, APKs must be streamed instead of specifying a file. Change-Id: I977cd817ac545d7c5293f53b9fa4b155bea7449e Fixes: 31251489 Test: manually installed packages using 'adb install', 'adb shell cmd package install' and 'adb shell pm install' (cherry picked from commit d220683d)
-
Sungsoo authored
Resolve merge conflict into nyc-release ExifInterface.saveAttribute() didn't throw UnsupportedOperationException before. Use IOException instead of UnsupportedOperationException for backward compatibility. Bug: 30936376, Bug: 32068647, Bug: 31319086 Change-Id: Ifb478db3af820eb846c5373d3a284367da3495a0 (cherry picked from commit 5a7bd1b9f09ed0b67b0807e12cf4b1e477af5f90)
-
gitbuildkicker authored
-
- 25 Oct, 2016 1 commit
-
-
gitbuildkicker authored
-
- 24 Oct, 2016 1 commit
-
-
gitbuildkicker authored
-
- 30 Sep, 2016 3 commits
-
-
Wyatt Riley authored
Only process a shutdown when it is for all users (whole system), not a single user Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f Bug: 30646142 (cherry picked from commit 1b24fb17) (cherry picked from commit a8037fff)
-
Eino-Ville Talvala authored
This method (currently @hide) discards all cached buffers for the ImageReader, which can be useful to free up memory at the cost of reallocation time if more buffers are needed later. It has no effect on acquired Images, filled Images waiting to be acquired, or buffers being actively used by the source rendering to the Surface. Bug: 28695173 Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9 (cherry picked from commit e175aa82)
-
gitbuildkicker authored
-
- 29 Sep, 2016 1 commit
-
-
Fan Zhang authored
In getSummary methods, make a local reference to WifiConfig before accessing the fields to prevent member variable mConfig being reset in a different thread. Bug: 31617798 Test: manually open/close/refresh wifi settings and see no crash. Change-Id: I254cb3cb59dead425a9ada17d9e84a7e2974f738 (cherry picked from commit 51365c3b)
-
- 28 Sep, 2016 1 commit
-
-
Eric Laurent authored
Wait for audioserver service initialization to complete before playing the sound Bug: 31651778 Change-Id: I988de549d20468a090c939a1c624ee47d4036cd3 (cherry picked from commit 75bf3fd7)
-
- 27 Sep, 2016 4 commits
-
-
Wyatt Riley authored
Only process a shutdown when it is for all users (whole system), not a single user Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f Bug: 30646142 (cherry picked from commit 1b24fb17) (cherry picked from commit a8037fff)
-
Eino-Ville Talvala authored
This method (currently @hide) discards all cached buffers for the ImageReader, which can be useful to free up memory at the cost of reallocation time if more buffers are needed later. It has no effect on acquired Images, filled Images waiting to be acquired, or buffers being actively used by the source rendering to the Surface. Bug: 28695173 Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9 (cherry picked from commit e175aa82)
-
Paul Jensen authored
Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b5 am: 9c1cb7a2 am: 6634e90a am: 66ee2296 Change-Id: Ib0023b44e521b936ab2f9450ad367b1feda64492
-
Jeff Sharkey authored
Fix Merge Conflict into nyc-release We can no longer return the "my_downloads" paths: if those Uris were shared beyond the app that requested the download, access would be denied. Instead, we need to switch to using "all_downloads" Uris so that permission grants can be issued to third-party viewer apps. Since an app requesting a download doesn't normally have permission to "all_downloads" paths, DownloadProvider now issues narrow grants toward the owner of each download, both at device boot and when new downloads are started. Bug: 30537115, 30945409 Change-Id: I533125b36444877f54373d88922f2acc777e250b (cherry picked from commit 9fab683c) (cherry picked from commit df0de20e)
-