Skip to content

Instantly share code, notes, and snippets.

View kimmoli's full-sized avatar

Kimmo Lindholm kimmoli

View GitHub Profile

Setup your SDK

.hadk.env

export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="OnePlus"
export DEVICE="onyx"
export PORT_ARCH="armv7hl"
From a0f7f405fb726bdee1d0c2388da80ea62cf93f34 Mon Sep 17 00:00:00 2001
From: taaem <taaem@mailbox.org>
Date: Sun, 26 Jun 2016 13:41:45 +0200
Subject: [PATCH] [build_packages] Add ffmemless and remove other vibrator
---
helpers/build_packages.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/helpers/build_packages.sh b/helpers/build_packages.sh
@kimmoli
kimmoli / onyx-sfdroid.md
Last active April 16, 2018 10:31
onyx-sfdroid
@kimmoli
kimmoli / buildscript.sh
Last active August 24, 2016 23:38
onyx sfdroid - Android patches and builds
#!/bin/bash
source build/envsetup.sh
set -e
SOURCE_DIR=~/android/system
INSTALLDIR=~/onyx_sfdroid
DEVICE=onyx

Project config

Prefer: libhybris-libGLESv1-devel
Release: <CI_CNT>.<B_CNT>
Macros:
%vendor %%foo

Meta

in Meta, add `` with your device project and repo containing droid-hal

fold=sfdroid-0.0.0
rm -rf $fold
mkdir $fold
mkdir -p $fold/system/bin
mkdir -p $fold/system/framework
mkdir -p $fold/system/lib
mkdir -p $fold/system/lib/hw
mkdir -p $fold/system/priv-app
@kimmoli
kimmoli / New file
Created August 24, 2016 06:52
Ostoslista
Risifrutti
Kaasu
Patterit 4*D
Wc paperi
@kimmoli
kimmoli / Nappi.qml
Last active September 30, 2016 17:01
Nappi
Button
{
text : "huuhaanappi"
anchors.centerIn: parent
onClicked: console.log("huuhaa")
}
@kimmoli
kimmoli / driver.c.patch
Created October 14, 2016 22:10
simplelink and dereferencing type-punned pointer will break strict-aliasing rules
union
{
_u8 TempBuf[_SL_RESP_HDR_SIZE];
_u32 DummyBuf[2];
} uBuf;
----------------------------------------------------------------------------------------
diff --git a/simplelink/source/driver.c b/simplelink/source/driver.c
index 0102ff9..8cf6bba 100755
with changes
HF->handset:
D/audio_hw_primary( 1080): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=1;
D/audio_hw_primary( 1080): select_devices: out_snd_device(6: voice-handset) in_snd_device(55: voice-dmic-ef)
D/hardware_info( 1080): hw_info_append_hw_type : device_name = voice-speaker
D/hardware_info( 1080): hw_info_append_hw_type : device_name = voice-speaker-dmic-ef
W/msm8974_platform( 1080): Codec backend bitwidth 16, samplerate 48000
W/msm8974_platform( 1080): platform_check_codec_backend_cfg:Use default bw and sr for voice/voip calls
D/hardware_info( 1080): hw_info_append_hw_type : device_name = voice-handset