Hello everyone!
Here's another release thread for y'all!
What is this?
This is a flashable ClockworkMod recovery for the Optimus G Pro.
Special thanks to @djrbliss
You can safely flash this to your phone's recovery and enjoy modding bliss!
How do I use this, and where do I get it?
Good question!
There are two ways to use the files provided here.
To Flash to Recovery:
Download this file to somewhere on your computer https://github.com/djrbliss/loki/raw/master/bin/loki_flash
Download this file http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/gkatt-cwm-e98010g.lok
Run the following:
Code:
adb push loki_flash /data/local/tmp
adb push gkatt-cwm-e98010g.lok /data/local/tmp
abd shell
su
cd /data/local/tmp
chmod 755 loki_flash
./loki_flash recovery gkatt-cwm-e98010g.lok
To boot
Download this file: http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/gkatt-cwm-e98010g.img
Use fastboot boot to boot it
DO NOT FLASH THE .IMG FILE TO YOUR PHONE. It is only meant for fastboot booting.
Where can I find the source you used to build this?
All on my github!
http://github.com/thecubed/
Or, follow my guide here:
http://forum.xda-developers.com/showthread.php?p=43514195
What can I do with this?
Right now, the possibilities are unlimited. Once a security-lax boot.img is released, we can flash that through recovery and let the modding commence.
Please remember though, modding /system with the stock boot.img will result in a security error!
What works, and what doesnt?
I have so far tested making backup images, however I haven't tested restoring them.
I have also not tested external SD cards, since I don't have one with me at work.
Can you show me a video?
Why yes I can!
As usual, please pardon the crappy camera work.
I <3 you so much, how do I show my love?
You are so kind
I most definitely do not expect donations of any kind, however they are appreciated a lot.
I purchased this phone off-contract just to get it unlocked, if you are a kind soul and would like to send me a token of your appreciation I would love you forever.
XDA has a neat "Donate to me" button that should be on the left side of this page under my name. Donations go to purchasing new hardware to work on and other neat stuff, so they're always appreciated.
Special Thanks!
In no particular order, special thanks to all of you guys!
djrbliss
synergy
Shelnutt2
DeamonFish
If I forgot anyone, let me know and I'll add you here!
Alright guys! Let me know if you find any bugs!
Can I flash this threw dd?
Sent from my LG-E980 using xda premium
Gotroot said:
Can I flash this threw dd?
Sent from my LG-E980 using xda premium
Click to expand...
Click to collapse
We could just run Loki flash from terminal and flash that way if no adb as for the second Part we'd need fastboot on our computer
Sent from my LG-E980 using xda premium
This is some serious progress! :thumbup::thumbup:
Sent from my LG-E980 using Tapatalk 2
Btw cube external sd does work !!!
Sent from my LG-E980 using xda premium
Gotroot said:
Can I flash this threw dd?
Sent from my LG-E980 using xda premium
Click to expand...
Click to collapse
Yes you can, just do the following:
Code:
adb push gkatt-cwm-e98010g.lok /data/local/tmp
adb shell
su
dd if=/data/local/tmp/gkatt-cwm-e98010g.lok of=/dev/block/platform/msm_sdcc.1/by-name/recovery
Getting into recovery is as simple as "adb reboot recovery" or holding the proper volume keys.
I just recommend using Dan's excellent loki_flash utility since it checks to make sure you have the right bootloader in place already.
fastboot info
Would be nice to have more info on how to use fastboot with the .img file. I tried all I know with no results. Thanks!
G0bl1n said:
Would be nice to have more info on how to use fastboot with the .img file. I tried all I know with no results. Thanks!
Click to expand...
Click to collapse
Not sure what you're asking. To flash any .img file without any modifications requires our bootloader to be unlocked. What's going on here is everything needs to be "Loki'ed" so our phones are able to flash unsigned code through a custom recovery, bypassing our locked bootloader.
Fastboot is a way of testing unsigned code without having to necessarily flash it to any partitions.
Anyone correct me if I'm wrong, as I'm definitely not a developer. I just read a lot lol
thecubed said:
Hello everyone!
Here's another release thread for y'all!
What is this?
This is a flashable ClockworkMod recovery for the Optimus G Pro.
Special thanks to @djrbliss
You can safely flash this to your phone's recovery and enjoy modding bliss!
How do I use this, and where do I get it?
Good question!
There are two ways to use the files provided here.
To Flash to Recovery:
Download this file to somewhere on your computer https://github.com/djrbliss/loki/raw/master/bin/loki_flash
Download this file http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/gkatt-cwm-e98010g.lok
Run the following:
Code:
adb push loki_flash /data/local/tmp
adb push gkatt-cwm-e98010g.lok /data/local/tmp
abd shell
su
cd /data/local/tmp
chmod 755 loki_flash
./loki_flash recovery gkatt-cwm-e98010g.lok
To boot
Download this file: http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/gkatt-cwm-e98010g.img
Use fastboot boot to boot it
DO NOT FLASH THE .IMG FILE TO YOUR PHONE. It is only meant for fastboot booting.
What can I do with this?
Right now, the possibilities are unlimited. Once a security-lax boot.img is released, we can flash that through recovery and let the modding commence.
Please remember though, modding /system with the stock boot.img will result in a security error!
What works, and what doesnt?
I have so far tested making backup images, however I haven't tested restoring them.
I have also not tested external SD cards, since I don't have one with me at work.
Can you show me a video?
Why yes I can!
As usual, please pardon the crappy camera work.
I <3 you so much, how do I show my love?
You are so kind
I most definitely do not expect donations of any kind, however they are appreciated a lot.
I purchased this phone off-contract just to get it unlocked, if you are a kind soul and would like to send me a token of your appreciation I would love you forever.
XDA has a neat "Donate to me" button that should be on the left side of this page under my name. Donations go to purchasing new hardware to work on and other neat stuff, so they're always appreciated.
Special Thanks!
In no particular order, special thanks to all of you guys!
djrbliss
synergy
Shelnutt2
DeamonFish
If I forgot anyone, let me know and I'll add you here!
Alright guys! Let me know if you find any bugs!
Click to expand...
Click to collapse
If I have the old ClockworkMod, can I still do this or do I have to get rid of it somehow?
Are there any special precautions someone should take if they have this recovery already flashed to our phones?
Flashing with the latest "loki_flash" from dan's repos is segfaulting here and I'm too lazy to run it in gdb. The recovery works just fine with dd after zeroing the recovery partition out. Thanks mucho :good:
Coming from the Note I'm not use to locked bootloader.
Should we all install this if our goal is to eventually flash custom roms?
Yoreo said:
Are there any special precautions someone should take if they have this recovery already flashed to our phones?
Click to expand...
Click to collapse
Had that recovery and I had one of the first cwm Loki recoveries flashed this one just fine no issues
Sent from my LG-E980 using xda premium
acejoker25000 said:
Had that recovery and I had one of the first cwm Loki recoveries flashed this one just fine no issues
Sent from my LG-E980 using xda premium
Click to expand...
Click to collapse
Sounds good. Thanks.
madmack said:
Flashing with the latest "loki_flash" from dan's repos is segfaulting here and I'm too lazy to run it in gdb. The recovery works just fine with dd after zeroing the recovery partition out. Thanks mucho :good:
Click to expand...
Click to collapse
did the gdb backtrace:
Code:
Program received signal SIGSEGV, Segmentation fault.
0x4016ffa0 in memcmp () from /home/madmack/tmp/gdb/libs/libc.so
(gdb) bt
#0 0x4016ffa0 in memcmp () from /home/madmack/tmp/gdb/libs/libc.so
#1 0x00008868 in main ()
(gdb) bt
#0 0x4016ffa0 in memcmp () from /home/madmack/tmp/gdb/libs/libc.so
#1 0x00008868 in main ()
(gdb) quit
One of the memcmp commands is segfaulting. Perhaps @djrbliss can have a look when he gets some free time.
madmack said:
Flashing with the latest "loki_flash" from dan's repos is segfaulting here and I'm too lazy to run it in gdb. The recovery works just fine with dd after zeroing the recovery partition out. Thanks mucho :good:
Click to expand...
Click to collapse
what do you mean?
need zeroing the recovery partition before using dd to flash recovery image?
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/recovery
dd if=/data/local/tmp/gkatt-cwm-e98010g.lok of=/dev/block/platform/msm_sdcc.1/by-name/recovery
GREAT.... I can using this to "adb reboot recovery" with CWM recovery on my E988 HK version ^^
so what is next, how to try boot my custom boot kernel ???
Timisone said:
If I have the old ClockworkMod, can I still do this or do I have to get rid of it somehow?
Click to expand...
Click to collapse
I have a few a questions. When do I run the commands? Command prompt in windows? What mode does my phone need to be in to flash this?
hkfriends said:
what do you mean?
need zeroing the recovery partition before using dd to flash recovery image?
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/recovery
dd if=/sdcard/gkatt-cwm-e98010g.lok of=/dev/block/platform/msm_sdcc.1/by-name/recovery
Click to expand...
Click to collapse
It's just an extra step I like taking before flashing a partition with data that might be smaller than the original. And yes, that's pretty much what I typed.
madmack said:
It's just an extra step I like taking before flashing a partition with data that might be smaller than the original. And yes, that's pretty much what I typed.
Click to expand...
Click to collapse
another issue:
I am using loki_patch v1.5 to patch my custom build kernel
then I flash this Loki'ed kernel to my E988 (by CWM recovery) and it keep re-boot loop
(with the wording => Cause: Device Unlock, so boot success!!....) ==> it is the same Ok msg with boot to CWM recovery
which I believe if boot image LOKI'ed should be good
PS: I fixed this by re-flash the good boot image by CWM
Here is the output of the patching msg
[email protected]:/usr/android# ./loki_patch-linux-x86_64 boot aboot.img myboot.img myboot.lok
[+] loki_patch v1.5
[+] Detected target AT&T or HK LG Optimus G Pro build E98010g or E98810b
[+] Output file written to myboot.lok
[email protected]:/usr/android#
call me lazy, is there a zip file I could flash to do this from within the 2nd init recovery? :fingers-crossed:
I have never used adb before...
Related
Hey All,
Here are some PD15IMG varients. This is great for noobs who are unsure about flashing the engineering boatlader wich is highly RECOMMENDED as well as a custom recovery. Once you have achieved s-off use this file to continue your rooting process. Again this only works for those of you that currently have S-OFF!!!!
You may ask why do I need an engineering bootloader the answer is you technically don't. However, it can be your last line of defense against a soft brick and is strongly suggested by any experienced modder!!!
I have included 3 separate downloads. The first file contains ClockworkMod and the engineering bootloader. I did not offer a separate file containing just CWM 5 or just the bootloader due to a few reasons. One being I believe everybody should have the Eng. bootloader and second being this offers a true flash of a custom recovery where Rom Manager does not. If you would like just one or the other open up the zip file and delete the desired file. The second file is the most recent update offered from T-Mobile. That file will give you the update unrooted and as it is intended from T-Mobile. However, it will give you an eng bootloader with CWM 5 instead of the locked bootloader and stock recovery. Allowing you to return to another rom or previous nandroid backup. The third file is for if you ever want to go back to a stock splash image or yours begins to fail. Finally, I also added thee new ClockworkMod touch recovery with the eng bootloader for the last file.
I am not responsible for anything that may happen to your device please proceed at your own risk. I have tested this myself and it works just fine. However, if something were to happen to your device don't blame me
1.Download which file you want
2. Rename it to PD15IMG and place on the root of your SD card
3. If using the second file make a nandroid backup first.
4. Boot into H-boot and apply the update (by holding volume down and powering on the phone)
5. Once the update has finished either re-rename the file to something different or delete it from the sd card otherwise you will keep installing the update
AGAIN THIS IS FOR S-OFF ONLY
BLINGO BLAMO You now can either flash your favorite rom or restore a previous nandroid backup
The downloads
This file contains the new ClockworkMod 5.0.2.0 and the Eng H-Boot 85.2007
http://dl.dropbox.com/u/69550670/PD15IMG_eng_hboot_.zip
This file contains the Mysense update, Eng H-boot 85.2007 and ClockworkMod 5.8.1.0
http://dl.dropbox.com/u/69550670/PD15IMG_eng_hboot_touch_Recent_update.zip
THIS 2nd FILE WILL ERASE ALL FILES AND DATA ON YOUR PHONE
This File contains the original T-Mobile splash image (teejay this is for you lol)
http://dl.dropbox.com/u/69550670/PD15IMG_Splash_.zip
This file contains the ClockworkMod 5.8.1.0 TOUCH recovery along withe the Eng H-boot 85.2007
http://dl.dropbox.com/u/69550670/PD15IMG_eng_hboot_touch.zip
I hope this helps some of you out and relieves those headaches you had!!!!
So this flashes the engineering bootloader, the latest ClockworkMod recovery, and the OTA Gingerbread ROM all in one shot? I've never heard of such a package, pretty cool! :thumbs up:
EDIT: I read it again, and apparently it's just the bootloader and recovery. Still pretty cool!
TeeJay3800 said:
So this flashes the engineering bootloader, the latest ClockworkMod recovery, and the OTA Gingerbread ROM all in one shot? I've never heard of such a package, pretty cool! :thumbs up:
EDIT: I read it again, and apparently it's just the bootloader and recovery. Still pretty cool!
Click to expand...
Click to collapse
It flashes the ota too, no root tho
Gonna add adb shell root to it tomorrow too
Sent from my Google Nexus 12! yup I'm from the future
Crazy but my root stayed after flashing new radio am u jus lucky or somethin
Sent from my HTC Glacier using XDA Premium App
mjeezy13947 said:
Crazy but my root stayed after flashing new radio am u jus lucky or somethin
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
flashing a radio doesnt affect root
You're welcome, glad to help propose the idea.
How about a second version that flashes only the ENG HBOOT & CWM but leaves data/system as-is? That might also be useful for some folks.
Ah excellent, I see you edited a second version into the top post.
I will keep this method in mind any time I see someone ask the same question about an HTC phone with S-OFF. It all seems to work the same once security is removed.
mark manning said:
Hey All,
I have a fix that brings the .85.2007 Engineering bootloader as well as Clockwork mod 3.0.2.4 to those of you who are stuck without root on the new 2.3 mysense build. This is also great for noobs who are unsure about flashing the engineering boatlader wich is highly RECOMMENDED as well as a custom recovery. Once you have achieved s-off use this file to continue your rooting process. Again this only works for those of you that currently have S-OFF!!!!
I am not responsible for anything that may happen to your device please proceed at your own risk. I have tested this myself and it works just fine. However, if something were to happen to your device don't blame me
1.Download which file you want
2. Rename it to PD15IMG and place on the root of your SD card
3. Boot into H-boot and apply the update (by holding volume down and powering on the phone)
AGAIN THIS IS FOR S-OFF ONLY
BLINGO BLAMO You now can either flash your favorite rom or restore a previous nandroid backup
Thank you cmstlist for pointing me in the right direction and Bin4ry in the sensation forum for coming up with the mod, all I did is take his idea and apply it to our phone.
Bin4ry's original thread
http://forum.xda-developers.com/showthread.php?t=1122053
The downloads
This file is just the 85.2007 Eng H-boot and Clockworkmod 3.0.2.4
http://www.megaupload.com/?d=2TYRGS5J
This file contains the Mysense leak, Eng H-boot 85.2007 and Clockworkmod 3.0.2.4
http://www.megaupload.com/?d=JIJZI39L
THIS 2nd FILE WILL ERASE ALL FILES AND DATA ON YOUR PHONE
I hope this helps some of you out and relieves those headaches you had!!!!
Click to expand...
Click to collapse
I'm sorry to be so dense but can you tell me how to:
"3. Boot into H-boot and apply the update"
i thought i needed the eng bootloader to apply updates
I understand that i can enter hboot by starting up while holding [power] + [volume down], but beyond that do i choose fastboot or recovery or image crc or what?
Thank you for your patience! You have been super helpful and generous!
crouchingpossum said:
I'm sorry to be so dense but can you tell me how to:
"3. Boot into H-boot and apply the update"
i thought i needed the eng bootloader to apply updates
I understand that i can enter hboot by starting up while holding [power] + [volume down], but beyond that do i choose fastboot or recovery or image crc or what?
Thank you for your patience! You have been super helpful and generous!
Click to expand...
Click to collapse
You do not need the Eng bootloader just s-off. Once you rename the file and it is on the root of your sd card. Power off the phone and turn it back on holding volume down. The phone will the check for the file and prompt you asking if you want to apply the update. To say yes you then press the volume up button and the phone does the rest. This will give you the clockworkmod custom recovery and the engineering bootloader
Sent from my Google Nexus 12! yup I'm from the future
Might be helpful to reiterate: after you've successfully applied the zip, rename or delete the file from your SD so you don't accidentally apply it multiple times.
Sent from my Nexus One using Tapatalk
How would I know if I ask ready have the engineer bootloader?
Sent from my HTC Glacier using XDA Premium App
bmakk2055 said:
How would I know if I ask ready have the engineer bootloader?
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
Check the number in bootloader to see which you have...where it says spl at the top.
Sent from myTouch 4G
TYSVM for your help,
I feel ashamed to ask for more help but i am stuck again
i suppose i am an ADB sdk noob,
I ran the pd15img.zip successfully then I went to load CM7 following the sdk directions here:
http://wiki.cyanogenmod.com/wiki/TMobile_myTouch_4G:_Full_Update_Guide#Method_via_ROM_Manager
(great easy to follow command line tutorial, thanks so much!)
but i am stuck again :
after:
"... Make sure USB debugging is enabled on the TMobile myTouch 4G by checking Settings » Applications » Development » USB debugging.
6. On the computer, open terminal and run the following commands:
adb push busybox /data/local/tmp/
adb push gfree /data/local/tmp/
adb push hboot-eng.img /data/local/tmp/
adb push psneuter /data/local/tmp/
adb push recovery-clockwork-3.0.2.4-glacier.img /data/local/tmp/recovery.img
adb push root_psn /data/local/tmp/
adb push su /sdcard/
adb push Superuser.apk /sdcard/
adb shell
chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter
..."
I typed:
[adb push Superuser.apk /sdcard/
it replied: (1596 KB/s (196120 bytes in 0.120s)]
<- great success, everything moving along as planned
BUT:
I typed:
adb shell
$ chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter
AND: Oh No!
unable to
chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter: no such file or directory
Did i miss a step? I don't understand ; i see psneuter and psneuter.c files in the directory platform tools ...
what is chmod command, btw?
do i need to link this file to the shell or something?
I'm afraid to do anything with the phone while I'm halfway through this process, i apologize for being so very needy, but I'm super grateful for your taking the time to noob me thru this,
i promise I'll do my best to share my knowledge with the next poor noob when this is all said and done,
peace,
possum
crouchingpossum said:
TYSVM for your help,
I feel ashamed to ask for more help but i am stuck again
i suppose i am an ADB sdk noob,
I ran the pd15img.zip successfully then I went to load CM7 following the sdk directions here:
http://wiki.cyanogenmod.com/wiki/TMobile_myTouch_4G:_Full_Update_Guide#Method_via_ROM_Manager
(great easy to follow command line tutorial, thanks so much!)
but i am stuck again :
after:
"... Make sure USB debugging is enabled on the TMobile myTouch 4G by checking Settings » Applications » Development » USB debugging.
6. On the computer, open terminal and run the following commands:
adb push busybox /data/local/tmp/
adb push gfree /data/local/tmp/
adb push hboot-eng.img /data/local/tmp/
adb push psneuter /data/local/tmp/
adb push recovery-clockwork-3.0.2.4-glacier.img /data/local/tmp/recovery.img
adb push root_psn /data/local/tmp/
adb push su /sdcard/
adb push Superuser.apk /sdcard/
adb shell
chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter
..."
I typed:
[adb push Superuser.apk /sdcard/
it replied: (1596 KB/s (196120 bytes in 0.120s)]
<- great success, everything moving along as planned
BUT:
I typed:
adb shell
$ chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter
AND: Oh No!
unable to
chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter: no such file or directory
Did i miss a step? I don't understand ; i see psneuter and psneuter.c files in the directory platform tools ...
what is chmod command, btw?
do i need to link this file to the shell or something?
I'm afraid to do anything with the phone while I'm halfway through this process, i apologize for being so very needy, but I'm super grateful for your taking the time to noob me thru this,
i promise I'll do my best to share my knowledge with the next poor noob when this is all said and done,
peace,
possum
Click to expand...
Click to collapse
All of that is unnecessary, sounds like you want cm7 so just download it boot into recovery and install it.
The pd15img takes care of most of that and if you install a custom rom it will already have root
Sent from my Google Nexus 12! yup I'm from the future
Ace42 said:
Check the number in bootloader to see which you have...where it says spl at the top.
Sent from myTouch 4G
Click to expand...
Click to collapse
I don't see spl, I see hboot_0.86.0000. I used halfcab root method
Sent from my HTC Glacier using XDA Premium App
bmakk2055 said:
I don't see spl, I see hboot_0.86.0000. I used halfcab root method
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
Dies it say S-OFF OR S-ON?
Sent from my Google Nexus 12! yup I'm from the future
mark manning said:
Dies it say S-OFF OR S-ON?
Sent from my Google Nexus 12! yup I'm from the future
Click to expand...
Click to collapse
I have s off
Sent from my HTC Glacier using XDA Premium App
bmakk2055 said:
I have s off
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
Then apply my image and you'll have the eng bootloader
Sent from my Google Nexus 12! yup I'm from the future
mark manning said:
Then apply my image and you'll have the eng bootloader
Sent from my Google Nexus 12! yup I'm from the future
Click to expand...
Click to collapse
What does the eng bootloader does exactly, I'm using virtuous unity
Sent from my HTC Glacier using XDA Premium App
bmakk2055 said:
I don't see spl, I see hboot_0.86.0000. I used halfcab root method
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
My bad it's hboot, but it contains the spl that manages the phone, sorry for the mix up.
Sent from myTouch 4G
I'm new o all this stuff, so go easy with me! :silly:
If I understand correctly the root process, this should be true (correct me if I'm wrong):
Unsecure boot.img is only used to booting as root
Booting as root user allow to use some adb command
Command adb is used to modify system.img, injecting su command and superuser/supersu apk
If this is correct, can i modify a stock JB system.img and put su/superuser/supersu apk? Will this work? Then if this is right:
How can I unpack and edit system.img?
Where I can get the original su command?
Where I should download superuser/supersu apk?
I'd like to learn this stuff and do not use any external tool, apart from fastboot and adb commands. I'm quite familiar with *nix.
Thanks for helping :highfive:
uh..am i misinterpreting something here? why not just boot a custom recovery with fastboot and flash a su/supersu.apk or superuser.apk cwm zip?
sent from my i9250
bk201doesntexist said:
you will be better off building from src, if you're familiar with nix.
if not, no need to inject anything, just boot a custom recovery with fastboot and flash a su/supersu.apk or superuser.apk cwm zip.
sent from my i9250
Click to expand...
Click to collapse
Not so familiar to build system from the sorce, unfortunatly. I don't use a custom recovery... so there is no way of building my own system.img?
Gremo said:
[snip]
can i modify a stock JB system.img and put su/superuser/supersu apk?
Click to expand...
Click to collapse
Yes you could.
Gremo said:
How can I unpack and edit system.img?
Click to expand...
Click to collapse
As far as I know, you cannot unpack system.img using only fastboot and adb (which you indicated you ONLY wanted to use). I know you can use this to convert it to ext4 format and then you can mount it.
Gremo said:
Where I can get the original su command?
Where I should download superuser/supersu apk?
Click to expand...
Click to collapse
Superuser is here, or, if you prefer SuperSU, it is here.
EDIT: But this is a lot of work for nothing. You could just boot an insecure kernel (which you can get from the dev section, or you could build one yourself) and then copy the su and Superuser.apk files to your device, no?
Hey, I bring to you, Clockworkmod Recovery or commonly known as CWM for your beloved i9505 (S4). Giving your device the ability to flash your favourite custom ROMs, Kernels, Mods in the future. Thankyou to 'as i9000' for giving me the stock recovery. Note: This thread will be moved to the i9505 section once its created.
This has not been tested by me and is still experimental. I hold no responsibility
for any problems caused. YOU! Are trying this at your own risk. Don't blame me that I wasted your $700.
Put a scare in you didn't I?
I have provided the stock recovery if you encounter any issues, you can always flash back. It is Odin flashable.
Downloads:
CWM Experimental #4: http://d-h.st/ZOk
Stock Recovery: http://d-h.st/LqC
Changelog:
Code:
[I][U]Experimental #4[/U][/I]
Display fixes
recovery.fstab fix
[I][U]Experimental #3[/U][/I]
Working (everything) [B]- revert[/B]
[I][U]Experimental #2[/U][/I]
Skipped
[I][U]Experimental #1[/U][/I]
Public release
emwno said:
Hey, I bring to you, Clockworkmod Recovery or commonly known as CWM for your beloved i9505 (S4). Giving your device the ability to flash your favourite custom ROMs, Kernels, Mods in the future. Thankyou to 'as i9000' for giving me the stock recovery. Note: This thread will be moved to the i9505 section once its created.
This has not been tested by me and is still experimental. I hold no responsibility
for any problems caused. YOU! Are trying this at your own risk. Don't blame me that I wasted your $700.
Put a scare in you didn't I?
I have provided the stock recovery if you encounter any issues, you can always flash back. It is Odin flashable.
Downloads:
CWM Experimental #1: http://d-h.st/khT
Stock Recovery: http://d-h.st/LqC
Changelog:
Code:
[I][U]Experimental #1[/U][/I]
Public release
Click to expand...
Click to collapse
It does not work (it doesnt boot)...
samovog said:
It does not work (it doesnt boot)...
Click to expand...
Click to collapse
adb pull /tmp/recovery.log
emwno said:
adb pull /tmp/recovery.log
Click to expand...
Click to collapse
Cannot. Flashed Chainfires root package, now the phone reboots itself...
Does anyone have a link to a stock odin firmware so i can reflash the phone and send you that file ?
samovog said:
Cannot. Flashed Chainfires root package, now the phone reboots itself...
Does anyone have a link to a stock odin firmware so i can reflash the phone and send you that file ?
Click to expand...
Click to collapse
This: http://www.orpheusdroid.com/xda/ credit to vijai2011. Flash that, then my provided stock recovery. (if still not working, ill provide the bootloader and boot.img)
emwno said:
This: http://www.orpheusdroid.com/xda/ credit to vijai2011. Flash that, then my provided stock recovery. (if still not working, ill provide the bootloader and boot.img)
Click to expand...
Click to collapse
It does not let me flash! It says:
Unsupported dev_type
i can flash other files (recovery, ...).
samovog said:
It does not work (it doesnt boot)...
Click to expand...
Click to collapse
do not work
[email protected] said:
do not work
Click to expand...
Click to collapse
adb pull /tmp/recovery.log
I tried to pull the log:
C:\Old stuff\I9300\Odin>adb pull /tmp/recovery.log
remote object '/tmp/recovery.log' does not exist
C:\Old stuff\I9300\Odin>adb shell
[email protected]:/ $ cd /tmp
cd /tmp
/system/bin/sh: cd: /tmp: No such file or directory
2|[email protected]:/ $
Is there another path in which I could look for the log you want?
/primpa
primpa said:
I tried to pull the log:
C:\Old stuff\I9300\Odin>adb pull /tmp/recovery.log
remote object '/tmp/recovery.log' does not exist
C:\Old stuff\I9300\Odin>adb shell
[email protected]:/ $ cd /tmp
cd /tmp
/system/bin/sh: cd: /tmp: No such file or directory
2|[email protected]:/ $
Is there another path in which I could look for the log you want?
/primpa
Click to expand...
Click to collapse
Code:
adb pull /cache/recovery/last_log
Code:
adb pull /cache/recovery/log
I'll be working with ewmno to try and get a working version out. (I'm only tester :highfive: )
Annie the Eagle said:
I'll be working with ewmno to try and get a working version out. (I'm only tester :highfive: )
Click to expand...
Click to collapse
Sweet. Let me know if you guys want me to try something =)
/p
---------- Post added at 11:44 PM ---------- Previous post was at 11:27 PM ----------
emwno said:
Code:
adb pull /cache/recovery/last_log
Code:
adb pull /cache/recovery/log
Click to expand...
Click to collapse
Unfortunately it won't work either:
Code:
[email protected]:/ # cd /cache/
[email protected]:/cache # ls -l
-rwx------ system system 8 2013-04-27 23:43 hidden_volume.txt
drwxrwx--- root root 1970-01-01 01:00 lost+found
[email protected]:/cache #
I guess im gonna have to start fresh, blindly
emwno said:
I guess im gonna have to start fresh, blindly
Click to expand...
Click to collapse
Just let me know if you need me to do something to help you out with this. I'm not a programmer, but I can try stuff =)
/p
I created my own CWM using the fstab.qcom and stock recovery. Here's the last_log file....
The-Kevster said:
I created my own CWM using the fstab.qcom and stock recovery. Here's the last_log file....
Click to expand...
Click to collapse
Whats wrong with it? need to know what im looking for..
Ok. The Samsung screen loads and there's text in the top left saying "loading recovery..." this is normal on stock recovery.
The screen then goes black and the device reboots. Nothing displayed on screen. Either it fails and reboots the device or there's instructions missing so with nothing left to do it reboots.
Sent from my GT-I9505 using Tapatalk 2
The-Kevster said:
Ok. The Samsung screen loads and there's text in the top left saying "loading recovery..." this is normal on stock recovery.
The screen then goes black and the device reboots. Nothing displayed on screen. Either it fails and reboots the device or there's instructions missing so with nothing left to do it reboots.
Sent from my GT-I9505 using Tapatalk 2
Click to expand...
Click to collapse
Check your recovery.fstab and what did you use to compile CWM?
Just builder.clockworkmod. The behavior is the same as your cwm.
Anything else I can do to help?
Sent from my GT-I9505 using Tapatalk 2
The-Kevster said:
Just builder.clockworkmod. The behavior is the same as your cwm.
Anything else I can do to help?
Sent from my GT-I9505 using Tapatalk 2
Click to expand...
Click to collapse
No not yet, still figuring it out. Will post a new version, i got an idea of what may have gone wrong.
UPDATED 7-8-13
WHAT THIS TOOL DOES:
1.ROOTS YOUR GALAXY S4 (motochopper exploit created by djrbliss)
2. PREPS FOR RECOVERY
3. INSTALLS CWM OUDHS 1.0.3.4 (7/8) RECOVERY(credit to shabbypenguin)
4. INSTALLS TWRP 2.6.0.0 (credit to dees_troy)
5. Flash phone back to stock using odin
(Full Version Only)
#FOR AT&T I337 ONLY WARNING MADE#
Heres a pretty amateur video I threw together:
https://www.youtube.com/watch?v=NlK3r81kQPw&feature=youtube_gdata_player
Ive updated this to a 3 way all in one tool. Tool can root device (using motochopper by djrbliss) and install either cwm or twrp. Great tool for all those just getting started. Both CWM OUDHS 1.0.3.5 and TWRP 2.5.0.2 are auto loki. They will apply loki patch to all compatible roms and kernels flashed. You can also flash back to stock via Odin
##EDIT I HAVE RECEIVED VERIFICATION THAT TWRP WILL NOT AUTO PATCH. THIS CAME FROM DEES_TROY HIMSELF. IF YOU USE TWRP BE SURE TO FLASH A LOKI KERNEL AFTER ANY NON LOKI ROM FLASH##
A huge thanks to djrbliss for his genius
And huge thanks to dees_troy and shabbypenguin for the recoveries
Also thanks to mostyle for the script help
Instructions:
1. Download 3way tool zip
2. Unzip on desktop and open tool.
3. Connect I337 via usb with usb
debugging enabled.
4. Click Run_Me.bat select number for option you desire and enjoy!
Use this tool at your own risk. I am not responsible for any level of destruction to your phone blah blah blah
Downloads:
Full Version
https://mega.co.nz/#!o0dXHLoY!BNo2eFNQsuPN2-ivpVGo7Vk_V7ckHorY9WlK0PTqbSM
Slim Version (no odin to stock)
https://mega.co.nz/#!Q9FByZrD!CUK7RTDUzzzrH-n3rXjylhkOyy9B1gx9zHNfaKkbVJg
#EDIT# ADDED PREP FOR RECOVERY OPTION. WILL REMOVE KNOX APKS AND install-recovery.sh FOR YOU.Mirrors are welcome. Have a nice day! Dont forget to hit the THANKS button!
If youd like to buy me a beer:beer: I wont complain
Thanks for the beer:beer:list:
Scanss2k
LSUtigers03
O.K
I like to try it :fingers-crossed:
I installed the OUDHS Recovery yesterday and now either one of these will install.I'd love to have Loki'd TWRP. My phone has the same UCUAMDL
If you use either of these please let me know if it works for you.
Respond to sholsten
You mean Neither will work,
It didn't work on mine.
Ill recheck script when I get home. Worked on test devices prior to posting. Please post error messages here. ^^^^ already have yours
pakxelaos said:
Respond to sholsten
You mean Neither will work,
It didn't work on mine.
Click to expand...
Click to collapse
Neither seemed to have have installed on mine. It has the same one I installed in my above post yesterday.
sholsten said:
Neither seemed to have have installed on mine. It has the same one I installed in my above post yesterday.
Click to expand...
Click to collapse
What message did you get on tool after it ran
pakxelaos said:
Respond to sholsten
You mean Neither will work,
It didn't work on mine.
Click to expand...
Click to collapse
Did uninstall the recovery.sh file?
Fixed
On the line that issues the remount command there occurs 'Permission denied.'
In your batch file change line 25:
adb remount
Click to expand...
Click to collapse
so that it reads:
adb shell su -c "mount -o rw,remount /system"
Click to expand...
Click to collapse
Of course this assumes you are rooted..
EDIT:
Still getting an error 'Failed to open aboot for reading'
I'm investigating.. Hang on.
Will change and repost in a few
You could just install goomanger and install twrp thats been lokified directly from your rooted s4
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
bhp090808 said:
What message did you get on tool after it ran
Click to expand...
Click to collapse
Finished Rebooting into TWRP
Have a nice day!
adb is not recognized as an internal or external command, operable program or batch file.
Press any key to continue
Here's the fixed script..
Just had to su -c all of your commands...
db kill-server
adb start-server
adb shell su -c "mount -o rw,remount /system"
adb wait-for-device
adb push loki_flash /data/local/tmp
adb push openrecovery.lok /data/local/tmp
ECHO.
ECHO Doing the hard stuff.............
ECHO.
adb shell su -c "mount -o rw,remount /system"
adb shell su -c "chmod 755 /data/local/tmp/loki_flash"
adb shell su -c "./data/local/tmp/loki_flash recovery /data/local/tmp/openrecovery.lok"
Click to expand...
Click to collapse
Hope that helps. Tested it here and it works fine..
mostyle said:
Just had to su -c all of your commands...
Hope that helps. Tested it here and it works fine..
Click to expand...
Click to collapse
Will update and repost in a few thx
EDIT
Ok updated script new links are up let me know if its working for you now
MrPlNK said:
You could just install goomanger and install twrp thats been lokified directly from your rooted s4
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
How do you find the correct TWRP?
Just tried this with TWRP worked beautifully, thank you very much!! :good:
djoutrages said:
Just tried this with TWRP worked beautifully, thank you very much!! :good:
Click to expand...
Click to collapse
Make sure to thank mostyle for the script assist. Thanks bro
Tested both on my 32GB S4. Both working with no issues at all. Appreciate the work that went into this.
So if I understand this will allow you to flash a Rom that has not been Loki'd and it will loki it and allow it to boot with either TWRP or CWM?
Hello everyone!
Here's another release thread for y'all!
What is this?
This is a flashable TWRP recovery for the Optimus G Pro.
Special thanks to @djrbliss
You can safely flash this to your phone's recovery and enjoy modding bliss!
How do I use this, and where do I get it?
Good question!
There are two ways to use the files provided here.
To Flash to Recovery:
I've created an easy installer for all you Windows folks!
Download this: http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/easy-twrp-e98010g.zip
Extract it to somewhere on your computer.
Enable USB debugging on your phone, if you need the drivers I've included them in the "files/drivers" folder in the zip
Run the 'install.bat' script.
Check for any errors, if it was successful, you can 'adb reboot recovery' or use an app on your phone to get you into TWRP now!
Profit! (and realize that this was pretty easy!)
(thanks to hkfriends for pointing out the errors in my script!)
OR..
Download this file to somewhere on your computer https://github.com/djrbliss/loki/raw/master/bin/loki_flash
Download this file http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/gkatt-twrp-e98010g.lok
Run the following:
Code:
adb push loki_flash /data/local/tmp
adb push gkatt-twrp-e98010g.lok /data/local/tmp
abd shell
su
cd /data/local/tmp
chmod 755 loki_flash
./loki_flash recovery gkatt-twrp-e98010g.lok
To boot
Download this file: http://downloads.codefi.re/thecubed/lgoptimusg_pro/gkatt/recovery/e98010g/gkatt-twrp-e98010g.img
Use fastboot boot to boot it
DO NOT FLASH THE .IMG FILE TO YOUR PHONE. It is only meant for fastboot booting.
Where can I find the source you used to build this?
All on my github!
http://github.com/thecubed/
Or, follow my guide here:
http://forum.xda-developers.com/showthread.php?p=43514195
What can I do with this?
Right now, the possibilities are unlimited. Once a security-lax boot.img is released, we can flash that through recovery and let the modding commence.
Please remember though, modding /system with the stock boot.img will result in a security error!
What works, and what doesnt?
I have not tested external SD cards, since I don't have one with me at work.
I have also not tested backups or restores in TWRP yet.
Can you show me a video?
Why yes I can!
As usual, please pardon the crappy camera work.
I <3 you so much, how do I show my love?
You are so kind
I most definitely do not expect donations of any kind, however they are appreciated a lot.
I purchased this phone off-contract just to get it unlocked, if you are a kind soul and would like to send me a token of your appreciation I would love you forever.
XDA has a neat "Donate to me" button that should be on the left side of this page under my name. Donations go to purchasing new hardware to work on and other neat stuff, so they're always appreciated.
Special Thanks!
In no particular order, special thanks to all of you guys!
djrbliss
hkfriends
synergy
Shelnutt2
DeamonFish
If I forgot anyone, let me know and I'll add you here!
Alright guys! Let me know if you find any bugs!
This is killer, I love twrp. So this will just over flash the cwm currently added earlier of course correct? Awesome work m8:thumbup:
EDIT: Not sure why but the Loki flash file downloads as a. Txt file for me
Sent from my LG-E980 using Tapatalk 2
maybe i am doing something wrong, but when i get into twrp the touch does not work
Very nice work there
testing back up and restore now
rbf351 said:
maybe i am doing something wrong, but when i get into twrp the touch does not work
Click to expand...
Click to collapse
Touch doesn't work? You have the ATT version, right?
That'd be very strange if it didn't work because of something in my kernel... it's pretty much just stock...
sorry for the "newbie" question...but the file to download are getting to the phone right?
thecubed said:
Touch doesn't work? You have the ATT version, right?
That'd be very strange if it didn't work because of something in my kernel... it's pretty much just stock...
Click to expand...
Click to collapse
yup, AT&T version, but it happens when i type in adb reboot recovery
Everything works so far tried backing up restore flashing and external sd... very nice work I will keep playing to see if i find any bugs
rbf351 said:
yup, AT&T version, but it happens when i type in adb reboot recovery
Click to expand...
Click to collapse
That's weird... I've been testing with that exact command and it's not doing it.
Can you possibly pull the kernel logs and pastebin them?
Do this while you're booted in recovery:
Code:
adb shell
dmesg > /sdcard/twrp_kmsg.txt
[press ctrl-c after a few seconds]
adb pull /sdcard/twrp_kmsg.txt
Thanks!
thecubed said:
That's weird... I've been testing with that exact command and it's not doing it.
Can you possibly pull the kernel logs and pastebin them?
Do this while you're booted in recovery:
Code:
adb shell
dmesg > /sdcard/twrp_kmsg.txt
[press ctrl-c after a few seconds]
adb pull /sdcard/twrp_kmsg.txt
Thanks!
Click to expand...
Click to collapse
won't all me to do it, i get the following error
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
error: device not found
rbf351 said:
won't all me to do it, i get the following error
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
error: device not found
Click to expand...
Click to collapse
Can you check to ensure that you have the ADB driver installed for your system? It is possible that your desktop hasn't installed the ADB interface while the phone is in recovery mode.
Start -> devmgmt.msc [enter]
Look to see if you have any unknown devices or "Android Phone" entries with no driver installed. That should do the trick.
thecubed said:
Can you check to ensure that you have the ADB driver installed for your system? It is possible that your desktop hasn't installed the ADB interface while the phone is in recovery mode.
Start -> devmgmt.msc [enter]
Look to see if you have any unknown devices or "Android Phone" entries with no driver installed. That should do the trick.
Click to expand...
Click to collapse
i have the following
ADB Interface
Android Sooner Single ADB Interface
edit, that wasn't while i was in recovery mode
in recovery mode i have
other devices
LG-E980 with an exclamation
I was able to flash and get into recovery without any issues. Excellent work! Thecubed and djrbliss, you guys are awesome!
here is the pastebin
http://pastebin.com/XPYi0v44
rbf351 said:
here is the pastebin
http://pastebin.com/XPYi0v44
Click to expand...
Click to collapse
Here's an interesting question... if you flash CWM instead, and press the softkeys at the bottom of the phone (the normal back and menu buttons) does anything happen? It looks like your touchscreen is being brought up successfully (despite the "[ 8.270257 / 03-05 11:00:29.766] Reflash Completed. Please reboot." line)
If softkeys work in CWM, then it means that something in TWRP isn't registering your touchscreen right. I'll look into that, should be fairly straightforward.
If softkeys don't work in CWM... that means something more strange. That means my kernel (or the boot commands I'm using) aren't compatible with your phone... which is indeed possible, since there are many revisions of each phone. (I hope this isn't the case!)
thecubed said:
Here's an interesting question... if you flash CWM instead, and press the softkeys at the bottom of the phone (the normal back and menu buttons) does anything happen? It looks like your touchscreen is being brought up successfully (despite the "[ 8.270257 / 03-05 11:00:29.766] Reflash Completed. Please reboot." line)
If softkeys work in CWM, then it means that something in TWRP isn't registering your touchscreen right. I'll look into that, should be fairly straightforward.
If softkeys don't work in CWM... that means something more strange. That means my kernel (or the boot commands I'm using) aren't compatible with your phone... which is indeed possible, since there are many revisions of each phone. (I hope this isn't the case!)
Click to expand...
Click to collapse
CWM works perfectly, i can navigate through all the menus using the softkeys
TWRP working perfectly here for me also! thank you for this! :good:
verry nice work........would be nice to have a kind od "how to" when thing get all set.....:good:
Uhmm there is a how to..
Sent from my LG-E980 using xda premium
Gotroot said:
Uhmm there is a how to..
Sent from my LG-E980 using xda premium
Click to expand...
Click to collapse
yeah ...but i have all the file....does i have to put the phone in download mode??