11 2012 档案
摘要:#!/bin/bashif [[ $# != 3 ]]; then echo 'usage:prewget $FILE $LINK $TIME ' echo 'e.g. prewget google google.com 02:11' exit 1fi# variablefilename=$1downlink="\"$2\""downtime=$3tmpfile="$HOME/Public/prewget_$filename"# write the code to a scriptcat <<
阅读全文
摘要: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...
阅读全文
摘要:http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.4_r2.1/android/content/Context.java#Context
阅读全文
摘要:虚拟按键位置SystemUI/res/drawable-xhdpi/ic_sysbar_airplane_on.pngSystemUI/res/drawable-xhdpi/ic_sysbar_back.pngSystemUI/res/drawable-xhdpi/ic_sysbar_back_ime_default.pngSystemUI/res/drawable-xhdpi/ic_sysbar_back_ime_pressed.pngSystemUI/res/drawable-xhdpi/ic_sysbar_back_land.pngSystemUI/res/drawable-xhdpi/
阅读全文
摘要:make_ext4fs -l $SIZE -a $MOUNT_POINT $OUTPUT_FILE $SRC
阅读全文
摘要:最近ROOT权限容易出Bug,一升级就倒霉,参照了乐phone之家论坛的root脚本,写下Linux的Root备忘;sudo ./adb shell mv /data/local/tmp /data/local/tmp.baksudo ./adb shell ln -s /data /data/local/tmpsudo ./adb rebootecho Rebooting (1/3) - Continue once device finishes rebootingsudo ./adb shell rm /data/local.prop > nulsudo ./adb shell &q
阅读全文
摘要:虚拟机我喜欢开全屏来操作里边的内容,这样子看起来比较爽快一点。但全屏之后,就不能手动来挂载USB设备了,这一点有点不太好……好比,最近喜欢上了使用Lenovo K860手机,现在我要通过Linux下的命令来挂载它……0. 基础条件: -- 虚拟机名称是WinXP31. 查看手机设置的UUID相关信息scue@Link:~$ vboxmanage list usbhostUUID: 3bd984a4-3cf3-4a58-94fa-171cb0a1c3beVendorId: 0x17ef (17EF)ProductId: 0x753...
阅读全文
摘要:现象:79: error: Found tag </item> where </plurals> is expected79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute? To fix plurals.xml errorEdit framework-res.apk/res/values/plurals.xmlframework-res.apk/res/valu
阅读全文
摘要:由于之前手机是双卡的,不好研究,现在弄到一台中兴V880,今天早上来编译内核一下~-1. Blade Kernel 2.6.35.7 Download pageGithub :https://github.com/TomGiordano/kernel_zte_blade官方网站:http://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=10017220. 前边的步骤略过一下先,不过也写有在U8825D内核编译过程实录当中有记录,最主要的是export变量的配置上1. 查找官方内核中的配置文件scue@Link:~/Source/
阅读全文
摘要:由于课设的需要,以前的教程都比较久远了,今晚弄了一个,顺手写下教程……1. 安装过程scue@Link:~$ wget http://www.tcpdump.org/release/libpcap-1.3.0.tar.gzscue@Link:~$ tar zxvf libpcap-1.3.0.tar.gzscue@Link:~$ cd libpcap-1.3.0/scue@Link:~/libpcap-1.3.0$ ./configure scue@Link:~/libpcap-1.3.0$ sudo make install2. 现在已经安装好了,但运行需要调用它的程序时候还是不能调用到它的
阅读全文
摘要:echo 0,1,2,7,14,15 > /sys/module/lowmemorykiller/parameters/adj;echo 1536,2048,6144,6656,7680,9607 > /sys/module/lowmemorykiller/parameters/minfree;Save above script code in /system/etc/init.d/00LowmemoryConfig,to make your huawei u8825d(G330d) run faster and satbler!
阅读全文
摘要:1. 下载内核源代码,放到任意地方(建议放在Ext4格式的盘符上)https://github.com/derekhe/huawei-g330d-u8825d-kernel2. 下载后解压,打开里边HOW-TO-BUILD,查看如何进行编译第一步:去Google查看相关编译过程,对于我们比较直接有用的就是把prebuilt通过git弄回来,其他不需要了,如果已经同步过ICS源代码,可直接略过这一步第二步:git回来的prebuilt,export相关编译需要的工具到系统vim ~/.bashrc# 在最后一行加入,prebuilt的位置根据git回来位置而定export PATH=/home/
阅读全文
摘要:创建并编辑个文件:sudo vim /etc/udev/rules.d/51-android.rules,输入以下内容SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666" OWNER="scue"SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666" OWNER="scue"SUBSYSTEM=="usb",
阅读全文
摘要:反编译framework-res.apk,修改两个文件即可:一. 修改framework-res/res/values/color.xml 在最后边倒数第二行加入一行代码<color name="background">#c0000000</color>二. 修改framework-res/res/values/styles.xml 1. 修改<style name="Theme"> </style> 的内容 <item name="colorBackground">@col
阅读全文
摘要:sudo apt-get install ppa-purgesudo ppa-purge ppa:repository-name/subdirectory
阅读全文