08是wine那个,一堆的源码查看工具
正面
背面
华硕品质
桌面
关于
然后就可以烧了。。。。
从上面这个图可以得知,现在系统里基带是DEB,内核是3.4.0,当前刷的4.4.2,代号KOT。
我折腾了这么久的是4.4.2_r2,代号KAT。。。。
先编译,再刷机,这次编译不用老是lunch 1了,要lunch 这个
1,准备工作
源码:源码还是用以前的,虽然已经改的乱七八糟,能跑就好。
/home/senrsl/android/source/WORKING_DIRECTORY
驱动:在驱动页下载驱动。
2,编译
①解压驱动
驱动解压,放到根目录,分别是
然后执行这三个脚本
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ ls | grep extract
- extract-asus-deb.sh
- extract-broadcom-deb.sh
- extract-qcom-deb.sh
一定要小心这句
前面点半天Enter,一到这里就点过。。。。。
- Type "I ACCEPT" if you agree to the terms of the license:
- You didn't accept the license. Extraction aborted.
这样驱动就准备好了。
- 声音,传感器
- Type "I ACCEPT" if you agree to the terms of the license: I ACCEPT
- vendor/
- vendor/asus/
- vendor/asus/deb/
- vendor/asus/deb/BoardConfigVendor.mk
- vendor/asus/deb/device-partial.mk
- vendor/asus/deb/proprietary/
- vendor/asus/deb/proprietary/libacdbdata.so
- vendor/asus/deb/proprietary/apns-conf.xml
- vendor/asus/deb/proprietary/libAKM.so
- vendor/asus/deb/BoardConfigPartial.mk
- vendor/asus/deb/device-vendor.mk
- Files extracted successfully.
- NFC
- Type "I ACCEPT" if you agree to the terms of the license: I ACCEPT
- vendor/
- vendor/asus/
- vendor/asus/deb/
- vendor/asus/deb/BoardConfigVendor.mk
- vendor/asus/deb/device-vendor.mk
- vendor/broadcom/
- vendor/broadcom/deb/
- vendor/broadcom/deb/device-partial.mk
- vendor/broadcom/deb/proprietary/
- vendor/broadcom/deb/proprietary/bcm2079x-b5_pre_firmware.ncd
- vendor/broadcom/deb/proprietary/bcm2079x-b5_firmware.ncd
- vendor/broadcom/deb/BoardConfigPartial.mk
- Files extracted successfully.
- 第三个那一堆,摄像头GPS WIFI蓝牙什么的
- Type "I ACCEPT" if you agree to the terms of the license: I ACCEPT
- vendor/
- vendor/qcom/
- vendor/qcom/deb/
- vendor/qcom/deb/device-partial.mk
- vendor/qcom/deb/proprietary/
- vendor/qcom/deb/proprietary/bridgemgrd
- vendor/qcom/deb/proprietary/diag_mdlog
- vendor/qcom/deb/proprietary/dxhdcp2.b01
- vendor/qcom/deb/proprietary/libmmcamera_faceproc.so
- vendor/qcom/deb/proprietary/libqmi.so
- vendor/qcom/deb/proprietary/ds_fmc_appd
- vendor/qcom/deb/proprietary/usbhub
- vendor/qcom/deb/proprietary/gss.b03
- vendor/qcom/deb/proprietary/dsps.b05
- vendor/qcom/deb/proprietary/dxhdcp2.b03
- vendor/qcom/deb/proprietary/gss.b09
- vendor/qcom/deb/proprietary/libmmqjpeg_codec.so
- vendor/qcom/deb/proprietary/libllvm-a3xx.so
- vendor/qcom/deb/proprietary/flp.msm8960.so
- vendor/qcom/deb/proprietary/gps.conf
- vendor/qcom/deb/proprietary/libidl.so
- vendor/qcom/deb/proprietary/libdrmdecrypt.so
- vendor/qcom/deb/proprietary/libsensor_user_cal.so
- vendor/qcom/deb/proprietary/libmmstillomx.so
- vendor/qcom/deb/proprietary/thermald
- vendor/qcom/deb/proprietary/tzapps.b03
- vendor/qcom/deb/proprietary/libril-qc-qmi-1.so
- vendor/qcom/deb/proprietary/gss.b02
- vendor/qcom/deb/proprietary/gss.b11
- vendor/qcom/deb/proprietary/vidc.b00
- vendor/qcom/deb/proprietary/keymaster.b02
- vendor/qcom/deb/proprietary/libRSDriver_adreno.so
- vendor/qcom/deb/proprietary/vidc.b01
- vendor/qcom/deb/proprietary/libmmcamera2_vpe_module.so
- vendor/qcom/deb/proprietary/libsensor_reg.so
- vendor/qcom/deb/proprietary/libloc_core.so
- vendor/qcom/deb/proprietary/keymaster.b00
- vendor/qcom/deb/proprietary/libdsutils.so
- vendor/qcom/deb/proprietary/libqmi_csvt_srvc.so
- vendor/qcom/deb/proprietary/ATFWD-daemon
- vendor/qcom/deb/proprietary/dxhdcp2.b00
- vendor/qcom/deb/proprietary/tzapps.mdt
- vendor/qcom/deb/proprietary/libI420colorconvert.so
- vendor/qcom/deb/proprietary/gss.b08
- vendor/qcom/deb/proprietary/dsps.b03
- vendor/qcom/deb/proprietary/gss.mdt
- vendor/qcom/deb/proprietary/a300_pm4.fw
- vendor/qcom/deb/proprietary/dsps.b01
- vendor/qcom/deb/proprietary/mm-qcamera-daemon
- vendor/qcom/deb/proprietary/eglsubAndroid.so
- vendor/qcom/deb/proprietary/dxhdcp2.b02
- vendor/qcom/deb/proprietary/libmm-color-convertor.so
- vendor/qcom/deb/proprietary/libGLESv2_adreno.so
- vendor/qcom/deb/proprietary/libmmcamera2_wnr_module.so
- vendor/qcom/deb/proprietary/wcnss.b04
- vendor/qcom/deb/proprietary/efsks
- vendor/qcom/deb/proprietary/libplayback_adreno.so
- vendor/qcom/deb/proprietary/libsc-a3xx.so
- vendor/qcom/deb/proprietary/btnvtool
- vendor/qcom/deb/proprietary/libmmcamera_image_stab.so
- vendor/qcom/deb/proprietary/libacdbloader.so
- vendor/qcom/deb/proprietary/sensors.qcom
- vendor/qcom/deb/proprietary/rmt_storage
- vendor/qcom/deb/proprietary/q6.mdt
- vendor/qcom/deb/proprietary/q6.b00
- vendor/qcom/deb/proprietary/dsps.mdt
- vendor/qcom/deb/proprietary/usbhub_init
- vendor/qcom/deb/proprietary/wcnss.mdt
- vendor/qcom/deb/proprietary/libmmcamera2_isp_modules.so
- vendor/qcom/deb/proprietary/libEGL_adreno.so
- vendor/qcom/deb/proprietary/libimage-jpeg-enc-omx-comp.so
- vendor/qcom/deb/proprietary/libDxHdcp.so
- vendor/qcom/deb/proprietary/wcnss.b05
- vendor/qcom/deb/proprietary/libc2d30.so
- vendor/qcom/deb/proprietary/qmuxd
- vendor/qcom/deb/proprietary/gss.b07
- vendor/qcom/deb/proprietary/q6.b03
- vendor/qcom/deb/proprietary/gss.b06
- vendor/qcom/deb/proprietary/q6.b04
- vendor/qcom/deb/proprietary/libqdi.so
- vendor/qcom/deb/proprietary/q6.b01
- vendor/qcom/deb/proprietary/libqomx_jpegenc.so
- vendor/qcom/deb/proprietary/libmmcamera2_iface_modules.so
- vendor/qcom/deb/proprietary/libimage-omx-common.so
- vendor/qcom/deb/proprietary/libmm-abl.so
- vendor/qcom/deb/proprietary/libmmcamera2_imglib_modules.so
- vendor/qcom/deb/proprietary/libmmcamera2_pproc_modules.so
- vendor/qcom/deb/proprietary/nl_listener
- vendor/qcom/deb/proprietary/libC2D2.so
- vendor/qcom/deb/proprietary/libril-qcril-hook-oem.so
- vendor/qcom/deb/proprietary/radish
- vendor/qcom/deb/proprietary/dxhdcp2.mdt
- vendor/qcom/deb/proprietary/libcsd-client.so
- vendor/qcom/deb/proprietary/port-bridge
- vendor/qcom/deb/proprietary/dsps.b02
- vendor/qcom/deb/proprietary/vidc.b03
- vendor/qcom/deb/proprietary/libqmi_cci.so
- vendor/qcom/deb/proprietary/libchromatix_ov5693_default_video.so
- vendor/qcom/deb/proprietary/libgps.utils.so
- vendor/qcom/deb/proprietary/q6.b06
- vendor/qcom/deb/proprietary/ks
- vendor/qcom/deb/proprietary/libqmiservices.so
- vendor/qcom/deb/proprietary/libloc_eng.so
- vendor/qcom/deb/proprietary/libaudcal.so
- vendor/qcom/deb/proprietary/libCommandSvc.so
- vendor/qcom/deb/proprietary/sensors.msm8960.so
- vendor/qcom/deb/proprietary/libqdp.so
- vendor/qcom/deb/proprietary/libqmi_encdec.so
- vendor/qcom/deb/proprietary/libloc_ds_api.so
- vendor/qcom/deb/proprietary/libchromatix_ov5693_preview.so
- vendor/qcom/deb/proprietary/libdiag.so
- vendor/qcom/deb/proprietary/libmmcamera2_cpp_module.so
- vendor/qcom/deb/proprietary/libmmcamera_imglib.so
- vendor/qcom/deb/proprietary/vidc.b02
- vendor/qcom/deb/proprietary/liboemcrypto.so
- vendor/qcom/deb/proprietary/mm-qomx-ienc-test
- vendor/qcom/deb/proprietary/dsps.b04
- vendor/qcom/deb/proprietary/libsensor1.so
- vendor/qcom/deb/proprietary/libconfigdb.so
- vendor/qcom/deb/proprietary/gss.b00
- vendor/qcom/deb/proprietary/libmmcamera_mi1040.so
- vendor/qcom/deb/proprietary/libizat_core.so
- vendor/qcom/deb/proprietary/libmmcamera2_sensor_modules.so
- vendor/qcom/deb/proprietary/hci_qcomm_init
- vendor/qcom/deb/proprietary/libdrmdiag.so
- vendor/qcom/deb/proprietary/tzapps.b00
- vendor/qcom/deb/proprietary/gps.msm8960.so
- vendor/qcom/deb/proprietary/netmgrd
- vendor/qcom/deb/proprietary/libmmjpeg.so
- vendor/qcom/deb/proprietary/libCB.so
- vendor/qcom/deb/proprietary/wcnss.b01
- vendor/qcom/deb/proprietary/qseecomd
- vendor/qcom/deb/proprietary/diag_klog
- vendor/qcom/deb/proprietary/vidc.mdt
- vendor/qcom/deb/proprietary/libmmcamera2_stats_modules.so
- vendor/qcom/deb/proprietary/gss.b01
- vendor/qcom/deb/proprietary/libmmipl.so
- vendor/qcom/deb/proprietary/libc2d30-a3xx.so
- vendor/qcom/deb/proprietary/libGLESv1_CM_adreno.so
- vendor/qcom/deb/proprietary/mm-qjpeg-enc-test
- vendor/qcom/deb/proprietary/libstagefright_hdcp.so
- vendor/qcom/deb/proprietary/libadreno_utils.so
- vendor/qcom/deb/proprietary/irsc_util
- vendor/qcom/deb/proprietary/gss.b05
- vendor/qcom/deb/proprietary/libdsprofile.so
- vendor/qcom/deb/proprietary/libmmcamera_ov5693.so
- vendor/qcom/deb/proprietary/wcnss.b02
- vendor/qcom/deb/proprietary/Android.mk
- vendor/qcom/deb/proprietary/libdrmfs.so
- vendor/qcom/deb/proprietary/liboemcamera.so
- vendor/qcom/deb/proprietary/gss.b10
- vendor/qcom/deb/proprietary/libaudioalsa.so
- vendor/qcom/deb/proprietary/libqcci_legacy.so
- vendor/qcom/deb/proprietary/libqmi_client_qmux.so
- vendor/qcom/deb/proprietary/keymaster.b01
- vendor/qcom/deb/proprietary/libmmcamera2_c2d_module.so
- vendor/qcom/deb/proprietary/q6.b05
- vendor/qcom/deb/proprietary/libdss.so
- vendor/qcom/deb/proprietary/librs_adreno.so
- vendor/qcom/deb/proprietary/tzapps.b02
- vendor/qcom/deb/proprietary/a300_pfp.fw
- vendor/qcom/deb/proprietary/tzapps.b01
- vendor/qcom/deb/proprietary/libQSEEComAPI.so
- vendor/qcom/deb/proprietary/libdsucsd.so
- vendor/qcom/deb/proprietary/wcnss.b00
- vendor/qcom/deb/proprietary/keymaster.b03
- vendor/qcom/deb/proprietary/libgsl.so
- vendor/qcom/deb/proprietary/keymaster.mdt
- vendor/qcom/deb/proprietary/qcks
- vendor/qcom/deb/proprietary/librs_adreno_sha1.so
- vendor/qcom/deb/proprietary/libxml.so
- vendor/qcom/deb/proprietary/vidc_1080p.fw
- vendor/qcom/deb/proprietary/dsps.b00
- vendor/qcom/deb/proprietary/libqmi_common_so.so
- vendor/qcom/deb/proprietary/libdrmtime.so
- vendor/qcom/deb/proprietary/mm-qcamera-app
- vendor/qcom/deb/proprietary/libnetmgr.so
- vendor/qcom/deb/proprietary/libq3dtools_adreno.so
- vendor/qcom/deb/proprietary/libloc_api_v02.so
- vendor/qcom/deb/proprietary/libdsi_netctrl.so
- vendor/qcom/deb/proprietary/gss.b04
- vendor/qcom/deb/proprietary/libgeofence.so
- vendor/qcom/deb/proprietary/libmmcamera2_stats_algorithm.so
- vendor/qcom/deb/proprietary/vidcfw.elf
- vendor/qcom/deb/proprietary/mpdecision
- vendor/qcom/deb/proprietary/libchromatix_ov5693_common.so
- vendor/qcom/deb/proprietary/libgemini.so
- vendor/qcom/deb/proprietary/libqmi_csi.so
- vendor/qcom/deb/BoardConfigPartial.mk
- vendor/asus/
- vendor/asus/deb/
- vendor/asus/deb/BoardConfigVendor.mk
- vendor/asus/deb/device-vendor.mk
- Files extracted successfully.
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$
②编译源码
编译源码流程跟之前一样,只是选项不一样
编译成功,查看编译结果
- senrsl@senrsl-ubuntu:~$ cd android/source/WORKING_DIRECTORY/
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ source ./build/envsetup.sh
- including device/samsung/manta/vendorsetup.sh
- including device/generic/armv7-a-neon/vendorsetup.sh
- including device/generic/mips/vendorsetup.sh
- including device/generic/x86/vendorsetup.sh
- including device/asus/tilapia/vendorsetup.sh
- including device/asus/grouper/vendorsetup.sh
- including device/asus/flo/vendorsetup.sh
- including device/asus/deb/vendorsetup.sh
- including device/lge/hammerhead/vendorsetup.sh
- including device/lge/mako/vendorsetup.sh
- including sdk/bash_completion/adb.bash
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ 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_manta-userdebug
- 6. mini_armv7a_neon-userdebug
- 7. mini_mips-userdebug
- 8. mini_x86-userdebug
- 9. aosp_tilapia-userdebug
- 10. aosp_grouper-userdebug
- 11. aosp_flo-userdebug
- 12. aosp_deb-userdebug
- 13. aosp_hammerhead-userdebug
- 14. aosp_mako-userdebug
- Which would you like? [aosp_arm-eng] 12
- ============================================
- PLATFORM_VERSION_CODENAME=REL
- PLATFORM_VERSION=4.4.2
- TARGET_PRODUCT=aosp_deb
- TARGET_BUILD_VARIANT=userdebug
- TARGET_BUILD_TYPE=release
- TARGET_BUILD_APPS=
- TARGET_ARCH=arm
- TARGET_ARCH_VARIANT=armv7-a-neon
- TARGET_CPU_VARIANT=krait
- HOST_ARCH=x86
- HOST_OS=linux
- HOST_OS_EXTRA=Linux-3.13.0-37-generic-x86_64-with-Ubuntu-14.04-trusty
- HOST_BUILD_TYPE=release
- BUILD_ID=KVT49L
- OUT_DIR=out
- ============================================
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ make -j16
- 等好久,顺便处理几个错误
- out/target/product/deb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/deb/system
- + make_ext4fs -s -S out/target/product/deb/root/file_contexts -l 880803840 -a system out/target/product/deb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/deb/system
- Creating filesystem with parameters:
- Size: 880803840
- Block size: 4096
- Blocks per group: 32768
- Inodes per group: 7680
- Inode size: 256
- Journal blocks: 3360
- Label:
- Blocks: 215040
- Block groups: 7
- Reserved block group size: 55
- Created filesystem with 1401/53760 inodes and 77285/215040 blocks
- + '[' 0 -ne 0 ']'
- Install system fs image: out/target/product/deb/system.img
- out/target/product/deb/system.img+out/target/product/deb/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=899137536 blocksize=135168 total=304510462 reserve=9191424
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$
确认镜像文件OK。
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ cd out/target/product/
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY/out/target/product$ ll
- 总用量 16
- drwxrwxr-x 4 senrsl senrsl 4096 4月 29 13:27 ./
- drwxrwxr-x 4 senrsl senrsl 4096 3月 20 13:53 ../
- drwxrwxr-x 10 senrsl senrsl 4096 4月 29 15:48 deb/ --这个是这次编译的
- drwxrwxr-x 10 senrsl senrsl 4096 4月 28 20:57 generic/ --这个是之前编译的跑虚拟机的
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY/out/target/product$ cd deb
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY/out/target/product/deb$ ll
- 总用量 461344
- drwxrwxr-x 10 senrsl senrsl 4096 4月 29 15:48 ./
- drwxrwxr-x 4 senrsl senrsl 4096 4月 29 13:27 ../
- -rw-rw-r-- 1 senrsl senrsl 26 4月 29 13:28 android-info.txt
- -rw-r--r-- 1 senrsl senrsl 7190528 4月 29 14:06 boot.img
- drwxrwxr-x 2 senrsl senrsl 4096 4月 29 13:53 cache/
- -rw-r--r-- 1 senrsl senrsl 4776084 4月 29 13:53 cache.img
- -rw-rw-r-- 1 senrsl senrsl 42008 4月 29 15:40 clean_steps.mk
- drwxrwxr-x 2 senrsl senrsl 4096 4月 29 13:53 data/
- drwxrwxr-x 2 senrsl senrsl 4096 4月 29 15:48 fake_packages/
- -rw-rw-r-- 1 senrsl senrsl 64997 4月 29 15:48 installed-files.txt
- -rw-rw-r-- 1 senrsl senrsl 6689936 4月 29 13:34 kernel
- drwxrwxr-x 14 senrsl senrsl 4096 4月 29 15:48 obj/
- -rw-rw-r-- 1 senrsl senrsl 725 4月 29 15:40 previous_build_config.mk
- -rw-rw-r-- 1 senrsl senrsl 496371 4月 29 14:05 ramdisk.img
- -rw-rw-r-- 1 senrsl senrsl 1056400 4月 29 14:06 ramdisk-recovery.img
- drwxrwxr-x 3 senrsl senrsl 4096 4月 29 14:06 recovery/
- -rw-r--r-- 1 senrsl senrsl 7749632 4月 29 14:06 recovery.img
- drwxrwxr-x 9 senrsl senrsl 4096 4月 29 14:04 root/
- drwxrwxr-x 4 senrsl senrsl 4096 4月 29 13:55 symbols/
- drwxrwxr-x 14 senrsl senrsl 4096 4月 29 14:06 system/
- -rw-r--r-- 1 senrsl senrsl 304103148 4月 29 15:48 system.img
- -rw-r--r-- 1 senrsl senrsl 140175980 4月 29 13:53 userdata.img
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY/out/target/product/deb$
3,烧写
①进刷机模式
设备就进入了fastboot页面
- senrsl@senrsl-ubuntu:~$ adb devices
- List of devices attached
- 09e16671 device
- senrsl@senrsl-ubuntu:~$ adb reboot bootloader
- senrsl@senrsl-ubuntu:~$
进入fastboot模式的话关机时候按电源和音量下也行。
这里是fastboot mode:
②设备解锁
fastboot mode底部显示LOCK STATE - locked,说明bootloader已经被锁定,输入命令
输入命令后界面会弹出选择框
- senrsl@senrsl-ubuntu:~$ fastboot oem unlock
- ...
- (bootloader) Unlocking bootloader...
- (bootloader) erasing userdata...
- (bootloader) erasing userdata done
- (bootloader) erasing cache...
- (bootloader) erasing cache done
- (bootloader) Unlocking bootloader done!
- OKAY [ 53.912s]
- finished. total time: 53.932s
解锁成功后,最下面变成LOCK STATE -unlocked,表示解锁成功。
③执行刷机
刷机完成,自动重启,搞定!
- senrsl@senrsl-ubuntu:~$ export ANDROID_PRODUCT_OUT=/home/senrsl/android/source/WORKING_DIRECTORY/out/target/product/deb
- senrsl@senrsl-ubuntu:~$ fastboot -w flashall
- Creating filesystem with parameters:
- Size: 28856791040
- Block size: 4096
- Blocks per group: 32768
- Inodes per group: 8192
- Inode size: 256
- Journal blocks: 32768
- Label:
- Blocks: 7045115
- Block groups: 215
- Reserved block group size: 1024
- Created filesystem with 11/1761280 inodes and 154578/7045115 blocks
- Creating filesystem with parameters:
- Size: 587202560
- Block size: 4096
- Blocks per group: 32768
- Inodes per group: 7168
- Inode size: 256
- Journal blocks: 2240
- Label:
- Blocks: 143360
- Block groups: 5
- Reserved block group size: 39
- Created filesystem with 11/35840 inodes and 4616/143360 blocks
- --------------------------------------------
- Bootloader Version...: FLO-04.02
- Baseband Version.....: DEB-G00_2.37.0_1024
- Serial Number........: 09e16671
- --------------------------------------------
- checking product...
- OKAY [ 0.003s]
- sending 'boot' (7022 KB)...
- OKAY [ 0.227s]
- writing 'boot'...
- OKAY [ 0.270s]
- sending 'recovery' (7568 KB)...
- OKAY [ 0.244s]
- writing 'recovery'...
- OKAY [ 0.291s]
- erasing 'system'...
- OKAY [ 1.296s]
- sending 'system' (296975 KB)...
- OKAY [ 9.306s]
- writing 'system'...
- OKAY [ 13.760s]
- erasing 'userdata'...
- OKAY [ 22.974s]
- sending 'userdata' (139085 KB)...
- OKAY [ 4.362s]
- writing 'userdata'...
- OKAY [ 6.871s]
- erasing 'cache'...
- OKAY [ 0.347s]
- sending 'cache' (10984 KB)...
- OKAY [ 0.351s]
- writing 'cache'...
- OKAY [ 0.504s]
- rebooting...
- finished. total time: 61.026s
- senrsl@senrsl-ubuntu:~$
4,报错
一,make -j16报错
①Copy xml: out/target/product/deb/system/etc/mixer_paths.xml /bin/bash: xmllint: 未找到命令
解决:安上sudo apt-get install libxml2-utils
②external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
错误代码
- out/target/product/deb/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
- external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
- cc1plus: all warnings being treated as errors
- make: *** [out/target/product/deb/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] 错误 1
- make: *** 正在等待未完成的任务....
- make: *** wait: 没有子进程。 停止。
解决:修改文件
第504行,之前是这样
- senrsl@senrsl-ubuntu:~/android/source/WORKING_DIRECTORY$ gedit external/chromium_org/base/android/jni_generator/jni_generator.py
修改成这样
- p = subprocess.Popen(args=['javap', class_name],
事实证明javap的路径不能那么写,写成上面那样会报这个错误
- p = subprocess.Popen(args=['~/java/jdk1.6.0_45/bin/javap', class_name],
写成这样就好了
- OSError File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
- : [Errno 2] No such file or directory
- errread, errwrite)
- File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
- raise child_exception
- OSError: [Errno 2] No such file or directory
- make: *** [out/target/product/deb/obj/GYP/shared_intermediates/android_webview/jni/CancellationSignal_jni.h] 错误 1
- make: *** 正在等待未完成的任务....
- make: *** [out/target/product/deb/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] 错误 1
- make: *** [out/target/product/deb/obj/GYP/shared_intermediates/android_webview/jni/InputStream_jni.h] 错误 1
二,烧写报错
- p = subprocess.Popen(args=['/home/senrsl/java/jdk1.6.0_45/bin/javap', class_name],
①设备找不到
进了fastboot之后,就找不到设备了,提示没权限,这个问题跟手机adb devices是一样的。
senrslMobile.rules内容
- senrsl@senrsl-ubuntu:~$ fastboot devices
- no permissions fastboot
- senrsl@senrsl-ubuntu:~$ sudo fastboot devices
- [sudo] password for senrsl:
- sudo:fastboot: command not found
- senrsl@senrsl-ubuntu:~$ lsusb
- Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
- Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 001 Device 004: ID 1e4e:0110 Cubeternet
- Bus 001 Device 013: ID 18d1:4ee0 Google Inc.
- Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- senrsl@senrsl-ubuntu:~$ sudo gedit /etc/udev/rules.d/senrslMobile.rules
- senrsl@senrsl-ubuntu:~$ sudo chmod a+rx /etc/udev/rules.d/senrslMobile.rules
- senrsl@senrsl-ubuntu:~$ sudo service udev restart
- udev stop/waiting
- udev start/running, process 6939
- 把USB拔下来,再插上
- senrsl@senrsl-ubuntu:~$ fastboot devices
- 09e16671 fastboot
- senrsl@senrsl-ubuntu:~$
②找不到要烧写的路径
- #XiaoMi 1S
- SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9025",MODE="0666"
- #Taidian P75HD
- SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="0002",MODE="0666"
- #Nexus7
- SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4ee0",MODE="0666"
错误:
解决
- senrsl@senrsl-ubuntu:~$ fastboot flashall -w
- error: neither -p product specified nor ANDROID_PRODUCT_OUT set
或者
- senrsl@senrsl-ubuntu:~$ fastboot flashall -w -p /home/senrsl/android/source/WORKING_DIRECTORY/out/target/product/deb
③找不到android-info.txt
- senrsl@senrsl-ubuntu:~$ export ANDROID_PRODUCT_OUT=/home/senrsl/android/source/WORKING_DIRECTORY/out/target/product/deb
错误
senrsl@senrsl-ubuntu:~$ fastboot flashall -w -p /home/senrsl/android/source/WORKING_DIRECTORY/out/target/product/deb
error: could not load android-info.txt: No such file or directory
解决
用 上面第二个export 环境变量的方法就好了。
5,后续
启动后连接不上设备了,报问号没权限
无聊的问题,跟上面一样的步骤,更改配置文件
- senrsl@senrsl-ubuntu:~$ adb devices
- List of devices attached
- ???????????? no permissions
senrslMobile.rules
#XiaoMi 1S
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9025",MODE="0666"
#Taidian P75HD
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="0002",MODE="0666"
#Nexus7 fastboot
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4ee0",MODE="0666"
#Nexus7 adb
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="d002",MODE="0666"
就好了。。。。
源码编译出来的真干净。。。。。
然后
搞定!
2015年04月29日16:50:55
--
senRsl
2015年04月29日16:36:27
2015年04月29日16:36:27
没有评论 :
发表评论