[Miscellaneous Android Development] heart_crafter:
ADB Commands

Some commands that can help modify your roms... without flashing...

ill use framework-res.apk as an example

adb logcat -c

*clears logcat buffer.

adb logcat >> logcat.txt

*saves logcat to local pc in current folder.

adb pull /system/app/framework-res.apk

*saves file to local pc.

use App_Manager... to modify the apk

*folder name "Modify APKs" under the installation file i made...

adb shell stop

*do this before you replace/modify the system...it stops the interface but keep adb running...

adb shell mv /system/app/framework-res.apk /system/app/framework-res.apk_

*moves/renames files/folders... do this to make a backup of your original file on the device...

adb push framework-res.apk /system/app

*saves the file back to the device at specified location.

adb shell start

*starts the interface back up... now you can see your modifications... without restarting or flashing...

adb install -f apk

*some* apps that does not install can be installed using this command...

adb shell setprop <property> <value>

*build.prob can be edited using this command.

adb shell rm -r /data/cache/

*removes directory

adb shell rm /data/filename

*removes file

adb shell chmod 0777 /sys/class/backlight/rk28_bl/brightness

*gives read write permissions to owner/group/other on specified file.

adb shell chown 0:0 /sys/class/backlight/rk28_bl/brightness

*changes owner of the file group:subgroup

adb shell cat /sys/class/backlight/rk28_bl/brightness

adb shell cat /proc/kmsg

*allows you to view, modify or combine a file.

adb shell df

*shows avalaible/used space

adb shell lsmod

*shows currently loaded module listing

adb shell ls -l [dir]

*shows directory listing with file attributes

chown,chgrp

*change permission ownership.

awk,sed

*languagesto both process & transform text

grep

*a text search utility

du

*showsdisk usage

vi

*a shell based text editor

pidof

*returnthe pid of a running process

less

*text reader with back and forward nav

tail

*trail the end of a file for activity

gunzip,gzip, tar, bzip2

*archival compression software

clear

*clears screen

crontab,crond

*taskscheduling

diff

*compare files

httpd

*a light webserver

telnet

*basic TCP remote login

xargs

*usethe output of a command as the arguments for another

su

*masquerade as another system user

wget

*retrievescontent from a web server

which

*identifies the location of an executable

head

*prints first 10 lines od each FILE to stdout.

getprop/setprop

*gets and set properties

Tips:

1. Resetting calibration

adb shell am start -a android.intent.action.MAIN -n com.rockchip.tscalibration/.TSCalibration

*do this if for some reason you mess up your calibration and you can't restart the calibration

or

if you used zeroxlab calibration do as follows:

adb shell rm /data/misc/pointercal

adb shell rm -r /data/misc/idc/

*removes previous calibration data for zeroxlab calibration

adb shell am start -a android.intent.action.MAIN -n org.zeroxlab.util.tscal/.TSCalibration

*do this if for some reason you mess up your calibration and you can't g restart the calibration

2. Edit db files with from pc using SQLiteBrowser

Let me know if i missed typed something...