Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[30.10.2012][CF-Root 5.6] K**,LA*,LP-126BHJQ73SC89DEFWGKIQOTUXY,LQ-5B - su+bb+CWM4/5

11,218 posts
Thanks Meter: 86,188
By Chainfire, Senior Moderator / Senior Recognized Developer - Where is my shirt? on 30th May 2011, 09:57 PM
Post Reply Email Thread
3rd March 2016, 10:19 PM |#6791  
Junior Member
Thanks Meter: 2
I have been fighting with my GS4 SGH-M919 for a long time now. At some point in the process I downloaded philztouchwiz which was recommended on another forum for rooting the phone. Well, I got frustrated with everything and decided to format /boot, /flash/, /cache. I think I ended up reformatting everything. Now I have no backup files, no CWM, the kernel says not SEANDROID Enforcing. I'm having a really difficult time finding a repository with the proper files for my phone. I went to T-mobile and downloaded the M919 ROM and tried flashing with ODIN, but it always freezes/fails at one of two points 1) no PIT file 2) Can't open the specified file. (Line: 1876)

I essentially have a phone with no programming except philztouch and I want to get it back to stock T-Mobile firmware. Could anyone please help? I have read forums for months and tried every suggestion I've come across, so me asking is a last resort.

I would like to know how to get the right kernel, the right CWM, and the right firmware loaded onto my phone. At this point I can only boot into recovery mode (Philztouchwiz 6) and download mode. Both of which give me the "not SEANDROID Enforcing" message. The recovery mode also gives me the message "Set warranty bit." Thank you.
The Following 2 Users Say Thank You to rolyatniloc For This Useful Post: [ View ] Gift rolyatniloc Ad-Free
28th March 2016, 03:31 PM |#6792  
Junior Member
Thanks Meter: 9
Try to know the stock ROM for your phone and put it in a SD Card and flash it over whatever ROM you have, if u cant flash by the recovery (zip file) try flash by Odin, always check update drivers, but my bet is by recovery because u cant put in Adb só Odin can work, but u can try on recovery mode flash zip file on your phone or if that doesnt work, try to put in recovery mode then plug via Adb and flash by comand line on adb

Enviado de meu Moto G 2014 usando Tapatalk

---------- Post added at 02:31 PM ---------- Previous post was at 02:27 PM ----------

First try to install cwm then stock rom

Enviado de meu Moto G 2014 usando Tapatalk
The Following 5 Users Say Thank You to nuno cravo For This Useful Post: [ View ] Gift nuno cravo Ad-Free
15th August 2017, 11:43 AM |#6793  
Junior Member
Thanks Meter: 1
is it weird if my kernel version says

dpi@DELL168 #3
SMP PREEMPT Tue May7 12:33:45
KST 2013

cuz i have no idea which file i choose
The Following User Says Thank You to Primal420 For This Useful Post: [ View ] Gift Primal420 Ad-Free
15th September 2017, 10:44 PM |#6794  
Junior Member
Thanks Meter: 0
How do I root my phone?
17th September 2017, 05:34 AM |#6795  
Junior Member
Thanks Meter: 2

---------- Post added at 04:34 AM ---------- Previous post was at 04:08 AM ----------

Originally Posted by Chainfire

This rooted kernel is for the "rooting beginners" and those who want to keep as close to stock as possible. CF-Root takes the kernel from an original Samsung firmware, and just adds root, busybox, and ClockWorkMod (CWM4/5) recovery

THIS IS NOT A ROM - it is only a modified kernel. You need to have the relevant firmware already on your device. You do NOT need to wipe anything for this patch. You DO need to read the instructions. PLEASE READ THIS ENTIRE POST!

There have now been nearly 8.000.000 downloads of CF-Root for various devices (see for example Galaxy S1, Galaxy Tab 7", and Galaxy S2), and many more if you include ROMs, kernels, etc that use it. Don't be a leech, buy me a beer (and use the "Thanks" button!). Imagine if every CF-Root user had donated me $1...

Yellow triangle and flash counter
On Ice Cream Sandwich builds (only), get rid of the yellow triangle and flash counter after flashing using my Triangle Away app!

- The kernel is fully stock and taken from the original firmware, with just the following added:
- Root
- Busybox v1.16.2androidminimal (from CWM)
- Integrated CWM

CF-Root v4.1 and older
- Superuser
- "Secure" mode

CF-Root v4.2 and newer
- Superuser 3.0
- "Insecure" mode

CF-Root v5.0 and newer
- "Insecure" mode
- Superuser v3
- Busybox v1.19.2
- Integrated CWM v5
- CWM Manager v3

CF-Root v5.4 and newer
- SuperSU (replaces Superuser)
- "Fake-secure" (, but ADB is patched to run as
- Fixed ICS SD card issue

CF-Root v5.5 and newer
- CWM updated to v5.5

Instructions - ODIN (short)
- Flash CF-Root-xxx-vX.X.tar (from the attached zip) as PDA in ODIN, without repartition. Done.

Instructions - ODIN (long)
- Follow these instructions to the letter. Do not touch any buttons or checkboxes that are not listed below to touch!
- Unzip the attached
- (USB) Disconnect your phone from your computer
- Start ODIN
- Click the PDA button, and select CF-Root-xxx-vX.X.tar
- Put your phone in download mode
- (USB) Connect the phone to your computer
- Make sure repartition is NOT checked
- Click the START button
- Wait for the phone to reboot
- Done (if it took you more than 30 seconds, you need practise!)

Instructions - If you already have CF-Root
- Copy the zip file to your SD card
- Stop sharing SD card with computer over USB, unplug the cable, etc
- Applications -> CWM -> Flash kernel. Select the ZIP file on your SD card.
- Done

Other kernels
Replacing CF-Root with other kernels and vice-versa sometimes works, sometimes it doesn't. I don't have a list.

When going from CF-Root to another kernel, root will usually stay, while CWM will be lost (unless the other kernel also includes it), but there should not be issues. The CWM Manager app may remain, but probably won't do anything useful.

CF-Root includes a custom version of CWM4. I always make custom versions, as the originals often do not take some Samsung specific things into account.

CF-Root/CWM4 is NOT compatible with ROM Manager! Manage/perform your backup/restores from CWM directly or using the CWM Manager application included with CF-Root

- Booting into recovery will immediately give you CWM. The standard recovery will only be started if a Samsung package is detected.
- ADB is functional in recovery, however it may take up to a minute for it to start up after booting into recovery.
- When connected to ADB in recovery, you need to use "rootsh" command to get root, instead of "su". This will not prompt you, it will just give you root. Obviously the "rootsh" command does not work when booted normally.

NOTICE: On CF-Root before 4.0, the kernel was not backed up or restored, on 4.0 it is. This can also cause issues restoring pre-4.0 nandroid backups. In that case, use "advanced restore" inside CWM4 and restore a backup's portions one by one.

CWM Manager
Because of incompatibility with ROM Manager, I wrote and included "CWM Manager". This is a new app (as of March 30, 2011). You can find it under Applications -> CWM. It is much faster to use than manually booting into CWM and selecting these options.

- Boot to CWM
- Backup firmware
- Restore backups (CF-Root v5.0: including partition selection)
- Delete backups
- Install APKs
- Flash CWM3/4/5's
- Flash kernels (zImage, zImage in TAR, zImage in ZIP, zImage in TAR in ZIP) - without changing warning triangle status or increasing flash counter
--- without changing warning triangle status or increasing flash counter
- CF-Root v5.0: Flash complete firmwares (seperate files as well as .tar and .tar.md5 archives, dump files in /sdcard/external_sd/firmware folder)
--- without changing warning triangle status or increasing flash counter
--- can pre-root new firmwares during flash

Note: If you flash a different kernel, CWM Manager may remain installed. However, functions may not work, because they need kernel compatibility !

Custom boot / init scripts
CF-Root will execute the following scripts if present, in the order listed:

- /system/etc/init.d/* (there can be many files here, no extensions! use #!)
- /system/bin/ (busybox sh)
- /system/xbin/ (busybox sh)
- /data/local/ (busybox sh)

Please make sure you chown / chmod the scripts correctly so they can be executed. Pretty much root:root / 755.

Custom boot animations and binaries
CF-Root also supports custom boot animations:

- /system/media/
- /data/local/

And custom boot binaries:

- /data/local/bootanimation.bin

Installing busybox over the included version
It is possible to install a custom busybox over CF-Root v3.0 and newer. However, this is not without risk. CF-Root makes heavy use of scripting, and many CF-Root scripts rely on the internal busybox version. If you do install a seperate busybox version (always use "stericson" installer!), install it to /system/xbin. Installing it to /system/bin will mess things up for sure. Even if you do that part right, it may still break CF-Root, so make sure to make a backup before trying.

How ?
I wrote my own toolchain to ease patching of initramfs, and that is what all this is based on. Took me a few days to get it to this state. If this works right, however, next time it will probably take me a few hours tops

Help! Which file do I use ?
Listen closely, for I will say zis only once!

Go to Settings -> About phone -> Kernel Version. Note the string present there:

What matters most (KG1) in this case, is in bold. Try to find the matching file under downloads:

The XX and OXA identifiers are not that important. Usually a "KG1" kernel is a "KG1" kernel, and that is that. Sometimes (pretty rare) it happens there will be multiple different kernels with the same name in different firmwares, that are actually different. If this happens, they are usually only very minor changes and you should expect them to still be fully compatible. I include the "XX" and "OXA" identifiers so the very advanced users can deduce from which full firmware I have taken the kernel file.

Don't worry too much, just find the matching download and use it. What if there is no matching download ? You can ask me to make one, but I can tell you right now, I very very rarely make CF-Root's for kernels on request, unless it is the very latest kernel that has been released by Samsung. In the latter case, be sure to let me know. If there's no match and I'm not making one, try finding the closest match. You should treat "KG1" as a number, but instead of 1-9, we have 1-9, A-Z (where A would be 10, and Z would be 35). "KG2" is really close to "KG1", "KF1" is not close to "KG1" at all. I hope that makes sense.

These are general-purpose downloads. See the posts following this one for the kernels.

dpi@SWHD7406 #2
The Following 2 Users Say Thank You to rokezroker For This Useful Post: [ View ] Gift rokezroker Ad-Free
7th November 2017, 01:08 AM |#6796  
Junior Member
Thanks Meter: 2
The Following 2 Users Say Thank You to peterfeteråå For This Useful Post: [ View ] Gift peterfeteråå Ad-Free
20th November 2017, 12:26 AM |#6797  
Junior Member
Thanks Meter: 1
How to root Samsung sm-j120w ????
Without usb Or computer ? Is there any way ???? I tried kingroot, can one use Android Terminal only to root this device?
The Following User Says Thank You to kdelisl For This Useful Post: [ View ] Gift kdelisl Ad-Free
23rd November 2017, 04:40 AM |#6798  
Junior Member
Thanks Meter: 0
25th November 2017, 12:49 PM |#6799  
Junior Member
Thanks Meter: 0
Post Reply Subscribe to Thread

cf-root cwm chainfire, cwm, cwm manager, cwm root, habra cf-root 2.3.6-xwkk5, rooted stock kernel, rooting, samsung galaxy s2 root sii root, tanks.

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes