[Android Software/Hacking General [Developers Only]] donavan01:
This guide assumes that you are on a stock Pantech Flex P8010 running either ICS (v4.0.4). or the updated JB (v4.1.2) Please note that rooting a ICS phone has been known to cause issues when trying to run the over the air update. If you have already rooted and are looking for a way to update to JellyBean please skip to the section on updating, if this isn't you keep reading.

So at this point you have decided to continue. You shouldn't run into any issues if you follow the directions and you shouldn't mess your phone up even if root doesn't take. However, in the spirit of covering ones back side....

I am not responsible for anything that goes wrong.

Jelly Bean 4.1.2 or ICS 4.0.4

This method was found by LuneBear and has not been tested by myself so I cannot personally verify its effectiveness. I did check and it seems to work with both ICS and JB but your mileage may vary. You will need to download SRSroot and install it on a Windows machine.

SRS ROOT

SRS Homepage

Make sure that USB debugging is enabled on your phone. Connect your phone via USB and run the program. Select the button for all root methods. Then you will need to select the Legolas exploit. Once everything is done (may take some time) just reboot the phone and you should be good to go.

Ice Cream Sandwich 4.0.4 ONLY

Windows Option

This method has been tried on a number of Windows versions and some work some don't so your mileage may very. This method uses Bin4ry's Root method and was orgnially discovered by aaki_rocker and is WAY LESS COMPLICATED. However please note that some users have had issues using this method with Bin4ry's latest version of the root script. It is recommended that you download an older version if you run into any issues or the root doesn't take.

First lets get some drivers on your Windows box. To do this you will need to download the Pantech PC Suite and install it.

http://c724062.r62.cf2.rackcdn.com/PantechPCSuite_1.1.1.3437.exe

Next you will need to download and extract Bin4ry's root script.

http://ul.to/z7krermj

Once you have these two files you will need to plug your phone into the PC via USB and enable the USB type as Data Mode.

Next run the Bin4ry's script and follow the directions when in doubt about what to choose select the simplest option in all cases.

If everything goes well you will have a nicely rooted phone.

Linux Option

This is not a point and click root and is not for the faint of heart. This method of rooting is based off of Bin4ry's root for ICS/JB. Changes have been made to the srcipt to allow it to work with the Flex please follow the steps below and you will have root in just a few minutes. It will probably take you longer to download the files you need than to actually root the phone.

This method has been performed successfully using Ubuntu 12.10 64bit it may work with other versions of linux but it will not work with Windows due to the driver issues and the fact that I didn't alter the windows batch file, in fact I removed any windows related files from Bin4ry's original package.

First you will need to set up the linux machine if you don't already have it. This can be done in one of a few ways you can run a live copy using a Live CD/USB boot (this will not install linux on your computer unless you tell it to) or you can install it in the standard manner or using WUBI, the third option us setting up linux in a virtual machine. If you don't know how to do this google it, there is a wealth of information out there on these subjects and probably some you can even understand without a degree in astro-physics.

Second you will need to set your phone up so that USB debug mode is turned on [settings>developer options]. Make sure you phone isnt plugged into the USB or it won't let you change the setting.

Now plug your phone into to the (linux) computer with the USB. Next you will need to set the USB computer connection type to Media Device(MTP)

In order for the computer to communicate with the phone we will need to install Android Debug Bridge (ADB) and create a couple of files.

These files will basically trick the computer into thinking it has actual drivers for the phone.

Open a terminal window, and enter the following (this will install ADB):

sudo apt-get install android-tools-adb​

Once this is done enter the following

sudo gedit /etc/udev/rules.d/70-android.rules​

Gedit will open at this point copy the the following into it and then click save and close the window.

SUBSYSTEMS=="usb", ATTRS{idVendor}=="10a9:6055", MODE="0666"​

In the terminal window enter this (yeah I know it looks the same just go with it)

sudo gedit /lib/udev/rules.d/70-android.rules​

After the window opens paste the same line of code into the file that you did in the previous files, save and close.

Test your connection by issuing the following command in the terminal window:

adb devices​

Should see something similar to:

OSCAR01111112010204	device​

Your adb is now recognizing your phone and you can now move on to the next step if you are not getting this don't even bother moving to the next step it wont work. If you don't see this check your settings and go again.

Ok so you are now ready to actually root the phone. The first thing your going to need to do is download my modified Bin4ry script. See the attached file.

After you have it downloaded you will need to extract it you can do this by opening the file manager (click on the home folder icon) and going to download. Find the file called Root_Flex.zip. Right click on it and select EXTRACT HERE. After its done extracting you should see a directory called Root_Flex. In a terminal windows enter the following:

cd Downloads/Root_Flex​

Your prompt should now look something like

user@machine_name~/Downloads/Root_Flex$​

From here just enter the command:

bash RunMeFlex.sh​

At this point you should see a bunch of junk come up and a menu asking which way you want to try to root. Type 1 and press enter. It will give you 3 errors, ignore them. It should copy a bunch of files and ask you to press restore on your phone, do it. It should ask you to press Enter to reboot the phone, do so and the phone will reboot. It should be waiting on you to press enter again dont press enter until the phone is completely rebooted and for good measure give it an extra few seconds. The script should finish and the phone will reboot again this time you should see a little box with an update appear on the phone. At this point you should be rooted. If not try the script again.

I hope this helps out a lot of folks out there. Let me know if I need to change anything in this How to or if I made any mistakes along the way.

Updating If you're already rooted

So you rooted your phone and now you want JellyBean but when you run the update you get the dead droid image and the update fails OR you live in an area that isn't covered by AT&T and you want the update, what do you do? Well thanks to some hard work by Attn1 we have a solution and its pretty simple. First off you will need to have CWM running on the phone. Now there are a few ways to go about this but the method I used was here:

http://xdaforums.com/showthread.php?t=2133857

You only need to go as far as getting CWM up an running on the phone you do not need to install it as the the update by Attn1 will take care of a full install of a better version. You will need to have a copy of Fastboot.exe and some img files. Below is a rar file that has all the necessary files to get CWM running (not installed) on the phone using windows (sorry I don't have the linux files for this one). Just unpack them into a convienent folder somewhere and follow the instructions on the link above.

http://tinyurl.com/oa2p48f

I recommend using the boot_external.img but if you do not have an external SD card and only have the internal storage just use boot_internal.img instead. This method relys on you being able to get into fast boot. If you do not have access to fastboot for what ever reason I suggest you jump ahead in the thread and read Attn1 methods for installing CWM:

http://xdaforums.com/showthread.php?t=2008888&page=44

Next get the update files from this link (second post)

http://xdaforums.com/showthread.php?t=2008888&page=47

Once you have all the files downloaded and copied everything to the appropriate SD cards on your phone your ready to go. If you don't know how to do this don't even think about anything else till you learn this. After this is all done follow the directions below (copied from Attn1's post)

Procedure if you ARE NOT running baseband JYUS06032013 (ICS Basebands) :

boot ICS CWM

flash FLEX-JB-JYUS06032013-FIRMWARE.zip from CWM

format system in CWM (will NOT wipe data, but makes sure old rom does not flash back stock recovery)

restart start recovery/adb reboot recovery (JB CWM is installed - do not try to fastboot boot ICS CWM)

flash FLEX-JB-JYUS06032013-ROM.zip from CWM.

reboot

Procedure if you ARE running baseband JYUS06032013 (JB Baseband) :

get root (Instructions HERE - use GANDALF)

install CWM (Instructions HERE)

flash FLEX-JB-JYUS06032013-FIRMWARE.zip from CWM

format system in CWM (will NOT wipe data, but makes sure old rom does not flash back stock recovery)

reboot to CWM

flash FLEX-JB-JYUS06032013-ROM.zip from CWM.

reboot

This ROM is Pantech stock with no mods other than CWM installation protection and all stock permissions and symlinks carefully maintained and consistent with the product of a successful OTA.

The firmware is also stock, with the exception of the open aboot allowing fastboot boot <bootimage>, and installation of JB CWM with nothing else added or changed. It runs well with nothing broken. You MUST be on JB firmware (below) to run it properly.

You can let the new CWM root it if you like when you exit - it will prompt you. It will also prompt you to disable CWM on reboot make sure this gets disabled or the phone will keep booting to CWM rather than the ROM.

Downloads:

md5: 1a0ca5f177bce2f4c428931616e0ecd1 FLEX-JB-JYUS06032013-FIRMWARE.zip

md5: 17c0e611ab6dfbca230571c1e40f3d14 FLEX-JB-JYUS06032013-ROM.zip

Make sure you check the md5sum on the files before you flash them if there wrong download them again this is vital.

If you need a program to check md5sums copy this .exe file to your c:\windows\system\ and run it from the command line.

http://tinyurl.com/l74wl9q

Thanks go to Bin4ry for the original script and all the technical help provided.

Check out the thread and give a thanks and donate a few bucks if you can.

http://xdaforums.com/showthread.php?t=1886460

Thanks to Atadres for getting me going in the right direction and help testing along the way.

Thanks to Esau Silva for this post that helped get the drivers working for us in Ubutnu.

http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/

Thanks to Aaki_rocker for coming up with the Windows version of this root method you can find his original post here.

http://xdaforums.com/showthread.php?t=2141538

Thanks to LuneBear for finding the root method for JellyBean.

Thanks to Attn1 for the JellyBean update and CM 10.2 version of CWM Recovery.