- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 setupwizard重新设置
adb push package-restrictions.xml /data/system/users/0/package-restrictions.xmlsettings put Secure user_setup_complete 0settings put Global device_provisioned 0
2017-01-03 19:16:52
1430
4
原创 android rotation
updateRotationUncheckedLockedint rotation = mPolicy.rotationForOrientationLw(mForcedAppOrientation, mRotation);mRotation = rotation;
2016-12-29 16:19:49
438
原创 修复添加system/app应用crash bug
LOCAL_PREBUILT_JNI_LIBS := \ @lib/armeabi-v7a/*.so
2016-12-19 14:47:58
561
转载 使用ps和kill查找并结束Linux进程
原文地址:http://www.darrenfang.com/2013/11/find-and-kill-linux-process/可以使用 ps 查看系统中正在运行的进程, kill 命令可以结束进程。以前习惯用 ps aux | grep java 查找java进程, 然后再使用 kill -9 强制结束进程。但是有没有办法可以只用一条命令就可以完成这2步
2016-12-13 17:38:46
4708
原创 linux ssh配置
sudo apt-get install openssh-clientsudo apt-get install openssh-server尝试登录远程主机无密码将public key拷至远程主机,远程主机创建authorized_keyscat 文件 -authorized_keys不输入IP地址:在.ssh中创建config文件Host serverUs
2016-11-28 17:19:27
172
原创 spice server tools
export CFLAGS= -DRED_STATISTICSreds_stat.cstatic void print_stat_tree(int32_t node_index, int depth){ SpiceStatNode *node = &reds_nodes[node_index]; if ((node->flags & SPICE_STAT
2016-11-25 15:31:03
392
转载 linux下c语言生产者消费者问题
/** author 张文* 2008/06/20*/#include #include #include #include #include #define N 2 // 消费者或者生产者的数目#define M 10 // 缓冲数目int in = 0; // 生产者放置产品的位置int out = 0; // 消费者取产品的位置in
2016-11-25 14:44:27
2037
1
原创 chooseBestActivity HOME
ActivityManagerServicestartHomeActivityLockedresolveActivityInfoPackageManagerServiceresolveIntentresolveIntentWithPackageprivate ResolveInfo chooseBestActivity(Intent intent, String resolvedTyp
2016-11-11 13:24:28
859
原创 桌面文件模式
桌面文件模式./src/com/android/settingsprivate static final String KEY_LAUNCHER_FILE_MODE = "launcher_file_mode";if (preference == mLauncherFileMode) { boolean value = mLauncherFileMod
2016-11-11 11:24:37
280
原创 ntp server
常用的server有ntp 国际组织提供的server: pool.ntp.org参考:http://www.voidcn.com/blog/u011403718/article/p-5036345.htmllinux上的ntp, 安装查看默认配置:# sudo apt-get install ntp# cat /etc/ntp.conf
2016-11-10 16:52:04
215
原创 android NetworkTime set
package/apps/Setting ./res/xml/date_time_prefs.xml android:title="@string/date_time_auto" android:summaryOn="@string/jide_date_time_auto_summaryOn" android:s
2016-11-10 12:49:02
291
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人