
Android
文章平均质量分 79
星辉斑斓
---------
展开
-
未整理 转载 android文件系统
Android with BusyBoxhttp://tw.myblog.yahoo.com/stevegigijoe/article?mid=212分類:未分類資料夾2010/04/16 11:48 Android 的shell真是鳥到不行.功能超陽春.現在教各位安裝busybox到Android的環境中來解決這個問題1.Download BusyBox -> 這個不用偶教吧 :)2. cd busybox-1.15.1 make menuconfig转载 2010-08-22 21:55:00 · 1069 阅读 · 0 评论 -
android shell 不支持tab ctrl C的问题
tab这个换成busybox就行了关于ctrl+C无法结束程序的问题,原因在这里,不过这里的方法不能用在android上在最近的一段时间中,发现在busybox下调试时,shell终端用ctrl+c不能终止掉正在运行的进程。参考了网上的一些网友的blog的解决方法以及自己的理解,这边把解决方法告诉大家。Ctrl+C终止进程的流程是这样的:Ctrl + C首先通过 /de原创 2012-02-11 22:01:30 · 1580 阅读 · 0 评论 -
Shell Root HTC desire s
系统升级到2.3.5后zergRush对我的手机无效了,相关的工具都无法root 和shell root。 所以只好自己来了。前提 手机s-off。我的手机是硬解的,好像现在也可以软解。1:root 手机。 网上教程一堆,recovery中刷一下就行了。2:安装root explorer3:在root explorer中找到/system/bin/su 修改权限。 主要是读 执原创 2012-04-08 20:03:08 · 1450 阅读 · 0 评论 -
How to Sign Android APK or Zip Files
How to Sign Android APK or Zip FilesPosted by lorenz in Android, Featured Articles, Information Technology, Programming on 05 21st, 2010 | 35 responses Home » Information Technolog转载 2012-04-09 18:01:36 · 1653 阅读 · 0 评论 -
How to Create Android Update Zip Package
There are several ways to install applications or library files to an Android Phone. You can use Market application to find and install or adb command line tool to install or push the files to转载 2012-04-09 18:03:07 · 1144 阅读 · 0 评论 -
MTP on linux Ubuntu
Here's how to get your Transformer to show up in Ubuntu for example. This includes stuff you will have setup but this will help others too.$ sudo apt-get install mtpfs$ sudo mkdir /media/trans转载 2012-05-03 21:20:38 · 1227 阅读 · 0 评论 -
编译HTC desire S CM的代码
下载编译参考下文http://wiki.cyanogenmod.com/wiki/HTC_Incredible:_Compile_CyanogenMod_(Linux)一些问题无法获取firmwarehttps://github.com/koush/proprietary_vendor_htc到这里下载saga相关代码,里面有firmwarecurl h原创 2012-04-04 18:49:51 · 1711 阅读 · 1 评论 -
距离传感器故障(挂断电话屏幕无法唤醒)
最近我的HTC Desire S 挂断电话有时屏幕无法唤醒。查了一下是proximity sensor的问题。当远离sensor是没有中断,就是只有near的中断,没有far的中断。这个是硬件问题,我又不想换sensor,所以就查了一下代码。见下面这段,注释写的很明白,会等到用户把手机从头部拿开后才release wakelock。但sensor并不会发出far 的中断,所以会一直原创 2012-04-18 23:18:39 · 3385 阅读 · 0 评论 -
galaxy nexsus kernel 未完成
git clone https://android.googlesource.com/kernel/omapcd omapgit checkout origin/android-omap-tuna-3.0-mr0make tuna_defconfig ARCH=arm CROSS_COMPILE=arm-eabi- When handling kernels原创 2012-05-11 10:18:28 · 1042 阅读 · 0 评论 -
adb 权限问题 (insufficient permissions for device)
2010/05/05 17:32http://hi.baidu.com/iceliushuai/blog/item/1e506160c5d01f48eaf8f801.html环境:Ubuntu 10.04 LTS ,Ophone SDK关键字:insufficient permissions for device出现如下错误信息:shily@hh转载 2012-03-31 20:59:29 · 6810 阅读 · 0 评论 -
未完 Android 编译环境
Ubuntu12.04sudo apt-get install lib32ncurses5-dev===================old version===============================export JAVA_HOME=/usr/bin/javaexport ANDROID_JAVA_HOME=$JAVA_HOME $原创 2010-11-16 22:07:00 · 443 阅读 · 0 评论 -
android wifi 移植 转载一篇
http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.htmlPorting WiFi drivers to Androidby Nicu Pavel on 11 August 2010Update(19/05/2011): Verify validity again转载 2012-02-11 23:03:38 · 1198 阅读 · 0 评论 -
wpa_supplicant软件架构分析
http://blog.youkuaiyun.com/fxfzz/article/details/61764141. 启动命令wpa supplicant 在启动时,启动命令可以带有很多参数,目前我们的启动命令如下:wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/wifi/wpa_s转载 2012-12-07 09:57:38 · 646 阅读 · 0 评论 -
android 重启 log
重启的log/proc/last_kmsg/data/tombstones//data/dontpanic//data/system/dropbox/手机如果重启,会在/data/system/dropbox 留下开机信息,可以查看次类文件生成的时间标来了解手机重启的时间情况。另外,系统会自动记录最后一次开机/重启的原因到 /proc/bootinfo转载 2012-12-11 14:08:18 · 7776 阅读 · 0 评论 -
mini6410移植cmos和usb camera到android中
<!--@page {margin:2cm}p {margin-bottom:0.21cm}-->友善在新的版本上闭源了多媒体相关的驱动,而我花了好多钱从友善那里买的camera不能浪费啊,所以就只好自己porting了。好久不写东西了,而且在libreoffice里排好版贴上来就乱了,凑合着看吧。系统版本:Kernel:2.36Android:原创 2011-11-26 22:59:46 · 4317 阅读 · 9 评论 -
Galaxy Nexus 电池耗电问题
最近Google更新了4.2.2后,手机总是有些问题。发现网上也有很多人说有同样的问题,主要是以下几个:1:按power键后,屏幕有时会自动点亮。 有很多人说是微信的问题。不过最近更新下软件后我这个问题消失了。 2:充电完,拔掉usb线后手机状态不正常。 这个有人说是因为usb接口那里,usb的pin脚碰到了下面的usb接口的外壳,用螺丝刀翘一下即可。3:电池耗电极快。这原创 2013-07-08 11:46:33 · 2240 阅读 · 0 评论 -
ramdisk
http://www.gnu.org/software/cpio/manual/cpio.htmlgunzip -S .img ramdisk.imgcpio -i -F ../ramdisk find . | cpio -o -H newc > ../tmp_ramdisk.imggzip -c tmp_ramdisk.img > ramdisk.img原创 2012-11-06 15:51:35 · 513 阅读 · 0 评论 -
FATAL EXCEPTION IN SYSTEM PROCESS: AlarmManager
这个问题出现的原因是没有rtc驱动。在kernel中device driver-> real time clockandroid alarm driverandroid alarm devices3c soc rtc原创 2011-04-19 23:14:00 · 4337 阅读 · 1 评论 -
Android HAL 是如何被调用的
查背光时找到的。结果是因为cpp的文件编译时不会导出符号“HMI”,要改成c的文件。Android HAL 是如何被调用的Android对硬件的调用,google推荐使用HAL的方式进行调用,对于Andriod HAL的写法,可以参考android源码里的hardware目录下几个模块的模版。在看HAL的编写方法的过程中,会发现整个模块貌似没有一个入口。一般说来模块都要转载 2012-02-14 11:59:25 · 568 阅读 · 0 评论 -
android wifi移植之wpa_supplicant
参考前面的blog,使用wireless tools已经可以连到为加密的ap。 但我的ap采用的wpa-psk模式加密,用这个工具无法连上,所以还是要使用wpa_supplicant。开始用wpa_supplicant 用的是android socket,始终不行,后来改成unit standard socket。具体做法前面有。换成这个以后就可以用wpa_cli来配置。 我没搞明白怎原创 2012-02-11 23:16:25 · 4209 阅读 · 0 评论 -
Android 内核
移植内核,启动后解压缩后就卡住了。 其实是汇编启动代码那段检测machine ID地方出错了, 需要改下machine id原创 2010-09-15 15:29:00 · 525 阅读 · 0 评论 -
zz Android with BusyBox
Android with BusyBox分類:未分類資料夾2010/04/16 11:48Android 的shell真是鳥到不行.功能超陽春.現在教各位安裝busybox到Android的環境中來解決這個問題1.Download BusyBox -> 這個不用偶教吧 :)2. cd busybox-1.15.1 make menuconfig 設定BusyBox為Static link BusyBox Settings -> Build Opti转载 2010-10-07 20:26:00 · 1122 阅读 · 0 评论 -
[转]Android下编译自己的库文件jar并在应用中调用
其实如果不用eclipse的话不用这么复杂。但有几点要注意, 这句要放在 里。还有就是LOCAL_MODULE_TAGS的问题。 这2个低级错误搞了我三四天项目中使用了Android未公开的API,在Eclipse下会有红叉显示。不同的项目抽出相同部分的代码共用。必需的前提条件:需要有Android源代码,编译的库文件主要是封装未公开API或者共用代码。工程1:Java库文件工程该工程最终会生成以jar结尾的Java库文件,并会被安装到设备的以下目录:/原创 2010-11-30 14:47:00 · 1046 阅读 · 0 评论 -
android LOCAL_MODULE_TAGS 的一些说明
自己添加的app没有被编译进去,原因就是这个"Set LOCAL_MODULE_TAGS to any number of whitespace-separatedtags.This variable controls what build flavors the package getsincludedin. For example: * user: include this inuser/userdebug builds * eng: include this in en原创 2010-11-30 11:05:00 · 4476 阅读 · 0 评论 -
Android 文件系统移植到 2440 未完
对于2440, 目前android并未完全支持armv4t。 如要运行在2440上需要修改一些汇编相关的代码。 所幸已有很多人做过这个工作,目前我是在freerunner这个基础上做的。主页是http://code.google.com/p/android-on-freerunner/, 可以用git下载代码(这个网站上有地址),这里的wiki上就关于如何build的文档。目前的一些问题:1:运行无法执行linuxrc。 因为我原来移植的是busybox, kernel上的参数是init=/linuxrc.原创 2010-10-10 20:11:00 · 2684 阅读 · 1 评论 -
zz android touch panel
android触摸屏坐标手工校准/调整成功[ 2009-7-28 14:25:00 | By: pajoke ] 1.简述android 的坐标转换处理:This implementation is a linear transformation using 7 parameters (a, b, c, d, e, f and s) to transform the device coordinates (Xd, Yd) into screen coordinate原创 2010-10-30 23:21:00 · 1556 阅读 · 0 评论 -
备份
下面简单介绍一下移植的过程:一、文件系统:1.下载源文件:建立源文件目录 mkdir ~/android_src初始化repo cd ~/android_src & repo init -u git://gitorious.org/android-on-freerunner/freerunner_platform_manifest.git (主线是2.1版本)同步源文件 repo sync整个过程会比较慢,可以同时开几个窗口来分别同步一些较大的project,例如 re原创 2010-11-08 15:17:00 · 799 阅读 · 0 评论 -
安装tslib中遇到的错误:./autogen.sh: 4: autoreconf: not found
./autogen.sh: 4: autoreconf: not found 是在不同版本的 tslib 下执行 autogen.sh 产生。它们产生的原因一样,是因为没有安装 automake 工具, (ubuntu 8.04)用下面的命令安装好就可以了。 sudo apt-get install autoconf automake libtool转载 2010-11-08 22:44:00 · 1024 阅读 · 0 评论 -
android 编译部分模块
从网上看的别人的:在android的顶层目录里,运行下面的命令:source build/envsetup.sh运行命令后,就添加了很多命令到sh解释器,具体命令如下:-croot: Changes directory to the top ofthe tree.-m: Makes from the top of the tree.-mm: Builds all of the modules in thecurrent directory.-mmm: Builds all原创 2010-11-22 15:01:00 · 3054 阅读 · 0 评论 -
[android]编译时出现/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libz.so when searching for -lz错误信息
http://0123.blog.163.com/blog/static/47883120101024104416786/编译时出现/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libz.so when searching for -lz错误============================================PLATFORM_VERSION_CODENAME=AOSP转载 2011-02-27 19:17:00 · 5367 阅读 · 0 评论 -
SDL init failure, reason is: No available video device: On Ubuntu64
<br />If you are installing Android SDK on Ubuntu 10.04 and using OpenJDK, you may have the message "SDL init failure, reason is: No available video device".<br /><br />So, let's try:<br /><br />apt-get install ia32-libs lib32stdc++6转载 2011-02-28 22:42:00 · 3869 阅读 · 3 评论 -
Android移植_NFS启动调试
<br />http://hi.baidu.com/eastream/blog/item/9302ee345b9bc40290ef39df.html<br /> <br />现象<br />shell@android:/ $ D/AndroidRuntime( 1225): <br />D/AndroidRuntime( 1225):>>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit<<<<<<<br />D/AndroidRunti转载 2011-03-07 22:04:00 · 6181 阅读 · 2 评论 -
基于32bit系统编译Android 2.3
基于32bit系统编译Android 2.3 收藏从官网下载android2.3源码,make,发现报错: You are attempting to build on a 32-bit systemOnly 64-bit build environments are supported beyond froyo/2.2.明明2.2 之前编译过,分析,默认编译为64位,按照官网给出的方案,修改如下:$ vim build/core/main.mk#ifneq (64,$(f转载 2011-05-08 10:34:00 · 748 阅读 · 0 评论 -
repo and git
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1repo sync c)获得适合的内核源代码 $ cd ~/android 获得内核源android系统下载代码堆栈 $ git clone http://android.go原创 2010-08-28 16:23:00 · 532 阅读 · 0 评论 -
移植wireless tools 到android并测试
http://blog.chinaunix.net/space.php?uid=21091200&do=blog&id=18307351. 从www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html 下载wireless_tools.30.pre9.tar.gz, 此版本支持non-ASCII char转载 2012-02-02 11:54:42 · 791 阅读 · 0 评论 -
wifi 测试
# iwconfigeth1 IEEE 802.11b/g ESSID:"" Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated Bit Rate:0 kb/s Tx-Power=18 dBm Retry short limit:8转载 2012-02-02 22:47:42 · 1127 阅读 · 0 评论 -
JNI javah相关
关于路径找不到的问题。文件在/home/xxxxx/workspace/JNI_Test/org/dvb/test/NativeStuff.classorg.dvb.test.NativeStuff package名字In order to be sure, use -classpath option:javah -classpath /home/xxxxx/workspace/JNI_Test org.dvb.test.NativeStuff(And make sure the /home/xxxx原创 2010-11-19 19:05:00 · 624 阅读 · 0 评论