Skip to content

Instantly share code, notes, and snippets.

View neochapay's full-sized avatar

Chupligin Sergey neochapay

View GitHub Profile
@neochapay
neochapay / build.diff
Last active November 26, 2019 11:16
Hybrys build path
diff --git a/core/main.mk b/core/main.mk
index 9d6e233..0299609 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -294,7 +294,7 @@ TARGET_BUILD_JAVA_SUPPORT_LEVEL := platform
# -----------------------------------------------------------------
# The pdk (Platform Development Kit) build
-include build/core/pdk_config.mk
+#include build/core/pdk_config.mk
@neochapay
neochapay / bionic.diff
Created May 25, 2017 08:55
Bionic hybris path
diff --git a/libc/Android.mk b/libc/Android.mk
index 3005092..db1c3e6 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -65,6 +65,10 @@ libc_common_src_files := \
stdio/snprintf.c\
stdio/sprintf.c \
+ifeq ($(TARGET_NEEDS_BIONIC_MD5),true)
+libc_common_src_files += bionic/md5.c
@neochapay
neochapay / init.environ.rc.diff
Created May 25, 2017 08:58
init.environ.rc path for hybris
# set up the global environment
on init
+
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ # This is not 64-bit safe -stskeeps
+ export LD_LIBRARY_PATH /usr/libexec/droid-hybris/lib-dev-alog:/vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
@neochapay
neochapay / system_core.diff
Created May 25, 2017 10:12
system/core Hybris path
diff --git a/adb/Android.mk b/adb/Android.mk
index b70c153..cdd4948 100644
--- a/adb/Android.mk
+++ b/adb/Android.mk
@@ -82,7 +82,9 @@ ifeq ($(USE_SYSDEPS_WIN32),)
LOCAL_STATIC_LIBRARIES += libcutils
endif
-include $(BUILD_HOST_EXECUTABLE)
+ifneq ($(HOST_OS),windows)
@neochapay
neochapay / frameworks_native.diff
Created May 25, 2017 10:19
Android/frameworks/native patch for hybris
diff --git a/opengl/libs/Android.mk b/opengl/libs/Android.mk
index cc5d544..00b1a56 100644
--- a/opengl/libs/Android.mk
+++ b/opengl/libs/Android.mk
@@ -32,7 +32,7 @@ LOCAL_SRC_FILES:= \
EGL/Loader.cpp \
#
-LOCAL_SHARED_LIBRARIES += libcutils libutils liblog libGLES_trace
+LOCAL_SHARED_LIBRARIES += libcutils libutils liblog libGLES_trace libdsyscalls
diff --git a/Android.mk b/Android.mk
index 0ba92cf..89253c3 100644
--- a/Android.mk
+++ b/Android.mk
@@ -15,1037 +15,8 @@
#
LOCAL_PATH := $(call my-dir)
-# We have a special case here where we build the library's resources
-# independently from its code, so we need to find where the resource
@neochapay
neochapay / hardware_libhardware.diff
Created May 25, 2017 10:37
hardware/libhardware patch
diff --git a/hardware.c b/hardware.c
index 6713ea0..7e33b85 100644
--- a/hardware.c
+++ b/hardware.c
@@ -31,9 +31,11 @@
#if defined(__LP64__)
#define HAL_LIBRARY_PATH1 "/system/lib64/hw"
#define HAL_LIBRARY_PATH2 "/vendor/lib64/hw"
+#define HAL_LIBRARY_PATH3 "/usr/libexec/droid-hybris/system/lib64/hw"
#else
@neochapay
neochapay / main.qml
Created May 29, 2017 18:07
main.qml
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
0 __libc_do_syscall ()
at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
#1 0xb60a7d2e in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2 0xb60aabb4 in __GI_abort () at abort.c:89
#3 0xb60a2e80 in __assert_fail_base (fmt=0x1 <Address 0x1 out of bounds>,
assertion=0xb40fd4fc "!m_bufList.empty()", assertion@entry=0x0,
file=0xb40fcc4c "hwcomposer_window.cpp", file@entry=0xb29cf3a0 "\001",
line=204, line@entry=3055034552,
function=function@entry=0xb40fcb78 <HWComposerNativeWindow::dequeueBuffer(BaseNativeWindowBuffer**, int*)::__PRETTY_FUNCTION__> "virtual int HWComposerNativeWindow::dequeu2
/dts-v1/;
/ {
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x1>;
model = "FriendlyElec NanoPi-NEO";
compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
clocks {