Skip to content

Instantly share code, notes, and snippets.

View Trumeet's full-sized avatar
🏳️‍⚧️

Yuuta Liang Trumeet

🏳️‍⚧️
View GitHub Profile
@Trumeet
Trumeet / customsdkgen.sh
Created November 14, 2017 09:57
Build a custom android sdk with some hidden api (Not tested, I just copy it from https://github.com/AOKP/build/blob/mm/tools/customsdkgen.sh)
#!/bin/bash
SDK_VER=23
CUSTOM_VER=123
CUSTOM_NAME=aokp
. ${ANDROID_BUILD_TOP}/vendor/aokp/tools/colors
if [ -z "$OUT" ]; then
echo -e $CL_RED"Please lunch a product before using this command"$CL_RST
/*
* Copyright Aesean
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Trumeet
Trumeet / strip_play_services.gradle
Created June 7, 2017 11:49 — forked from dmarcato/strip_play_services.gradle
Gradle task to strip unused packages on Google Play Services library
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
}
return result
}
afterEvaluate { project ->
Configuration runtimeConfiguration = project.configurations.getByName('compile')