summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow debugging only for apps forked from zygoteHEADmasterSebastien Hertz2015-10-193-23/+29
| | | | | | | | | | | | | | When starting the runtime from app_process, we only pass JDWP options if starting zygote. It prevents from opening a JDWP connection in non-zygote programs while Android apps (forked from zygote) remain debuggable. Bug: 23050463 (cherry picked from commit 7a09b8322cab26d6e3da1362d3c74964ae66b5d4) Change-Id: Ib5b6d3bc4d45389993c3c54226df5a7b72479d19 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* DO NOT MERGE: Ensure that unparcelling Region only reads the expected number ↵Leon Scroggins III2015-10-181-1/+6
| | | | | | | | | | of bytes bug: 20883006 Change-Id: I4f109667fb210a80fbddddf5f1bfb7ef3a02b6ce Conflicts: core/jni/android/graphics/Region.cpp
* Check that the parcel contained the expected amount of region data. DO NOT MERGELeon Scroggins III2015-10-181-2/+6
| | | | | | | | bug:20883006 Change-Id: Ib47a8ec8696dbc37e958b8dbceb43fcbabf6605b Conflicts: core/jni/android/graphics/Region.cpp
* Prevent system uid component from running in an app processWale Ogunwale2015-10-181-3/+8
| | | | | Bug: 21669445 Change-Id: I792c6e676d4b6d54a51228d264130b8125075d98
* Fix for CVE-2015-1536Wolfgang Wiedmeyer2015-10-181-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Port of upstream commit d44e5bde18a41beda39d49189bef7f2ba7c8f3cb from Leon Scroggins III <scroggo@google.com> Original commit message: Make Bitmap_createFromParcel check the color count. DO NOT MERGE When reading from the parcel, if the number of colors is invalid, early exit. Add two more checks: setInfo must return true, and Parcel::readInplace must return non-NULL. The former ensures that the previously read values (width, height, etc) were valid, and the latter checks that the Parcel had enough data even if the number of colors was reasonable. Also use an auto-deleter to handle deletion of the SkBitmap. Cherry pick from change-Id: Icbd562d6d1f131a723724883fd31822d337cf5a6 BUG=19666945 Change-Id: Iab0d218c41ae0c39606e333e44cda078eef32291
* DO NOT MERGE Change to add STK_PERMISSION for stk related commands.Amit Mahajan2015-10-181-0/+5
| | | | | | | | Bug: 21697171 Change-Id: I7649c7341428194963ac74e9ae622dfa76ea738b Conflicts: core/res/AndroidManifest.xml
* Show the keyguard if unsecure window on topCraig Mautner2015-09-301-24/+33
| | | | | | | | | | | | When traversing windows save the fact that windows above the topmost fullscreen window do not hide the lockscreen. If there is such a window don't show it. (cherry picked from commit ab55e524b89c13082193940a5bf8480a2c2522d9) Fixes bug 13225149. Change-Id: Ib6f33cbcfb2f60d8957a9184729ecdec80c6a236
* Externally Reported Moderate Security Issue: SQL Injection in WAPPushManagerTom Taylor2015-09-282-9/+42
| | | | | | | | | | Bug 17969135 Use query (instead of rawQuery) and pass in arguments instead of building the query with a giant string. Add a unit test that fails with the old code but passes with the new code. Change-Id: Id04a1db6fb95fcd923e1f36f5ab3b94402590918
* Secure broadcasts.Robert Greenwalt2015-08-311-0/+1
| | | | | | | | | Prevents 3rd party spoofing. Bug: 7622253 Change-Id: I1e1a9887afe009d060205e349c31e3aefba2ea5b Signed-off-by: Robert Greenwalt <rgreenwalt@google.com> Tested-by: Moritz Bandemer <replicant@posteo.mx>
* Prevent SecurityException from crashing RecentsMichael Jurka2015-08-311-2/+6
| | | | | | Bug: 6787477 Signed-off-by: Michael Jurka <mikejurka@google.com> Tested-by: Moritz Bandemer <replicant@posteo.mx>
* Fix issue #8470131: Process thrash kills batteryDianne Hackborn2015-08-255-6/+54
| | | | | | | | | | | | | | Protect app widget broadcasts from abuse. In this case the app was sending an APPWIDGET_UPDATE broadcast without specifying a target, which (a) should not be allowed (you should not be able to send updates to other apps), and (b) resulted in every single potential app widget in the system being launched... which was about 75 of them. Change-Id: I9d48733610ce6d5a7c32e69a3e06b9f33bd79a34 Signed-off-by: Dianne Hackborn <hackbod@google.com> Tested-by: Moritz Bandemer <replicant@posteo.mx>
* WiFiStateMachine: Preferred Network Offload leaks known SSIDsPaul Kocialkowski2014-07-171-3/+0
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SettingsProvider: Allow for quick settings tiles configurationPaul Kocialkowski2014-04-202-0/+5
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* LockPatternUtils: Method is not deprecated for no reasonPaul Kocialkowski2014-01-231-1/+0
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Links corrections for javadocPaul Kocialkowski2013-11-162-6/+3
| | | | | Change-Id: I22188668bd4b2d82dcfb13d0b656db324b858858 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SettingsProvider: Correctly set animations settings and animator durationPaul Kocialkowski2013-10-292-7/+7
| | | | | Change-Id: Idb53fc16696e4b3bd4aee7db3d574c6b946fa4c8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Adapt hardware renderer and screen rotation animation for SoftwareGLPaul Kocialkowski2013-10-283-39/+57
| | | | | Change-Id: I0d7809e7ae408c4762982599576be9a78d54a2dc Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* SettingsProvider: Allow for adb, screen off animation, mobile data and ↵Paul Kocialkowski2013-10-282-4/+15
| | | | | | | advanced reboot configuration Change-Id: Iccad1e2323b155f1d23fb495ede9e2c59c912fb6 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Always disable StrictModeFlashPaul Kocialkowski2013-10-281-3/+9
| | | | | Change-Id: I6d891cd4b3f40110c8b99a67cd467c2501d30317 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Restore original adb icon and USB Mass Storage activity iconPaul Kocialkowski2013-10-285-1/+1
| | | | | Change-Id: I485ac3ee827aa0869b0173f94284bf0a1932c271 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Merge "Re-implement orientation aware volume buttons at lower level" into ↵Ricardo Cerqueira2013-09-215-36/+100
|\ | | | | | | cm-10.1
| * Re-implement orientation aware volume buttons at lower levelnadlabak2013-09-175-36/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework of http://review.cyanogenmod.org/31979 Fixes: 1. inconsistent volume button behaviour depending on app in use - the buttons were not swapped for some NDK/OPENSL ES apps like e.g. MX Player 2. the function of volume buttons on external input devices like BT/USB keyboards should not be affected by the main unit orientation This commit finishes http://review.cyanogenmod.org/18273 - use of system property has been replaced with config push via JNI as suggested during the original review. Patch Set 7: Circumvent the need for "keyboard.orientationAware = 1" idc Patch Set 8: Don't leak implementation details outside InputReader Change-Id: I19cc60cb0acb0005ab13fa069f52e3d468d694e7
* | Rework thumbnail handlingfun2013-09-171-3/+160
|/ | | | | | | | | | | | | | | Since ids of media file are usually not continuous, the original file of thumbnail are sparse. When there are big numbers files on ex\ ternal storage, the size of this file will be horrible. Ex, when the id is 20000, then the .thumbnails/.thumbdata3-xx file will be 50000*10k = 488.28M. Can refer http://stackoverflow.com/questions/12396715/android-huge-thumbdata4-file-in-dcim-folder Because after 4.0, MediaProvider will scan any files, this will be a big problem. So I modify MiniThumbFile.java to avoid this. According to the id, we now produce an index file. In this index file, one id will use BYTES_PER_MINTHUMB_INDEX(8) bytes in offset (i\ d+1)*BYTES_PER_MINTHUMB_INDEX. The data of these 8 bytes is the index of thumbnail file. The first BYTES_PER_MINTHUMB_INDEX bytes kee\ p next available index. And when you need insert a thumbnail, the index increase by 1. In this way, the block data in thumbnail file \ will be continuous. And thus unnecessary zero paddings will not be saved. Change-Id: I66005dd69b0a5c8f4353bd7a8225d163a654fd2d
* Fix flicker in lockscreen if music controls are disabled.Danny Baumann2013-09-041-1/+1
| | | | | | | | | | Pretend no music is playing if music controls are disabled, as otherwise KeyguardHostView gets confused as there's a mismatch between the result of isMusicPlaying() and the onListenerAttached() / onListenerDetached() callbacks. Change-Id: Ic3bd2c6f143ce8b67c80abb408a4ff463ebae53d JIRA:CYAN-1935
* PackageManager: allow build-time disabling of componentsPawit Pornkitprasan2013-09-013-0/+22
| | | | | | | | | | Allow components to be specified as disabled at build time (applied on boot). This allows stock OTA components to be marked as disabled in CM builds. Change-Id: I6e4499cc40a779792a5ea97a10137399dad7d69f
* Merge "PowerWidget: Dismiss unsecure keyguard on long tap" into cm-10.1Danny Baumann2013-09-011-4/+6
|\
| * PowerWidget: Dismiss unsecure keyguard on long tapJorge Ruesga2013-09-011-4/+6
| | | | | | | | | | | | | | Change-Id: I88f5db97694b92007d44d32ff103793fafcdb067 JIRA: CYAN-1865 Issue: https://jira.cyanogenmod.org/browse/CYAN-1865 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | QS: Unlock screen when tap profile tileJorge Ruesga2013-09-011-0/+6
|/ | | | | | | Change-Id: Ie6d343bffd41c268e46a714b301338fc6bbba32d JIRA: CYAN-1888 Issue: https://jira.cyanogenmod.org/browse/CYAN-1888 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* SystemUI: CA translationsarnau2013-08-252-3/+77
| | | | Change-Id: I4fa9fbaceb03d34dddc80c6759fe44c92003ab0e
* Merge "frameworks_base: CA translations" into cm-10.1Marco Brohet2013-08-241-0/+124
|\
| * frameworks_base: CA translationsarnau2013-08-221-0/+124
| | | | | | | | Change-Id: I202207397e92a47abf1d6eb254aa048d2762c2f4
* | Merge "Fix Home/Menu/Back keys' unlock" into cm-10.1Danny Baumann2013-08-231-0/+3
|\ \ | |/ |/|
| * Fix Home/Menu/Back keys' unlockVladislav Koldobskiy2013-08-161-0/+3
| | | | | | | | Change-Id: Id2bf457261619f64cf8717e2f18cf9775159921a
* | Merge "am: Allow more hidden apps on devices with lots of RAM" into cm-10.1Ricardo Cerqueira2013-08-201-1/+10
|\ \ | |/ |/|
| * am: Allow more hidden apps on devices with lots of RAMSteve Kondik2013-08-201-1/+10
| | | | | | | | | | | | | | | | * If more than 1.5GB is present, allow up to 40 hidden apps. * Number is somewhat arbitrary, but was found to work well on D2. * Also look at the sys.mem.max_hidden_apps value if given. Change-Id: I2d3cf6e0dad1bc0b482cc37bf9c61ed2f2b4be52
* | SystemUI: Fix missing context varJorge Ruesga2013-08-121-5/+5
| | | | | | | | | | Change-Id: I083f85fdfec2bde88e6d8e0366d94e86eaea20cd Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | SystemUI: Add ethernet network iconSteven Davies2013-08-119-12/+66
| | | | | | | | | | | | Add an ethernet network icon to the statusbar network area. Change-Id: I019740f360b5f9cc85f404f75d38e38896182a81
* | SystemUI & core: fixed FI translationsNiko Koivu2013-08-112-3/+96
| | | | | | | | Change-Id: Idfd709a6421a25f4df07b9ece91f25cfd3ac4bd4
* | Revert "SystemUI & core: FI translations"Marco Brohet2013-08-112-96/+3
| | | | | | | | | | | | | | | | Derp This reverts commit d727d4cfb2ce739db8eb6c9d0bac321b88d2efb5. Change-Id: Ib4ab8cb19676221c11882e2bf10855ddacc101a2
* | SystemUI & core: FI translationsNiko Koivu2013-08-102-3/+96
| | | | | | | | Change-Id: I137a23114dbe7e5e43aa7d8a5a2d914af1cfcbe7
* | Merge "frameworks_base: Update Japanese translation" into cm-10.1Marco Brohet2013-08-092-0/+92
|\ \
| * | frameworks_base: Update Japanese translationTakuo Kitame2013-08-062-0/+92
| | | | | | | | | | | | | | | | | | * Add many missing entries. Change-Id: Id13e5ec73944511ee450fab5d4bc901777d8b6ed
* | | Merge "android_os_SELinux : Use empty array to instead of NULL to avoid the ↵Ricardo Cerqueira2013-08-081-11/+9
|\ \ \ | | | | | | | | | | | | DevicePolicyManagerService cannot start when the SELinux is disabled." into cm-10.1
| * | | android_os_SELinux : Use empty array to instead of NULL to avoid the ↵YuanQY2013-07-241-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DevicePolicyManagerService cannot start when the SELinux is disabled. Error log 07-24 10:32:14.408 F/SystemServer( 1676): BOOT FAILURE making Device Policy Service ready 07-24 10:32:14.408 F/SystemServer( 1676): java.lang.NullPointerException 07-24 10:32:14.408 F/SystemServer( 1676): at com.android.server.zh(DevicePolicyManagerService.java:2628) 07-24 10:32:14.408 F/SystemServer( 1676): at com.android.server.DevicePolicyManagerService.systemReady(DevicePolicyManagerService.java:1251) 07-24 10:32:14.408 F/SystemServer( 1676): at com.android.server.ServerThread.run(SystemServer.java:941) Patch Set 2: Append the error log. Change-Id: I31be031c356ef8e293de0395feefb34ced628341
* | | | frameworks/base: Simplified Chinese TranslationsAndrew Jiang2013-08-052-1/+17
| |/ / |/| | | | | | | | Change-Id: If5212da117cbbd670432d4133e56c2a08b6e933b
* | | Merge "Core+SystemUI: DA translation" into cm-10.1Danny Baumann2013-08-052-0/+19
|\ \ \
| * | | Core+SystemUI: DA translationJacob Overgaard Madsen2013-08-032-0/+19
| | | | | | | | | | | | | | | | Change-Id: Id7a9c86fb3e0d481584c5d8ba550ee0510c17b26
* | | | Core: Update German translationjackmu952013-08-031-0/+4
|/ / / | | | | | | | | | Change-Id: I420582b812de3d7f67e2434ee422ac1fc1658cb8
* | | Merge "Show advanced reboot if using an insecure lock screen" into cm-10.1David van Tonder2013-08-021-1/+1
|\ \ \
| * | | Show advanced reboot if using an insecure lock screenVeeti Paananen2013-07-231-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | Enables the advanced reboot menu when locked if the selected lock method is insecure (= slide unlock). Change-Id: I759b7b31c5411597e2537a85183d73ec02eb2461