Skip to content

Instantly share code, notes, and snippets.

View androidlover5842's full-sized avatar

androidlover5842 androidlover5842

  • Third planet near to the sun
View GitHub Profile
@androidlover5842
androidlover5842 / icu.diff
Created February 20, 2016 08:51 — forked from Flex1911/icu.diff
Compat for icu in Android 5.0 for support some old drivers
diff --git a/icu4c/source/common/ucnv.c b/icu4c/source/common/ucnv.c
index 5cf4d15..3701f30 100644
--- a/icu4c/source/common/ucnv.c
+++ b/icu4c/source/common/ucnv.c
@@ -2914,6 +2914,75 @@ ucnv_isFixedWidth(UConverter *cnv, UErrorCode *status){
return FALSE;
}
}
+
+U_CAPI void U_EXPORT2 ucnv_setToUCallBack_48 (UConverter * converter,
@androidlover5842
androidlover5842 / gist:3d26b361cfdf56d01392982b8c4ec381
Created July 10, 2016 10:11
fix ERROR: Cannot launch Jack server
If you do not start JACK (Java Android Compiler Kit) 6.0 server in the assembly
ERROR: Can not launch Jack server
First method.
Open the file (in your home directory) .jack.
Change Ports:
SERVER_PORT_SERVICE = 8072 -> 8074
SERVER_PORT_ADMIN = 8073 -> 8075
Save.
@androidlover5842
androidlover5842 / kexec-melius.patch
Created September 29, 2016 21:11
Experimental Kexec hardboot patch for Melius
From 60ee12283c6be1540135f8470ae42f85cc4baebe Mon Sep 17 00:00:00 2001
From: Mike Kasick <mike@kasick.org>
Date: Sat, 7 Jul 2012 19:00:47 -0400
Subject: [PATCH] Add and enable kexec hardboot support.
Consists of squashed commits from:
https://github.com/mkasick/android_kernel_samsung_jfltespr.git
commit 750bb80f2854d6af5273e55ea179a4c60b2d9efc
Author: Mike Kasick <mike@kasick.org>
@androidlover5842
androidlover5842 / RunAsRoot.txt
Created November 5, 2016 10:58
Run as root without Shell.SU.run
public String runAsRoot() {
try {
// Executes the command.
Process process = Runtime.getRuntime().exec(command);
// Reads stdout.
// NOTE: You can write to stdin of the command using
// process.getOutputStream().
BufferedReader reader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
@androidlover5842
androidlover5842 / GitRateLimite.txt
Last active November 5, 2016 11:19
Git rate limit
curl -i 'https://api.github.com/users/grace5921?client_id=ed3c77e4af1326ab7c01&client_secret=6cd7304af83374e1acf74cc10033f51b80d0126a'
curl -H "Authorization: token OAUTH-TOKEN" https://api.github.com/users/grace5921 -I
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 4.4.0-31-generic Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
diff --git a/include/linux/msm_rotator.h b/include/linux/msm_rotator.h
old mode 100644
new mode 100755
index 17ae867e1..32cecf7cb
--- a/include/linux/msm_rotator.h
+++ b/include/linux/msm_rotator.h
@@ -12,7 +12,8 @@
_IOW(MSM_ROTATOR_IOCTL_MAGIC, 2, struct msm_rotator_data_info)
#define MSM_ROTATOR_IOCTL_FINISH \
_IOW(MSM_ROTATOR_IOCTL_MAGIC, 3, int)
@androidlover5842
androidlover5842 / Travis CI local install
Created March 18, 2017 14:01 — forked from jarun/Travis CI local install
How to install Travis CI locally on Ubuntu 16.04
sudo apt install ruby ruby-dev
sudo gem install travis
# install path: /var/lib/gems/
on7 LL stock rom:- https://drive.google.com/uc?export=download&confirm=XDHQ&id=1Hgsyw2gYyiSFU7s_isO4SLt4D2GlKwLl