Skip to content

Instantly share code, notes, and snippets.

View luftreich's full-sized avatar

luftreich

  • MXB.Ltd
  • Shenzhen.China
View GitHub Profile
@luftreich
luftreich / adb devices
Created July 19, 2014 08:36
Ubuntu adb devices :???????????? no permissions 解决方法[转
Ubuntu adb devices :???????????? no permissions 解决方法[转]
untun下USB连接Android手机后,使用adb devices 出现如下:
List of devices attached
???????????? no permissions
同时在DDMS中显示设备名也显示????,也无法显示进程名,无法查看log。
一、工具介绍
android-sdk-linux_x86/tools下有一堆工具,今天要用的是:Android Debug Bridge,在android开发过程中,这个工具是使用得最多的。(缩写adb,有点像gcc的gdb似的)
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.50 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
@luftreich
luftreich / FiFa_dn_list.txt
Last active August 29, 2015 14:04
FiFa_2014_Official_documents
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/43/61_0708_bra-ger_ger_playerstatistics_neutral.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/15/61_0708_bra-ger_ger_teamstatistics.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/19/83/eng_61_0708_bra-ger_fulltime_neutral.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/29/61_0708_bra-ger_passingdistribution.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/01/61_0708_bra-ger_actualformation.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/22/61_0708_bra-ger_playersheatmap.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/17/53/eng_61_0708_bra-ger_tacticalstartlist.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/50/96/64_0713_ger-arg_ger_playerstatistics.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/51/17/64_0713_ger-arg_passingdistribution.pdf
http
@luftreich
luftreich / py_int_hex.md
Created August 6, 2014 12:36
python各种类型转换-int,str,char,float,ord,hex,oct等

[python] view plaincopy

int(x [,base ]) 将x转换为一个整数

long(x [,base ]) 将x转换为一个长整数

float(x ) 将x转换到一个浮点数

complex(real [,imag ]) 创建一个复数

str(x ) 将对象 x 转换为字符串

repr(x ) 将对象 x 转换为表达式字符串

eval(str ) 用来计算在字符串中的有效Python表达式,并返回一个对象

tuple(s ) 将序列 s 转换为一个元组

list(s ) 将序列 s 转换为一个列表

@luftreich
luftreich / amlsd.h
Created August 8, 2014 13:01
drivers/amlogic/mmc/amlsd.h color printk
/*amlsd.h*/
#ifndef AMLSD_H
#define AMLSD_H
#define AML_MMC_MAJOR_VERSION 1
#define AML_MMC_MINOR_VERSION 05
#define AML_MMC_VERSION ((AML_MMC_MAJOR_VERSION << 8) | AML_MMC_MINOR_VERSION)
#define AML_MMC_VER_MESSAGE "2014-05-14: sdhc regular tuning support"
@luftreich
luftreich / aml_2014_08_11_20_24_36.patch
Created August 11, 2014 12:26
aml_2014_08_11_20_24_36.patch new diff
project bootable/recovery/
diff --git a/etc/recovery.data.sh b/etc/recovery.data.sh
index 3597fb7..9092ccf 100755
--- a/etc/recovery.data.sh
+++ b/etc/recovery.data.sh
@@ -1,8 +1,11 @@
#!/sbin/sh
+TEMPORARY_LOG_FILE="/tmp/recovery.log"
@luftreich
luftreich / android4.0_pm_suspend.TXT
Last active August 29, 2015 14:05
android4.0 suspend/resume的流程
http://blog.csdn.net/suntao222/article/details/8162938
android4.0 suspend/resume的流程
跟休眠唤醒相关的文件:
[html] view plaincopy
linux_source/kernel/power/main.c
linux_source/kernel/power/earlysuspend.c
linux_source/kernel/power/wakelock.c
@luftreich
luftreich / power.h
Created August 18, 2014 08:37
power_sysfs_head
#include <linux/suspend.h>
#include <linux/suspend_ioctls.h>
#include <linux/utsname.h>
#include <linux/freezer.h>
struct swsusp_info {
struct new_utsname uts;
u32 version_code;
unsigned long num_physpages;
int cpus;
@luftreich
luftreich / aml_m201_2014_08_22_20_02_24.patch
Created August 22, 2014 12:04
aml_m201_2014_08_22_20_02_24.patch
project build/
diff --git a/core/main.mk b/core/main.mk
index 6af33f4..b2703c6 100755
--- a/core/main.mk
+++ b/core/main.mk
@@ -60,7 +60,7 @@ $(warning * You are using version $(MAKE_VERSION) of make.)
$(warning * Android can only be built by versions 3.81 and 3.82.)
$(warning * see https://source.android.com/source/download.html)
$(warning ********************************************************************************)
@luftreich
luftreich / oem_AP6210.patch
Created November 8, 2014 03:09
s805 rtl8189es -> ap6210
diff --git a/device/amlogic/m201_8189_1G/Kernel.mk b/device/amlogic/m201_8189_1G/Kernel.mk
index 6f5159b..e4ce7be 100755
--- a/device/amlogic/m201_8189_1G/Kernel.mk
+++ b/device/amlogic/m201_8189_1G/Kernel.mk
@@ -30,8 +30,8 @@ mkdir -p $(TARGET_OUT)/lib
#cp $(UMP_OUT)/ump.ko $(PRODUCT_OUT)/root/boot/
cp $(MALI_OUT)/mali.ko $(PRODUCT_OUT)/root/boot/
-#cp $(WIFI_OUT)/broadcom/drivers/ap6xxx/broadcm_40181/dhd.ko $(TARGET_OUT)/lib/
-cp $(WIFI_OUT)/realtek/drivers/8189es/rtl8189ES/8189es.ko $(TARGET_OUT)/lib/