FORUMS

Which Lockscreen Security Type Do You Use?

From pattern locks to the controversial face unlock, there are a number of different ways you … more

Xposed 3.0 Alpha 3 Released

A new alpha for the Xposed framework is out and brings several bug fixes. You’ll only need to flash … more

XDA Recap: This Week In Android (Apr 18 – 25)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more

Sunday Debate: Custom ROMs vs. Modular Tweaks

Join us in a fun Sunday Debate on Mods and ROMs. Come with your opinions and feel free to … more
Post Reply Subscribe to Thread Email Thread

[Q] Huge problem recovering my Nexus 5

19th June 2014, 10:08 PM |#1  
OP Junior Member
Thanks Meter: 0
 
More
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
 
 
19th June 2014, 10:22 PM |#2  
Senior Member
Thanks Meter: 1,091
 
More
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
The Following User Says Thank You to Zepius For This Useful Post: [ View ]
19th June 2014, 10:22 PM |#3  
Senior Member
Flag New Delhi
Thanks Meter: 70
 
More
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
The Following User Says Thank You to varuntis1993 For This Useful Post: [ View ]
19th June 2014, 11:57 PM |#4  
RoyJ's Avatar
Senior Member
Flag 203
Thanks Meter: 2,036
 
More
Quote:
Originally Posted by varuntis1993

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.
The Following User Says Thank You to RoyJ For This Useful Post: [ View ]
20th June 2014, 08:37 AM |#5  
OP Junior Member
Thanks Meter: 0
 
More
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
20th June 2014, 09:26 AM |#6  
Elluel's Avatar
Recognized Contributor
Flag えうれる
Thanks Meter: 3,189
 
More
Quote:
Originally Posted by tom_el_camino

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.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus 5 Q&A, Help & Troubleshooting by ThreadRank