01 2013 档案
摘要:感谢:Github无私贡献与分享的大量代码; 修改文件:bootable/recovery/extendedcommands.c 修改后的文件对比:diff bootable/recovery/extendedcommands.c.origin bootable/recovery/extendedcommands.c21a22> #include <pthread.h>1537a1539,1633> > //add by linksuce start, cwm off mode charging> //Origin:github.com/cedesmith/
阅读全文
摘要:#!/bin/bash#~/bin/apkuninstaller# if you have more than one devices, # use adbs="adb -s $devce_numberno" to specify itadbs=adb#1. get the app list form devicei=0;for list in `$adbs shell ls -1 /data/data/`do apklist[$i]=$list; ((i++));done#2. echo the app list to user selectfor (( i = 0; i
阅读全文
摘要:#!/bin/bash# for Ubuntu12.10 64bit## 1.change mount, /etc/fstabcat << EOF > $HOME/fstab_padding.txt# EXT4#Entry "Source" for /dev/sda6 :UUID="0988bb9d-02ad-4290-9f60-7954605a8115" /media/scue/Source ext4 defaults 0 0 # NTFS#Entry "Study" for /dev/sda5 :UUID=&qu
阅读全文
摘要:1. gvim framework-res/res/values/public.xml <public type="string" name="chn_ten" id="0x01040519"/> <public type="string" name="chn_double" id="0x0104051a"/> <public type="string" name="chn_year" id="0
阅读全文
摘要:方法:打开USB调试,把手机连接电脑,输入以下命令scue@Link:bootimg$ for n in $(adb shell busybox | sed -n "$[$(adb shell busybox | sed -n '/Currently\ defined\ functions/=')+...
阅读全文
摘要:# 0.环境配置(64位,貌似在32bit不能编译)sudo apt-get install git-core gnupg flex bison python rar original-awk gawk p7zip-full gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtoolsudo apt-get install libc6-dev x11proto-core-dev libx1
阅读全文
摘要:一、向res文件中加入相关布局及变量思路,先将有来电归属功能的Phone.apk与原生的Phone.apk都反编译,再用Beyond软件进行比对,查找与phoneLocview等关键词有关的项目进行相应的添加操作1、反编译原生Phone.apk,进入res目录,将其他语言删除(方便编译,如果真的需要以后可以再加入进来)2、向values\public.xml中添加相关代码(1)根据id项的最大id值是7f0600a8,于是添加 <!--Edit By WQY88 Start--> <public type="id" name="phoneLocv
阅读全文
摘要:shell@android:/ # busybox fdisk -l /dev/block/mmcblk0 Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes1 heads, 16 sectors/track, 477184 cylindersUnits = cylinders of 16 * 512 = 8192 bytes Device Boot Start End Blocks Id System/dev/block/mmcblk...
阅读全文
摘要:scue@Link:JellyBean$ out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ -system out/target/product/generic/system.img -ramdisk out/target/product/generic/ramdisk.img -data out/target/product/generic/userdata.img -kernel prebuilts/qemu-kernel/arm/kernel-qemu -sdcard sdcard.img -skind
阅读全文
摘要:diff -rupN ./a/frameworks/base/packages/SystemUI/res/layout/navigation_bar.xml ./b/frameworks/base/packages/SystemUI/res/layout/navigation_bar.xml--- ./a/frameworks/base/packages/SystemUI/res/layout/navigation_bar.xml 2012-11-15 06:56:46.284574000 +0900+++ ./b/frameworks/base/packages/SystemUI/re...
阅读全文
摘要:#!/bin/bash# Version: 0.3# Author: linkscue# E-mail: linkscue@gmail.com# function: get key words start line number,$1=key_wordget_start_line(){ # shell function can't return >255 value, so echo replace return echo $(grep -n "$1" $style_file | awk -F':' '{print $1}')}
阅读全文
摘要:scue@Link:tmp$ sed -n '/<style\ name=\"Theme\.Holo\./p' styles.xml <style name="Theme.Holo.NoActionBar" parent="@style/Theme.Holo"> <style name="Theme.Holo.NoActionBar.Fullscreen" parent="@style/Theme.Holo.NoActionBar"> <style na
阅读全文