Skip to content

Instantly share code, notes, and snippets.

View sakuramilk's full-sized avatar

sakuramilk sakuramilk

View GitHub Profile
make_boot_image()
{
./release-tools/mkbootfs $RAMDISK_TMP_DIR > $BIN_DIR/ramdisk-$IMAGE_NAME.cpio
lzma < $BIN_DIR/ramdisk-$IMAGE_NAME.cpio > $BIN_DIR/ramdisk-$IMAGE_NAME.img
./release-tools/mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 zcache" --base $KERNEL_BASEADDRESS --pagesize 2048 --ramdisk_offset $KERNEL_RAMDISK_OFFSET --kernel $BIN_DIR/kernel --ramdisk $BIN_DIR/ramdisk-$IMAGE_NAME.img --output $BIN_DIR/$IMAGE_NAME.img
echo " $BIN_DIR/$IMAGE_NAME.img"
rm $BIN_DIR/ramdisk-$IMAGE_NAME.img
rm $BIN_DIR/ramdisk-$IMAGE_NAME.cpio
rm $BIN_DIR/kernel
}
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibExceptio
n: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --t
arget-sdk-version, 17, -F, C:\Users\SAKURA~1\AppData\Local\Temp\APKTOOL7286447550208631408
.tmp, -x, -S, C:\Users\sakuramilk\Downloads\make_JP_CompleteROM_SC05D_sinu\make_JP_Complet
eROM_SC05D\work2\framework-res\res, -M, C:\Users\sakuramilk\Downloads\make_JP_CompleteROM_
SC05D_sinu\make_JP_CompleteROM_SC05D\work2\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
------------ overlay/frameworks/base/core/res/res/values/config.xml ------------
index fb4c6c0..d728bd7 100644
@@ -139,7 +139,7 @@
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<string-array translatable="false" name="config_tether_bluetooth_regexs">
- <item>"bnep\\d"</item>
+ <item>"bt-pan"</item>
</string-array>
@sakuramilk
sakuramilk / gist:5277253
Created March 30, 2013 16:07
extract_file.sh diff
@@ -25,8 +25,8 @@ COMMONPROPS=../smdk4412-common/proprietary-files.txt
mkdir -p ../../../vendor/$VENDOR/$COMMON/proprietary
-adb root
-adb wait-for-device
+#adb root
+#adb wait-for-device
echo "Pulling common files..."
$ adb logcat -b radio
E/RILD ( 247): **RIL Daemon Started**
E/RILD ( 247): **RILd param count=1**
E/RILD ( 247): RIL_Init argc = 5 client = 0
D/RILC ( 247): qmi_ril(0/247): [rild] qcril_log_init: qcril_log_init() 1
D/RILC ( 247): qmi_ril(0/247): [rild] qcril_log_init: qcril_log_init() 2
D/RILC ( 247): qmi_ril(0/247): [rild] qcril_log_init: adb_log_on = 1
I/RILC ( 247): qmi_ril(0/247): [rild] RIL_Init: RIL client opt: 100 not handled intreseted only -c option
I/RILC ( 247): qmi_ril(0/247): [rild] RIL_Init: RIL client opt: 0, running RIL_Init()
I/RILC ( 247): qmi_ril(0/247): [rild] RIL_Init: RIL client : 0, running RIL_Init()
#if 1
// Really dirty hack to give a Froyo-compatible constructor
extern "C" AudioTrack *_ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_ii(
AudioTrack *This,
int streamType,
uint32_t sampleRate,
int format,
int channels,
int frameCount,
uint32_t flags,
@sakuramilk
sakuramilk / gist:4053588
Created November 11, 2012 03:51
SC05D-FDISK
Disk /dev/block/mmcblk0: 15.7 GB, 15758000128 bytes
1 heads, 16 sectors/track, 1923584 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 12801 102400 92 Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 * 12801 12863 500 4d Unknown
Partition 2 does not end on cylinder boundary
@sakuramilk
sakuramilk / 0001-updater-added-ignore-kernel-flash-in-extract_file
Created August 27, 2012 02:28
0001-updater-added-ignore-kernel-flash-in-extract_file
From 75230bd9805fa1111b333208a4a20ae9e2683642 Mon Sep 17 00:00:00 2001
From: sakuramilk <[email protected]>
Date: Mon, 27 Aug 2012 11:01:25 +0900
Subject: [PATCH] updater: added ignore kernel flash in extract_file
---
updater/install.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/updater/install.c b/updater/install.c
@sakuramilk
sakuramilk / cm.mk
Created July 25, 2012 14:08
d2dcmのcm.mk
$(call inherit-product, device/samsung/d2dcm/full_d2dcm.mk)
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/gsm.mk)
# Enhanced NFC
$(call inherit-product, vendor/cm/config/nfc_enhanced.mk)
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
@sakuramilk
sakuramilk / SC06D_AOSPでのワンセグ動作まとめ.txt
Created July 24, 2012 14:02
SC06D AOSPでのワンセグ動作まとめ
# ワンセグ動作に必要なproprietaryファイル
bin/nexprocess
bin/broadcastProcessObserver
bin/SDtvService
bin/OneSegTsDemux
bin/OneSegDsmcc
bin/BMLEngineServer
lib/libBroadcastProcObs.so
lib/libOneSegfactorytest_jni.so
lib/libPGL.so