http://blog.csdn.net/u014600432/article/details/41010929
短信数据库:
/data/data/com.android.providers.telephony/databases/mmssms.db
设置数据库
/data/data/com.android.providers.settings/databases/settings.db
root权限静默安装软件 http://blog.csdn.net/u014600432/article/details/41011115
1、需要RootTools.jar
2、执行脚本
public class InstallerActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
Runtime.getRuntime().exec("su");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public void click(View view){
EditText et = (EditText) findViewById(R.id.editText1);
String path = et.getText().toString().trim();
try {
RootTools.sendShell("/system/bin/pm install -r "+path, 30000);
} catch (Exception e) {
e.printStackTrace();
}
}
}
设置屏幕亮度http://blog.csdn.net/u014600432/article/details/41010729
public void setBrightness(int level) {
ContentResolver cr = getContentResolver();
Settings.System.putInt(cr, "screen_brightness", level);
Window window = getWindow();
LayoutParams attributes = window.getAttributes();
float flevel = level;
attributes.screenBrightness = flevel / 255;
getWindow().setAttributes(attributes);
}
查看手机cpu情况
adb shell top -m 5
http://blog.csdn.net/huangyabin001/article/details/40112987
关机:
adb shell setpro sys.powerctl shutdown
修改DPI
Android系统中会根据屏幕分辨率范围,制定默认的density,既320(xhdpi),那么我们也可以手动修改density。
修改的方式在system.prop中修改ro.sf.lcd_density的值;
例如ro.sf.lcd_density=480;
我们可以使用adb命令查询该属性:
adb shell getprop ro.sf.lcd_density
android输入法制作:
http://blog.csdn.net/huangyabin001/article/details/28434989
InputMethodManagerService