Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-native: List of commits

frameworks/native


RSS
Rev. Time Author
4bc6656 pie-x86 2021-07-06 17:27:31 Chih-Wei Huang

Android 9.0.0 Release 61 (6780336)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCX3utPAAKCRDorT+BmrEO
eJhaAJ93gz/2UiqznICP2ZBpLl58bSjSfwCeNz0wHdKbd/WFMoWcmp6ZFbH5/OI=
=/tA3
-----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r61' into pie-x86

Android 9.0.0 Release 61 (6780336)

76923a3 2020-08-07 09:13:34 Valerie Hau

Fixing small bug for sec release

Bug: 150845631, 137284057
Test: build, boot, SurfaceFlinger_test, libsurfaceflinger_unittest
Change-Id: I9b7ab17ea0f7fb7723a7d5bf914041b1b45a59d3
(cherry picked from commit 9a17ac2ca4beb9504f006487d4e6d72428c5f421)

564bf67 2020-07-01 08:11:46 Vishnu Nair

Call Layer::getLayerDebugInfo from the main thread

Fixes an issue where drawing state could be accessed from a binder
thread. The function also mixed current state with drawing state
incorrectly. The function now only retrieves drawing state.

Bug: 150226608
Test: Steps in bug doesn't repro
Test: atest sffakehwc_test
Merged-In: I04daedcb9a890083cc710bab30b295e14b9872ae
Change-Id: I04daedcb9a890083cc710bab30b295e14b9872ae
(cherry picked from commit 927b3b120839954a575b4e8c498b1b4d4d375afa)

056cdf5 2020-06-05 00:59:30 Chih-Wei Huang

Determine the density according to DisplayDevice

Previously we use hwConfig to get the dimension of the display.
However, there may be several hwConfig modes of a display. Only
the first mode is used to calculate the density. But first mode
may not be the default mode. Hence the calculated density may not
be suitable to the default mode.

Now use the dimension of the DisplayDevice to calculate the density.

5c3824d 2020-06-03 12:04:38 Chih-Wei Huang

Fix red-blue swapped issue for software rendering

The software rendering have to use BGRA format.

3b4d3a5 2020-06-01 23:43:52 Tong Bo

Make DisplayInfo struct packed

When DisplayInfo is handled through binder transaction, especially
between a 32-bit client and 64-bit service, it may have different
size and client will receive incorrect values. Make this struct packed
and so it will keep the same size.

Change-Id: Ia0a9afb28ba2c9a2fc581f3ae544e3ea2b3fe419
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-67302
Signed-off-by: Tong Bo <bo.tong@intel.com>

87d7257 2020-05-21 11:16:53 Matt Moeller

ISurfaceComposer: Workaround for screenshots on intel graphics

Prevent the GraphicBuffer destructor until after the screencap client
has had a chance to consume it.

79c6f61 android-x86-9.0-r2 2020-03-13 13:59:25 Chih-Wei Huang

Android 9.0.0 release 54
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXl2XowAKCRDorT+BmrEO
eLIrAKCIWqW6VivtGCISn4Ub4RXxTruiywCeImCee06i5eeN8SsfusRH+5STkJ4=
=h1Ei
-----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r54' into pie-x86

Android 9.0.0 release 54

Conflicts:
services/surfaceflinger/SurfaceFlinger.h

4f15124 android-x86-9.0-r1 2020-02-24 19:27:55 Chih-Wei Huang

inputflinger: fix relative mouse movement

Since commit 78f97b326 ("Support pointer capture in InputReader") the
logic to determine whether mouse input is relative was changed.
However, commit 4d8be8c was forward ported from nougat-x86. It doesn't
consider that.

Fixes: 4d8be8c ("inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer")
Reported-and-tested-by: MrARM Slack <mrarm.slack@gmail.com>

f09ee69 2020-02-11 11:33:13 Chih-Wei Huang

Android 9.0.0 Release 53 (6107734)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXji5AgAKCRDorT+BmrEO
eKSlAJsEGymWYueq13qtV5XOIKeb0hwUNACfTQh3VV2fMXiOQIWXd4Qm/76E+VI=
=LxJs
-----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r53' into pie-x86

Android 9.0.0 Release 53 (6107734)

e71f004 2020-01-25 07:37:38 Valerie Hau

Restrict Automerge: Fix reinterpret_cast security bug

This patch fixes a security bug in SurfaceFlinger. Bug is due to a
reinterpret_cast used when obtaining a sp<Layer> from an sp<IBinder> passed
from a client. Without a checking mechanism, client could pass a
malicious data packet. This is a modified cherry-pick of a patch by Rob Carr
that utilizes a map to identify the appropriate layer based on
the incoming IBinder token.

Original patch commit:

"Author: Robert Carr <racarr@google.com>
Date: Thu Apr 11 13:18:21 2019 -0700

SurfaceFlinger: Validate layers before casting.

Reinterpret casting random IBinder = no-fun. I first attempted
to use inheritance of "getInterfaceDescriptor" in Layer::Handle but
departing from "standard-layout" (e.g. using virtual methods) means that
downcasting with static/reinterpret_cast is no longer valid. Instead I opted
for the pattern the system-server uses of maintaing a map.

Now that we look up the handle in a map rather than casting IBinder
to Layer::Handle we need to make sure we have unique instances of the
handle. In general this is true but we weren't doing this in the
createWithSurfaceParent where we had an extra call to getHandle. Here
we both refactor createWithSurfaceParent so it works with the new
changes and also add protection for getHandle. We also fix an error
where the handle map was populated outside of lock.
"

Bug: 137284057
Test: build, boot, manual, SurfaceFlinger_test
Change-Id: I9b5f298db2da9cd974c423eb52f261a90f0d17dc
(cherry-picked from commit c4638082469e906c025c8c8a8614de65c59afc90)

ab32ecd 2020-01-20 19:55:55 Chih-Wei Huang

Android 9.0.0 release 52
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXhOwnwAKCRDorT+BmrEO
eBoSAJoCh1QLVN+RIP+wxfpWRmf2+nV+LwCgkL/klnZQ/fRIeJHJYFXkdSzfd1g=
=55b8
-----END PGP SIGNATURE-----

Merge tag 'android-9.0.0_r52' into pie-x86

Android 9.0.0 release 52

755b951 2019-12-17 06:10:10 Ashwini Oruganti

Don't leak input events to dumpsys on user builds

Remove the details of KeyEvent and MotionEvent logs.
Bug: 139945049
Test: Tested on a device, the input functions work as expected and input
event logs are not leaked to dumpsys on user builds.

Change-Id: I98c9c375f18963177bf0c1d8829a217b4ad4acc6
Merged-In: I98c9c375f18963177bf0c1d8829a217b4ad4acc6
(cherry picked from commit 3b7d779774cb81c5d922f74216392c9fd7004a1b)

800ee6d 2019-12-17 06:10:10 Michael Wachenschwanz

Resize object capacity when shrinking Parcel

Bug: 140419401
Test: atest android.os.cts.ParcelTest
Change-Id: I04edee415e1984ba5fb97c5c1b09892a360cf221
(cherry picked from commit c67d9f33b36cbb95b121d058f51d6653f1ec4334)
(cherry picked from commit d9d10dbdf2f20af3dd01376d2130c71c052e42f3)

2560c89 2019-11-14 13:49:34 Chih-Wei Huang

libEGL: remove incorrect error message

The logic in commit 0c8552ec5 is reversed.

Fixes: 0c8552ec5 ("libEGL: select pixel format by EGL_NATIVE_VISUAL_ID")
Reported-by: Michael Goffioul <michael.goffioul@gmail.com>

4d8be8c 2019-11-14 13:49:34 Jon Doe

inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer

Qemu and VirtualBox use tablet-style inputs. However, it's difficult to
work with the current "invisible finger" or "drag pointer" interface
provided to the virtual absolute coordinate pointing devices.
Instead, this patch classifies them as a regular mouse pointer
(INPUT_DEVICE_CLASS_CURSOR), which is more intuitive to work with.

66b02f3 2019-11-14 13:49:34 Chih-Wei Huang

SurfaceFlinger: support higher resolution

9967fdf 2019-11-14 13:49:34 Chih-Wei Huang

libEGL: use SwiftShader if hardware gralloc is not set

264d106 2019-11-14 13:49:34 Chih-Wei Huang

libEGL: select pixel format by EGL_NATIVE_VISUAL_ID

We need this workaround until Mesa supports HAL_PIXEL_FORMAT_RGBA_8888.

3bb376a 2019-11-14 13:49:34 Chih-Wei Huang

RenderEngine: support non-RGBA_8888 format

Some of our GPUs (e.g., radeon) don't support RGBA_8888 well.
To workaround it, just get the EGL config by a simpler query.

This patch should be reverted once all of our GPUs support
RGBA_8888.

2cb27c7 2019-11-14 13:49:34 Chih-Wei Huang

installd: a workaround for 9p filesystem

SELinux and getxattr seem not work on 9p filesystem.
Ignore the errors as a workaround.

TEST: be able to boot to Home on QEMU with shared 'data' folder.

68f0d38 2019-11-14 13:49:34 Chih-Wei Huang

Run SurfaceFlinger with root privilege

To control virtual consoles, SurfaceFlinger needs the root privilege.

8a23353 2019-11-14 13:49:34 Byron Gardner

Enable 64-bit support in libs/gui/Sensor.cpp

Change-Id: Iaaa112bd821a6a0e3234461df8f7b6acc47b254e
Orig-Change-Id: I04c22e6f2c6f4271ca451b775c8d7f86e4c97c38
Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-9998
Category: aosp improvement
Domain: SENSORS.VIRT-Common
Origin: internal
Upstream-Candidate: yes
Signed-off-by: Byron Gardner <byron.gardner@intel.com>
Reviewed-on: https://android.intel.com:443/296325

523d715 2019-11-14 13:49:34 Wang, Yue A

SurfaceFlinger: disable VSync thread if no clients requiring.

In EventThread, 2 VSYNCs are needed to do composition and update
the client status. So, a 30FPS video may leads to 60FPS VSYNC,
which means the DispSync thread would be waked 60FPS. This is a
unexpected behavior which takes more power consumption. Now we
update the SF status soon after the first VSYNC, which means no
extra VSYNC needed, and the DispSync could be awaked as expected,
and consequently power get saved.

Change-Id: If486eb9b87f109a71f71b510768f15dd733f1233
Orig-Change-Id: I1d3b166021e15a81b2ad770b039761fc2c15fddf
Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-12211
Category: aosp improvement
Domain: Graphics-SF
Origin: internal
Upstream-Candidate: yes
Signed-off-by: Wang, Yue A <yue.a.wang@intel.com>
Reviewed-on: https://android.intel.com:443/238344

0c7e9cd 2019-11-14 13:49:34 juntingwang

Set PS2 Keyboard controller as not a ketboard type

The Eventhub detects the platforms built-in PS/2 keyboard controller
as a physical keyboard. So the system will not display the software
keyboard by default. Modify it device type in Keyboard-less tablets,
so that ActivityManager will not ignore the PS/2 controller.

Issue: AXIA-1875

Change-Id: Ia5b7592e82aaf1970066bab5e9ca5f46ac83ab1c
Signed-off-by: juntingwang <Junting.Wang@windriver.com>

498b72f 2019-11-14 13:49:34 Andy Ross

binder: Fix service initialization race vs. service manager

The framework relies on the global IServiceManager running before a
BinderService object is instantiated. But there was no detection of
the error condition when it was not (specifically: mediaserver can be
initialized before system_server), and in fact the default error
behavior (kill the proxy object) ensured that the process would never
be able to add services again. Retry the addService() code, and allow
transient binder failures for the special case of the service manager
proxy.

Issue: AXIA-1706
Change-Id: Icac10bb0f47a2fe33ac9605a13633b83afa3ebff
Signed-off-by: Andy Ross <andy.ross@windriver.com>

a45c6c8 2019-11-14 13:49:34 Daniel Leung

Prevent EventHub from adding input device twice

When Android first starts up, it scans /dev/input for input devices.
In some rare instances, the EventHub gets another notification that
some device nodes are created. It then proceeds to add the same
input device again. This causes the system to get two events per
touch or key stroke.

This adds a check to prevent adding the same device if the operation
is triggerd by inotify.

Issue: AXIA-858
Change-Id: I68b02594f1c7f14067611735db0b3763378ec7ea
Signed-off-by: Daniel Leung <daniel.leung@intel.com>

15f7b53 2019-11-08 09:20:15 Steven Moreland

Sensor: use FlattenableUtils::align

Since it memsets skipped over memory now.

Bug: 141890807
Test: boot, check buffer is zero'd here
Change-Id: Ieb3cd90215a3ccc1dc43365ecde251a50db08553
(cherry picked from commit d58cf5acb863eddbbeb9982439965e259045940e)
(cherry picked from commit dbd0eecfc7570231d5cbb76678b0358c43ee6d3c)

cc973cf 2019-09-20 15:50:53 Chih-Wei Huang

InputReader: add 5-point calibration

Updated for Android 5.0.

3c39117 2019-09-20 15:28:22 Chih-Wei Huang

auto determine the density if not provided in surfaceflinger

We hope to support tablet UI for different resolutions.
So adjust the density according to the resolution.

Show on old repository browser