自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

原创 Android操作系统编辑遇到的几个问题(TestGlobEscapes,module “xxx“ already defined/previous definition here)

近期在编辑Android12 操作系统遇到编译问题及原因,特此记录。

2023-08-24 17:19:03 622 1

原创 如何通过命令将可执行程序转入deamon(之start-stop-daemon )

#本文介绍了一种将java命令行程序随系统启动而启动的方案。1. 背景linux上随系统启动而启动的服务,进入后台服务状态有几种方式:(1)服务可执行文件程序加入代码进入后台状态(C语言的程序要调用两次fork)(2)如下方式,命令前加入nohub、在命令行后加入&的方式,启动命令可以在一定程度达到效果nohub <program_file_path> & 但有如下欠...

2018-03-20 00:23:59 4090

转载 adb logcat 命令行用法

作者 :万境绝尘  转载请著名出处eclipse 自带的 LogCat 工具太垃圾了, 开始用 adb logcat 在终端查看日志;1. 解析 adb logcat 的帮助信息在命令行中输入 adb logcat --help 命令, 就可以显示该命令的帮助信息;[plain] view plaincopyoctopus@o

2014-09-25 18:37:03 185497 18

转载 CM源代码的下载地址

单独模块的下载地址:    https://github.com/CyanogenMod/整套源代码下载方法:     https://github.com/CyanogenMod/android

2013-10-01 17:03:09 8306

原创 JAVA中如何动态获取得当前的文件名/类名/方法名/行号

#原来在GNU的C语音中有比较方便的宏,在JAVA中发现也有取得相应信息的方法,特此记录通过以下代码可以在程序运行时获取当前代码所在的文件名/类名/方法名/行号,在追踪程序运行状态及LOG时非常有用。注: 以下方法中Position1()和Position2()原理相同。 (Position2()有的时候取得的不正确,请注意修改STACKLEVEL2为正确的值(1 or 2 or 3)

2013-04-12 10:52:43 3654

转载 Android 主流机型分辨率统计

转载 :http://www.cnblogs.com/dwinter/archive/2012/05/14/Android%E4%B8%BB%E6%B5%81%E6%9C%BA%E5%9E%8B%E5%88%86%E8%BE%A8%E7%8E%87%E7%BB%9F%E8%AE%A1.html名称尺寸(英寸)分辨率(像素)HTC S720e(On

2013-02-22 16:37:12 2867

转载 安卓4.0编译中出现的问题解决

在Ubuntu12.04 x86_64 平台编译安卓4.0时遇到一些错误,再网上搜索时找到以下两篇文章,特此记录。参考1: http://www.cnblogs.com/xingfuzzhd/archive/2012/09/05/2672000.html参考2: http://blog.csdn.net/yanzheng1113/article/details/7990567

2012-12-07 11:57:49 456

原创 如何查看Linux GCC编译器里预定义的宏

#注此文仅为个人笔记 使用如下目录:  cpp -dM /dev/null数据结果示例:#define __DBL_MIN_EXP__ (-1021)#define __UINT_LEAST16_MAX__ 65535...#define __unix__ 1#define __x86_64 1...注意:结果中并不包括以下大家经常使用的宏哦。

2012-11-29 15:03:22 3501 1

原创 应用程序信息 -> “清除默认设置” 信息的保存位置

在实际工作中可能会遇到想把系统中某个特定的应用在程序中将自身或真其他程序设置成默认执行的程序的状况。比如把自己的开发的Launcher设置成系统默认的Launcher。注: (1)这个在安卓2.2以前还是有系统的接口的,现在相应的接口已经被google废弃,不能再使用了,我也没搜集到好的办法。(2)以下方法没有经过实际验证,仅供参考应用将应用程序设置成默认

2012-08-06 19:21:27 7606

转载 Android Building System 分析

Android Building System 分析   http://hi.baidu.com/vegafish/blog/item/0bf73c64b8cf8ac781cb4a31.htmlAndroid ----制作自己的Vendor    http://blog.csdn.net/qclzdh/article/details/6313859

2012-07-20 20:34:53 505

原创 Android系统编译

#本文仅用于个人随笔记录,不具有参考价值android系统编译时,make的入口为: Makefile -> build/core/main.mk其中部分分支判断是基于板子的设定来的。(执行lunch xxx会对全局参数进行设定)lunch xxx会加载以下文件:  build/target/board/xxx/BoardConfig.mk其

2012-07-13 11:08:31 1966

转载 Ubuntu 如何开启X网络访问

1. 开机X Server 网络访问的方法(1)  lightdm 的场合配置文件: /etc/lightdm/lightdm.conf添加内容: [XDMCPServer] enabled=true <- 打开XDMCP(177),可以使用windows上的Xmanager访问Ubuntu桌面 [Sea

2012-06-29 01:34:17 4573

翻译 Android系统那些属性

为了便于记忆特此记录,逐渐补充。        功能                                           属性                                                                说明设置adbd为root模式             service.adb.root=

2012-06-28 14:46:17 1316

转载 ADB连接手机的两种方式

adb支持两种连接android系统的方式,USB方式及网络方式。一般手机及平板默认会设置为USB方式。下边介绍这两种方式的切换方式。1. 背景知识:android系统底层运行着一个服务(adbd),用于相应和管理大家在电脑端的adb命令连接,这个服务在启动时会根据手机的配置监听USB连接或网络其中之一。配置的属性为:   service.adb.tcp.por

2012-06-26 10:15:50 56225

start-stop-daemon

linux系统命令start-stop-daemon的源码及二进制,其中也提供了一个服务启动脚本模板。 此程序能帮助你实现将命令行程序变成服务运行,比如将"java -jar xxx.jar" 放在后台执行。 ./start-stop-daemon --help start-stop-daemon 1.9.18 for Debian - small and fast C version written by Marek Michalkiewicz , public domain. Usage: start-stop-daemon -S|--start options ... -- arguments ... start-stop-daemon -K|--stop options ... start-stop-daemon -H|--help start-stop-daemon -V|--version Options (at least one of --exec|--pidfile|--user is required): -x|--exec program to start/check if it is running -p|--pidfile pid file to check -c|--chuid change to this user/group before starting process -w|--chdir change the work directory to 'dir' -u|--user | stop processes owned by this user -n|--name stop processes with this name -s|--signal signal to send (default TERM) -a|--startas program to start (default is ) -N|--nicelevel add incr to the process's nice level -b|--background force the process to detach -m|--make-pidfile create the pidfile before starting -R|--retry check whether processes die, and retry -t|--test test mode, don't do anything -o|--oknodo exit status 0 (not 1) if nothing done -q|--quiet be more quiet -v|--verbose be more verbose Retry is |//... where is one of -|[-] send that signal wait that many seconds forever repeat remainder forever or may be just , meaning //KILL/ Exit status: 0 = done 1 = nothing done (=> 0 if --oknodo) 3 = trouble 2 = with --retry, processes wouldn't die

2018-03-20

Linux平台下从基站信息获取地图地址

本Shell脚本通过http://www.google.com/loc/json查询的基站位置信息。 需要提供给脚本MCC、MNC、LAC、CELLID信息,也可提供LAC或CELL的区间 信息,进行扫描。 使用说明: Usage: ./getlocal.sh --mcc={MCC} --mnc={MNC} --lac={LAC} --cid={CELLID} --radio=<gsm|wcdma> --flac={FROM} --tlac={TO} --fcid={FROM} --tcid={TO} Options: --flac: scan the LAC and start from the specified number --tlac: scan the LAC and end with the specified number --fcid: scan the CID and start from the specified number --tcid: scan the CID and end with the specified number

2011-03-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除