Skip to content

Instantly share code, notes, and snippets.

import os
foundpath = 0
def recursive_list( pathname ):
global foundpath
dirs = os.listdir( pathname )
if '.git' in dirs:
return
if not dirs:
import os
import xml.dom.minidom
emptyproject = []
gitproject = []
def recursive_list( pathname ):
global emptyproject
global gitproject
dirs = os.listdir( pathname )
import subprocess
import os
import xml.dom.minidom
sourcepath = "/home/charles-chang/imx53qsbandroid4.3/src/"
root = xml.dom.minidom.parse(os.path.join(sourcepath,'.repo/manifest.xml'))
projlist = []
for node in root.childNodes[0].childNodes:
if node.nodeName == 'project':
pname = node.getAttribute('name')
import subprocess
import os
import xml.dom.minidom
import sys
if len(sys.argv) < 2:
print 'Please specify the source path'
sys.exit()
sourcepath = sys.argv[1]
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := eng
LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/$(KERNEL_DIR)/include
LOCAL_SRC_FILES := tools/i2cbusses.c tools/util.c
LOCAL_MODULE := i2c-tools
include $(BUILD_STATIC_LIBRARY)
diff --git a/include/configs/mx53_loco_android.h b/include/configs/mx53_loco_android.h
index 3613af2..e88f7be 100644
--- a/include/configs/mx53_loco_android.h
+++ b/include/configs/mx53_loco_android.h
@@ -80,7 +80,7 @@
#define CONFIG_USB_DEVICE
#define CONFIG_FASTBOOT 1
#define CONFIG_IMX_UDC 1
-#define CONFIG_FASTBOOT_STORAGE_EMMC
+#define CONFIG_FASTBOOT_STORAGE_EMMC_SATA
diff --git a/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java b/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
index 9853d67..de5a1ac 100644
--- a/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
+++ b/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
@@ -30,9 +30,13 @@ import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Toast;
+import android.media.MediaScannerConnection;
+import android.net.Uri;
@checko
checko / nightly.sh
Created December 25, 2013 03:10
nightly test build
#!/bin/bash
cd /home/charles-chang
. .profile
# if exist, last build failed. do nothing.
cd nightly
if [ "$?" = "0" ]; then
exit 1
fi
#include <fcntl.h>
#include <sys/ioctl.h>
#include <hwdep.h>
#include <error.h>
#include <stdio.h>
#include "rt56xx_ioctl.h"
int main()
{