Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34a16b45 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by android-build-merger
Browse files

Merge "libion: open /dev/ion read-only" am: 74552a9e

am: 65233f22

Change-Id: I442f4a0f512a3f3a8330ea4ef00e45dbbeb2cdfd
parents 0ee30504 65233f22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@

int ion_open()
{
    int fd = open("/dev/ion", O_RDWR);
    int fd = open("/dev/ion", O_RDONLY);
    if (fd < 0)
        ALOGE("open /dev/ion failed!\n");
    return fd;
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class Device : public IonAllHeapsTest {
void Device::SetUp()
{
    IonAllHeapsTest::SetUp();
    m_deviceFd = open("/dev/ion-test", O_RDWR);
    m_deviceFd = open("/dev/ion-test", O_RDONLY);
    ASSERT_GE(m_deviceFd, 0);
}