Why can't I push or even mount, I'm trying to install the Signature in Exchange issue with this
http://jvance.com/blog/2010/04/14/EmailSignatureInAndroidFixed.xhtml
I can adb shell but I can't get any farther than that.
djorijun said:
Why can't I push or even mount, I'm trying to install the Signature in Exchange issue with this
http://jvance.com/blog/2010/04/14/EmailSignatureInAndroidFixed.xhtml
I can adb shell but I can't get any farther than that.
Click to expand...
Click to collapse
commands should be revised as
Code:
adb remount
adb push download/Email.apk /system/app/Email.apk
problem solved
Mods, please move this to general section (or make a Q/A Section).
darchstar said:
commands should be revised as
Code:
adb remount
adb push download/Email.apk /system/app/Email.apk
problem solved
Mods, please move this to general section (or make a Q/A Section).
Click to expand...
Click to collapse
Thanks but not solved and please move as needed.
C:\android-sdk-windows\tools>adb shell
/ # adb remount
adb remount
/sbin/sh: adb: not found
djorijun said:
Thanks but not solved and please move as needed.
C:\android-sdk-windows\tools>adb shell
/ # adb remount
adb remount
/sbin/sh: adb: not found
Click to expand...
Click to collapse
.... don't adb shell.
darchstar said:
.... don't adb shell.
Click to expand...
Click to collapse
when I don't this is what happens
C:\android-sdk-windows\tools>adb remount
remount failed: Invalid argument
djorijun said:
when I don't this is what happens
C:\android-sdk-windows\tools>adb remount
remount failed: Invalid argument
Click to expand...
Click to collapse
It looks like you are in recovery.. when you type adb shell it should look like this
adb shell
#
NOT
adb shell
/ #
Type the command when the phone is booted up and running.
Hi,
my ADB doesn't work correctly. I plug the phone into the pc with USB Debugging enabled (stock V20m 2.3.4) and run adb.
I can type su and the phone shows shell was given su rights, so the connection must be ok.
But I can't give any command. When I type in adb remount it says permission denied. The same problem with any other command like adb pull /system/app/Camera.apk
Everytime comes permission denied.
What can I do? Please help me.
You're running a kernel which doesn't enable the adb remount option (or rather default.prop in the ramdisk doesn't). To get around it:
Code:
adb shell
su
mount -o remount,rw /dev/block/mmcblk0p1 /system
...this basically does the same thing. There may be something else wrong though, as pulling an app from /system/app should work without it.
EDIT: Make sure you're not in the adb shell when running adb commands. Pull and push commands for example must be run in the computer-shell, not the adb shell.
Thank you very much!
TrymHansen said:
EDIT: Make sure you're not in the adb shell when running adb commands. Pull and push commands for example must be run in the computer-shell, not the adb shell.
Click to expand...
Click to collapse
That was the solution for the problem with pull/push files.
I wanted to ask this in the actual thread but 10 post limit...
Anyway,
I can't get any GPS lock on my I9000, Onemsomic's ICS RC3.1, JVU modem.
I tried changing the NetworkLocation.apk by following this post http://forum.xda-developers.com/showthread.php?p=21351809#post21351809
but since I have absolutely no idea how to use ADB I couldn't do the "change mode to 0644" step.
Someone help a noob?
Thanks.
Well, first off, download the *.apk provided in that post and place it on the sdcard.
adb is a command line tool, so you must insert those commands on a terminal emulator (maybe you got one installed, if not, download one from the market, I can recommend "Android Terminal Emulator").
So, open your terminal emulator and go to the directory where you placed your *.apk. this example has been wrote with the *.apk in the sdcard folder:
Code:
su
cd /mnt/sdcard
adb start-server
adb remount
adb push NetworkLocation.apk /system/app/NetworkLocation.apk
adb chmod 0644 /system/app/NetworkLocation.apk
adb reboot
Note: I wrote this example following my common sense, so I'm not completely sure if this will work!
Cheers!
AurosGamma said:
Well, first off, download the *.apk provided in that post and place it on the sdcard.
adb is a command line tool, so you must insert those commands on a terminal emulator (maybe you got one installed, if not, download one from the market, I can recommend "Android Terminal Emulator").
So, open your terminal emulator and go to the directory where you placed your *.apk. this example has been wrote with the *.apk in the sdcard folder:
Code:
su
cd /mnt/sdcard
adb start-server
adb remount
adb push NetworkLocation.apk /system/app/NetworkLocation.apk
adb chmod 0644 /system/app/NetworkLocation.apk
adb reboot
Note: I wrote this example following my common sense, so I'm not completely sure if this will work!
Cheers!
Click to expand...
Click to collapse
I get a "device not found" error after adb remount. What should I do?
hadar.shamir said:
I get a "device not found" error after adb remount. What should I do?
Click to expand...
Click to collapse
Well I have been looking here and there, and I found that adb doesn't work directly on the phone, you must use adb from your pc. So, this is what you should do from now on:
Install Java SDK
Install Android SDK
Turn on "USB Debugging" in your SGS settings
Connect the Device to the PC
And finally, use the following commands (from the PC):
Code:
// Go to the folder where you put the *.apk
cd C:\users\exampleuser\Documents\ // or /home/exampleuser/Documents/ if you're using linux
adb start-server
adb remount
adb push NetworkLocation.apk /system/app/NetworkLocation.apk
adb chmod 0644 /system/app/NetworkLocation.apk
adb reboot
Note:
The text after the double-slash ( // ), must not be written in the console, they are just comments
You need to install the SDK's because there it is where the adb tool (and tools needed by adb) is found, so, good luck!
Hey guys!
So I decided to try my hand at Installing Kindle Fire HD 7" 2nd-Bootloader + TWRP Complete Tutorial. On Step 2: Grabbing Files and Backing Up, when I plug the code to cmd, it says: error: device not found. Now, I have the Fastboot icon on the KF's screen and I have the factory cable connected. Also, android sdk is installed (as the tutorial said) on my Windows 7 machine. Any ideas? Thanks in advance!
Mustang37 said:
Hey guys!
So I decided to try my hand at Installing Kindle Fire HD 7" 2nd-Bootloader + TWRP Complete Tutorial. On Step 2: Grabbing Files and Backing Up, when I plug the code to cmd, it says: error: device not found. Now, I have the Fastboot icon on the KF's screen and I have the factory cable connected. Also, android sdk is installed (as the tutorial said) on my Windows 7 machine. Any ideas? Thanks in advance!
Click to expand...
Click to collapse
You're in fastboot mode to do what? Are you restoring after a mistake? What command were you using before that error, and what was the code you used that returned with the error? For now, see if you can reboot using the following code:
Code:
fastboot -i 0x1949 reboot
You can also try doing the normal shutting down with the power button, but I've never tried that, so be careful.
seokhun said:
You're in fastboot mode to do what? Are you restoring after a mistake? What command were you using before that error, and what was the code you used that returned with the error? For now, see if you can reboot using the following code:
Code:
fastboot -i 0x1949 reboot
You can also try doing the normal shutting down with the power button, but I've never tried that, so be careful.
Click to expand...
Click to collapse
Ok, I know that I can shut down with the power button. My problem is backing up my current Amazon ROM.
CODE (found at http://forum.xda-developers.com/showthread.php?t=2271909):
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
mkdir C:\KFHD7Backup
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Thanks for the quick reply.
Mustang37 said:
Ok, I know that I can shut down with the power button. My problem is backing up my current Amazon ROM.
CODE (found at http://forum.xda-developers.com/showthread.php?t=2271909):
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
mkdir C:\KFHD7Backup
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Thanks for the quick reply.
Click to expand...
Click to collapse
You're trying to backup with ADB commands in fastboot mode? What are you doing in fastboot mode?
ADB is simply turning on the device, make sure ADB is on under Settings, and connect the device to the PC with the regular charging cable. That's it. Fastboot commands use "fastboot" at the beginning.
Ahhh, ok got it. One last question, when I add the following codes to backup, I get the remote object '/sdcard/stock-recovery.img/' does not exist ERROR. I've rooted it and followed the instructions.Thoughts?
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Mustang37 said:
Ahhh, ok got it. One last question, when I add the following codes to backup, I get the remote object '/sdcard/stock-recovery.img/' does not exist ERROR. I've rooted it and followed the instructions.Thoughts?
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Click to expand...
Click to collapse
Those commands tell the device to pull the images from the sdcard to the new directory, so if you have nothing on the sdcard for ADB to pull, it returns with that error. Do the first set again.
Ok, that still doesn't work, I do understand what you are saying though.
I apply these lines of codes:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I still get the same error when apply these lines of codes after it:
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
remote object '/sdcard/stock-boot.img/' does not exist
The last line of code of the first set, nothing comes up after it.
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
Usually, it comes out like this:
C:\Users\Username>adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-n
ame/boot of=/sdcard/stock-boot.img"
16384+0 records in
16384+0 records out
8388608 bytes transferred in 3.058 secs (2743168 bytes/sec)
Thanks for the quick replies guys! Appreciate it!
Mustang37 said:
Ok, that still doesn't work, I do understand what you are saying though.
I apply these lines of codes:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I still get the same error when apply these lines of codes after it:
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
remote object '/sdcard/stock-boot.img/' does not exist
The last line of code of the first set, nothing comes up after it.
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
Usually, it comes out like this:
C:\Users\Username>adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-n
ame/boot of=/sdcard/stock-boot.img"
16384+0 records in
16384+0 records out
8388608 bytes transferred in 3.058 secs (2743168 bytes/sec)
Thanks for the quick replies guys! Appreciate it!
Click to expand...
Click to collapse
Is there a folder called "KFHD7Backup" under the C: drive? Also, check your personal folder, some images might be in there.
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Mustang37 said:
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Click to expand...
Click to collapse
o.o
I'm lost and I need help. I copied my code from Hashcode, so...I'm lost. Anyway, complete the guide and get flashing.
Thank you for the tools you are developing here and the help you are giving.
My KFHD7 is rooted and adb works.
I apply these lines of code:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I checked on my Kindle with ESExplorer and I can see on the sdcard the 3 files: stock-boot.img, stock-recovery.img and stock-system.img.
But when I want to move them to C, I received the message
remote object '/sdcard/stock-boot.img/' does not exist
I can't see the files on the internal storage of the Kindle, via the computer. But I can see others files which are there.
Did I miss something?
Thank you in advance,
Jeanphi
I had issues with the syntax of that command at first too, try typing this instead:
"adb pull /sdcard/stock-boot.img ."
That should pull the file into the directory u have the command prompt cd'd into. Another note I couldn't get it to accept c:\ as a acceptable syntax, so being a Linux user I found on windows u can run "adb pull /sdcard/stock-boot.img /users/username/desktop" and basically / acts as c:\, if u want to put it in a specific place.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
I had issues with the syntax of that command at first too, try typing this instead:
"adb pull /sdcard/stock-boot.img ."
That should pull the file into the directory u have the command prompt cd'd into. Another note I couldn't get it to accept c:\ as a acceptable syntax, so being a Linux user I found on windows u can run "adb pull /sdcard/stock-boot.img /users/username/desktop" and basically / acts as c:\, if u want to put it in a specific place.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Thank you for the quick reply.
I'm also using Linux, even if I'm a beginner.
So this not a problem of Windows.
Both OS show the same symptoms: the following error message and the fact that in both cases, I can't see the files on the sdcard when I look on the Internal storage of the Kindle, with the computer, even if can see other files (but not any file with an .img extension)
[email protected]:~$ adb pull /sdcard/stock-boot.img
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
5958 KB/s (8388608 bytes in 1.374s)
[email protected]:~$ adb pull /sdcard/stock-boot.img/
remote object '/sdcard/stock-boot.img/' does not exist
I copied with ESexplorer the three files (stock-boot.img, etc) on Download on the Kindle.
Then,
[email protected]:~$ adb pull /sdcard/Download/stock-boot.img/
remote object '/sdcard/Download/stock-boot.img/' does not exist
[email protected]:~$
(Download is with a capital D on the Kindle)
So the files are available on the Kindle. The problem is to find a way to put them on the computer.
Can I mail them to me ?
Jeanphi.
That's still the wrong syntax, don't put a / after the end of the filename, instead put a space and a period.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
That's still the wrong syntax, don't put a / after the end of the filename, instead put a space and a period.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Sorry. I haven't seen the new syntax.
It works perfectly with Linux (Ubuntu).
Thanks again.
I will try the following steps of your thread about the 2nd bootloader, but I might wait til I have a factory cable.
Jeanphi
---------- Post added at 10:19 AM ---------- Previous post was at 10:08 AM ----------
jeanphi506 said:
Sorry. I haven't seen the new syntax.
It worked perfectly with Linux (Ubuntu). I have now the three files on my computer.
Thanks again.
I will try the following steps of your thread about the 2nd bootloader, but I might wait till I have a factory cable.
Jeanphi
Click to expand...
Click to collapse
Spelling corrections
Same Problem.. can't fix
Mustang37 said:
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Click to expand...
Click to collapse
Hi,
I have same problem... but I didn't understand how did you fixed it.
what's the hashcode? how can I use it? could you please explain.
thanks in advance...
I'm unable to use the adb push command on my rooted OnePlus 3t running OOS 4.0.2. My device shows up after typing adb shell and im also able to execute 'su' command but after that if i try adb push <source> <destination> it returns the following
OnePlus3T:/ $ su
OnePlus3T:/ # adb push 1Carbon /sdcard/
sush: adb: not found
127|OnePlus3T:/ #
I've already downloaded the latest platform-tools and drivers.
is there any solution for this? Thanks in advance!
UTK18 said:
I'm unable to use the adb push command on my rooted OnePlus 3t running OOS 4.0.2. My device shows up after typing adb shell and im also able to execute 'su' command but after that if i try adb push <source> <destination> it returns the following
OnePlus3T:/ $ su
OnePlus3T:/ # adb push 1Carbon /sdcard/
sush: adb: not found
127|OnePlus3T:/ #
I've already downloaded the latest platform-tools and drivers.
is there any solution for this? Thanks in advance!
Click to expand...
Click to collapse
You don't do adb shell,that means your running this command from your phone's terminal which isn't what your trying to do.sp instead of adb shell just do the ADB push command
HeXDeMoN said:
You don't do adb shell,that means your running this command from your phone's terminal which isn't what your trying to do.sp instead of adb shell just do the ADB push command
Click to expand...
Click to collapse
Ohh such a beginners mistake there xD Also, im trying to push some pics via adb so that their timestamp is preserved and it requires me to run adb as root. i now tried adb root and then the push command which worked but timestamps were still altered. what am i doing wrong now?
Anyone?
Bump.