Upstream frameworks base by jasonmerc · Pull Request #2 · PAOSP/android_frameworks_base · GitHub
Skip to content

Upstream frameworks base#2

Open
jasonmerc wants to merge 198 commits into
PAOSP:paosp-nfrom
LineageOS-eXtended:cm-14.1
Open

Upstream frameworks base#2
jasonmerc wants to merge 198 commits into
PAOSP:paosp-nfrom
LineageOS-eXtended:cm-14.1

Conversation

@jasonmerc

Copy link
Copy Markdown

No description provided.

BadDaemon and others added 30 commits February 17, 2018 14:33
Change-Id: I2d1c1294839b5a3ca059db6fc9241603f65d5ad4
Since commit d2274f8
("Fix animations for app QS tiles."), the tint of resource icons of
third party tiles doesn't change when the tile status changes. Keep
track of the tint so that changing the status of the icon will cause
an update of the icon.

BUGBASH-1239

Change-Id: Ib2a91a00b6912ae85f37dd096e62bb6b979e9fc7
* It's been moved to cmsdk

Change-Id: I281f056a0c58998e639de69b9658f89eb5bc1046
Change-Id: I6cef227b477e9973eed48ed4345bbbc684f48f74
There was an asymmetry between parcelling and unparcelling of
VerifyCredentialResponse that could lead to type confusion if
packed with other objects in a Parcel.

Test: none
Bug: 71714464
Change-Id: Icff68879e249422ccca49f2bb7db85c35b4cb353
(cherry picked from commit 54813e9)
(cherry picked from commit 09ba8fd)
ParcelableRttResults was unparceled incorrectly.

Bug: 70398564
Test: exploit provided in bug no longer works
Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813
(cherry picked from commit e1e5a24)
(cherry picked from commit 5a3d270)
All other stringAt methods check for null termination. Be consistent
so that upper levels don't end up with huge corrupt strings.

Bug: 62537081
Test: none
Change-Id: I17bdfb0c1e34507b66c6cad651bbdb12c5d4c417
(cherry picked from commit 3d35a0e)
(cherry picked from commit 97f8cb01149b35b1832c7f9efe85ff19edf1083e)
(cherry picked from commit 5ec65ae)
(cherry picked from commit a2a3654)
The WHATWG URL parsing algorithm [1] used by browsers says that for
"special" URL schemes (which is basically all commonly-used
hierarchical schemes, including http, https, ftp, and file), the host
portion ends if a \ character is seen, whereas this class previously
continued to consider characters part of the hostname.  This meant
that a malicious URL could be seen as having a "safe" host when viewed
by an app but navigate to a different host when passed to a browser.

[1] https://url.spec.whatwg.org/#host-state

Bug: 71360761
Test: vogar frameworks/base/core/tests/coretests/src/android/net/UriTest.java (on NYC branch)
Test: cts -m CtsNetTestCases (on NYC branch)
Change-Id: Id53f7054d1be8d59bbcc7e219159e59a2425106e
(cherry picked from commit fa3afbd)
(cherry picked from commit 0b57631)
Change-Id: Ie3feee7796d76c1eafd62e9807ef90105c5d31d5
* A partial screenshot shouldn't timeout when the user might still be
  adjusting the rectangle
* This also fixes an issue, when views were removed from WindowManager
  multiple times, resulting in a crash

BUGBASH-1500

Change-Id: I5916545e9293717a96ecf191c9fb20db536cc730
Change-Id: I6ca8357face163515c2d59778a9a350fedc0501a
If isDeviceLocked is called with clearCallingIdentity,
original userId should be explicitly passed

Bug: 67621847
Test: Manual
Change-Id: I2bcb92572898811cc96bda1149ef806e6239e929
Merged-In: Ic4569b21d8a26a62bba91742b442f0c3ea8bcc9e
Change-Id: I17d085be9ce1a139e75264f1e715df7f565cd41b
Fixes: 71992105
Test: manual
(cherry picked from commit 187964a)
CVE-2017-13310
Length of the last array in readFromParcel should be the same as
value of mNextIndex.

Test: PoC app in the bug
Bug: 73252178
Change-Id: I69f935949e945c3a036b19b4f88684d906079ea5
(cherry picked from commit 3b8bc2e)
CVE-2017-13311
Bug: 63000005
Test: runtest frameworks-net -c com.android.server.connectivity.VpnTest
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAlwaysOnVpnLockDown
Merged-In: Ia1a82ee73d8617f3124032986fe6c09c14bf7752
Change-Id: Ia1a82ee73d8617f3124032986fe6c09c14bf7752
(cherry picked from commit f915e04)
CVE-2017-13314
The writeToParcel and readFromParcel is not symmetry, fixed it.

Test: no test
Bug: 70721937
Change-Id: I01f6f6b2ab778ee8b638d9b69fe0a6b9aa7ee395
(cherry picked from commit 8c55a70)
CVE-2017-13315
Fixes: 73511076, 73311729
Test: presubmit
Change-Id: Ie98f67ffee4744050ac85d8b229370a16a76a194
(cherry picked from commit 726b51a)
(cherry picked from commit 5a28e53)
CVE-2017-13316
Add a new permission that only allows other system services to call
networking related methods.  This permission is intended to prevent
other apps from calling these methods that might leave networking
services in intermediate states.

Bug: 36538042
Test: build, run wifi unit tests, boots, wifi connects
Change-Id: Icba6ad5280e9a8863bd1c706ca34b7add8de5294
*) Backport to cm-14.1

*) To be used as a layout to hold one or more cmsdk status bar
   feature classes.

*) Propagates visibility and tint information via interfaces
   defined in cmsdk internal.

*) Supports adding further interfaces without impacting existing use
   cases.

Change-Id: I3b98837e076ba1cb0d4ca6e7588c1e917f81e65a
*) Backport to cm-14.1

*) Add cmsdk internal NetworkTraffic to the statusbar
   using the CMStatusBarItemHolder helper.

Change-Id: Iba82b622099a415da5fe6d4ae923e3139b6dca52
When rotation or RTL changed, gear button's translationX should be
updated to new position.

Test: (Rotation) Swipe notification to left > Gear is showing on the
right > Rotate the device > Gear button should be visible
Test: (RTL) Swipe notification to left > Set RTL language
> Swipe notification to right in RTL configuration
> Gear button should be visible

Change-Id: I04a657d380b746b30585ff8159b7a9b4865f423a
A different fix will be applied with follow-up changes. This also
doesn't appear to completely fix the problem (REGRESSION-1963).

This reverts commit ac496f4.

Change-Id: Ie77e2d4c58ce8c6be68f125d3311ecced6e1e7ca
This path changes a dangerous lock path in reportNetworkConnectivity().
This methods is called outside of the main ConnectivityService handler
and takes a lock on a specific NetworkAgentInfo whose connectivity
status is being reported.

While this lock is held, reportNetworkConnectivity() goes on and query
the network policy state for that network, which may ends into
NetworkPolicyManagerService.

Instead, the lock on NetworkAgentInfo is only held long enough to make a
copy of LinkProperties, which is then passed to
NetworkPolicyManagerService without that lock.

Bug: 36902662
Test: could not repro b/36902662, reportNetworkConnectivity() works.
      $ runtest frameworks-net

Change-Id: Iac4b75bcecbdddb0ac695c8b1a87ae755f62f47f
This patch moves reportNetworkConnectivity onto the handler of
ConnectivityService.

This allows:
  - to inspect NetworkAgentInfo on the ConnectivityService handler,
    which is always more correct than doing so on a Binder thread.
  - to improve locking policies around NetworkAgentInfo.

Test: $ runtest frameworks-net
Bug: 37119619, 36902662
Change-Id: I49a765826e65c29a1995242290e5e7544112c94e
Alignment of brightness mirror dialog was not exatly same as the
QS brightness dialog, which produced a visual glitch of slider
thumb shifting whenever we change brightness.
This is solved by dynamically handling the visibility of
mirror brightness icon, gone when brightness icon is off and
invisible when brightness icon is on, so that both mirror and
QS slider are equally aligned.

Change-Id: Ifb85643db669ee8d7473d3c48e7e4733428a77d6
Change-Id: I4dc5e6ed7c2e4a636f9d23c112d81dbc69fbf255
Adds detection of attacker-modified size and data fields passed to
ResStringPool::setTo(). These attacks are modified apks that AAPT would
not normally generate. In the rare case this occurs, the installation
cannot be allowed to continue.

Bug: 71361168
Bug: 71360999
Test: run cts -m CtsAppSecurityHostTestCases \
          -t android.appsecurity.cts.CorruptApkTests

Change-Id: If7eb93a9e723b16c8a0556fc4e20006aa0391d57
Merged-In: If7eb93a9e723b16c8a0556fc4e20006aa0391d57
(cherry picked from commit 7e54c3f)
CVE-2018-9338, CVE-2018-9340
Bug: 63766886
Test: ran CTS tests
Change-Id: I1f92bb014e275eafe3f42aef1f8c817f187c6608
(cherry picked from commit 6d2096f)
CVE-2018-9379
Pressing the tile when unplugged causes USB tethering to turn on
as soon as the cable is connected. This can happen long after the
tile has been pressed, so don't do anything if unplugged.

Change-Id: Ib8bbdc758097ca7af5d4e7c3483c28ba42fb9ce1
When telephony isn't available and the left icon has not yet been set to
a custom option, the left icon should be hidden.

This makes updateLeftAffordanceIcon and updateLeftButtonVisibility work
in a similar way to determine the icon visibility.

Change-Id: Ibb63ecef3c3cad73a19c04c85eccb93b423d5e80
mnazzzim and others added 29 commits October 10, 2018 10:27
Forward ported to Nougat By: @BeansTown106

Port from: PureNexusProject/android_frameworks_base@49e7078

Change-Id: I6c0d539f86416d78b9c2cd610af89651d12972bd
This fixes a bug created due to the fact that the screenshot sound is the same one as the
camera sound. This keeps the two apart and now if you switch either or off, it doesn't mess
with the other one.

Change-Id: I756e6af9411638efd844170667bf40011ff21871
Change-Id: Id2d07c6fa374861da4cff6ad93efd3d38af6bfcd
partial screenshot icon thanks to @kantjer
Change-Id: I30ce232a6e7a01e15b29a8105749b1da1ddd1980
Squashed commit of the following:

commit 06f9b5a7ebefb8ff477241269a005b9afae2be87
Author: maxwen <max.weninger@gmail.com>
Date:   Sun Dec 28 21:31:46 2014 +0100

    base: screenrecord: use different notification image

    Change-Id: I252144a4f5c3bdaa84974b996348885ba8dee942

commit 6f9f2d83e5c86b6259bccfdfadb0e4243872f7f9
Author: XpLoDWilD <xplod@ouverta.fr>
Date:   Sun Jul 13 21:43:28 2014 +0200

    Screenrecord: Fix SystemUI loop-crash

    Change-Id: I25045820465d21b7d1f0e933e5e4f3324cb044b6

commit b6f20490332f293df050db46f9a8ced9394b9641
Author: maxwen <max.weninger@gmail.com>
Date:   Tue Apr 29 23:28:06 2014 +0200

    base: screenrecord: update notification

    Update show/hide pointer button for actual state

    Change-Id: I02090f05b06896248483f3f9ff2eb22924a22476

commit aa23ce799167f97a6e9f7beaf57d23027b5c32ed
Author: maxwen <max.weninger@gmail.com>
Date:   Tue Dec 23 01:04:35 2014 +0100

    Screenrecord: correct multi-user acces for settings

    Change-Id: I0bee907d190b2dc0df1c12d136f31ed379a59866

commit 1fc7464c6d3efcb13e243aae7ed798d67af86ede
Author: xplodwild <me@xplod.fr>
Date:   Wed Nov 13 08:16:57 2013 +0100

    Screenrecord: Create the Screenshots directory if it doesn't exist

    Change-Id: I2b0458eed024dbda97e9e1ea3426c12d29add781

commit 7c08a37a28bcf7b44e9de2b67c502077c0f4fb47
Author: xplodwild <me@xplod.fr>
Date:   Tue Nov 5 20:30:09 2013 +0100

    base: Add a key combo to start/stop video recording

    Press volume up and power to start recording a video of your screen.
    Press this key combo again to stop it.

    Change-Id: Id0b13ba1092a1d6e0bf7bff5f14d89764cdf370c

Change-Id: Ida1ee4a5c8d334c72d549752d02bd7848932dc7c

base: bring back screen record shortcut

Change-Id: Iad561a2dc7f6c68b49e40537c4d5152d93dcdf09

SystemUI: screenrecord: make sure to always delete tmp file

tell media scanner that the tmp file got deleted

Change-Id: I2974969fa25a01c9422f13316d188b65db591156
previously it was saved in "Screenshots"
also refactor source a bit, remove warnings

PS2: LOG screenshots --> screenrecords

Change-Id: Idf9b024bbbf1816aa91e5e455525750a761ddb73
Change-Id: I2df2ff0c8b81eb77b3d112d357cdf18cb19f4c2b
E/ActivityManager( 4885): Sending non-protected broadcast eu.chainfire.supersu.NativeAccess from system uid 0 pkg null
09-16 23:35:48.711 E/ActivityManager( 4885): java.lang.Throwable 09-16 23:35:48.711 E/ActivityManager( 4885): at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:17695)
09-16 23:35:48.711 E/ActivityManager( 4885): at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18256)
09-16 23:35:48.711 E/ActivityManager( 4885): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:499)
09-16 23:35:48.711 E/ActivityManager( 4885): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2755)
09-16 23:35:48.711 E/ActivityManager( 4885): at android.os.Binder.execTransact(Binder.java:565)

Change-Id: I5f5a094db858a5053837f31a6c9e062e863ac8d7
Signed-off-by: Corey Edwards <ensabahnur16@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
*allow setting vibration when call is connected
*allow setting vibration when call is disconnected
*allow setting vibration for call waiting
*this works with google and aosp dialer :)
this commit adds:

- ime switcher notification - thanks cm
- slims fullscreen disable on landscape
- slims force autorotation on IME
- volume button control for navigate in the message - thanks cm
- slims force to show always enter key

some fixes to the 4.2/4.3 implementations + added full multiuser
support for all this features

cheers

Change-Id: I71e93c39620cc171e658b2d7e26491bac97c651d
had a few requests for this, as most devices only vibrate when fingerprint authentication is unsucesful so made it configurable

Change-Id: I47f90f0f8852efcb123bd9f368a766c5b1c67078
 * HWUI_COMPILE_FOR_PERF uses the -mapcs flag
   but it has already been deprecated.
 * Remove the flag "-mapcs" completely

Reference:
https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html#ARM-Options

Change-Id: I6f72b0dc37deefbbfb1c99161f9577a9c447a343
this shows
CPU temp (if available)
for every core governor + online + freq

PS3:
increased font size

PS4:
whitespace cleanup

PS5:
more of that :(

Change-Id: Ic62c459146938615f56b77d60f743d25cf7ca382
PS6 @omni Gerrit

Change-Id: Idd1bfdf9d5d4509a5a4085864ef7cf5615a9171a
can't see whats going on with white

Change-Id: I00bdfe60c6d634bd58290e2647fe7b3c73370a54
Dont use real estate if CPU temp reading is not supported, i.e.
we are not on a HTC or Oppo phone.

Change-Id: I4586d28286a473f3dbad58965158f6ad5e5b501c

Signed-off-by: Varun Date <date.varun123@gmail.com>
Old farts cant read those tiny fonts
add shadow and alpha bg to make it readable also on light bg

AICPfy:
keep original neededHeight logic instead. Otherwise, cropping
occurs

Change-Id: I63347b28af2c6514e2b88546613292aa331c8fd2
Change-Id: I98b72203267bfe01cbd4a5d2e8d7eca251c694c6
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This fixes bug of switching sound from headphones to speaker
when making screenshot during music listening.
Change-Id: I0c580a2b10ea13ee2ae8bec07b015b06319a96cf
Signed-off-by: RakeshBatra <raakesh.batra@rediffmail.com>
This is based off XposedAppSettings, but modified to fit our needs, and
a little bit of: d9973ba
Part 2 is inside the Lux CarbonFibers Bringup

Change-Id: Ie77f6954d3150a1c647c9bd29f055ad0ddb0f1df

P.S. 2: fwb: fix HIDE_FROM_RECENTS_LIST provider entry

Change-Id: I859f2c9561fc7fc77c57d8dad5f1ba6a8033e21b
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
abc: extracted from DUI
add a public call to ActionUtils
…mission

Change-Id: I14f7ce034ada87ea54d31d0607f482e7ea71ded3
Change-Id: Id90b2e39d391d1c25537727d995c5454610fd719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.