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 / 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
@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 / 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 / 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,