2012年3月8日 星期四
Replace framework.jar on Android Emulator
1. Start up Emulator
$ cd {ANDROID SDK}/tools
$ ./emulator -avd {AVD_NAME}
2. Use adb shell to set rw access right on /system
$ ./adb shell
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/bin
# cat sh > su
# chmod 4755 su
# exit
3. upload framework.jar to target directory
$ ./adb push
{MYDONUT_OUT_PATH}/target/product/generic/system/framework/framework.jar /system/framework
4. restart Emulator
$ ./adb shell
# stop
# start
2011年12月21日 星期三
Google code project git initial handling
In general case of some of existing code:
1. In your setup page : https://code.google.com/hosting/settings
1. In your setup page : https://code.google.com/hosting/settings
- get your password
- Check your user preference like below, and save it:
Security
- change to the directory to where your code exist
- initial git environment, run following command
- git init
- git add
- git commit -a -m "Initial commit"
- create window environment data to have right to push code
- create an environment variable %HOME%, and set it to your project path
- create a file, named _netrc, and add contain below
machine code.google.com
login your_account@gmail.com
password your_password_get_from_step_1 - commit/push your code to your remote google code project repository
- git remote add origin https://code.google.com/p/your_project_name/
- git push origin --all
2011年12月18日 星期日
Android File System Hierarchy
Original source from : http://anantshri.info/andro/file_system.html
/ ▼: Base file system : Generally recreated everytime using ramdisk content
- cache : Cache Folder : Used as scratch pad by OS place dex optimized dalvik bitecode
- ▼data :Contains USER Data Stored as a separate partition in mtdblocks mounted at bootup
- anr
- idd
- system
- radio
- property
- app : Application : User installed
- ▼data Downloaded, updated and manually installed apps
- folder for each app named as package name.
- local
- dalivk-cache
- default.prop : Default Property settings, Values restored from this file on every restart
- ▼dev : Device file system pointers
- tty 1 - 63
- null
- zero
- ▼block Block Devices
- loop 0-7 : Loop back devices
- mtdblock 0 - 6-8 : MTD BLOCKS : Device internal memory
- mmcblk0 : SDCARD Block Device
- etc -> /system/etc : Soft link to /system/etc Directory
- hw_config.sh
- init : INIT executable, this is also the place where device nodes are created by listening to uevents
- init.rc : Initial Configuration file : decompressed from ramdisk
- logo.rle : Boot Time Logo
- ▼proc
- last_kmsg : Previous Sessions Kernel message log
- partitions
- diskstats
- kmsg : Kernel Message log simmilar to dmesg in linux
- cpuinfo : CPU information simmillar to linux
- config.gz : Copy of .config used to compile kernel (optional)
- root
- ▼sbin Part of Ramdisk Content : This contains various executables required for Bootup
- adbd ADB Daemon executable: Responsible for adb shell
- ▼sys
- fs
- devices
- dev
- bus
- class
- firmware
- kernel
- power
- module
- block
- ▼system : Main OS System. Stored as a separate partition in mtdblocks mounted at bootup (read-only)
- app : System Apps : Pre installed : Android Specific, Vendor and Carrier Provided Application set. These applications can't be changed without rooting device(till version 4.0 of android)
- ▼bin : Binary Executables required for operation
- installd : Native package management daemon
- keystore : keystore for android
- netd : Communication daemon
- rild : modem communication
- system_server : Key server in android performing most critical task and providing most services. Combination of cpp and java code. The system server communicates with vold/rild etc
- vold :Volume manager that listens to kernel netlink events and mounts media
- build.prop : File containing Configuration variables used to define various operational parameters
- etc : Configuration Files for Whole Android System
- framework : Framework : jar Files which provision the interaction between applications and hardware
- fonts : Fonts used in display
- media : Contains Media files ringtone/alarms etc
- xbin : Excutable Files generally this holds special executables like busybox or toolbox
- sdcard : SDCARD :removable sdcard directory
- ▼mnt
- sdcard -> /sdcard : Link too /sdcard
訂閱:
文章 (Atom)