0. 필요한 준비와 파일들
   1) adb 연결 가능하도록 설정
   2) perm root를 위한 파일들    



1. Temp Root 일단 임시로 Root 권한을 얻는다.

ON YOUR PC: 
Unzip the G2TempRoot files to a folder. From a cmd window or terminal, navigate to that folder and execute these commands:

Code:
$ adb push su /sdcard/su
$ adb push Superuser.apk /sdcard/Superuser.apk
$ adb push rage /data/local/tmp/rage
$ adb push busybox /data/local/tmp/busybox
$ adb push root /data/local/tmp/root
$ adb shell chmod 0755 /data/local/tmp/*
ON YOUR PHONE:
  1. Launch Terminal Emulator
  2. /data/local/tmp/rage
  3. Wait for the message: "Forked #### childs."
  4. Menu > Reset Term - Terminal Emulator will exit.
  5. Launch Terminal Emulator, it Force Closes. Launch a second time, and you'll have a root shell
  6. **NOTE**: in the original directions from the XDA thread, you are instructed to run the /data/local/tmp/root script here. DON'T do this
    just yet. Leave the terminal window open.


2. Perm Root 영구적으로 Root 권한을 지정한다.
    OTA 관련 작업은 필수 아님..

ON YOUR PC:
unzip the vision-perm-root.zip and navigate to that folder. There will be four files. You will need to push two of these to your phone- hboot-eng.img, and one of the wpthis-[..].ko files.

If you HAVE applied the OTA update, push wpthis-OTA.ko.
If you HAVE NOT applied the OTA update, push wpthis-pre-OTA.ko.

Code:
$ adb push hboot-eng.img /data/local
$ adb push wpthis-OTA.ko /data/local

ON YOUR PHONE:
You should still have terminal emulator up, at a root prompt. Now run:
Code:
    
# insmod /data/local/wpthis-OTA.ko
You should see:
Code:
   
init_module 'wpthis-OTA.ko' failed (Function not implemented)
That means it worked. This next step is CRUCIAL. You must make sure that you are writing to the proper partition here or you could brick your phone. To be absolutely clear- the partition is mmcblk(zero)p(one)(eight)

Code:
dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18
You should see some messages indicating that it was written. Next, run:

Code:
# /data/local/tmp/root
This will lock in root, and give you 'su' access in the future. Next, run: 
Code:
    
# sync

  모든 작업이 완료되고 바로 끄지 말고 안전을 위해서 몇분 기다렸다가 껐다가 켜본다.
  터미널 띄워서 #으로 Root 권한 제대로 뜨면 성공



3. Perm Root 2번으로 잘 안되면 gfree 

ON YOUR PC:

Unzip gfree_02.zip to a place on your computer. Navigate to where the files are on your computer, and type:

 $ adb push gfree /data/local

Gfree should now be in your phone at /data/local

ON YOUR PHONE:

You should still have terminal emulator up, at a root prompt from earlier.

Now run:

# cd /data/local
# chmod 777 gfree
# ./gfree -f
# sync

You now have read-write access to your /system, hboot, and recovery partitions. But you still need to "lock in" root, and give you 'su' access in the future. So just do:

 # /data/local/tmp/root
 # sync

You may see an error message along the lines of "mkdir: /system/xbin already exists", but if so you can ignore that, the rest of the script should still run ok.

Wait a few seconds for the changes to "take".

Now reboot your phone.