Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,329 Members 38,839 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Huge problem recovering my Nexus 5

Tip us?
 
tom_el_camino
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Oct 2013
Unhappy [Q] Huge problem recovering my Nexus 5

I'll try to keep it short and keep a clear overview.

I rooted my Nexus 5 with the Towelroot app. Everything went perfectly fine (I had to do a recovery, but after that, Nexus running smooth and it was rooted.

Then I decided to try something stupid. Alter the Nfcnci.apk so that the NFC TAG scanning app was silent instead of the end.ogg noise when scanning a NFC tag.

It all went wrong when I merged the unpacked .apk files back into a .rar and convert it to a .apk with "formatter" program.
When I tried to put the NfcNci.apk app back in the system/app folder with authorisation 664 it didn't work anymore. the stock app crashed.

The nfc part of my phone wasn't working anymore ! (when opening NFC tools, i got a NFC ERROR message... apparently, i did something wrong when trying to replace the app with my modded version)

So i did the most stupid thing I could have done: instead of putting the original NfcNci.apk file back into the system/app folder I did a hard reset recovery (go into Recovery mode, wipe data)............

Now, with my freshly recovered nexus 5..... I CAN'T GO INTO SETTINGS to turn on USB debugging (because I clearly wanted to put the original 4.4.3 image back on my phone)

so i'm stuck with a phone that :

1) is rooted.
2) doesn't go into settings so I can't turn on USB debugging
3) doesn't go onto the app store because i can't link my google account because i can't go into Settings.
4) is actualy a dumbphone now. The only thing I can do is use stock apps and call and text someone.

Could someone PLEASE put me out of my misery?

i'm litteraly crying here. I had this phone for 2 weeks.....

I want to unroot the damn thing and go back to the way it was....

Best regards,

Tom
 
Zepius
Old
#2  
Senior Member
Thanks Meter 1,078
Posts: 2,849
Join Date: Mar 2011
1) questions go into the Q&A forum.

2) you shouldnt mod stuff when you're not sure what you are doing

3) factory reset in recovery does not fix any mods you have made to /system, it only wipes data.

4) follow this to go back to stock: http://forum.xda-developers.com/goog...image-t2513701
Go back to stock on your nexus 5 using this guide: here

Tired of paying too much money for your phone plan? go prepaid!

Save money on refills for your prepaid plans: Use Callingmart

-Zep
The Following User Says Thank You to Zepius For This Useful Post: [ Click to Expand ]
 
varuntis1993
Old
#3  
Senior Member
Thanks Meter 51
Posts: 306
Join Date: Apr 2013
Location: New Delhi
Fastboot doesn't need usb debugging on. Flash the stock files with fasboot. You will get back to stock but ur data will get erase.
or simply just flash the system.img which won't erase ur data

Code:
fastboot flash system system.img
Devices
Nexus 5- 32Gb D821
Nexus 7 2013-16Gb flo
The Following User Says Thank You to varuntis1993 For This Useful Post: [ Click to Expand ]
 
RoyJ
Old
#4  
RoyJ's Avatar
Senior Member
Thanks Meter 1,434
Posts: 2,500
Join Date: Apr 2012
Location: 203
Quote:
Originally Posted by varuntis1993 View Post
Fastboot doesn't need usb debugging on. Flash the stock files with fasboot. You will get back to stock but ur data will get erase.
or simply just flash the system.img which won't erase ur data

Code:
fastboot flash system system.img
Yup, just pull the stock factory image from Google developers website and unpack it. Put system.img into your fastboot directory. Use CMD (assuming you're on Windows) and CD to that location and fastboot flash system system.img, like he said.

If you have trouble with fastboot follow the first link given to you.
*Click for device info
 

ROM: All of them at least once
KERNEL: Bricked Stable
RECOVERY: TWRP 2.3.6.4
Other Devices: Galaxy Nexus
The Following User Says Thank You to RoyJ For This Useful Post: [ Click to Expand ]
 
tom_el_camino
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Oct 2013
Thumbs up thanks

Thank you all very much for your help.

I managed to put the stock img back to my phone.

the problem was that my phone wasn't unlocked, therefore I couldn't enter the fastboot command lines.

Phone is back to stock 4.4.3.

@Zepius you are right, you shouldn't mod stuff if you don't know what you are doing, but you do have to go through a learning process... you also had to do it for the first time once, right?

I think my big mistake was, not to follow the amazing guides here in XDA on how to root, change apk's etc etc...

one more question. IF you take a stock app (NfcNci.apk) do you have to sign it to be able to get it to work?

All i wanted to do was unpack the apk, change a sound file and repack it so that the darn NFC tag doesn't make that sound when I scan a tag, waking up my wife when i put it to sleep mode...

well, guess i'll hang the tag somewhere outside of our room


again, thank you all for your help and not bashing me.

Tom
 
Lethargy
Old
#6  
Lethargy's Avatar
Senior Member
Thanks Meter 1,385
Posts: 2,607
Join Date: Jan 2014
Location: Sydney, Australia
Quote:
Originally Posted by tom_el_camino View Post
I think my big mistake was, not to follow the amazing guides here in XDA on how to root, change apk's etc etc...

one more question. IF you take a stock app (NfcNci.apk) do you have to sign it to be able to get it to work?
Don't sign system apps, just take the AndroidManifest.xml and META-INF folder out of the original .apk, open the modified one with 7zip or your alternative and paste it in.
Quote:
Originally Posted by kyphur
You ask us to understand your position. Well if you want to benefit from our experience and time then I think it is only fair that you understand our position.
I actively add ignorant people to my ignore list.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes