編輯:關於Android編程
$mkdir android-4.3.1_r1 $cd android-4.3.1_r1 $repo init -u https://android.googlesource.com/platform/manifest -b android-4.3.1_r1 $repo sync第二步:編譯android-4.3.1_r1的源碼
dennis@dubuntu1404:~/devenv/android-4.3.1_r1$ . build/envsetup.sh including device/asus/deb/vendorsetup.sh including device/asus/flo/vendorsetup.sh including device/asus/tilapia/vendorsetup.sh including device/generic/armv7-a-neon/vendorsetup.sh including device/generic/mips/vendorsetup.sh including device/generic/x86/vendorsetup.sh including device/lge/mako/vendorsetup.sh including device/samsung/maguro/vendorsetup.sh including device/samsung/manta/vendorsetup.sh including device/samsung_slsi/arndale/vendorsetup.sh including device/samsung/toroplus/vendorsetup.sh including device/samsung/toro/vendorsetup.sh including device/ti/panda/vendorsetup.sh including sdk/bash_completion/adb.bash dennis@dubuntu1404:~/devenv/android-4.3.1_r1$ lunch You're building on Linux Lunch menu... pick a combo: 1. aosp_arm-eng 2. aosp_x86-eng 3. aosp_mips-eng 4. vbox_x86-eng 5. aosp_deb-userdebug 6. aosp_flo-userdebug 7. full_tilapia-userdebug 8. mini_armv7a_neon-userdebug 9. mini_mips-userdebug 10. mini_x86-userdebug 11. full_mako-userdebug 12. full_maguro-userdebug 13. full_manta-userdebug 14. full_arndale-userdebug 15. full_toroplus-userdebug 16. full_toro-userdebug 17. full_panda-userdebug Which would you like? [aosp_arm-eng] 12 ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=4.3.1 TARGET_PRODUCT=full_maguro TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a-neon TARGET_CPU_VARIANT=cortex-a9 HOST_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty HOST_BUILD_TYPE=release BUILD_ID=JLS36I OUT_DIR=out ============================================ dennis@dubuntu1404:~/devenv/android-4.3.1_r1$ make -j4注:如果這一步直接刷機,會出現提示flash成功,但是重啟之後出現google的logo之後就黑屏,無法啟動。原因就是因為驅動沒有加進來,必須完成第三步之後再開始刷機。
$. build/envsetup.sh $lunch 12 $make -j4第四步 將編譯好的img刷到i9250手機上 (1) 修改~/.bashrc中的環境變量ANDROID_PRODUCT_OUT為:
export ANDROID_PRODUCT_OUT=/home/dennis/devenv/android-4.3.1_r1/out/target/product/maguro(2) 重新進入命令行,然後開始刷機
$ adb reboot bootloader $ fastboot flashall -w刷好之後,系統會自動重啟,如果沒什麼其他問題,你可以看到你的勞動成果了!
一、前言好久沒有更新過博客了,趁今天有空分享一個導航欄的自定義控件。有關此控件的demo相信在網上已經爛大街了,一搜一大把。我現在只著重分享一些我認為比較難理解的知識點。
本文實例講述了Android開發實現的電話竊聽和攔截應用。分享給大家供大家參考,具體如下:今天學習了進程間Service的通信-->AIDL,基於前幾天學習的廣播機
1.介紹先看一下效果圖用過電腦版印象筆記演示功能的應該知道這個效果,現在想在手機上實現一下,當然這個是最終的目標,這篇只是介紹實現過程中的一步 —&mdash
一、繪制三角形在上一篇文章中,我們已經新建了虛擬方向鍵的自定義控件DirectionKeys類,下面我們繼續。本項目中的虛擬方向鍵的背景是4個三角形組成的矩形,其實是4個