Post Reply

[RECOVERY+LOKI][CWM][MDK][VZW] SCH-I545 CWM v1.0

23rd May 2013, 03:43 PM   |  #1  
garwynn's Avatar
OP Forum Moderator / Recognized Developer
Flag Chi-town
Thanks Meter: 7,551
 
4,678 posts
Join Date:Joined: Jul 2011
Donate to Me
More
DISCLAIMER:
Your device, your responsibility. I am not liable for anything you flash, including this.
As a result you'll probably want to read the rest of the thread and at least be aware of what you're flashing.
You've been warned.

CM: CWM Based Recovery for SCH-I545 (jfltevzw)

Features:
This is comes from CM as it is provided in the source repos. I will be keeping it as such at this time.
If modifications deviate from CM source we will set up a new repo.
The recovery image has already been patched using the Loki method.
This also means it is tied to MDK signature and should only be flashed on MDK.

Screenshots: None

Latest Build: v1.1
Tar/ZIP Mirror: [CWM][RECOVERY]Team SXTP CWM for Galaxy S4 (Team SXTP Site)

Flash Instructions - READ THESE CAREFULLY!!!
1) Download Zip
2) Unpack Zip and place items on your phone. Assumes you're doing commands from folder where files were extracted to.
For the sake of testing let's say /data/local/tmp like djrbliss used. (ADB push was used in that example)
Code:
adb push recovery.lok /data/local/tmp/
adb push loki_flash /data/local/tmp/
3) Go to ADB shell, su and flash using following commands: (assumes path is /data/local/tmp for Step 2)
Code:
adb shell
su
chmod 755 /data/local/tmp/loki_flash
/data/local/tmp/loki_flash recovery /data/local/tmp/recovery.lok
If successful you should see something similar to:
Code:
[+] Loki validation passed, flashing image.
2253+1 records in
2253+1 records out
9230848 bytes transferred in 0.656 secs (14071414 bytes/sec)
[+] Loki flashing complete!
Assuming you see the above, you should be ready to boot to recovery.

If you do not see this you should immediately flash the stock recovery by dd.
If you don't know how to do that, stop, ask for help. Let's try not to brick a phone doing this, okay?

Summary Changelog:
Code:
v1.1 - Correct typo on device name (in CM device tree).  Repo was still okay.
v1.0 - Initial based on Sprint progress (jf series shares same fstab)
Source:
CyanogenMod Official Repositories
Device Dependencies:
android_device_samsung_jf-common
android_device_samsung_msm8960-common
android_device_samsung_qcom-common
Verizon GS4 Device Repository

NOTE: Due to potential copyright issues I do not include a vendor repo.
You can extract the files from the phone or ROM as needed - should you decide to build on your own.

Credits:
Early Bringup Advice: Entropy512, Shabbypenguin, Cordell12
Current Advisors/Collaborators: Noobnl (CM CDMA Maintainer)
Testers: Mohogalore, robbyamor, crawj and others
Steve Kondik (Cyanogen) for CM development and jf common work
The CM maintainters who continue to improve CM along with Mr. Kondik
The crew that is Paranoid Android - Pure Hybrid!
Djrbliss for the Loki Method. (and for permission to include loki_flash in the zip!)
...and of course! You, the community, for your support as well! Thank you!
Last edited by garwynn; 28th May 2013 at 06:24 PM.
The Following 10 Users Say Thank You to garwynn For This Useful Post: [ View ]
23rd May 2013, 04:17 PM   |  #2  
garwynn's Avatar
OP Forum Moderator / Recognized Developer
Flag Chi-town
Thanks Meter: 7,551
 
4,678 posts
Join Date:Joined: Jul 2011
Donate to Me
More
OP has been updated with a Loki patched recovery image and flash instructions.

If you run into problems, STOP and post here with the issue.
Let's do this as safely as possible until we confirm some safe flashes.
Last edited by garwynn; 23rd May 2013 at 04:57 PM.
23rd May 2013, 06:10 PM   |  #3  
garwynn's Avatar
OP Forum Moderator / Recognized Developer
Flag Chi-town
Thanks Meter: 7,551
 
4,678 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Again, asking that anyone who flashes this post their results. Obviously a lot of folks watching and although it shouldn't be an issue everyone likes to wait for first outside validation before flashing.
23rd May 2013, 06:15 PM   |  #4  
NxtGenCowboy's Avatar
Senior Member
Flag Chicago,IL
Thanks Meter: 181
 
432 posts
Join Date:Joined: Dec 2007
More
If it helps at all, I used the same process for the most part. It does indeed work.

1|shell@android:/ # /data/local/tmp/loki_flash recovery /data/local/tmp/twrp.lok
covery /data/local/tmp/twrp.lok <
[+] Loki validation passed, flashing image.
2559+1 records in
2559+1 records out
10484224 bytes transferred in 0.713 secs (14704381 bytes/sec)
[+] Loki flashing complete!

only difference is I used TWRP :P

Last edited by NxtGenCowboy; 23rd May 2013 at 06:22 PM.
The Following User Says Thank You to NxtGenCowboy For This Useful Post: [ View ]
23rd May 2013, 07:17 PM   |  #5  
t3project's Avatar
Senior Member
Thanks Meter: 1,373
 
1,543 posts
Join Date:Joined: Jun 2010
Donate to Me
Quote:
Originally Posted by NxtGenCowboy

If it helps at all, I used the same process for the most part. It does indeed work.

1|shell@android:/ # /data/local/tmp/loki_flash recovery /data/local/tmp/twrp.lok
covery /data/local/tmp/twrp.lok <
[+] Loki validation passed, flashing image.
2559+1 records in
2559+1 records out
10484224 bytes transferred in 0.713 secs (14704381 bytes/sec)
[+] Loki flashing complete!

only difference is I used TWRP :P

where'd you get the twrp.lok file? following djrbliss' instructions?
23rd May 2013, 07:20 PM   |  #6  
NxtGenCowboy's Avatar
Senior Member
Flag Chicago,IL
Thanks Meter: 181
 
432 posts
Join Date:Joined: Dec 2007
More
Quote:
Originally Posted by t3project

where'd you get the twrp.lok file? following djrbliss' instructions?

No.
thats what I renamed it to since I used a twrp img
23rd May 2013, 07:36 PM   |  #7  
t3project's Avatar
Senior Member
Thanks Meter: 1,373
 
1,543 posts
Join Date:Joined: Jun 2010
Donate to Me
im losing my damn mind. someone care to explain this?

Code:
root@android:/sdcard # /sdcard/loki_flash recovery /sdcard/twrp.lok
/sdcard/loki_flash recovery /sdcard/twrp.lok
sh: /adcard/loki_flash: not found
127|root@android:/sdcard #

i get this after a chmod of loki_flash. if i dont do chmod on it it says it cannot find the file loki_flash.....wtf?

Code:
root@android:/sdcard # /sdcard/loki_flash recovery /sdcard/twrp.lok
/sdcard/loki_flash recovery /sdcard/twrp.lok
sh: /sdcard/loki_flash: can't execute: Permission denied
126|root@android:/sdcard #
Last edited by t3project; 23rd May 2013 at 07:44 PM.
23rd May 2013, 07:47 PM   |  #8  
Senior Member
Flag New Mexico
Thanks Meter: 53
 
418 posts
Join Date:Joined: Mar 2006
Quote:
Originally Posted by t3project

im losing my damn mind. someone care to explain this?

Code:
root@android:/sdcard # /sdcard/loki_flash recovery /sdcard/twrp.lok
/sdcard/loki_flash recovery /sdcard/twrp.lok
sh: /adcard/loki_flash: not found
127|root@android:/sdcard #

i get this after a chmod of loki_flash. if i dont do chmod on it it says it cannot find the file loki_flash.....wtf?

Code:
root@android:/sdcard # /sdcard/loki_flash recovery /sdcard/twrp.lok
/sdcard/loki_flash recovery /sdcard/twrp.lok
sh: /sdcard/loki_flash: can't execute: Permission denied
126|root@android:/sdcard #

Derp. What permissions are you giving it?
23rd May 2013, 07:52 PM   |  #9  
Member
Thanks Meter: 153
 
77 posts
Join Date:Joined: Jul 2010
Donate to Me
Quote:
Originally Posted by NxtGenCowboy

No.
thats what I renamed it to since I used a twrp img

I tried just renaming the .img file to .lok, but it gave me a few errors. So using djrbliss's Loki tool (much thanks!) I generated a file for the TWRP recovery.

Here is the link: twrp.lok - 10.00 MB

---------- Post added at 02:52 PM ---------- Previous post was at 02:50 PM ----------

Quote:
Originally Posted by t3project

im losing my damn mind. someone care to explain this?

Code:
root@android:/sdcard # /sdcard/loki_flash recovery /sdcard/twrp.lok
/sdcard/loki_flash recovery /sdcard/twrp.lok
sh: /adcard/loki_flash: not found
127|root@android:/sdcard #

i get this after a chmod of loki_flash. if i dont do chmod on it it says it cannot find the file loki_flash.....wtf?

Code:
root@android:/sdcard # /sdcard/loki_flash recovery /sdcard/twrp.lok
/sdcard/loki_flash recovery /sdcard/twrp.lok
sh: /sdcard/loki_flash: can't execute: Permission denied
126|root@android:/sdcard #

You have to put the files in a folder like /data/local/tmp since the sdcard folder does not allow executables contrary to the instructions provided. (At least that was my understanding when trying to debug the same issue!)
Last edited by trvrlol; 23rd May 2013 at 07:55 PM.
23rd May 2013, 07:53 PM   |  #10  
t3project's Avatar
Senior Member
Thanks Meter: 1,373
 
1,543 posts
Join Date:Joined: Jun 2010
Donate to Me
Quote:
Originally Posted by fallingup

Derp. What permissions are you giving it?

all the good ones. haha 755

Quote:
Originally Posted by trvrlol

I tried just renaming the .img file to .lok, but it gave me a few errors. So using djrbliss's Loki tool (much thanks!) I generated a file for the TWRP recovery.

Here is the link: twrp.lok - 10.00 MB

---------- Post added at 02:52 PM ---------- Previous post was at 02:50 PM ----------



You have to put the files in a folder like /data/local/tmp since the sdcard folder does not allow executables contrary to the instructions provided.

lol.....see told you i was losing it

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes