Adb push - Nexus 5 Q&A, Help & Troubleshooting

I know how to use adb and I'm not too inexperienced with it. Is there a way that I could push files to the system partition without having root on the device? I'm on stock ROM and I do not want to unlock the boot loader or root it, I just need to push a file to the system partition.
Sent from my Nexus 5 using XDA Premium 4 mobile app

I am pretty sure you can only push files to the SD card without root. Rooting/ unlocking doesn't hurt. Try helium for a backup.

I know it doesn't hurt, I just came back to the stock ROM after using my own compiled ROM. I just didn't want to mod it except that one file, thanks though
Sent from my Nexus 5 using XDA Premium 4 mobile app

You should be able to do it in custom recovery
Sent from my Nexus 5

Am I able to boot into one without flashing it while my bootloader is locked? I do not want to unlock my bootloader
Sent from my Nexus 5 using XDA Premium 4 mobile app

Not without unlocking your bootloader.
Sent from my Nexus 5 using Tapatalk

Okay, if I decide to unlock, I can use adb to backup my data partition before the unlock and then restore it after I unlock right?
Sent from my Nexus 5 using XDA Premium 4 mobile app

Hmmm. Not sure if you can access /data without root via adb. Helium backs everything up so maybe it can. Try it. Im never unrooted enough to know
Sent from my Nexus 5 using Tapatalk

Sparx639 said:
Okay, if I decide to unlock, I can use adb to backup my data partition before the unlock and then restore it after I unlock right?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Here's a good guide to use when performing an adb backup. No you do not need root.
http://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
Sent from my Nexus 7 using Tapatalk

El Daddy said:
Here's a good guide to use when performing an adb backup. No you do not need root.
http://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
Thanks! I was actually reading this not long ago, I plan do do it soon
Sent from my Nexus 5 using XDA Premium 4 mobile app

Related

Save data and root

Is there a way to root but don't lose any on the phone? I got to much apps and stuff.
Sent from my Nexus 5 using xda app-developers app
Unlocking your bootloader is what deletes everything. And no, if you're not unlocked, there's no way around it. Just back up everything to a PC beforehand.
sent from my HAMMERHEAD neXus
xXghostXx313 said:
Is there a way to root but don't lose any on the phone? I got to much apps and stuff.
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Rooting won't erase anything, however unlocking the bootloader, if you have't already will wipe all of your data.
BirchBarlow said:
Rooting won't erase anything, however unlocking the bootloader, if you have't already will wipe all of your data.
Click to expand...
Click to collapse
So I can root and use titanium backup ? then from there I can unlock the bootloader and recovery right?
Sent from my Nexus 5 using xda app-developers app
xXghostXx313 said:
So I can root and use titanium backup ? then from there I can unlock the bootloader and recovery right?
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
You can't root without first unlocking the bootloader. If you don't know that maybe you shouldn't be messing around with your phone, at least not until you've done all your homework.
BirchBarlow said:
You can't root without first unlocking the bootloader. If you don't know that maybe you shouldn't be messing around with your phone, at least not until you've done all your homework.
Click to expand...
Click to collapse
Okay I get what you mean now. Its been awhile since a rooted a phone lol. I forgot the progress
Sent from my Nexus 5 using xda app-developers app

Unlocked boot. Need to root using phone

Please help.I've unlocked the boot loader and need to know how to root using phone terminal only
Sent from my Nexus 5 using xda app-developers app
howard bamber said:
Please help.I've unlocked the boot loader and need to know how to root using phone terminal only
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
It cannot be done. You must use fastboot commands to flash a custom recovery first, then you can root from there
Well you unlocked the bootloader so why not fallow the next step wile you were plugged in?
Sent from my Nexus 5 using Tapatalk
He switched it off and screamed about viruses!
Sent from my Nexus 5 using xda app-developers app
howard bamber said:
He switched it off and screamed about viruses!
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
OK. Wait till he leaves the house and then do it.
rootSU said:
OK. Wait till he leaves the house and then do it.
Click to expand...
Click to collapse
Lmao
I'll have to break in. Think I'll just go and Do it. Offered him 20 USD to do it!
Sent from my Nexus 5 using xda app-developers app
howard bamber said:
I'll have to break in. Think I'll just go and Do it. Offered him 20 USD to do it!
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Why not just have him killed?
I'm not that familiar with dd commands but couldn't he use in a terminal
dd if=recovery.img of= recovery partition
You'd have to make sure you know the recovery partition precisely, there's a thread here some where, Google nexus 5 partitions xda
Ps, make sure you know the exact command because dd commands can be dangerous
Pss, looks like it should be
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0pxx
Where xx= recovery partition
jd1639 said:
I'm not that familiar with dd commands but couldn't he use in a terminal
dd if=recovery.img of= recovery partition
You'd have to make sure you know the recovery partition precisely, there's a thread here some where, Google nexus 5 partitions xda
Ps, make sure you know the exact command because dd commands can be dangerous
Pss, looks like it should be
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0pxx
Where xx= recovery partition
Click to expand...
Click to collapse
Cant see how that would work from within android without root.
rootSU said:
Cant see how that would work from within android without root.
Click to expand...
Click to collapse
You're right, he doesn't have root. I got too excited and stopped thinking
I know it was possible to fully root $amsung s2 on the phone. I did it
Sent from my Nexus 5 using xda app-developers app
howard bamber said:
I know it was possible to fully root $amsung s2 on the phone. I did it
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
I think you still needed Odin to put a recovery on, unless Mobil Odin worked on your s2. I had a skyrocket where Mobil Odin didn't work. There is nothing like Mobil Odin for the nexus 5.
It was a backdoor method exynos abuse apk you could root without Odin.
Sent from my Nexus 5 using Tapatalk
howard bamber said:
I know it was possible to fully root $amsung s2 on the phone. I did it
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
The galaxy s2 had a different version of android than the nexus 5 with different (known) security vulnerabilities that could be exploited to achieve root.
The Nexus 5 / KitKat has no known vulnerabilities that can be exploited. You must believe us when we tell you, there is no way to root the phone without a computer using fastboot!
Sent from my Nexus 5 using Tapatalk
---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------
jd1639 said:
I think you still needed Odin to put a recovery on, unless Mobil Odin worked on your s2. I had a skyrocket where Mobil Odin didn't work. There is nothing like Mobil Odin for the nexus 5.
Click to expand...
Click to collapse
If you're unlocked and rooted, you can use flashify to flash recovery from the phone. Like mobile Odin though, it still needs root
Sent from my Nexus 5 using Tapatalk

Towelroot

Anyone else see this? It's touted for the nexus 5 in addition to other devices. Anyone know why? Will it root with a locked bootloader ?
Sent from my Nexus 5 using XDA Free mobile app
We only need to unlock the bootloader to flash recovery. If an exploit has been found in kitkat, it is possible to root without unlocking the bootloader.
This could mean a full, end-to-end rooting process without the need to use a pc
Sent from my Nexus 5 using Tapatalk
rootSU said:
We only need to unlock the bootloader to flash recovery. If an exploit has been found in kitkat, it is possible to root without unlocking the bootloader.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Can you flash a recovery from Android, say through Flashify, if you have root, but the bootloader is locked?
Aerowinder said:
Can you flash a recovery from Android, say through Flashify, if you have root, but the bootloader is locked?
Click to expand...
Click to collapse
Yeah.. My bootloader is locked and can flash recovery via flashify.
Although that's assuming bootunlocker truly locks the same as fastboot does because that's how I locked my bl.
Sent from my Nexus 5 using Tapatalk
rootSU said:
We only need to unlock the bootloader to flash recovery. If an exploit has been found in kitkat, it is possible to root without unlocking the bootloader.
This could mean a full, end-to-end rooting process without the need to use a pc
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
This thing is so damn easy to root I'm surprised he'd even mention the n5.
Sent from my Nexus 5 using XDA Free mobile app
Aerowinder said:
Can you flash a recovery from Android, say through Flashify, if you have root, but the bootloader is locked?
Click to expand...
Click to collapse
yes. if you have root you can. worst case, there are apps to lock/unlock your bootloader if you do have root. can unlock, flash recovery via flashify, then relock.
---------- Post added at 03:28 PM ---------- Previous post was at 02:54 PM ----------
just tried it on my unrooted verizon s4.. it doesnt seem to work?
I just did this on my N5 4.4.3 and it worked! My N5 was 100% stock before this.
Sent from my Nexus 5 using XDA Premium 4 mobile app
justmart said:
I just did this on my N5 4.4.3 and it worked! My N5 was 100% stock before this.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Was your bootloader locked or unlocked?
Sent from my Nexus 5 using XDA Free mobile app
justmart said:
I just did this on my N5 4.4.3 and it worked! My N5 was 100% stock before this.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Good news. Or maybe it's not!
Sent from my Nexus 5 using Tapatalk
rootSU said:
Good news. Or maybe it's not!
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Why not?
Bootloader is locked.
Sent from my Nexus 5 using XDA Premium 4 mobile app
justmart said:
Why not?
Bootloader is locked.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Good news now!
Sent from my Nexus 5 using XDA Free mobile app
justmart said:
Why not?
Bootloader is lock.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Because I think an app that can root without a pc (and fastboot) will promote a lack of the need to learn the basics, giving us members here a hard time supporting people who don't know the basics
Sent from my Nexus 5 using Tapatalk
rootSU said:
Because I think an app that can root without a pc (and fastboot) will promote a lack of the need to learn the basics, giving us members here a hard time supporting people who don't know the basics
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Understood, but this tool is handy for me that decided to root my phone after had everything setup and I was lazy to backup everything > unlocked, root etc and restore.
Sent from my Nexus 5 using XDA Premium 4 mobile app
justmart said:
Understood, but this tool is handy for me that decided to root my phone after had everything setup and I was lazy to backup everything > unlocked, root etc and restore.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Oh yeah absolutely it's very handy. Just will it cause the forum problems later on is the question
Sent from my Nexus 5 using Tapatalk
rootSU said:
Because I think an app that can root without a pc (and fastboot) will promote a lack of the need to learn the basics, giving us members here a hard time supporting people who don't know the basics
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
almost makes root toolkits seem more appealing. almost, not quite
simms22 said:
almost makes root toolkits seem more appealing. almost, not quite
Click to expand...
Click to collapse
Haha. I wouldn't go that far
I just fear we'll get a new class of people. The "commute and root" crowd who accidentally wipe their ROM on the train to work ?
Sent from my Nexus 5 using Tapatalk
rootSU said:
Haha. I wouldn't go that far
I just fear we'll get a new class of people. The "commute and root" crowd who accidentally wipe their ROM on the train to work ?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
They're already here, sadly
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
They're already here, sadly
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Yeah but someone who wipes /system on a train has at least possibly previously used fastboot or has a backup stored off their phone.
I see a lot of twrp users wiping /system and /sdcard.. If these people do the whole process on the way to work,, there's 0 chance of any backup anywhere.
Sent from my Nexus 5 using Tapatalk
rootSU said:
Yeah but someone who wipes /system on a train has at least possibly previously used fastboot or has a backup stored off their phone.
I see a lot of twrp users wiping /system and /sdcard.. If these people do the whole process on the way to work,, there's 0 chance of any backup anywhere.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Totally agree. Then it's up to us to teach them fastboot and flash a factory image. Yea, it kind of sucks, I'll a agree. But what can we do?
@rootSU you don't know how much I agree with you, a s.... storm is happening in the s4 forum because of towelroot.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Totally agree. Then it's up to us to teach them fastboot and flash a factory image. Yea, it kind of sucks, I'll a agree. But what can we do?
@rootSU you don't know how much I agree with you, a s.... storm is happening in the s4 forum because of towelroot.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Here's my stance.
I will not mention it as an option. If anyone asks if they can root without a pc I will not answer.. If anyone else mentions this app to them or someone asks about it specifically, I will advise on a best practice. I will also give warnings
Thats all I can do.
Sent from my Nexus 5 using Tapatalk
---------- Post added at 11:06 PM ---------- Previous post was at 11:03 PM ----------
We could make a guide but I haven't time to do that right now. But if we could create our own guide with our warnings about not flashing anything until Nandroid and always being extra sure not to wipe stuff whilst away etc,, maybe there is a chance?
I don't know. It's a Concern
Sent from my Nexus 5 using Tapatalk

[Q] Root Flash then Revert Without a PC?

Just wanted to know if its possible to root (towel root) flash custom recovery and custom roms and then if I decide to later revert totally back to stock unrooted nexus without a PC. Ive attempted to read up on this but I'm a little confused that ill need to use SDK and ADB which i can't have access to at the moment or have the skills to use.
I've seen apps on google play to unlock boot loader once towel rooted but I'm just unsure if i can revert totally back to an unrooted nexus 5 with original recovery, without a pc as I'm using an iMac and having really unreliability with it :/
Id greatly appreciate any help :good:
cameracartwright said:
Just wanted to know if its possible to root (towel root) flash custom recovery and custom roms and then if I decide to later revert totally back to stock unrooted nexus without a PC. Ive attempted to read up on this but I'm a little confused that ill need to use SDK and ADB which i can't have access to at the moment or have the skills to use.
I've seen apps on google play to unlock boot loader once towel rooted but I'm just unsure if i can revert totally back to an unrooted nexus 5 with original recovery, without a pc as I'm using an iMac and having really unreliability with it :/
Id greatly appreciate any help :good:
Click to expand...
Click to collapse
You may need a computer to return to stock but otherwise you shouldn't need a pc
Sent from my VS980 4G using XDA Free mobile app
Could I not back up the stock ROM using twrp and then after using custom ROMs flash it back (stock) and flash stock recovery and in root and relock boot loader using super su and boot loader apk?
Sent from my Nexus 5 using XDA Free mobile app
cameracartwright said:
Could I not back up the stock ROM using twrp and then after using custom ROMs flash it back (stock) and flash stock recovery and in root and relock boot loader using super su and boot loader apk?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Yes. If u can find all the right files to do that
Sent from my VS980 4G using XDA Free mobile app
NBreunig3 said:
Yes. If u can find all the right files to do that
Sent from my VS980 4G using XDA Free mobile app
Click to expand...
Click to collapse
think there on xda somewhere?
cameracartwright said:
think there on xda somewhere?
Click to expand...
Click to collapse
Yes. What phone and carrier are you using?
Sent from my VS980 4G using XDA Free mobile app
Nexus 5 on EE
Sent from my Nexus 5 using XDA Free mobile app
cameracartwright said:
Nexus 5 on EE
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
EE?
Sent from my VS980 4G using XDA Free mobile app
---------- Post added at 05:47 PM ---------- Previous post was at 05:46 PM ----------
cameracartwright said:
Nexus 5 on EE
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
The nexus devices are the easiest devices to get back to stock because Google supplies the stock images
Sent from my VS980 4G using XDA Free mobile app
Yes EE it was the first 4g carrier in UK used to be T-Mobile and orange
Sent from my Nexus 5 using XDA Free mobile app
But I can only flash the images from Google using adb right?
Sent from my Nexus 5 using XDA Free mobile app
cameracartwright said:
But I can only flash the images from Google using adb right?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Not sure. I am not familiar with nexus devices
Sent from my VS980 4G using XDA Free mobile app
This is a nexus thread?
Sent from my Nexus 5 using XDA Free mobile app
There are a couple different options.
I'm not sure if flashify requires a unlocked bootloader. Root, flash custom recovery with flashify, make a backup. When you are done either restore backup or if stock already use flashify to flash stock recovery, delete root apps, unroot via supersu.
Boot unlocker I have heard will work to lock and unlock boot loader but I'm not sure about resetting the tamper flag.
Using fastboot and adb is always going to be the surest and safest way to root etc. Unless you are going to be submitting your phone for RMA there should be no reason to unroot. You can always flash a stock rooted ROM and just leave it.
http://forum.xda-developers.com/showthread.php?p=47025283
http://forum.xda-developers.com/showthread.php?p=47156064
Sent from my Nexus 5 using Tapatalk
Steps are;
-Download boot unlocker fr on play
-Download flashify from play (just in case)
-Download vomers stock ROM (number 6 in resources section in the link in my signature)
-Download stock recovery (number 7 in resources section in the link in my signature)
Firstly, flash the recovery zip via your current recovery and reboot
Then, reset The tamper flag and lock the boot loader
Finally, open SuperSU and use the full indoor option to remove Root
Good as new.
Sent from my Nexus 5 using Tapatalk

Proper upgrade path

Sorry for the noobish question that I should know, but it's been a while since I've used an HD.
I picked up a used HD on 9.18.94. Can I simply sideload 183.46.10 and run the bootloader unlock? My first goal is the bootloader then I can flash root and unlock the radios so my wife can use it on ATT
Sent from my SM-N900V using XDA Free mobile app
Yep, just upgrade straight to .10, unlock, root, and you'll be good.
Sent from my HTC6525LVW using Tapatalk
Awesome, thanks
Sent from my SM-N900V using XDA Free mobile app
When I try to update from external storage it stays install /sdcard and reboots into recovery and stays on 4.1 do I need to load another is in between?
Sent from my SM-N900V using XDA Free mobile app
Borderpatrol1987 said:
When I try to update from external storage it stays install /sdcard and reboots into recovery and stays on 4.1 do I need to load another is in between?
Sent from my SM-N900V using XDA Free mobile app
Click to expand...
Click to collapse
just use this, less hassles.
What are you trying to flash? The FXZ needs to be flashed in RSD.
Sent from my HTC6525LVW using Tapatalk
RikRong said:
What are you trying to flash? The FXZ needs to be flashed in RSD.
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
I was trying to flash what I thought was the 4.4.2 ota. I accidentally clicked software update, and lo and behold it was the right os.
Now I'm rooted and bl unlocked. Onto unlocking the radios for att
Sent from my SM-N900V using XDA Free mobile app

Categories

Resources