`
johnnycode
  • 浏览: 26966 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
Ubuntu
ubuntu@ubuntu:~$ sudo passwd root
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
ubuntu@ubuntu:~$ su
Password: 
root@ubuntu:/home/ubuntu# cd /mnt
root@ubuntu:/mnt# mkdir john
root@ubuntu:/mnt# mount -o loop /media/02DCA1A6DCA19507/ubuntu/disks/root.disk /mnt/john
/media/02DCA1A6DCA19507/ubuntu/disks/root.disk: No such file or directory
root@ubuntu:/mnt# mount -o loop /media/02DCA1A6DCA19507/ubuntu/disks/root.disk /mnt/john
root@ubuntu:/mnt# cd john
root@ubuntu:/mnt/john# ls -l
total 112
drwxr-xr-x   2 root root  4096 2011-11-11 14:48 bin
drwxr-xr-x   3 root root  4096 2011-11-12 15:44 boot
drwxr-xr-x   2 root root  4096 2011-11-11 21:49 cdrom
drwxr-xr-x   5 root root  4096 2011-07-19 12:20 dev
drwxr-xr-x 132 root root 12288 2011-11-13 13:38 etc
drwxr-xr-x   3 root root  4096 2011-11-11 21:49 home
drwxr-xr-x   2 root root  4096 2011-11-11 21:47 host
lrwxrwxrwx   1 root root    33 2011-11-11 14:50 initrd.img -> boot/initrd.img-2.6.32-35-generic
lrwxrwxrwx   1 root root    33 2011-11-11 21:50 initrd.img.old -> boot/initrd.img-2.6.32-33-generic
drwxr-xr-x  20 root root 12288 2011-11-12 15:44 lib
drwx------   2 root root 16384 2011-11-11 21:47 lost+found
drwxr-xr-x   4 root root  4096 2011-11-13 12:08 media
drwxr-xr-x   2 root root  4096 2010-04-23 10:11 mnt
drwxr-xr-x   3 root root  4096 2011-11-12 05:35 opt
drwxr-xr-x   2 root root  4096 2010-04-23 10:11 proc
drwx------  11 root root  4096 2011-11-13 08:01 root
drwxr-xr-x   2 root root  4096 2011-11-11 14:48 sbin
drwxr-xr-x   2 root root  4096 2009-12-05 21:55 selinux
drwxr-xr-x   2 root root  4096 2011-07-19 12:02 srv
drwxr-xr-x   2 root root  4096 2010-03-30 07:17 sys
drwxrwxrwt  13 root root  4096 2011-11-13 13:38 tmp
drwxr-xr-x  11 root root  4096 2011-11-12 15:44 usr
drwxr-xr-x  15 root root  4096 2011-07-19 12:19 var
lrwxrwxrwx   1 root root    30 2011-11-11 14:50 vmlinuz -> boot/vmlinuz-2.6.32-35-generic
lrwxrwxrwx   1 root root    30 2011-11-11 21:50 vmlinuz.old -> boot/vmlinuz-2.6.32-33-generic
root@ubuntu:/mnt/john# cd etc/X11
root@ubuntu:/mnt/john/etc/X11# ls
app-defaults             xinit                          Xreset.d
cursors                  xkb                            Xresources
default-display-manager  xorg.conf-backup-111112235722  Xsession
fonts                    xorg.conf-backup-111113190652  Xsession.d
rgb.txt                  xorg.conf.failsafe             Xsession.options
X                        Xreset                         Xwrapper.config
root@ubuntu:/mnt/john/etc/X11# cp xorg.conf-backup-111112235722 xorg.conf
root@ubuntu:/mnt/john/etc/X11# ls
app-defaults             xkb                            Xresources
cursors                  xorg.conf                      Xsession
default-display-manager  xorg.conf-backup-111112235722  Xsession.d
fonts                    xorg.conf-backup-111113190652  Xsession.options
rgb.txt                  xorg.conf.failsafe             Xwrapper.config
X                        Xreset
xinit                    Xreset.d
root@ubuntu:/mnt/john/etc/X11# 
ROOT JHCK root jhck
SuperOneClick v2.1.1.0
Checking drivers...
Killing ADB Server...
* server not running *

OK 0.16s

Starting ADB Server...
* daemon not running. starting it now on port 5037 *

OK 1.32s

Waiting for device...

OK 0.80s

2.2.2
Getting manufacturer...
Basewin
OK 0.02s

Getting model...
JH101
OK 0.01s

Getting version...
eng.root.20111009.100712
OK 0.03s

Checking if rooted...
False
OK 0.08s

Installing BusyBox (temporary)... - Step #1
2453 KB/s (1062992 bytes in 0.423s)

OK 0.54s

Installing BusyBox (temporary)... - Step #2

OK 0.05s

Rooting device... - Step #1
2736 KB/s (585731 bytes in 0.209s)

OK 0.31s

Rooting device... - Step #2

OK 0.02s

Rooting device... - Step #3

OK 0.02s

Rooting device... - Step #4


property service neutered.

killing adbd. (should restart in a second or two)


OK 0.05s

Rooting device... - Step #5

OK 8.10s

Remounting /system with read-write access...
OK
OK 0.24s

Creating /system/xbin...

OK 0.03s

Installing su (/system/xbin)... - Step #1
1832 KB/s (26264 bytes in 0.014s)

OK 0.19s

Installing su (/system/xbin)... - Step #2

OK 0.05s

Installing su (/system/xbin)... - Step #3

OK 0.04s

Installing SuperUser... - Step #1
1536 KB/s (196640 bytes in 0.125s)

OK 0.38s

Checking for busybox

OK 0.03s

Remounting /system with read-only access...
OK
OK 0.08s

Running a SU test... 
Success!
Don't forget to reboot!
Android EditText 聚焦时 hint消失简单代码 edittext Android EditText 聚焦时 hint消失简单代码
//1.布局文件
	<EditText
		android:id="@+id/edittext1"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:hint="请输入身份证" />
//2.代码
EditText mInfo = (EditText) findViewById(R.id.edittext1);
mInfo.setOnFocusChangeListener(new OnFocusChangeListener() {
    public void onFocusChange(View v, boolean hasFocus) {
        EditText _v=(EditText)v;
        if (!hasFocus) {// 失去焦点
            _v.setHint(_v.getTag().toString());
        } else {
            String hint=_v.getHint().toString();
            _v.setTag(hint);
            _v.setHint("");
        }
    }
});
Global site tag (gtag.js) - Google Analytics