weird adb sideload problem - Nexus 5 Q&A, Help & Troubleshooting

Hi guys
After a few weeks on f2fs i decided to revert back y filesystem to ext4. Everything goes well except sideloading new rom to my device ( as its completely wiped ) Everything is now formated to ext4. Then the problem starts..
When I'm trying to sideload the rom i get error 'cannot read' even though I've put rom in my adb folder and my device is connected in sideload mode.
If someone could help me via team viewer ( free software allowing you to use my PC from yours PC ) it would be super great.
Thanks

When you type adb devices is your phone recognized?
Sent from my Nexus 5 using XDA Free mobile app

jd1639 said:
When you type adb devices is your phone recognized?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
yes

screenshot of my ADB folder and command window

toster jp said:
screenshot of my ADB folder and command window
Click to expand...
Click to collapse
Must give the path to your ROM zip. Your cmd prompt runs from c: \users\koppa but the ROM is not there.
You can't put the ROM in the adb folder. That only works if. You haven't added adb to your environment variable path and you have cd to that location
To get this to work either put the ROM in c: \users\koppa or cd to your adb folder or give the full path in the command
Sent from my Nexus 5 using Tapatalk

trying now
thanks

del.

No, sorry. If you want my help,, you'll have to keep replying in this thread
Sent from my Nexus 5 using Tapatalk

toster jp said:
could you pm me on hangouts? my email is : [email protected]
thanks
Click to expand...
Click to collapse
I don't think rootSU or I are going to pm you. The answers here can help others and it's best to keep them here. Did you put the rom.zip in the folder rootSU suggested?

okay
I just thought that you could help with this via TeamViewer so i could learn how to and you know, not spend another hour or two doing super basic things.
+yes

What directory is your ROM.zip?
Sent from my Nexus 5 using Tapatalk

I'm trying to flash stock 4.4.3
Its placed in a few places... C:/users/kopa/adb C:/users/kopa/desktop C:/users/kopa

toster jp said:
okay
I just thought that you could help with this via TeamViewer so i could learn how to and you know, not spend another hour or two doing super basic things.
+yes
Click to expand...
Click to collapse
A neat little trick with Windows and cmd is to back out of the folder you are in. So, if the path was C:\Users\toster jp\adb, back out to the C:\Users\toster jp folder. Hold shift and right click the adb folder. Select Open command window here. Then, cmd automatically cd to the proper directory. Then your adb sideload rom.zip will work.

toster jp said:
I tried to put my rom everywhere... And still same thing. 'cannot read'
Click to expand...
Click to collapse
Be explicit please
Also don't forget you must enable sideload in recovery
Sent from my Nexus 5 using Tapatalk

Aerowinder said:
A neat little trick with Windows and cmd is to back out of the folder you are in. So, if the path was C:\Users\toster jp\adb, back out to the C:\Users\toster jp folder. Hold shift and right click the adb folder. Select Open command window here. Then, cmd automatically cd to the proper directory. Then your adb sideload rom.zip will work.
Click to expand...
Click to collapse
SOLVED
huge thanks guys
I'm super happy because of that! And finaly I feel like I know how to use adb
THANKS!

toster jp said:
SOLVED
huge thanks guys
I'm super happy because of that! And finaly I feel like I know how to use adb
THANKS!
Click to expand...
Click to collapse
Glad you got it worked out
Sent from my Nexus 5 using XDA Free mobile app

Related

Droid 2 Bootanimation

OK so i put this in and it works like a charm...... i am running CM6-RC1 with BF Kernel and again it works like a charm....
i did not make this...... just felt like i should share the love....
Steps i took to put this in...
adb pull bootanimation.zip
deleted it from the adb tool folder
adb push this back to /system/media...
adb reboot and enjoy......
if anybody knows how to put the mp3 in and make it work let me
know i have it.....
Ps... i would like to have the sound in it but cant get it to work
if you know how to do it please let me know.......
This looks awesome thenx 4 sharing
cool.... let me know if it worked for you.....
Np..ill do it in like 10 min
not working on 9/1 nightly for me hmm this might make me flash rc1 to test
xII v EnFamouz 2 IIx said:
not working on 9/1 nightly for me hmm this might make me flash rc1 to test
Click to expand...
Click to collapse
What do you get your old one or solid black screen...
Sent from my HERO200 using XDA App
i got it i just needed to reboot...probably sumthing with my phone
Yeah I had to do the same.... now If I can only figure out how to put the sound it would be great...
Sent from my HERO200 using XDA App
Big-O-Devil said:
Yeah I had to do the same.... now If I can only figure out how to put the sound it would be great...
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
This might help? http://forum.xda-developers.com/showthread.php?t=747145
yeah so i think i have tried almost all the ways that i can fine... and still no luck.... so again if anybody out there knows how to add sound to this please show me the way to salvation......please........
Thanks for the bootscreen.
Works great (no sound, which I prefer)!
Thanks!
read-only file system
even after setting my android-sdk-windows to have the read only box unchecked I still get an error in the cmd prompt saying i have a read-only system
Vandelay007 said:
even after setting my android-sdk-windows to have the read only box unchecked I still get an error in the cmd prompt saying i have a read-only system
Click to expand...
Click to collapse
yeah i got that to.....you have to exit and keep on trying... like i said it happened to me to and on the second try i got it....
do you mean to keep re-trying the command prompt or keep retrying setting the folder so its not read-only
Vandelay007 said:
do you mean to keep re-trying the command prompt or keep retrying setting the folder so its not read-only
Click to expand...
Click to collapse
i think the problem is the whole adb thing.... exit out of your command prompt and try again.... it should go....
Being so new at this - only a month with a rooted hero - I didn't think to change my folder permissions on the phone level - so I went into Root Explorer and changed it to R/W - and it gets further than I had before - but no file transfer takes place
This is what I'm typing into cmd
adb push c:\bootanimation.zip \system\media
then I get: 950kb/s - (0 byes in ###s)
adb push bootanimation.zip /system/media
when I do that I get 'no such file or directory' which folder should I have the .zip in to make this easiest ? I just have it in c: right now
Vandelay007 said:
when I do that I get 'no such file or directory' which folder should I have the .zip in to make this easiest ? I just have it in c: right now
Click to expand...
Click to collapse
Go to you c :/ drive then into your sdk folder then into your tools folder and put it in there...
Sent from my HERO200 using XDA App

[Q] Where do you put apks you want to push to your phone?

sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
.apk you can install like any other app so u don't need to push it. As far as pulling I'm not sure I use root explorer to move files instead of adb
Sent from my Nexus S
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
You can just put them wherever you want and specify the full path in your adb command, both ways...
For example, I recently pulled a file from my phone to push to another:
Code:
adb pull /data/app/com.neevo.mobiledefense-1.apk /Users/dave/Dropbox/Android\ Apps
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
peeturr said:
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
That should work on Windows, and on Macs as well. Probably would work in a Linux GUI environment as well.
easiest way is to install from Dropbox
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
easiest way is to use DROP BOX
Then drag any APK you want to install into the Drop Box
and in your phone just install the app or game from you Drop Box
the best thing is you get a FREE 2GB, when you sign up

[Q] how can i relock my bootloader ?

unlocked my bootloader running official stock
would like to lock it so i can upgrade and flash a rom.
i saw this thread : http://forum.xda-developers.com/showthread.php?t=1675312
but the only problem is that i didnt save my original files
so the question is, how can i relock my bootloader ?
I believe the command for it was fastboot oem lock but please check the q and a section the answer is there
Sent from my HTC One X using Tapatalk 2
The_Zodiac said:
unlocked my bootloader running official stock
would like to lock it so i can upgrade and flash a rom.
i saw this thread : http://forum.xda-developers.com/showthread.php?t=1675312
but the only problem is that i didnt save my original files
so the question is, how can i relock my bootloader ?
Click to expand...
Click to collapse
The only original file you need is the Unlock_code.bin. They emailed this to you, that's the only way you can get the file. So if you did not delete the email, you can just go and download it again from your email. If you did delete it, it's most likely still in your email's trash bin.
BTW you do not need any original files to relock. Just boot back into fastboot usb mode and do as they said in the thread "fastboot oem lock"
I still have the file that htc emailed me. But in the instructions it list needing to move 2 other files to the android folder you create.
So basically just move the unlock.bin to that folder and follow the instructions as normal?
Sent from my HTC One X using xda premium
Are you talking about these 3 files adb.exe, AdbWinApi.dll, fastboot.exe? Really he shouldnt have said to move them. You can leave them where they are at. On your PC navigate to C:\Android\platform-tools and they should all be there still. Look and see if they are. If they are not, then I can send them to you.
If they are still there, then you just navigate to that directory in CMD prompt and follow his instructions. Where he says to navigate to C:\Android you instead navigate directly to C:\Android\platform-tools in cmd. Does that make sense?
NguyenHuu said:
Are you talking about these 3 files adb.exe, AdbWinApi.dll, fastboot.exe? Really he shouldnt have said to move them. You can leave them where they are at. On your PC navigate to C:\Android\platform-tools and they should all be there still.
Click to expand...
Click to collapse
I never had a directory called C:\android\platform-tools. I could not get any fastboot commands to work without having those 3 other files in the same directory as the Unlock_code.bin I was trying to push. Which is why I told them to put them together, to avoid the same issue I was having.
freshleysnipes said:
I never had a directory called C:\android\platform-tools. I could not get any fastboot commands to work without having those 3 other files in the same directory as the Unlock_code.bin I was trying to push. Which is why I told them to put them together, to avoid the same issue I was having.
Click to expand...
Click to collapse
if you update your SDK to the latest you will see. Everyone should update their sdk once every month or so. you put your unlock file in that folder too, it's same instructions they tell you, but instead of moving those files out, you keep them there and you move your unlock file in. so you don't break the SDK for future stuff.
NguyenHuu said:
Are you talking about these 3 files adb.exe, AdbWinApi.dll, fastboot.exe? Really he shouldnt have said to move them. You can leave them where they are at. On your PC navigate to C:\Android\platform-tools and they should all be there still. Look and see if they are. If they are not, then I can send them to you.
If they are still there, then you just navigate to that directory in CMD prompt and follow his instructions. Where he says to navigate to C:\Android you instead navigate directly to C:\Android\platform-tools in cmd. Does that make sense?
Click to expand...
Click to collapse
I never had that folder created if you could send them to me that would be awesome
Sent from my HTC One X using xda premium
The_Zodiac said:
I never had that folder created if you could send them to me that would be awesome
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
sure you can download it here http://www.mediafire.com/?dn8py7ww4rsbi5e
Just extract it to the same folder in that other thread then to keep it simple.
NguyenHuu said:
sure you can download it here http://www.mediafire.com/?dn8py7ww4rsbi5e
Just extract it to the same folder in that other thread then to keep it simple.
Click to expand...
Click to collapse
Thanks for the help I'll give it a shot when I get home from work
Sent from my HTC One X using xda premium

[Q] Need help with mac adb

I'm having trouble using adb on my mac. when i type ./adb it just says no such file or directory. Please help. I have tried a few guides to.
OS X 10.8.4
jeffcojake said:
I'm having trouble using adb on my mac. when i type ./adb it just says no such file or directory. Please help. I have tried a few guides to.
OS X 10.8.4
Click to expand...
Click to collapse
Are you in the right directory ? Do you have adb and fastboot for mac installed ?
Crappyvate said:
Are you in the right directory ? Do you have adb and fastboot for mac installed ?
Click to expand...
Click to collapse
Yes I am in the right directory and have fastboot installed.
Why ./? Can't just adb on Mac? Even linux is just adb no ./
Sent from my One X using xda app-developers app
exad said:
Why ./? Can't just adb on Mac? Even linux is just adb no ./
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
no, ./ is actually correct on the mac. do you have adb in that directory not just fasboot !
if you type ./adb devices what do you get ?
Crappyvate said:
no, ./ is actually correct on the mac. do you have adb in that directory not just fasboot !
if you type ./adb devices what do you get ?
Click to expand...
Click to collapse
Still says no such file or directory . Does ./make it look for a file or something?
Sent from my One X using xda premium
You have to cd (change directory) first. So open terminal than type cd.
Than if i remember right you keep tapping the space bar until you see the adb folder.Once there than run the adb commands.
Yep i'm pretty sure that's right because in Windows you tap the tab key
If i helped hit the thanks button!
Sent from my SPH-D710VMUB using XDA Premium HD app
jeffcojake said:
Still says no such file or directory . Does ./make it look for a file or something?
Sent from my One X using xda premium
Click to expand...
Click to collapse
Do you have adb in the directory you are in ??? I'm wiling to help but you need to answer this...
if you don't have adb installed it's pointless, 2 possibilities either you have adb installed but are not currently in the directory where it resides (you then need to navigate to the right directory using the cd command) or you don't and you need to install it and then go to that directory.
---------- Post added at 09:47 AM ---------- Previous post was at 09:44 AM ----------
worldwidehustling said:
You have to cd (change directory) first. So open terminal than type cd.
Than if i remember right you keep tapping the space bar until you see the adb folder.Once there than run the adb commands.
Yep i'm pretty sure that's right because in Windows you tap the tab key
If i helped hit the thanks button!
Sent from my SPH-D710VMUB using XDA Premium HD app
Click to expand...
Click to collapse
you use the tab button on mac too, but if he doesn't know where adb resides or it's not installed it's pointless...:::banghead:::
Crappyvate said:
Do you have adb in the directory you are in ??? I'm wiling to help but you need to answer this...
if you don't have adb installed it's pointless, 2 possibilities either you have adb installed but are not currently in the directory where it resides (you then need to navigate to the right directory using the cd command) or you don't and you need to install it and then go to that directory.
---------- Post added at 09:47 AM ---------- Previous post was at 09:44 AM ----------
you use the tab button on mac too, but if he doesn't know where adb resides or it's not installed it's pointless...:::banghead:::
Click to expand...
Click to collapse
No, you don't understand. I have went into the adb folder.. It just won't work.
Sent from my One X using xda premium
jeffcojake said:
No, you don't understand. I have went into the adb folder.. It just won't work.
Sent from my One X using xda premium
Click to expand...
Click to collapse
I don't know if you have seen this, it may help answer some questions.
http://forum.xda-developers.com/showthread.php?t=1917237
Sent from my HTC One X using Tapatalk 2
ronnie498 said:
I don't know if you have seen this, it may help answer some questions.
http://forum.xda-developers.com/showthread.php?t=1917237
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Thanks, I will try it when I get back home
Sent from my One X using xda premium
jeffcojake said:
No, you don't understand. I have went into the adb folder.. It just won't work.
Sent from my One X using xda premium
Click to expand...
Click to collapse
that's just not possible with the error message you get...you either not in the right directory or it's not installed.
Go to the directory where you think adb is and type ls and post the results.
Are you sure your USB debugging is on
Crappyvate said:
that's just not possible with the error message you get...you either not in the right directory or it's not installed.
Go to the directory where you think adb is and type ls and post the results.
Are you sure your USB debugging is on
Click to expand...
Click to collapse
Adb_mac. Adb is on. And trust me, I know how to use Adb. It is in the right directory. Even if the phone is unplugged Adb should still be able to work
Sent from my HTC One XL using xda premium
He is right though. That error message can only mean it's not in the directory or you typed the name wrong. Are you sure there's not something simple you're overlooking? Sometimes we geeks over think things. I'm not a mac user but that error message is pretty clear.
Sent from my One X using xda app-developers app
exad said:
He is right though. That error message can only mean it's not in the directory or you typed the name wrong. Are you sure there's not something simple you're overlooking? Sometimes we geeks over think things. I'm not a mac user but that error message is pretty clear.
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
I can post a pic of the folder. It has adb
Sent from my HTC One XL using xda premium
Well, ladies and gentlemen: here is the answer.... If you rename a file from adb to adb_mac then in order to execute/run it you need to type ./adb_mac voilà....
mystery solved....
"know how to use adb" but not how to read a file name in a directory ::banghead::
Sent from my HTC One X using xda app-developers app
Crappyvate said:
Well, ladies and gentlemen: here is the answer.... If you rename a file from adb to adb_mac then in order to execute/run it you need to type ./adb_mac voilà....
mystery solved....
"know how to use adb" but not how to read a file name in a directory ::banghead::
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
The file in the folder is just adb though.... Not adb_mac
Sent from my HTC One XL using xda premium
jeffcojake said:
The file in the folder is just adb though.... Not adb_mac
Sent from my HTC One XL using xda premium
Click to expand...
Click to collapse
As Redpoint said if you want help you need to try to follow instructions. you posted adb_mac after i asked you to perform an "ls"in your directory so that made sense as far as getting a "no such file or directory" error if you execute by doing ./adb. Either it's not there, it's corrupted,there is typo or wrong directory, that's the only time you will get this error maybe you just want to try re-installing adb in your directory of choice.
go to directory where adb reside type "ls" and post a screenshot

[Q] Need help fixing Device Tampered.

I have a LG nexus 5 and started playing around with software, Installed cyanogenmod to see what it had to offer.
Now I want to go back and I have succeeded in that but when I type fastboot oem device-info in cmd it says that the device has been tampered with.
I have access to Android toolkit PRO for nexus 5 so if anyone can give me a short guide step by step I would be very thankful.
For your information I have tried alot of different solutions none seem to work.
1.1 unlock fastboot
1.2 fastboot flash a recovery
1.3 flash the tamper fix zip
1.4 fastboot flash back to stock
1.5 check status
1.6 lock fastboot
Sent from my Nexus 5 using Tapatalk
nevermind
rootSU said:
1.1 unlock fastboot
1.2 fastboot flash a recovery
1.3 flash the tamper fix zip
1.4 fastboot flash back to stock
1.5 check status
1.6 lock fastboot
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for the quickest answer I've gotten ever.
Where can I D/L the recovery and tamper fix?
Rest I will manage. Ty
senseiblaze said:
Thanks for the quickest answer I've gotten ever.
Where can I D/L the recovery and tamper fix?
Rest I will manage. Ty
Click to expand...
Click to collapse
It's all in HERE for you, steps you need to take plus how to reset the tamper flag.
radicalisto said:
It's all in HERE for you, steps you need to take plus how to reset the tamper flag.
Click to expand...
Click to collapse
Thank you guys!
radicalisto said:
It's all in HERE for you, steps you need to take plus how to reset the tamper flag.
Click to expand...
Click to collapse
So still the same problem. It says in CMD That there's no such file or directory and it cant find twrp.img
senseiblaze said:
So still the same problem. It says in CMD That there's no such file or directory and it cant find twrp.img
Click to expand...
Click to collapse
Then you're doing it wrong. You need to type the path to the recovery. So if it's in c drive
fastboot flash recovery c:\twrp.img
Or if it's on your desktop
fastboot flash recovery c:\users\senseiblaze\desktop\twrp.img
Also note, the file must be called twrp.img. if it's called recovery.img, adjust your commands accordingly. It's also Case sensitive.
All basic stuff that every rooted user should know
Sent from my Nexus 5 using Tapatalk
Instead of flashing the twrp recovery boot from it.
Fastboot boot recovery recovery.img
Because as far as I can remember flashing that zip will also lock the bootloader.
rootSU said:
Then you're doing it wrong. You need to type the path to the recovery. So if it's in c drive
fastboot flash recovery c:\twrp.img
Or if it's on your desktop
fastboot flash recovery c:\users\senseiblaze\desktop\twrp.img
Also note, the file must be called twrp.img. if it's called recovery.img, adjust your commands accordingly. It's also Case sensitive.
All basic stuff that every rooted user should know
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Bro, it says cannot open file or cannot determine image filename
No such file or directory :S
senseiblaze said:
Bro, it says cannot open file or cannot determine image filename
No such file or directory :S
Click to expand...
Click to collapse
Screenshots please
Screenshot 1... Cmd prompt, the error and what you typed
Screenshot 2... Windows explorer open to the directory where you saved your recovery please
Sent from my Nexus 5 using Tapatalk
rootSU said:
Screenshots please
Screenshot 1... Cmd prompt, the error and what you typed
Screenshot 2... Windows explorer open to the directory where you saved your recovery please
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Here's a Pic with both of them in one, lol.
Better resolution and u can zoom in I believe : http://postimg.org/image/f7srtnc05/
senseiblaze said:
Here's a Pic with both of them in one, lol.
Better resolution and u can zoom in I believe : http://postimg.org/image/f7srtnc05/
Click to expand...
Click to collapse
Your phone is booted into fastboot, right?
What is output of "fastboot devices"
Sent from my Nexus 5 using Tapatalk
rootSU said:
Your phone is booted into fastboot, right?
What is output of "fastboot devices"
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
It is booted into fastboot yes. What do you mean by output of fastboot devices?
I'm from Sweden so I rly didn't understand what you meant by that last sentence
Also I noticed your file is called "TWRP.img" but the file directly above it is called "setup". Usually I would expect it to be "setup.exe" which means that you probably have the "hide extensions for known file types" set in windows explorer > organize > folder options...
If you turn this off, I'm hoping you'll see that you actually have TWRP.img.img which is of course, incorrect
Sent from my Nexus 5 using Tapatalk
rootSU said:
Also I noticed your file is called "TWRP.img" but the file directly above it is called "setup". Usually I would expect it to be "setup.exe" which means that you probably have the "hide extensions for known file types" set in windows explorer > organize > folder options...
If you turn this off, I'm hoping you'll see that you actually have TWRP.img.img which is of course, incorrect
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hahahahahaha! You sure are special. I've been sitting here trying to solve this all day long. gives my soul peace to know that I can do this now.
Last but not least. THANK YOU!!! :victory:
rootSU said:
Also I noticed your file is called "TWRP.img" but the file directly above it is called "setup". Usually I would expect it to be "setup.exe" which means that you probably have the "hide extensions for known file types" set in windows explorer > organize > folder options...
If you turn this off, I'm hoping you'll see that you actually have TWRP.img.img which is of course, incorrect
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Seems like a lot of novice users make this same mistake. Perhaps a note of caution should be added to the guides?

Categories

Resources