summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | DO NOT MERGE: Remove the use of JHEAD in ExifInterfaceSungsoo Lim2016-07-212-178/+2239
| | | | | | | | | | | | | | | Bug: 29270469 Change-Id: I6a6c8aeab2a842ff1646316363d614851625e78f
| * | DO NOT MERGE Block the user from entering safe boot modeBenjamin Franz2016-07-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Block the user from entering safe boot mode if the DISALLOW_SAFE_BOOT policy is set. Bug: 26251884 Change-Id: I4945d5d676928346c11ea305a5b6a2e1a42e94e6
| * | Add bound checks to utf16_to_utf8Sergio Giro2016-07-213-3/+5
| | | | | | | | | | | | | | | | | | | | | Test: ran libaapt2_tests64 Bug: 29250543 Change-Id: I1ebc017af623b6514cf0c493e8cd8e1d59ea26c3 (cherry picked from commit 4781057e78f63e0e99af109cebf3b6a78f4bfbb6)
| * | Check caller's uid before allowing notification policy access.Julia Reynolds2016-07-211-0/+5
| | | | | | | | | | | | | | | Bug: 29421441 Change-Id: I7460268595e932d54660b02007bcd68b95fe8aec
| * | Fix string equality comparisonPaul Stewart2016-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | | Don't use "==" to compare strings. Bug: 25624963 Change-Id: Id25696e4fdcbcf4d48ec74e8ed65c1a33716b30c
| * | WifiEnterpriseConfiguration: Do not print credentials in toStringPaul Stewart2016-07-211-1/+3
| | | | | | | | | | | | | | | BUG:25624963 Change-Id: I939a12a27d6b915d8a9cc8b142f645fba0ee42ec
* | | Automatic translation importclyde@build012016-09-066-5/+8
| | | | | | | | | | | | | | | Change-Id: I4ba7d41862a729eaa6034b5e1285fd08b959b05b Ticket: -
* | | connectivity-service: fix/improve unique hostnameAlexander Wuerstlein2016-09-021-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ConnectivityService should set the net.hostname property to either the current DEVICE_HOSTNAME or android-ANDROID_ID or leave net.hostname unchanged if already set. However, the logic was flawed such that if DEVICE_HOSTNAME was empty but net.hostname was not, net.hostname would always be set to an empty string, leading to DHCP breakage later on. The logic has been fixed, clarified and improved such that: net.hostname will only be changed if it is empty. If net.hostname is empty, it will be set to either (in order): the nonempty value of DEVICE_HOSTNAME, android-ANDROID_ID or android-r-RANDOM_NUMBER. The last option is an addition to have a sensible fallback in case both DEVICE_HOSTNAME and ANDROID_ID are empty. The random number is generated by java.util.Random, because I consider cryptographically strong randomness unnecessary here and think possible blocking in SecureRandom might be undesirable. Thanks to stargo for pointing me to the right place to edit. Thanks to Ethan Chen for his stylistic advice. Change-Id: I603ab4d6a265456bf4fa310939965cfa677fc881
* | | Ensure DHCP requests have nonempty hostnamesAlexander Wuerstlein2016-08-311-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the net.hostname property is empty or not found, Android issues DHCP requests with an empty hostname field (option 12). RFC2132 section 3.14 prescribes a minimum length of 1 byte for the hostname. To fix this, a generic 'android-dhcp' hostname is used as a fallback. Change-Id: I7a92e7295f72b3255e4fba6498fb4039906eb702
* | | Automatic translation importpinky@build012016-08-290-0/+0
| | | | | | | | | | | | | | | Change-Id: Iad0958668bdea17e10cccba7f8a5a2d406e97b45 Ticket: -
* | | Automatic translation importpinky@build012016-08-2770-86/+9112
| | | | | | | | | | | | | | | Change-Id: If7eac9a9fa7e145c9d35ece91a8ccab33601a1ca Ticket: -
* | | SystemUI: Don't pad when config_showScreenOnLockScreenHints is falseMatthias Yzusqui2016-08-263-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the overlay is false the 'down' indicator is unused and there- fore no padding for text alignment is needed. Also use the overlay to disable the up-arrow indicator, thus return- ing to the old lockscreen layout. Change-Id: I542109686778e081c1883885287de0d5380578a2
* | | Themes: Give power dialogs own set of volume icons for themesBryan Owens2016-08-265-4/+80
| | | | | | | | | | | | | | | Change-Id: Ica874be3be89f12b6ecea444d442706bc1fd91ba Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
* | | Prevent invocation of startNavigating() when GPS is offHarikrishnan Hariharan2016-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When system comes back from idle state, GpsLocationProvider invokes startNavigating() even when GPS is turned off in settings. Change-Id: Ie6dbf60a743cce429ab83876a3cb80f7e4b0e0f6 CRs-Fixed: 1022372
* | | services: core: use proper tags when loggingAlexander Martinz2016-08-211-5/+5
| | | | | | | | | | | | | | | Change-Id: Idbcd94ae8004352c5241fc81ac9595173001a58d Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* | | Ensure packages on adopted media do not move when updatedSam Mortimer2016-08-181-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Packages not installed with PackageInstaller.Session that are moved to adopted storage via android storage settings will get moved back to private internal storage when the package is later updated. This causes the app to lose it's data (and leaves the data dir dangling on the original adopted location). play market installs do not have this problem (because they use an installer session) but pretty much every other app install route does. eg adb install and other app stores. Change-Id: I0f606b230460f32310921c75e58ccb5b610268e4
* | | Apps on adopted storage should stay there during updateSam Mortimer2016-08-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An update to an app on adopted storage via a PackageInstaller.Session (eg gplay) will result in the app silently ending up back on internal storage if the (new) manifest sets INSTALL_LOCATION_INTERNAL_ONLY. However, the app data is not moved with it so the end result is that data looks like it's been wiped. Ideally, the app and data would be moved to internal. Next best would be that the user is informed that they need to uninstall and reinstall. For now, persist the app in the adopted storage location so that the user doesn't lose app data. Change-Id: I1f178ea361a875c6df6b3b20a2e44071124c39c4
* | | SystemUI: Fix build without jackartefvck2016-08-161-0/+2
| | | | | | | | | | | | Change-Id: Ie2249610e3a46c57e0d2bef629d5d4eaeb26fcdb
* | | am: Account for time changes when showing recent activitiestao.pei2016-08-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Procedures] 1. Go to Settings->Date&Time Set time backwards, eg. 2016.6.15 -> 2016.6.10 2. Tap recent apps button to show recent activities. There will be no activities shown. Change-Id: Ifd860c0d08fac49f9d3c8eac590b6db9e6afb09d
* | | Automatic translation importblinky@build012016-08-1313-5/+83
| | | | | | | | | | | | | | | Change-Id: I599894bfd30ff9d78253482981737fc8a440a826 Ticket: -
* | | Fix slow anim when using a gesture to open status bar pulldownDave Kover2016-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When using a custom launcher, like Nova, it is possible to set a gesture to open the status bar pulldown. It does not open at the same speed as when using a finder to pull down from the top of the screen at the status bar. This fixes that. Change-Id: If3f14f14ef5ed4f14495472d0335cb11d743a5a1
* | | [2/2] base: cm custom boot dexopt UIAlexander Martinz2016-08-108-88/+60
| | | | | | | | | | | | | | | | | | | | | * Pass app info and number of installed packages to boot message UI * Ui by Asher and Joey, based on Alexander's previous work Change-Id: I9ec9d0cb0e20a9bac73e126f6b6f3965400f05e7
* | | pm: resolver: Don't hold the lock when calling into the resolverDiogo Ferreira2016-08-101-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lock isn't really needed because the proxy will return false if the resolver package doesn't exist or throws a remote exception. Having this lock causes a deadlock between the PM and the app: resolveIntent holds the PackageManagerService#mPackages lock and then tries to lock on PackageMonitor#mLock. Meanwhile, when packages change, LaodedApk holds onto the PackageMonitor#mLock and then tries to query the intent services and tries to lock on PackageManagerService#mPackages. Relevant traces below: "Binder_4" prio=5 tid=60 Blocked | group="main" sCount=1 dsCount=0 obj=0x136f00a0 self=0x7f743d2a00 | sysTid=949 nice=0 cgrp=default sched=0/0 handle=0x7f74b93440 | state=S schedstat=( 1032333944 663457790 2968 ) utm=74 stm=29 core=3 HZ=100 | stack=0x7f74a97000-0x7f74a99000 stackSize=1013KB | held mutexes= at com.android.server.ServiceWatcher.getBinder(ServiceWatcher.java:368) - waiting to lock <0x083e77c9> (a java.lang.Object) held by thread 9 at org.cyanogenmod.platform.internal.AppSuggestProviderProxy.getService(AppSuggestProviderProxy.java:68) at org.cyanogenmod.platform.internal.AppSuggestProviderProxy.handles(AppSuggestProviderProxy.java:73) at org.cyanogenmod.platform.internal.AppSuggestManagerService$1.handles(AppSuggestManagerService.java:50) at cyanogenmod.app.suggest.AppSuggestManager.handles(AppSuggestManager.java:101) at com.android.server.pm.PackageManagerService.shouldIncludeResolveActivity(PackageManagerService.java:4704) - locked <0x0183dd64> (a android.util.ArrayMap) at com.android.server.pm.PackageManagerService.chooseBestActivity(PackageManagerService.java:4430) at com.android.server.pm.PackageManagerService.resolveIntent(PackageManagerService.java:4353) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:628) at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:2754) at android.os.Binder.execTransact(Binder.java:453) "android.bg" prio=5 tid=9 Blocked | group="main" sCount=1 dsCount=0 obj=0x12c04b80 self=0x7f84a7d800 | sysTid=766 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0x7f89b3f440 | state=S schedstat=( 1237112536 3291977271 2848 ) utm=62 stm=61 core=2 HZ=100 | stack=0x7f89a3d000-0x7f89a3f000 stackSize=1037KB | held mutexes= at com.android.server.pm.PackageManagerService.queryIntentServices(PackageManagerService.java:5405) - waiting to lock <0x0183dd64> (a android.util.ArrayMap) held by thread 60 at android.app.ApplicationPackageManager.queryIntentServicesAsUser(ApplicationPackageManager.java:731) at com.android.server.ServiceWatcher.bindBestPackageLocked(ServiceWatcher.java:167) at com.android.server.ServiceWatcher.-wrap0(ServiceWatcher.java:-1) at com.android.server.ServiceWatcher$1.onPackageChanged(ServiceWatcher.java:321) - locked <0x083e77c9> (a java.lang.Object) at com.android.internal.content.PackageMonitor.onReceive(PackageMonitor.java:352) at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:882) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61) Change-Id: Id4775ca4d12b6cf42bea97bd74e4c38d591a1cf3
* | | IconPackHelper:Use un-tinted iconback when no defaultSwatchcolor is specifiedBharadwaj Narasimha2016-08-091-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After applying the theme which supports paletteback feature and if there is no defaultSwatchColor specified then the background should go to the original color. Instead in a particular FootballDemo theme the theme would never get applied and just flood the logcat with null exceptions for each and every app. TICKET:CYNGNOS-2942 Change-Id: If2bd3d23ab5075dac1d8ff3f197cebc28c9c1f20
* | | Automatic translation importblinky@build012016-08-085-4/+16
| | | | | | | | | | | | | | | Change-Id: I2ffd5b1ee1b0a1645d07dd008b87cf13899adda8 Ticket: -
* | | framework: extend provision check to SEARCH intentsRoman Birg2016-08-081-0/+2
| | | | | | | | | | | | | | | | | | | | | TIcket: CYNGNOS-3242 Change-Id: I61ce295737471ca9bb59f45c616d626bbc4f7784 Signed-off-by: Roman Birg <roman@cyngn.com>
* | | Revert "Adding back pdf_printer_media_sizes for values-zh-rCN to accomodate ↵Keith Mok2016-08-051-37/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mediasize_default" CYNGNOS-3238, HAM-1384 This reverts commit 10a63e4e3bb26ff0bc82de303e74628ae23eab3e. Change-Id: Ic13bdd51e059b4e66674fdbe6e6da3c2779f6a38
* | | fw: enforce android.permission.PREVENT_SYSTEM_KEYS in system serverScott Mertz2016-08-053-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since privateFlags can be accessed and modified via reflection due to change 5d927c2d8e, the prevent system keys or prevent power keys flag can be set and deployed without ever calling setPrivateFlags directly. Move enforcing to system server to prevent app tampering. TICKET: CYAN-7921 (open source JIRA) Found by Maciej Krysztofiak Change-Id: I53c2804d0283692036f5cc95e6ad57821bc0655a
* | | bootanimation: add multithreaded decodeScott Mertz2016-08-043-11/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some devices can't keep up on a single thread trying to decode & display the frames at a high frame rate. This is observed if the sleep delay between frames is negative: 01-02 04:29:25.114 530 542 D BootAnimation: 63, -22 01-02 04:29:25.176 530 542 D BootAnimation: 61, -20 01-02 04:29:25.248 530 542 D BootAnimation: 72, -30 01-02 04:29:25.315 530 542 D BootAnimation: 66, -24 01-02 04:29:25.381 530 542 D BootAnimation: 66, -24 To mitigate this, take advantage of multiple cores by decoding on n cores and caching up to m images. This keeps the memory footprint small(ish) while still giving the best chance to maintain a constant frame rate. I measured boot time and fps for each animation part before and after the change on an msm8909 with 1.5 GB RAM: single thread: 01-02 04:40:45.826 540 556 I BootAnimation: fps = 22.40 01-02 04:40:49.457 540 556 I BootAnimation: fps = 13.22 01-02 04:40:51.464 540 556 I BootAnimation: fps = 23.92 01-02 04:41:19.375 540 556 I BootAnimation: fps = 22.89 01-02 04:41:23.942 540 556 I BootAnimation: fps = 15.55 boot time: 51.05s multi thread: 01-02 04:38:55.148 526 551 I BootAnimation: fps = 22.56 01-02 04:38:57.205 526 551 I BootAnimation: fps = 23.39 01-02 04:38:59.249 526 551 I BootAnimation: fps = 23.92 01-02 04:39:29.196 526 551 I BootAnimation: fps = 23.16 01-02 04:39:32.186 526 551 I BootAnimation: fps = 23.79 boot time: 50.50s Need to test the affect on boot time with an animation that doesn't cache the textures as much as this to see the real effect. Change-Id: If7464dc063b08a0bc33ee3f094028247b39650c1
* | | SystemUI: Display bluetooth battery status when availableGavin Ni2016-08-046-1/+199
| | | | | | | | | | | | Change-Id: I659e6270058d02fdd894b8242a6375b1a13237df
* | | framework: don't allow assist activities while not provisionedRoman Birg2016-08-031-0/+14
| | | | | | | | | | | | | | | | | | | | | Ticket: CYNGNOS-3233 Change-Id: I40dae6b6fd1da497024965469fea0adc78a661c3 Signed-off-by: Roman Birg <roman@cyngn.com>
* | | am: Notify zygote of font change in ActivityManagerServiced34d2016-08-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | With the theme service being moved to its own context, it can no longer set system properties so have ActivityManagerService take care of this when updating the configuration. Change-Id: Ia5cbbf921c7c716631db1e34f5e2b04c5d814328
* | | SysUI: Add theme manager permissiond34d2016-08-021-0/+3
| | | | | | | | | | | | Change-Id: I9b51088e6b0e1382f9a55d7478cf75f366440b20
* | | Themes: Add permission to themes protected broadcastsd34d2016-08-021-2/+5
| | | | | | | | | | | | Change-Id: I3c9d347a3165434a955407e5d0509b54a0d918e1
* | | Merge tag 'android-6.0.1_r61' into HEADJessica Wagantall2016-08-0212-35/+427
|\ \ \ | |/ / | | | | | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: Ib003ccb606e0d77209291b757ea36399d3b65814
| * | Add pm operation to set user restrictions.Sudheer Shanka2016-06-241-0/+36
| | | | | | | | | | | | | | | Bug: 29189712 Change-Id: I6fdb3b68dfe3f51119e5ce8008880fc7d9c793df
| * | Reduce shell power over user management.Sudheer Shanka2016-06-243-6/+84
| | | | | | | | | | | | | | | | | | | | | | | | Remove MANAGE_USERS permission from shell and whitelist it for some specific functionality. Bug: 29189712 Change-Id: Ifb37448c091af91991964511e3efb1bb4dea1ff3
| * | DO NOT MERGE Disable app pinning when emergency call button pressedHall Liu2016-06-243-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also disables app pinning when the "return to call" button is pressed and brings up the in-call screen when app pinning is stopped if there is an existing call. Combination of ag/1091397 and ag/1085584 adapted for MNC. Bug: 28558307 Bug: 28761672 Change-Id: I82ec4042bff387c845ce571b197a4a86e1dd5ec8
| * | DO NOT MERGE Fix intent filter prioritiesTodd Kennedy2016-06-242-19/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since this is a backport, there is only one rule that guards intent filter priorities: 1) Updates will NOT be granted a priority greater than the priority defined on the system image. Bug: 27450489 Change-Id: Ifcec4d7a59e684331399abc41eea1bd6876155a4
| * | Don't trust callers to supply app info to bindBackupAgent()Christopher Tate2016-06-244-9/+23
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Get the canonical identity and metadata about the package from the Package Manager at time of usage rather than rely on the caller to have gotten things right, even when the caller has the system uid. Bug 28795098 Change-Id: I215786bc894dedf7ca28e9c80cefabd0e40ca877 Merge conflict resolution for ag/1133474 (referencing ag/1148862) - directly to mnc-mr2-release
* | SystemUI: avoid null tile creationRoman Birg2016-08-011-3/+5
| | | | | | | | | | | | | | Don't add a tile spec if creation throws an exception. Change-Id: I0625caef1cd4060bcc59aae2bf433d2b38512e0d Signed-off-by: Roman Birg <roman@cyngn.com>
* | Automatic translation importinky@build012016-07-312-0/+6
| | | | | | | | | | Change-Id: If94b94025583803e28c7c4781ea0729288df5687 Ticket: -
* | mountservice: Don't nuke all volumes when decryptingSteve Kondik2016-07-291-1/+6
| | | | | | | | | | | | | | * Instead, just unmount the emulated internal volume since it's the only one which can prevent cryptfs from restarting. Change-Id: I757babaf763b4ef789b165d116da0708a3530e99
* | pm: Skip custom resolver use when mOnlyCoreSteve Kondik2016-07-281-1/+1
| | | | | | | | | | | | * It just throws exceptions. Change-Id: I503a2b787a661b3ab5c52b675e49f2eae92c9ec0
* | Automatic translation importinky@build012016-07-281-0/+3
| | | | | | | | | | Change-Id: Ida0b4b6586629f354fb4c15e6076857ab52a30f2 Ticket: -
* | lights: Make sure the lights are outSteve Kondik2016-07-282-1/+16
| | | | | | | | | | | | | | | | | | | | | | * Annoying situation where the battery charging LED comes on in the crypto startup screen, but never gets turned off because of caching. * Explicitly turn off LEDs after the bootanimation completes, and always set the full state to the hardware on the first call regardless if it's all zeros. Change-Id: I8cd2325ec5d8924391e4fc62249f6dd737d52f3e
* | SysUI: Define config for showing screen on hintsd34d2016-07-282-1/+8
| | | | | | | | | | | | If you want it, enable the config otherwise stay calm and carry on. Change-Id: I057443dc289098dad21775f941e13903881c6832
* | mountservice: Shut down volumes before restarting frameworkSteve Kondik2016-07-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | * Vold assumes that when FUSE is killed, the mount is gone. This isn't true with sdcardfs, since the daemon doesn't continue to run. Cryptfs was assuming this behavior, and the system would hang during decryption since the emulated storage doesn't get unmounted. * Send the shutdown command before committing suicide. Change-Id: Ifcfa63f0499a717f34482754cea95b90622290c6
* | Automatic translation importclyde@build012016-07-272-0/+4
| | | | | | | | | | Change-Id: I3b7233d6b758ea41777d0ca7c52de77ee173b292 Ticket: -
* | Automatic translation importinky@build012016-07-262-7/+7
| | | | | | | | | | Change-Id: I7bba9c1b036597cc4bc410de1245c7bf63351d42 Ticket: -