随笔分类 -  Android

摘要:有些短信程序有bug,当短信(特别是彩信)没有接收完整,或者是一些异常情况下,你会收到一条短信但是看不到或者看不了。此时郁闷的事情就来了,系统会提醒你还有1条未读短信,但是你满世界都找不到这条短信。所以,如果你有强迫症,想要清除掉那些未读短信通知的话,有一个简单办法:1. root手机2. adb shell3. su -4. rm /data/data/com.android.providers.telephony/database/mmssms.db或者用RE文件浏览器,删掉上面那个文件也可以。重启系统,清净了。 阅读全文
posted @ 2013-09-14 17:23 super119 阅读(539) 评论(0) 推荐(0)
摘要:1. Make sure your local git username matches with your Gerrit username, Gerrit username needs to be configure in the Gerrit portal under settings -> HTTP Passwordgit config --global review.review.cyanogenmod.org.username "gerrit username"---------------------Uploading your changesFirst, 阅读全文
posted @ 2013-08-16 11:55 super119 阅读(612) 评论(0) 推荐(0)
摘要:This can be accomplished in one of two ways:1) Pull the file from your device:cd /your/repo/pathadb pull /system/etc/build-manifest.xml .repo/manifests/cm-10.0.0.xmlOR2) Extract /system/etc/build-manifest.xml from the ROM zip and place it manually.等于这样你就有了这个版本CM build的manifests.xml。Enabling the Mani 阅读全文
posted @ 2013-08-16 10:05 super119 阅读(543) 评论(0) 推荐(0)
摘要:The local manifestCreating a local manifest allows you to customize the list of repositories on your copy of the source code by overriding the official manifest. In this way you can add, remove, or replace source code in the official manifest with your own. By pointing to new git repositories, (whic 阅读全文
posted @ 2013-08-15 23:05 super119 阅读(3468) 评论(0) 推荐(0)
摘要:[CM source code folders]bootable/Among other things, the source for ClockworkMod recovery is in here.device/device/ contains part (if not all) of the board support package for a device, and is organized as device//. So the files for Nexus 7 are under device/asus/grouper/, the files for Nexus 4 are u 阅读全文
posted @ 2013-08-14 15:37 super119 阅读(1263) 评论(0) 推荐(0)
摘要:To Enable the Developer and Performance settings on CyanogenMod 10.1In the Settings app, choose the About Phone (or About Tablet) option.Scroll down, and tap the Build number seven times. On the seventh tap, you will be notified that "You are now a developer."Return back to the main Settin 阅读全文
posted @ 2013-08-13 23:06 super119 阅读(856) 评论(1) 推荐(0)
摘要:1. root手机2. 配置/etc/udev/rules.d/51-Android.conf,将手机的USB的vendor id/product id加进去。用lsusb可以看到这两个ID。3. adb shell4. su; cd /sdcard5. tar czvf system.tar.gz /system6. dd if=/dev/mtd/mtd0 of=/sdcard/boot.img # 应该可以和system分区同样处理,用tar将/boot打包即可。dump整个分区有很多废数据产生7. 退出adb shell8. 在PC上:adb pull /sdcard/system.ta 阅读全文
posted @ 2013-02-10 20:53 super119 阅读(1154) 评论(0) 推荐(0)
摘要:随着现在手机的内部存储从NAND转变到eMMC,现在的system.img已经越来越多的使用ext4作为文件系统,而不是以前的yaffs2。使用file命令查看system.img,如果输出是:VMS Alpha Exectutable,那么这是yaffs如果输出是data,那么很可能是ext4的。只不过这个image是一个spare image,含有一些spare数据,所以需要先用simg2img处理一下,然后就可以直接mount了。至于为什么采用eMMC来代替NAND,摘录百度百科的一段话:eMMC目前是最当红的移动设备本地存储解决方案,目的在于简化手机存储器的设计,由于NAND Flas 阅读全文
posted @ 2013-02-04 23:03 super119 阅读(1883) 评论(0) 推荐(0)
摘要:From:http://como0925.pixnet.net/blog/post/29390286-%5Bandroid%5D%E9%97%9C%E6%96%BCapp2sd,a2sd,data2sd,a2sd%2B%E4%B9%8B%E9%96%93%E7%9A%84%E5%8D%80%E5%88%A5%E5%92%8C首先解釋一下這些縮寫,全部的意思就是Application To SD卡,就是說將應用安裝在卡上。為什麼要這麼做呢,那是因為HD2原版手機本地存儲只有512M(T版有1G的ROM空間),Android(MIUI)系統刷到手機內,主要有幾個目錄佔用了手機本地存儲:1、/sys 阅读全文
posted @ 2012-11-14 14:39 super119 阅读(290) 评论(0) 推荐(0)
摘要:转自:http://blog.csdn.net/thegameisfives/article/details/7308458什么是ION ?我的理解就是google在android4.0引入的一种内存管理器,来替代之前各个芯片厂家自己的方案..以下是网上找到的:it has become clear that PMEM is considered obsolete and will be replaced by the ION memory manager . ION is a generalized memory manager that Google introduced in the A 阅读全文
posted @ 2012-06-27 15:27 super119 阅读(968) 评论(0) 推荐(0)
摘要:Early Suspend、Late ResumeEarly Suspend和Late Resume是Android在標準Linux的基礎上增加的一項特性。當使用者空間的向內核請求進入suspend時,這時候會先進入early suspend狀態,驅動程式可以註冊early suspend的回呼函數,當進入該狀態時,內核會逐一地調用這些回呼函數。例如顯示幕的驅動程式通常會註冊early suspend,在他的回呼函數中,驅動程式會把螢幕和背光都關閉。在這種狀態下,所有的後臺進程都還在活動中,該播放歌曲的播放歌曲,該下載資料的依然在下載,只是顯示幕不良而已。進入early suspend狀態以後 阅读全文
posted @ 2012-05-24 16:12 super119 阅读(781) 评论(0) 推荐(0)
摘要:转自:http://www.cnblogs.com/tiantianbyconan/archive/2012/02/24/2366186.html1、standard :系统的默认模式,一次跳转即会生成一个新的实例。假设有一个activity命名为Act1,执行语句: startActivity(new Intent(Act1.this, Act1.class));后Act1将跳转到另外一个Act1,也就是现在的栈里面有 Act1 的两个实例。按返回键后你会发现仍然是在Act1(第一个)里面。 2、 singleTop:singleTop 跟standard 模式比较类似。唯一的区别就是,当. 阅读全文
posted @ 2012-02-24 12:25 super119 阅读(175) 评论(0) 推荐(0)
摘要:在/data/anr/traces.txt中可以找到backtrace。此外,在log中搜索"ANR "也可以找到很多有关ANR的信息。 阅读全文
posted @ 2012-02-17 10:55 super119 阅读(349) 评论(0) 推荐(0)
摘要:有的时候想让一个view出现在另一个view的上面,可以这样:You can't use a LinearLayout for this, but you can use a FrameLayout. In a FrameLayout, the z-index is defined by the order in which the items are added, for example: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layou 阅读全文
posted @ 2012-02-15 11:22 super119 阅读(4265) 评论(0) 推荐(0)
摘要:Hi,Everything is out there in .git folder only.By default, these URLs for cloning will put the .git stuff in your local folder. As you have not mentioned any remote branch name while cloning , hence, it would not checkout the files in your local repository.All you need to do is to checkout corre... 阅读全文
posted @ 2012-01-18 12:52 super119 阅读(413) 评论(0) 推荐(0)
摘要:logcat VideoBrowserActivity:I *:S这表示输出TAG为VideoBrowserActivity的,log level是INFO以上(包括INFO)的log;同时其他所有的log禁止(S表示silence)。logcat VideoBrowserActivity:I *:E这表示输出TAG为VideoBrowserActivity的,log level是INFO以上的log;其他的log输出log level是ERROR(包括ERROR)以上的log。 阅读全文
posted @ 2012-01-12 14:19 super119 阅读(346) 评论(0) 推荐(0)
摘要:最近一直在学习Android系统,这里做一些Android的知识总结,帮助自己和需要的人提高。 今天来个简单的:应用程序设置是否出现在近期任务列表中 android:excludeFromRecents="true"//这个属性只要看英文就会懂了,不显示在近期任务中 如果大家编写了一些比较邪恶应用,可以设置成true,不知道有没有方法可以让用户自己选择 阅读全文
posted @ 2012-01-05 16:03 super119 阅读(2094) 评论(0) 推荐(0)
摘要:1. unlink函数的使用。init中打开的文件,会用unlink删掉该文件。这样init进程还有这个文件的FD,可以进行操作。但是文件系统中这个文件已经没有了。这样就保证只有init进程才能操作这些文件了。2. getprop和setprop命令可以用来获取/设置init维护的properties。3. persist.service.adb.enable属性用来控制是否要启动adbd4. init使用了unix socket来作为一种IPC。Android中有其他一些组件也会使用这个。类似于pipe,只不过是socket的方式进行操作。 阅读全文
posted @ 2011-12-23 16:09 super119 阅读(203) 评论(0) 推荐(0)
摘要:在android的项目开发中,都会遇到后期功能拓展增强与主程序代码变更的现实矛盾,也就是程序的灵活度。 由于linux平台的安全机制,再加上dalvik的特殊机制,各种权限壁垒,使得开发一个灵活多变的程序,变得比较困难,不像pc平台下那么容易。 瞅瞅elipse的插件,瞅瞅360的插件,在android下,我们一开始很难写好一个主程序,然后通过插件机制来应对以后的功能拓展,于是程序变得不那么灵活多变了。 比如一款android下的安全软件,新版本增加了一个功能,如短信拦截,往往会因为一个模块的增加,而重新编译一个apk包,这样周而复始,哪怕只增加50kb的功能代码,用户也需要升级一... 阅读全文
posted @ 2011-12-15 10:58 super119 阅读(1130) 评论(2) 推荐(0)
摘要:转自:blog.163.com/bjtornado@yeah/blog/static/69510484201081181657449/1) 编译包含Debug 信息设置如下环境变量:TARGET_BUILD_TYPE=debugTARGET_STRIP_MODULE=false (发现即使设置编译为Debug模式, 最后生成的文件系统中的程序和库还是会被strip. 设置此选项可以避免被strip)不过还要需要修改一下build/core/combo/linux-arm.mk, 否者即使设置TARGET_STRIP_MODULE=false也无效修改113: TARGET_STRIP_MODU 阅读全文
posted @ 2011-12-09 13:06 super119 阅读(1496) 评论(0) 推荐(0)