├── .gitmodules ├── README ├── adb-am-settings.sh ├── adb-android-start.sh ├── adb-android-stop.sh ├── adb-as-root.sh ├── adb-battery.sh ├── adb-dcim.sh ├── adb-fdisk.sh ├── adb-install-dropbear.sh ├── adb-install-update.sh ├── adb-logcat-healthd.sh ├── adb-meminfo.sh ├── adb-power-off.sh ├── adb-pull-clockworkmod-backup.sh ├── adb-pull-wildcard.sh ├── adb-settings-dump.sh ├── adb-tcp-5555.sh ├── adb-top.sh ├── chrome-android-debug.sh ├── cyanogen-reflash.sh ├── emulator.sh ├── java-network-unreachable-debian-fix.sh ├── kvm-android.sh ├── nookcolor └── adb-nook.sh ├── qemu-mount.sh ├── restore-system.sh ├── rkflashtool ├── Makefile ├── README ├── install-debian.sh └── rkflashtool.c ├── rockchip-flash-helper.pl ├── system └── etc │ └── init.d │ └── 99swapon └── update-eeepc.sh /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "rk-tools"] 2 | path = rk-tools 3 | url = https://github.com/rk3066/rk-tools.git 4 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Bunch of helper scripts to use Android from command line 2 | 3 | http://dpavlin.github.com/android-command-line 4 | 5 | Connect to your Android screen: 6 | 7 | https://github.com/Genymobile/scrcpy 8 | 9 | apt install scrcpy 10 | scrcpy 11 | 12 | unlock lineageos: 13 | rigth mouse buutton to wake up screen 14 | alt+m to unlock screen 15 | 16 | -------------------------------------------------------------------------------- /adb-am-settings.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | adb shell am start -a android.settings.SETTINGS 4 | -------------------------------------------------------------------------------- /adb-android-start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | start() { 4 | adb shell setprop ctl.start $1 5 | } 6 | 7 | start zygote 8 | start media 9 | start surfaceflinger 10 | start drm 11 | 12 | adb logcat 13 | -------------------------------------------------------------------------------- /adb-android-stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | adb shell setprop ctl.stop media 4 | adb shell setprop ctl.stop zygote 5 | adb shell setprop ctl.stop surfaceflinger 6 | adb shell setprop ctl.stop drm 7 | adb shell 8 | -------------------------------------------------------------------------------- /adb-as-root.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # restart adb as root to fix 4 | # error: insufficient permissions for device 5 | 6 | adb=`which adb` 7 | $adb kill-server 8 | sudo $adb devices 9 | -------------------------------------------------------------------------------- /adb-battery.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | adb shell dumpsys battery 4 | -------------------------------------------------------------------------------- /adb-dcim.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | sdcard=/sdcard/DCIM/Camera/ 4 | to=/data/DCIM/Camera/ 5 | 6 | adb shell find $sdcard -mindepth 1 -maxdepth 1 | sed "s!$sdcard/*!!" | tr -d '\r' | sort > /tmp/dcim.android 7 | test -d $to || mkdir $to 8 | find $to -mindepth 1 -maxdepth 1 | sed "s!$to!!" | sort > /tmp/dcim.disk 9 | diff -uw /tmp/dcim.android /tmp/dcim.disk | grep -- "^-" | sed 's/^-//' | \ 10 | xargs -i sh -xc "adb pull $sdcard/{} $to/{}" 11 | -------------------------------------------------------------------------------- /adb-fdisk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | block=mmcblk0 4 | 5 | adb shell grep . /sys/block/$block/*p*/start | sed -e 's,/start:, ,' -e 's/[\r\n]$//' > /dev/shm/$block.start 6 | adb shell grep . /sys/block/$block/*p*/size | sed -e 's,/size:, ,' -e 's/[\r\n]$//' > /dev/shm/$block.size 7 | adb shell grep PARTNAME /sys/block/$block/*p*/uevent | sed -e 's,/uevent:PARTNAME=, ,' -e 's/[\r\n]$//' > /dev/shm/$block.name 8 | join /dev/shm/$block.start /dev/shm/$block.size > /dev/shm/$block.2 9 | join /dev/shm/$block.2 /dev/shm/$block.name | sort -k 2 -n | column -t | tee /dev/shm/$block.part 10 | 11 | -------------------------------------------------------------------------------- /adb-install-dropbear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | # http://wiki.cyanogenmod.org/w/Doc:_dropbear 4 | 5 | pub=$HOME/.ssh/id_rsa.pub 6 | cat $pub 7 | 8 | adb push $pub /sdcard/authorized_keys 9 | cat << EOF | adb shell 10 | mkdir /data/dropbear 11 | chmod 755 /data/dropbear 12 | mkdir /data/dropbear/.ssh 13 | chmod 700 /data/dropbear/.ssh 14 | mv /sdcard/authorized_keys /data/dropbear/.ssh/ 15 | chown root: /data/dropbear/.ssh/authorized_keys 16 | chmod 600 /data/dropbear/.ssh/authorized_keys 17 | dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key 18 | dropbearkey -t dss -f /data/dropbear/dropbear_dss_host_key 19 | exit 20 | EOF 21 | 22 | adb pull /etc/init.local.rc /tmp/init.local.rc 23 | 24 | grep dropbear /tmp/init.local.rc || ( 25 | cat << EOF >> /tmp/init.local.rc 26 | 27 | # start Dropbear (ssh server) service on boot 28 | service sshd /system/xbin/dropbear -s 29 | user root 30 | group root 31 | oneshot 32 | 33 | EOF 34 | 35 | adb shell mount -o remount,rw /system 36 | adb push /tmp/init.local.rc /etc/init.local.rc 37 | 38 | ) 39 | 40 | -------------------------------------------------------------------------------- /adb-install-update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # The recovery tool communicates with the main system through /cache files. 4 | # /cache/recovery/command - INPUT - command line for tool, one arg per line 5 | # /cache/recovery/log - OUTPUT - combined log file from recovery run(s) 6 | # /cache/recovery/intent - OUTPUT - intent that was passed in 7 | # 8 | # The arguments which may be supplied in the recovery.command file: 9 | # --send_intent=anystring - write the text out to recovery.intent 10 | # --update_package=root:path - verify install an OTA package file 11 | # --wipe_data - erase user data (and cache), then reboot 12 | # --wipe_cache - wipe cache (but not user data), then reboot 13 | # 14 | # After completing, we remove /cache/recovery/command and reboot. 15 | 16 | if [ ! -e "$1" ] ; then 17 | echo "Usage: $0 update.zip" 18 | exit 1 19 | fi 20 | 21 | adb shell "rm /sdcard/update.zip" 22 | 23 | adb push $1 /sdcard/update.zip || exit 1 24 | 25 | adb remount 26 | adb shell "echo 'boot-recovery ' > /cache/recovery/command" 27 | adb shell "echo '--update_package=/sdcard/update.zip' >> /cache/recovery/command" 28 | adb shell "echo '--wipe_cache' >> /cache/recovery/command" 29 | adb shell "echo 'reboot' >> /cache/recovery/command" 30 | adb shell "reboot recovery" 31 | -------------------------------------------------------------------------------- /adb-logcat-healthd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | adb shell logcat | grep --line-buffered healthd | tee healthd.$( date +%Y-%m-%d ) 4 | -------------------------------------------------------------------------------- /adb-meminfo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | adb shell 'while true ; do free ; echo ; sleep 1 ; done' 4 | -------------------------------------------------------------------------------- /adb-power-off.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | adb shell reboot -p 4 | -------------------------------------------------------------------------------- /adb-pull-clockworkmod-backup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | sdcard=/sdcard/clockworkmod/ 4 | 5 | adb shell find $sdcard/backup/ -mindepth 1 -maxdepth 1 | sed "s!$sdcard/*!!" | tr -d '\r' > /tmp/backup.android 6 | test -d backup || mkdir backup 7 | find backup/ -mindepth 1 -maxdepth 1 -type d | sed 's!backup/!!' > /tmp/backup.disk 8 | diff -uw /tmp/backup.android /tmp/backup.disk | grep -- '^-backup' | sed 's/^-//' | \ 9 | xargs -i sh -xc "mkdir {} && adb pull $sdcard/{} {}" 10 | -------------------------------------------------------------------------------- /adb-pull-wildcard.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | test -z "$1" && echo "usage: $0 /sdcard/DCIM/Camera/*20121111*" && exit 1 4 | 5 | adb shell ls "$1" | tr -d '\r' | xargs -i sh -c 'echo "{}" ; adb pull "{}" .' 6 | 7 | -------------------------------------------------------------------------------- /adb-settings-dump.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db .dump 4 | 5 | -------------------------------------------------------------------------------- /adb-tcp-5555.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | adb shell setprop service.adb.tcp.port 5555 4 | -------------------------------------------------------------------------------- /adb-top.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | adb shell top | grep -v ' 0% S ' 3 | -------------------------------------------------------------------------------- /chrome-android-debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # http://code.google.com/chrome/mobile/docs/debugging.html 4 | 5 | adb forward tcp:9222 localabstract:chrome_devtools_remote 6 | echo http://localhost:9222 7 | -------------------------------------------------------------------------------- /cyanogen-reflash.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | dir=`date +%Y-%m-%d` 4 | dir=cyanogen 5 | 6 | rsync --progress -v android:/srv/cyanogen/out/target/product/dream_sapphire/{boot.img,recovery.img,system.img,android-info.txt} $dir 7 | adb reboot-bootloader 8 | sudo ./fastboot devices 9 | sudo sh -c "ANDROID_PRODUCT_OUT=$dir/ ./fastboot flashall" 10 | -------------------------------------------------------------------------------- /emulator.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | emulator -debug-all -verbose -logcat main $* 4 | -------------------------------------------------------------------------------- /java-network-unreachable-debian-fix.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560056 4 | 5 | sudo sysctl -w net.ipv6.bindv6only=0 6 | 7 | # java -Djava.net.preferIPv4Stack=true 8 | 9 | -------------------------------------------------------------------------------- /kvm-android.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # originally based on 4 | # http://www.android-x86.org/documents/qemuhowto 5 | #qemu-kvm -soundhw es1370 -net nic -net user -cdrom vm.iso 6 | 7 | soundhw=es1370 8 | soundhw=ac97 9 | #soundhw=sb16 10 | kvm="-soundhw $soundhw" 11 | 12 | #name=android-x86-1.6-r2 13 | size=300M 14 | 15 | name=froyo 16 | size=600M 17 | 18 | name=generic_x86 19 | 20 | boot=emulator/$name.boot.qcow2 21 | sdcard=emulator/$name.sdcard.qcow2 22 | 23 | test -f $boot || qemu-img create $boot $size && cdrom="-cdrom emulator/$name.iso" 24 | test -f $sdcard || qemu-img create $sdcard 256M 25 | 26 | kvm="$kvm -monitor stdio" 27 | 28 | kvm $kvm -redir tcp:5555::5555 -m 256 -net nic -net user -hda $boot -hdb $sdcard $cdrom 29 | -------------------------------------------------------------------------------- /nookcolor/adb-nook.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # http://nookdevs.com/NookColor_USB_ADB 4 | 5 | mkdir -p ~/.android && echo 0x2080 >> ~/.android/adb_usb.ini && adb kill-server && adb devices 6 | 7 | -------------------------------------------------------------------------------- /qemu-mount.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | image=emulator/android-x86-1.6-r2.boot.qcow2 4 | test ! -z "$1" && image=$1 5 | 6 | if mount | grep /tmp/qemu ; then 7 | echo "umount" 8 | sudo umount /tmp/qemu 9 | sudo nbd-client -d /dev/nbd0 10 | exit 1 11 | fi 12 | 13 | 14 | 15 | echo "mount $image" 16 | 17 | qemu-nbd $image & 18 | sudo nbd-client localhost 1024 /dev/nbd0 19 | mkdir /tmp/qemu 20 | echo "wait for partitions" 21 | while [ ! -e /dev/nbd0p1 ] ; do 22 | echo -n . 23 | sleep 1 24 | done 25 | sudo mount /dev/nbd0p1 /tmp/qemu 26 | 27 | df -h /tmp/qemu 28 | -------------------------------------------------------------------------------- /restore-system.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | remount_path() { 4 | adb shell df $1 | grep /dev/ | tr -d '\r' | \ 5 | awk '{ print "mount -o remount,'$2' "$1" "$6 }' | xargs -i adb shell {} 6 | } 7 | 8 | find system -type f -print | while read FILE ; do 9 | dir=`dirname $FILE` 10 | name=`basename $FILE` 11 | echo "# $FILE -> $dir $name" 12 | remount_path $dir rw 13 | dev=`adb shell df system/etc/init.d/ | grep /dev/` 14 | adb push $FILE $dir 15 | remount_path $dir ro 16 | done 17 | -------------------------------------------------------------------------------- /rkflashtool/Makefile: -------------------------------------------------------------------------------- 1 | all: rkflashtool 2 | 3 | rkflashtool: rkflashtool.c 4 | gcc -o rkflashtool rkflashtool.c -lusb-1.0 -O2 -W -Wall -s 5 | 6 | param: 7 | sudo ./rkflashtool r 0x0000 0x2000 > /tmp/parm 8 | -------------------------------------------------------------------------------- /rkflashtool/README: -------------------------------------------------------------------------------- 1 | README 2 | ====== 3 | 4 | This modified repository hosts tools for Arnova tablet development from 5 | 6 | https://github.com/justgr/arnova-tools 7 | 8 | to support rk3066 Android dongles. 9 | 10 | Use install-debian.sh to install dependecies and type make to build it 11 | 12 | rkflashtool 13 | =========== 14 | 15 | Originally from http://forum.xda-developers.com/showthread.php?t=1286305 16 | 17 | If a new version appears, please create a fork of this repo, add changes, 18 | and request a pull. The changes will be merged into this repository. If 19 | the original author also sets up a repository, please let me know. 20 | 21 | 22 | -------------------------------------------------------------------------------- /rkflashtool/install-debian.sh: -------------------------------------------------------------------------------- 1 | sudo apt-get install libusb-1.0-0-dev 2 | -------------------------------------------------------------------------------- /rkflashtool/rkflashtool.c: -------------------------------------------------------------------------------- 1 | /* rkflashtool - for RK2808, RK2818 and RK2918 based tablets 2 | * 3 | * Copyright (C) 2011 Ivo van Poorten (complete rewrite for libusb) 4 | * Copyright (C) 2010 FUKAUMI Naoki (reverse engineering of protocol) 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 1. Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * 2. Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | * Build with: 27 | * 28 | * gcc -o rkflashtool rkflashtool.c -lusb-1.0 -O2 -W -Wall -s 29 | */ 30 | 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | 39 | #define RKFLASHTOOL_VERSION 2 40 | 41 | #define RKFT_BLOCKSIZE 0x4000 /* must be multiple of 512 */ 42 | #define RKFT_OFF_INCR (RKFT_BLOCKSIZE>>9) 43 | 44 | #define RKFT_CID 4 45 | #define RKFT_FLAG 12 46 | #define RKFT_COMMAND 13 47 | #define RKFT_OFFSET 17 48 | #define RKFT_SIZE 23 49 | 50 | #define SETBE32(a, v) ((uint8_t*)a)[3] = v & 0xff; \ 51 | ((uint8_t*)a)[2] = (v>>8 ) & 0xff; \ 52 | ((uint8_t*)a)[1] = (v>>16) & 0xff; \ 53 | ((uint8_t*)a)[0] = (v>>24) & 0xff 54 | 55 | static uint8_t cmd[31] = { 'U', 'S', 'B', 'C', }; 56 | static uint8_t res[13]; 57 | 58 | static uint8_t buf[RKFT_BLOCKSIZE], cid; 59 | static int tmp; 60 | 61 | static const char *const strings[2] = { "info", "fatal" }; 62 | 63 | static void info_and_fatal(const int s, char *f, ...) { 64 | va_list ap; 65 | va_start(ap,f); 66 | fprintf(stderr, "rkflashtool: %s: ", strings[s]); 67 | vfprintf(stderr, f, ap); 68 | va_end(ap); 69 | if (s) exit(s); 70 | } 71 | 72 | #define info(...) info_and_fatal(0, __VA_ARGS__) 73 | #define fatal(...) info_and_fatal(1, __VA_ARGS__) 74 | 75 | static void usage(void) { 76 | fatal("usage:\n" 77 | "\trkflashtool b \treboot device\n" 78 | "\trkflashtool r offset size >file \tread flash\n" 79 | "\trkflashtool w offset size 0) { 156 | info("reading flash memory at offset 0x%08x\n", offset); 157 | 158 | send_cmd(h, 2, 0x80, 0x000a1400, offset, RKFT_OFF_INCR); 159 | recv_buf(h, 1, RKFT_BLOCKSIZE); 160 | recv_res(h, 1); 161 | 162 | write(1, buf, RKFT_BLOCKSIZE); 163 | offset += RKFT_OFF_INCR; 164 | size -= RKFT_OFF_INCR; 165 | } 166 | break; 167 | case 'w': 168 | while (size>0) { 169 | info("writing flash memory at offset 0x%08x\n", offset); 170 | 171 | memset(buf, 0, RKFT_BLOCKSIZE); 172 | read(0, buf, RKFT_BLOCKSIZE); 173 | 174 | send_cmd(h, 2, 0x80, 0x000a1500, offset, RKFT_OFF_INCR); 175 | send_buf(h, 2, RKFT_BLOCKSIZE); 176 | recv_res(h, 1); 177 | 178 | offset += RKFT_OFF_INCR; 179 | size -= RKFT_OFF_INCR; 180 | } 181 | break; 182 | default: 183 | break; 184 | } 185 | 186 | libusb_release_interface(h, 0); 187 | libusb_close(h); 188 | libusb_exit(c); 189 | return 0; 190 | } 191 | -------------------------------------------------------------------------------- /rockchip-flash-helper.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | use warnings; 3 | use strict; 4 | 5 | use Getopt::Long; 6 | 7 | my @files = @ARGV; 8 | my $mode = lc(shift @files) || die "usage: $0 (backup|restore|update|flash /path/to/file.img)\n"; 9 | 10 | my $cmdline = ; 11 | my $rkflashtool = '/virtual/android/android-command-line/rkflashtool/rkflashtool'; 12 | 13 | die "rkflashtool not found: $!" unless -x $rkflashtool; 14 | 15 | $cmdline =~ s/^.*mtdparts=\w+:([^\s]+)\s.*$/$1/; 16 | warn $cmdline; 17 | 18 | foreach ( split(/,/,$cmdline) ) { 19 | print "$_\n"; 20 | my ($size,$start,$name) = split(/[\@\(\)]/, $_, 4); 21 | 22 | my $cmd; 23 | 24 | my $backup_file = "$start-$size-$name"; 25 | 26 | if ( $mode eq 'backup' ) { 27 | 28 | $cmd = "$rkflashtool r $start $size > $backup_file"; 29 | 30 | } elsif ( $mode eq 'restore' ) { 31 | 32 | if ( -e $backup_file && -s $backup_file ) { 33 | $cmd = "$rkflashtool w $start $size < $backup_file"; 34 | } else { 35 | warn "SKIP $backup_file restore: $!\n"; 36 | next; 37 | } 38 | 39 | } elsif ( $mode eq 'update' ) { 40 | 41 | if ( -e "$name.img" ) { 42 | $cmd = "$rkflashtool w $start $size < $name.img"; 43 | } else { 44 | warn "SKIP $start $size $name - not found in update\n"; 45 | next; 46 | } 47 | 48 | } elsif ( $mode eq 'flash' ) { 49 | 50 | foreach my $file ( @files ) { 51 | if ( $file =~ m/$name/ && -e $file ) { 52 | $cmd = "$rkflashtool w $start $size < $file"; 53 | } else { 54 | next; 55 | } 56 | } 57 | 58 | next if ! $cmd; 59 | 60 | } else { 61 | die "unknown mode $mode\n"; 62 | } 63 | 64 | warn "# $cmd\n"; 65 | system($cmd) == 0 || die $!; 66 | } 67 | 68 | if ( $mode eq 'update' || $mode eq 'restore' ) { 69 | warn "# reboot Android\n"; 70 | system("$rkflashtool b"); 71 | } 72 | 73 | __DATA__ 74 | console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00200000 mtdparts=rk29xxnand:0x00002000@0x00002000(misc),0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00008000@0x00010000(recovery),0x000C0000@0x00018000(backup),0x00040000@0x000D8000(cache),0x00300000@0x00118000(userdata),0x00002000@0x00418000(kpanic),0x00100000@0x0041A000(system),-@0x0053A000(user) bootver=2012-08-08#1.14 firmware_ver=4.0.4 75 | -------------------------------------------------------------------------------- /system/etc/init.d/99swapon: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | # chmod 755 /system/etc/init.d/99swapon 4 | 5 | swap=/dev/block/mmcblk0p3 6 | 7 | mknod $swap b 179 3 8 | echo -n "swap $swap" 9 | 10 | echo 155 > /sys/class/leds/blue/brightness 11 | swapon $swap 12 | sysctl -w vm.swappiness=40 13 | cat /proc/swaps 14 | echo 0 > /sys/class/leds/blue/brightness 15 | -------------------------------------------------------------------------------- /update-eeepc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | # build with: m -j8 iso_img BOARD_USES_I915= BOARD_USES_I915C=true 4 | 5 | dir=`date +%Y-%m-%d` 6 | dir=eeepc 7 | a=192.168.1.32:5555 8 | 9 | test -d $dir || mkdir $dir 10 | 11 | rsync --progress -v android:/srv/android-x86/out/target/product/$dir/{kernel,initrd.img,ramdisk.img,system.sfs} $dir 12 | adb connect $a 13 | adb -s $a mkdir /sdcard/android-froyo 14 | adb -s $a push $dir /sdcard/android-froyo 15 | --------------------------------------------------------------------------------