Skip to content

Instantly share code, notes, and snippets.

View xingrz's full-sized avatar

XiNGRZ xingrz

View GitHub Profile
{
.mode = {
.name = "2560x1440p@60Hz",
.refresh = 60,
.xres = 2560,
.yres = 1440,
.pixclock = 241699200,
.left_margin = 80,
.right_margin = 48,
.upper_margin = 33,
# platform/art art
# -- platform/bionic bionic 只是增加了kernel header
# -- platform/bootable/recovery bootable/recovery
# platform/build build
# platform/external/bluetooth/bluedroid external/bluetooth/bluedroid
# platform/external/busybox external/busybox
# platform/external/chromium_org external/chromium_org
# platform/external/e2fsprogs external/e2fsprogs
# platform/external/libselinux external/libselinux
# platform/external/ppp external/ppp
@xingrz
xingrz / Makefile
Created March 17, 2017 18:07
arch/arm/Makefile
kernel.img: zImage
$(Q)$(srctree)/mkkrnlimg $(objtree)/arch/arm/boot/zImage $(objtree)/kernel.img >/dev/null
@echo ' Image: kernel.img is ready'
%_kernel.img: %.dtb zImage
$(Q)cat $(objtree)/arch/arm/boot/zImage $(objtree)/arch/arm/boot/dts/$*.dtb > $(objtree)/zImage-dtb && \
$(srctree)/mkkrnlimg $(objtree)/zImage-dtb $(objtree)/kernel.img >/dev/null && \
rm -f $(objtree)/zImage-dtb
@echo ' Image: kernel.img (with $*.dtb) is ready'
#!/bin/sh
set -e
cat rk | while read line; do
echo $line | while read repo path; do
if [[ ! $repo =~ ^platform ]]; then
continue
fi
project="android_$(echo $path | sed 's/\//_/g')"
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
@xingrz
xingrz / nx503a.xml
Created May 12, 2016 17:23
Local manifest for building CyanogenMod 13.0 for ZTE Nubia Z5S (nx503a)
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="xingrz/android_device_zte_nx503a" path="device/zte/nx503a" remote="github" revision="cm-13.0" />
<project name="xingrz/android_kernel_zte_nx503a" path="kernel/zte/nx503a" remote="github" revision="cm-13.0" />
<project name="xingrz/android_vendor_zte_nx503a" path="vendor/zte/nx503a" remote="github" revision="cm-13.0" />
</manifest>
--------- beginning of crash
05-12 10:52:53.051 12136 12136 F libc : page record for 0xb6f9900c was not found (block_size=64)
--------- beginning of main
05-12 10:52:54.865 8345 8345 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
05-12 10:52:54.896 8345 8345 D wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=11 sndbuf=163840 outq=0 send_len=48
05-12 10:52:57.901 8345 8345 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
05-12 10:52:57.926 8345 8345 D wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=11 sndbuf=163840 outq=0 send_len=48
05-12 10:52:58.076 12155 12155 F libc : page record for 0xb6e9e00c was not found (block_size=64)
05-12 10:52:58.084 12154 12154 F libc : page record for 0xb6f5a00c was not found (block_size=64)
--------- beginning of system
@xingrz
xingrz / digital.lua
Created February 16, 2016 17:29
Minecraft Computer Train Controlling System 1.0 (Standard)
local rs = require("component").redstone
local digital = {}
function digital.on(side, port)
return rs.getBundledInput(side, port) > 0x00
end
function digital.set(side, port, on)
if (on) then
echo " "
echo " \e[1;37m\e[41mFBI WARNING\e[0m\e[0;37m "
echo " "
echo " Federal Law provides severe civil and criminal penalties for "
echo " the unauthorized reproduction, distribution, or exhibition of "
echo " copyrighted motion pictures (Title 17, United States Code, "
echo " Sections 501 and 508). The Federal Bureau of Investigation "
echo " investigates allegations of criminal copyright infringement "
echo " (Title 17, United States Code, Section 506). "
echo " \e[0m"
@xingrz
xingrz / RecyclerViewBindingHolder.java
Created October 2, 2015 18:36
RecyclerView.ViewHolder with Data Binding
public class RecyclerViewBindingHolder<V extends ViewDataBinding> extends RecyclerView.ViewHolder {
public final V binding;
public RecyclerViewBindingHolder(V binding) {
super(binding.getRoot());
this.binding = binding;
}
}