Hey my samsung galaxy s3 was bricked when I tried installing a kernal for a jb rom and I restored it to stock in odin.
Right now its just stuck on the Samsung Boot logo and the blue led is shown but it wont boot up. What do i do?
Reflash. By chance, can you get into recovery?
Sent from my SAMSUNG-SGH-I747 using xda premium
No, not at all. When i hold volume up + power + home it vibrates twice and turns off and does the same thing when I hold it which makes it turn on. I can get to download mode though
Sent from my SAMSUNG-SGH-I747 using xda premium[/QUOTE]
Use the ota in this guide: http://forum.xda-developers.com/showthread.php?t=1895100
It's lg1 then just accept the ota after you do it to get to lh9.
Sounds like you just flashed a bad ota.
smokin1337 said:
Use the ota in this guide: http://forum.xda-developers.com/showthread.php?t=1895100
It's lg1 then just accept the ota after you do it to get to lh9.
Sounds like you just flashed a bad ota.
Ok i have an AT&T galaxy s3 so i just download the Calg1 and then download a Bell image and follow the instructions?
Click to expand...
Click to collapse
Ok so ive finished the installation of the CALH1 on odin but my phone is still on the boot logo. What do i do now?
Not lh1 here:
Flash this in odin: http://d-h.st/u2B <<< AT&T lg1
Thats the image i used to get back to stock with root. After that flashes the system will boot and say there is an update if you want the latest os then install rootkeeper from play store and run it that will preserve root. Once you run rootkeeper accept the update and that will get you to lh9 the latest os.
smokin1337 said:
Not lh1 here:
Flash this in odin: (had to remove the link to post) <<< AT&T lg1
Thats the image i used to get back to stock with root. After that flashes the system will boot and say there is an update if you want the latest os then install rootkeeper from play store and run it that will preserve root. Once you run rootkeeper accept the update and that will get you to lh9 the latest os.
Click to expand...
Click to collapse
The install finished and my phone is still on the samsung boot logo after it rebooted from flashing the image the. I've been waiting for it to come to the home screen but it hasn't done anything but glow. Any other options..?
Did you try to flash the stock rooted kernel for your phone?
Sent from my SGH-I747 using xda app-developers app
liltitiz said:
Did you try to flash the stock rooted kernel for your phone?
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
No, not yet i cant really get into clockwork recovery at all if you read my post above. I got into this whole mess by flashing a kernal on a jb rom whe i was rooted and i probably shouldnt have because it bricked my phone. But ive done almost everthing above and now im willing to do anything to get my phone back up and running. Will flashing the kernal for it fix it?
Yes, if you can find a way to enter download mode flash a stock rooted kernel and a stock ROM. You may need a jig to enter download mode
Sent from my SGH-I747 using xda app-developers app
liltitiz said:
Yes, if you can find a way to enter download mode flash a stock rooted kernel and a stock ROM. You may need a jig to enter download mode
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
I can enter download mode without a problem all i need is the kernal you said which would possibly fix my phone.
The lg1 update i gave you has the boot.img (kernel) with it. It is everything, boot.img, system, modem, etc. Sounds bad but are you sure you are using odin correctly ?
smokin1337 said:
The lg1 update i gave you has the boot.img (kernel) with it. It is everything, boot.img, system, modem, etc. Sounds bad but are you sure you are using odin correctly ?
Click to expand...
Click to collapse
Yes I think so, i run odin with administator tick auto reboot and F. Reset time click PDA and located the root69.stock_ATT_I747UCALG1.tar (the old boot img you gave me) and connect my phone while it is in downloading mode and press start. Is that right?
You need to find a way to wipe
Data and cache and dalvik
Sent from my SGH-I747 using xda app-developers app
liltitiz said:
You need to find a way to wipe
Data and cache and dalvik
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
Can you even do that on a bricked phone? Is there a program I can do it through? I can't load my clockwork recovery at all.
Did you try the toolkit?
Sent from my SGH-I747 using xda app-developers app
Hope this helps. I had a similar issue once where the phone gets stuck at the Samsung logo. What I did was booted into stock recovery and did a wipe cache and wipe data. The phone booted up successfully after that.
U can also flash CMW through ODIN and do all the wipes (dalvik,cache and data) and I'm pretty sure ur phone will boot up.
liltitiz said:
Did you try the toolkit?
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
A toolkit for the phone? Im still a little new to the android terms but could you link me to the toolkit?
http://forum.xda-developers.com/showthread.php?p=28175077
Here you go
Sent from my SGH-I747 using xda app-developers app
Related
Hopefully it's not a dumb question but I can't find the answer anywhere else.
I have a rooted phone w/ CWM and faux's kernel.
No 3rd party ROM installed.
I got the update today. Can I install the update with the kernel or will that do bad things to my phone?
Do I have to go back to a stock kernel and recovery to do that update or is going back to a stock kernel good enough?
I don't mind losing root, I can always reroot it. I just don't want to do something stupid to my phone.
knurdle said:
Hopefully it's not a dumb question but I can't find the answer anywhere else.
I have a rooted phone w/ CWM and faux's kernel.
No 3rd party ROM installed.
I got the update today. Can I install the update with the kernel or will that do bad things to my phone?
Do I have to go back to a stock kernel and recovery to do that update or is going back to a stock kernel good enough?
I don't mind losing root, I can always reroot it. I just don't want to do something stupid to my phone.
Click to expand...
Click to collapse
You definitely have to go to stock recovery...i also went back to stock kernel too..then applied them back without error after update
Sent from my SGH-T989 using xda premium
Thanks, another possibly stupid question.
Is there only one stock recovery or are there different versions between the UVKL1 and UVKID recovery?
Will this recovery work with my UVKL1 phone?
http://forum.xda-developers.com/showthread.php?t=1319830
It's the same. To prevent having issues, I recommend doing a factory reset before flashing back to stock.
Just back up whatever you don't want erased. You don't have to worry about the external sd, the reset won't touch that.
Sent from my SGH-T989 using xda premium
Can you flash a different kernel after installing the latest update? Yes. Should you if you want a flawless ICS update this Monday and possibly avoid a brick? Probably not. Up to you.
Simply put, NO. As mentioned above Odin fully back to unrooted stock for he update to flash properly. Otherwise you'll have a soft brick on your hands.
Sent from my SGH-T989 using xda premium
Can we just flash a stock rom and Odin the update? Is their a tutorial somewhere on the easiest way to get the uvdle update
Sent from my SGH-T989 using XDA
tdizzle404 said:
Can we just flash a stock rom and Odin the update? Is their a tutorial somewhere on the easiest way to get the uvdle update
Sent from my SGH-T989 using XDA
Click to expand...
Click to collapse
You can just Odin the update from where you are now. Just super wipe first.
Sent from my SGH-T989 using xda premium
Towle said:
You can just Odin the update from where you are now. Just super wipe first.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
everytime i odin the update i have to pull battery cuz it bootloops..then boot into recovery wipe cache and dalvik then reboot and it boots. is that normal?
tdizzle404 said:
Can we just flash a stock rom and Odin the update? Is their a tutorial somewhere on the easiest way to get the uvdle update
Sent from my SGH-T989 using XDA
Click to expand...
Click to collapse
Also, if you're on ICS right now, you may get boot loops after flashing back to stock. Just do a factory reset in recovery and you're good to go.
Sent from my SGH-T989 using xda premium
k786 said:
everytime i odin the update i have to pull battery cuz it bootloops..then boot into recovery wipe cache and dalvik then reboot and it boots. is that normal?
Click to expand...
Click to collapse
It depends what you're coming from and how/if you wiped your phone.
Sent from my SGH-T989 using xda premium
Towle said:
It depends what you're coming from and how/if you wiped your phone.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
i was gonna follow these steps..
superwipe
wipe cache dalvik
power off
go to download mode
odin stock
are those fine? or do you recommend some other steps?
Questions go in the Q&A section
k786 said:
i was gonna follow these steps..
superwipe
wipe cache dalvik
power off
go to download mode
odin stock
are those fine? or do you recommend some other steps?
Click to expand...
Click to collapse
That looks fine. If you're on ICS and reboot after wiping to get into download mode, some apps will automatically install on first boot so you will get boot loops after you flash back to stock. That's fine if you do, just do a factory reset in recovery.
Sent from my SGH-T989 using xda premium
Just as a follow up to my own thread.
I followed this guide to go back to stock and then did the maintenance update.
http://rootzwiki.com/topic/16727-howto-restore-stock-rom-recover-bad-flashes/
I backed up everything just in case but I didn't lose any data and it took about 10 minutes to do everything.
I'm just going to run stock until I get ICS and then reroot again.
I can get to downloading mode but recovery mode, I get stuck on an Android logo lying down with a red exclamation mark. I had failed to convert to yakju through fast boot, I got stuck to Google logo back then and also no recovery mode. Then I tried the toolkit and everything is working smoothly except for the recovery mode. What should I do? How can I get that working?
Sent from my Galaxy Nexus using xda app-developers app
What I would do is use the tool kit in these forms to install the recovery it seems like you have lost your recovery , that's what happens when you lose your recovery you get the Android guy lying down. When using the toolkit make sure you follow the instructions exactly! If you don't it will default and you will lose recovery.
---------- Post added at 07:12 AM ---------- Previous post was at 07:10 AM ----------
Also just a little bit of information in the toolkit you have an option to rename your stock recovery if you don't do this and use this option it will default in rewrite over your recovery the stock recovery .
Thanks!
Is there a risk of losing any data while using the toolkit to install stock recovery?
About renaming, I don't really understand. Do I need to rename the stock recovery I'm going to install? If I don't use the rename option, what do I lose? Could you please explain this part a bit. Thanks again!
Sent from my Galaxy Nexus using xda app-developers app
Download the G nex tool kit I believe it's version 7.8 it explains everything just do some reading and what I mean about the recovery is the stock recovery has to be renamed for you to install a recovery or it will not work if you read the gnex toolkit it explains the whole thing. No you do not have to rename the recovery you're installing. The option to rename the stock recovery that comes with your phone is in gnex toolkit. I think it's option 3 maybe? Trust me read the notes that come in the toolkit is very easy!
You haven't lost recovery, that's just stock recovery, you need to remove the file that puts it back on every reboot (search or there's an option in the toolkit if you must) then fast boot flash Cwm or twrp and you are set
I have tried both "Installing Stock Recover" and "Renaming" and both got me to the same lying down Android with the red exclamation mark. What else should I try?
M_Shaaban said:
I have tried both "Installing Stock Recover" and "Renaming" and both got me to the same lying down Android with the red exclamation mark. What else should I try?
Click to expand...
Click to collapse
You need to do renaming then install twrp or Cwm recovery, stock recovery is useless to you, that's what the Android on its back is.
Why stock is useless to me? I don't want CWM, I want to have stock recovery, is there a way?
Sent from my Galaxy Nexus using xda app-developers app
M_Shaaban said:
Why stock is useless to me? I don't want CWM, I want to have stock recovery, is there a way?
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
You can't flash anything in stock other than factory reset and allow the phone to self install OTAs..
I understand and I want to keep the stock recovery and to get it to work to be able to install OTA directly. How do I get it to work? I have to install CWM then I'd be able to switch back to stock? I'm lost
Sent from my Galaxy Nexus using xda app-developers app
Working now, thanks everyone!
Sent from my Galaxy Nexus using xda app-developers app
stock recovery
M_Shaaban said:
Working now, thanks everyone!
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
how do u get it done? can u pls teach me how to get back to stock recovery
d_dee said:
how do u get it done? can u pls teach me how to get back to stock recovery
Click to expand...
Click to collapse
If you have the picture of the Android on its back, that's the stock recovery.
Just press volume down + power button, you will get the menu
M_Shaaban said:
Just press volume down + power button, you will get the menu
Click to expand...
Click to collapse
Ah yes, that too. I had forgotten how to navigate the stock recovery
Hi everyone. I am on the stock rom UVALH2, rooted, with a custom kernel. Can someone please help me flash back the proper kernel so I can update to JB?!
I will be in debt to you forever..
I just tried the OTA update to the newest kernel which failed and brought me to CWM. What do I need to do here?
You must be UVALJ4 to use the ota.
I suggest using odin w/ the fw I have in my fw/ota thread.
Sent from my SGH-T999 using xda app-developers app
Chicago281 said:
Hi everyone. I am on the stock rom UVALH2, rooted, with a custom kernel. Can someone please help me flash back the proper kernel so I can update to JB?!
I will be in debt to you forever..
I just tried the OTA update to the newest kernel which failed and brought me to CWM. What do I need to do here?
Click to expand...
Click to collapse
Just Odin to the rooted JB. TMO T999UVDLJA. Make sure you do factory wipe after install!!!!
You can get it here
http://forum.xda-developers.com/showthread.php?t=1771687
mattedwards2686 said:
Just Odin to the rooted JB. TMO T999UVDLJA. Make sure you do factory wipe after install!!!!
You can get it here
http://forum.xda-developers.com/showthread.php?t=1771687
Click to expand...
Click to collapse
I've never used ODIN before. Can you give me the newbie play by play book? Download Odin, flash the TMO T999UVDLJA 4.1.1 image?
Chicago281 said:
I've never used ODIN before. Can you give me the newbie play by play book? Download Odin, flash the TMO T999UVDLJA 4.1.1 image?
Click to expand...
Click to collapse
My FW thread has step by step instruction.
Sent from my SGH-T999 using xda app-developers app
I'll have to try that. I flashed my old UVALH2 kernel back and then went to update. Downloaded the 335mb file but the signature verification failed and it booted to CWM. Is it because I am rooted or not on the latest UVAXXX?
Just go to Samsung updates download the whole Odin tar and just Odin it.. That's the best way
Sent from my SGH-T999 using xda app-developers app
Faster to download it from my thread. Plus root66 is out too!
Sent from my SGH-T999 using xda app-developers app
Found the FW thread. Need help extracting the .tar from the .7z file I downloaded. I also have Odin ready to go as well.
I'm a little confused here guys. I'm on Doc's Firmware thread and I've downloaded Odin. I also have downloaded root66_TMO_T999UVDLJA.7z . However I'm stuck on how I extract the .tar file from that?
Www.7zip.org
Download and install 7zip and use it to extract.
Sent from my SGH-T999 using xda app-developers app
Okay doing that now. Now it seems when my phone is in CWM odin doesn't pickup/recognize the phone. However when the phone is on normally odin detects it.
-----Look Below-----
Going to do a full rundown so anyone can help me here. When I originally rooted the phone I used some type of tooklit (Looked like a green version of MS-DOS). I've always had the stock rom. I've always used CWM to flash different kernels. Right now in About Phone I'm on baseband T999UVLH2 with kernel version [email protected] #1
I'm trying to get Jelly Bean 4.1 as a clean install. Not worried about keeping root at the moment either. I have root66_TMO_T999UVDLJA.tar.md5 downloaded which I am trying to push through Odin. However when I reboot my phone into CWM and connect the USB cable Odin doesn't recognize my phone. I'm willing to try anything at this point as this is frustrating me beyond belief.
You need download mode not recovery.
Same procedure but vol down instead.
Hold volume down, home and power to boot into download mode. Press vol up when prompted. Then odin will work.
Sent from my SGH-T999 using xda app-developers app
I feel so stupid.. Thank you for that as well! (Can I buy you a beer?) Okay I did that Odin is now pushing root66_TMO_T999UVDLJA.tar.md5. After this is done will Jelly Bean be on the phone? Should I wipe anything to get rid of the old firmware/files?
Success! Android 4.1.1 is now running with what appears to be the most updated kernel/baseband! Now should I do any type of wipe to get rid of any old files that could slow the phone down? What happens to the old firmware stuff?
Chicago281 said:
I feel so stupid.. Thank you for that as well! (Can I buy you a beer?) Okay I did that Odin is now pushing root66_TMO_T999UVDLJA.tar.md5. After this is done will Jelly Bean be on the phone? Should I wipe anything to get rid of the old firmware/files?
Click to expand...
Click to collapse
factory wipe after install, then u should be good to go.
Sent from my SGH-T999 using xda premium
koolboyztn said:
factory wipe after install, then u should be good to go.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Factory wipe under CWM? Will it make me lose my apps/contact info? I suppose I could always do a titanium backup.
Factory reset wiil wipe apps and user data. Not necessary but I do recommend it when updating android. Just makes for reduced potential for problems.
Reset in cwm or twrp does not wipe internal sd. Stock recovery will though.
Sent from my SGH-T999 using xda app-developers app
If you downloaded the root66 zip file you just use winrar and choose extract. It will or at least should unzip to its own folder. After that just follow the directions to use Odin.
when i am prompted to install the update it reboots and stops at cwm. I am not rooted though. I plan on getting the s4 w my upgrade in a few days or when its available. Do i need to remove something first?
You need to get stock recovery back on so that you can flash the update
If you have cwm then it means that you rooted at some point, so you gotta get that back on
Look for the "ODIN 1 clicks" thread and flash one of those, it resets everything > flash counter, stock rom, and stock recovery too (if i remember correctly) all in one
CNexus, You forgot the link to your thread: http://forum.xda-developers.com/showthread.php?t=2209418!
Sent from my SPH-L710 using xda app-developers app
topherk said:
CNexus, You forgot the link to your thread: http://forum.xda-developers.com/showthread.php?t=2209418!
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Its in my sig
I cant flash a rom and have it work. I have tried several ROMS like aokp, jedi, smooth, jellybeans, etc and they almost always brick. Jedi worked but google services crashed back to back to back to the point where i couldnt even use the phone. does anyone know of a 4.3 rom that works on att sgh-i317?? i basically went down the list on galaxynote2root.com and tried them all but no success.
I have root, have TWRP installed and flash the rom and it bricks. i factory reset first, then install and nothing.
any ideas?
All of the roms on this forum work.. What are your exact steps?
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Kreateablaze said:
All of the roms on this forum work.. What are your exact steps?
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
Have they been tried on sgh-i317?
I did these exact steps:
Rooted phone and installed TWRP recovery
put AOKP Rom on SD card and booted into recovery mode
Wiped/Factory reset through recovery
rebooted into recovery
installed AOKP ROM
booted and bricked- hangs at "X" aokp bootup screen
Have you installed gapps after flashing an aosp rom? I am running carbon rom right now... Earlier today I was on aokp. I have used them all and I have a I317. An att note 2
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Kreateablaze said:
Have you installed gapps after flashing an aosp rom? I am running carbon rom right now... Earlier today I was on aokp. I have used them all and I have a I317. An att note 2
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
does not having the gapps installed prevent the phone from booting? ive booted a rom before without gapps and it booted.
was there something wrong with my steps? did you use the aokp milestone or nightlies? where did you get the carbon rom? its all good?
I used the latest aokp nightly. And right now I'm running the newest carbon nightly. I got it from the op of the carbon thread.
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Kreateablaze said:
I used the latest aokp nightly. And right now I'm running the newest carbon nightly. I got it from the op of the carbon thread.
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
What were your steps? what recovery were you using? im just so confused why my phone bricks every time
I'm using the latest version of twrp recovery. Try updating it?
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Download your rom and gapps again using a PC...
Then place the files to your SD using a card adapter if no USB connection is possible...
Then fully wipe the device again from within the latest version of TWRP recovery and flash the new downloads ...
You may have a bad flash ...and you are not bricked...g
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
gregsarg said:
Download your rom and gapps again using a PC...
Then place the files to your SD using a card adapter if no USB connection is possible...
Then fully wipe the device again from within the latest version of TWRP recovery and flash the new downloads ...
You may have a bad flash ...and you are not bricked...g
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I did those exact steps and it did not work. i tried flashing pac man rom the last time and it got stuck in a boot loop too. I think there are some files that are corrupt or some temp files somewhere that are preventing a successful flash. my binary flash count was 9. and that was just on this run, ive tried flashing several times before. each time the only way to recover it is hooking the phone up to a pc and using kies to flash back to stock firmware. this sucks.
What version of twrp are you using? I have never had this issue you are having and I have flashed every rom on this forum for our device.
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
igotta67bug said:
I did those exact steps and it did not work. i tried flashing pac man rom the last time and it got stuck in a boot loop too. I think there are some files that are corrupt or some temp files somewhere that are preventing a successful flash. my binary flash count was 9. and that was just on this run, ive tried flashing several times before. each time the only way to recover it is hooking the phone up to a pc and using kies to flash back to stock firmware. this sucks.
Click to expand...
Click to collapse
9 counts ??
Uh....yeh...not right ...
Have you messed with device partitions in ODIN ??
If so...something is definitely wrong ...
At this point ...you may want to consider a full return to stock and allow the PIT to properly restore your partitions..
Just follow the return to stock guide (sticky )...in the general section ..
Once restored to stock with a corrected flash counter you can begin again using CF auto root as your root method..
It sounds as if you have root issues and possible partition damage...
One other step you can try first is to boot into download mode and re-root using CF...
That may help....but certainly won't hurt anything...then attempt a clean flash again..
If it fails ...then the return to stock and rooting again seems prudent ...g
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
Ok ill try that. When I do the sticky method is that different than using kies to flash to stock? Kies is supposed to wipe everything and reload stock firmware. I agree the partitions are corrupt somewhere
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
igotta67bug said:
Ok ill try that. When I do the sticky method is that different than using kies to flash to stock? Kies is supposed to wipe everything and reload stock firmware. I agree the partitions are corrupt somewhere
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
Are u wiping data and system as well in recovery. If you're running TW and u switch to AOSP without wiping everything.....the results most likely wouldn't b pretty
Sent from my SAMSUNG-SGH-I317 using Xparent Skyblue Tapatalk 2
I'm doing a factory reset--> "swipe to wipe". Do I need to do something else?
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Kies is not the method I use in returning to stock...as I don't trust it..
Odin is my first choice ...
Using Odin to flash a factory rom will wipe everything as well ...and is far more reliable ...IMHO...g
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
gregsarg said:
9 counts ??
Uh....yeh...not right ...
Have you messed with device partitions in ODIN ??
If so...something is definitely wrong ...
At this point ...you may want to consider a full return to stock and allow the PIT to properly restore your partitions..
Just follow the return to stock guide (sticky )...in the general section ..
Once restored to stock with a corrected flash counter you can begin again using CF auto root as your root method..
It sounds as if you have root issues and possible partition damage...
One other step you can try first is to boot into download mode and re-root using CF...
That may help....but certainly won't hurt anything...then attempt a clean flash again..
If it fails ...then the return to stock and rooting again seems prudent ...g
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
OK, so i followed these steps perfectly and it did not work. GOt Stuck in a boot loop again. something is corrupt. i used the latest version of clockwork mod and tried to install the latest AOKP nightlies. :crying:
Alright ...
Do you mean that you returned to stock ??
And have rooted again ...??
If yes ..we can dig deeper ...and if not ...proceed with full unroot...g
Sent from my SAMSUNG-SGH-I317 using XDA Premium 4 mobile app
I used the sticky on turning your phone back to stock which used odin. I followed that list perfectly which said to flash stock using odin, root using cf then using triangle away, then super user to fully unroot. Then I installed clockword mod recovery, booted to recovery mode, cleared all cache and davlik and factory reset again, then installed the aokp and it got stuck in a boot loop
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Here's what I do with twrp when flashing a rom.
Go to wipe menu and then advanced wipe and select dalvik, cache, data, system and internal(optional). I do it three times to make sure. then flash your rom with gapps (if aosp)