编译gaia

  

./rkst/mkimage.sh rk3066-eng -j8 gaia

 

分别是编译文件路径 编译的输出类型 处理器分配数 待编译模块

 

//flash gaia
1. adb remount
2. adb push out/target/product/rk3066/system/b2g/webapps/setting.gaiamobile.org/ /system/b2g/webapps/setting.gaiamobile.org/

//flash gecko img

adb reboot bootloader

fastboot devices 检查设备是否正确
fastboot flash boot boot.img
fastboot flash system system.img
fastboot reboot 重启设备

 

//change repo
sudo update-alternatives --config repo

 

//evnsetup
. build//envsetup.sh
choosecombo

//remote debug
echo 'user_pref("devtools.debugger.forbid-certified-apps", false);' >> prefs.js

 

sudo ./lampp restart
sudo ./lampp stopapache && sudo ./lampp startapache

 

//kill 包含某字符的所有进程
ps awxf | grep firefox|grep -v grep|cut -c 1-6|xargs kil
ps -ef | grep firefox|grep -v grep| awk '{printf("kill -9 %s\n",$2)}'|sh


//添加本地程序到快速启动要栏
/usr/share/applications/*.desktop
有了这个文件可以点击打开再lock到栏上就可以啦!

 

--查看IP地址,并用awk工具提取
ifconfig eth0 | awk '/inet / {split($2,x,":");print x[2]}'

 


//重新修改本次提交的本地库
git commit --amend

posted @ 2015-08-05 11:04  南湖公明  阅读(263)  评论(0编辑  收藏  举报