摘要:
上一篇文章把 ICS 中的 AACExtractor 合并到了Gingerbread,这次尝试合并到 Froyo。AACExtractor 有一些依赖类(如 ABuffer) 在 Froyo 中没有定义,因此需要修改一些代码,修改后的代码见gist: 1391130需要修改的源文件如下:frameworks/base/include/media/stagefright/MediaDefs.h----------------------------------------------------extern const char *MEDIA_MIMETYPE_AUDIO_AAC_ADTS;fr 阅读全文
随笔档案-2011年11月
Android enable/disable Component
2011-11-04 22:51 by shaobin0604, 2008 阅读, 收藏,
摘要:
1.enable/disable 自己应用里的某个组件,可以使用/* Set the enabled setting for a package component (activity, receiver, service, provider). */abstract void setComponentEnabledSetting(ComponentName componentName, int newState, int flag... 阅读全文
fastboot 刷新 system.img 出现 data too large 错误
2011-11-01 19:57 by shaobin0604, 3297 阅读, 收藏,
摘要:
问题fastboot 刷新 system.img 的时候出现如下错误sending 'system' (131529 KB)... FAILED (remote: data too large) finished. total time: 0.000s 分析fastboot 定义了的IMG文件的最大size: 120MB$ find bootable/ -name '*.h' | xargs grep 'CFG_MAX_DOWNLOAD_BUF_LEN' bootable/bootloader/legacy/include/boot/config 阅读全文
关于Linux动态库的加载路径
2011-11-01 19:46 by shaobin0604, 3936 阅读, 收藏,
摘要:
问题按如下步骤在Ubuntu上编译安装Google Protocol Buffers$ ./configure $ make $ make check $ sudo make install 运行$ protoc --version 出现找不到动态库的错误protoc: error while loading shared libraries: libprotobuf.so.7: cannot open shared object file: No such file or directory 原因protobuf的默认安装位置是 /usr/local,/usr/local/lib 不在Ubu 阅读全文
浙公网安备 33010602011771号