/opt/qemu_stm32/arm-softmmu/qemu-system-arm -M stm32-p103 -kernel .bin -serial pty
-serial file:/opt/se.out
-serial tcp::3333,server,nowait
/opt/qemu_stm32/arm-softmmu/qemu-system-arm -M stm32-p103 -gdb tcp::3333 -S -kernel .bin
http://blog.csdn.net/robertsong2004/article/details/43449793 Ctrl+Alt+2
http://blog.csdn.net/u010889616/article/details/48815321 gdb 调试core
qemu-system-arm -M stm32-p205 -s -S -kernel your_firmware.elf
arm-neno-eabi-gdb
(gdb) target remote :1234
Remote debugging using :1234
0x08000a00 in Reset_Handler ()
(gdb)
设置kvm
sudo apt-get -y install openjdk-7-jdk
update-java-alternatives -s java-1.7.0-openjdk-amd64
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
source build/
lunch
aosp-x86
make -j4
emulator
adb 环境变量设置 source build/ lunch 5
mm mksdcard
mksdcard 1024M /home/sdcard.img
emulator -sdcard /home/sdcard.img
Genymotion 安卓模拟器
didi不支持x86 无奈编译arm
ARM的可以正常跑滴滴但是就是有点慢。。。
http://blog.csdn.net/q1302182594/article/details/52134494 qemu android skin
service list
wm overscan 20,20,20,20
wm overscan reset
mm smali
adb remount
mm Settings
make snod
emulator
android-6.0.0_r1\frameworks\base\services\core\java\com\android\server
android-6.0.0_r1\device\generic\goldfish\gps
location
编译了x86 跟arm 两个平台的emu可以在lunch中切换 x86快的多 但是不兼容不支持x86的带so应用
df -hl 100G的空间只剩下24G了。。
lunch sdk-eng
make sdk
apt-get install mingw
make -j8 win_sdk
/system/framework/
odex --> smali --> dex--> jar
///mm -j8 baksmali
java -jar baksmali-2.2.0.jar a 16 x content.odex -d d:\wmwareSpace64\share\framework\x86\ -o content.dex 需要指定boot.art的路径 回头研究下这个boot.art
编译结果在out文件夹下
http://blog.csdn.net/jiang605533373/article/details/53404751
java -jar oat2dex.jar pm.odex odex -- > dex 这步dex2jar版本似乎跟不上 失败
在framework/base/core/android/app/Activity.java 中 findviewById 加入log成功
有odex干扰太不方便
mgrep WITH_DEXPREOPT
需要mm -B 重新编译
bootimage 是zImage 跟 ramdisk.img的合体
core.jar是Dalvik虚拟机运行所需要的java库
dumpsys activity -h
/
///
30.189521422
120.22245371
/framework/base/location/java/android/location/Location.java
mm framework
make snod
public double getLatitude() {
mLatitude= 30.189521422;
return mLatitude;
}
public double getLongitude() {
mLongitude = 120.22245371;
return mLongitude;
}
///
sqlite
/base/core/java/android/database/sqlite/SQLiteDatabase.java
openDatabase(String path, CursorFactory factory, int flags,
DatabaseErrorHandler errorHandler)
Log.e("charlie","path: " + path);
//
HttpURLConnection
/libcore/luni/src/main/java/java/net/HttpURLConnection.java
/libcore/luni/src/main/java/java/net/
URLConnection.java