I have a september 2 copy of my nv_data.bin and nv_data.bin.md5 on my computer and I would like to move it to my phones EFS directory, can anyone teach me the syntax to do so ?
Firstly, make sure you make a backup of the original files using Root Explorer or similar....
Open CMD promt (as admin if Vista or W7).
Cd to the Tools dir were you installed ADB...
e.g. cd androidsdk/tools
Then type:
ADB Shell Stop
Press Enter
You should see a msg about Deamon Starting...
Then type:
adb push FILENAME /DIR/DIR
/DIR/DIR Replace with the path the files need to goto on the phone....
Once copied type:
ADB shell start
Press Enter.
Hope that make sense.
Related
Hi everybody.
This worked for me so hope it helps you.
Extract Rom files, copy nk:nbf to your device folder ieH20B, copy SetOperator &
xda3nbftool(found in PH20B1) into PH20B copy this folder into C drive (C:\PH20B) or whichever is your
local/main drive
Now click Start-run,type cmd click ok
in the command line window type the following (where [ENTER] means hit the ENTER key)
cd \ (space after cd) [ENTER]
cd PH20B [ENTER]
SetOperator O2UK001 (your code) [ENTER]
when completed type exit [ENTER}
basically cd means change directory.
starting from c:\, and wanting to get to c:\my documents\pocket pc\helmi rom\ph20b, you would type:
cd c:
cd my documents\pocket pc\helmi rom\ph20b
setoperator .....................
I copied the folder Ph20B to C: drive to simplify the command prompt
if you type cd C: it just copies the same line of text
Type cd \
you get
C:\>
Type cd PH20B after >
you get
C:\PH20B> then type SetOperator & code after > and hey Presto you get
Setting Operator to[???????] for ROM
updated checksum to ????????
Completed
C:\PH20B> type exit after > to close prompt
stealph said:
if you type cd C: it just copies the same line of text
Click to expand...
Click to collapse
sorry, typo - i meant c:\
No problem
After searching for ages for a step by step guide, i remembered i'd done something with command prompt to intergrate XPsp2 into XP and it helped me to understand this.
Just hope it helps others
As stated in this thread, http://forum.xda-developers.com/showthread.php?t=787163.
I am new to ADB so I need some instructions.
adb shell
su
busybox mount -o remount,rw /system
I did all this. So what's next?
bump, help me please.
You can use adb push to copy
If you have already remounted system partition in read-write mode then, you can use
adb push folderonpc/filetocopy /system/folderonmobile to copy files on mobile.
However, you cannot use wild cards like * to copy all the files in one go. You have to copy one by one. You can use batch file to automate it.
Copying Files to or from an Emulator/Device Instance
You can use the adb commands pull and push to copy files to and from an emulator/device instance's data file. Unlike the install command, which only copies an .apk file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance.
To copy a file or directory (recursively) from the emulator or device, use
Code:
adb pull <remote> <local>
To copy a file or directory (recursively) to the emulator or device, use
Code:
adb push <local> <remote>
In the commands, <local> and <remote> refer to the paths to the target files/directory on your development machine (local) and on the emulator/device instance (remote).
Here's an example:
Code:
adb push foo.txt /sdcard/foo.txt
Taken from developer.android.com
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!
Hello every one,
I am using the latest nightly bild from CM10.1 and I am trying to install GPSCountryOptimizer app with adb but all the time it give me error INSTALL_FAILED_INVALID_APK ?
Can anyone please explain me what do I need to do? Also tried to wipe devlik after copying the same app in system folder and setting permissions as well but no use.
Thanks.
sPEADy said:
Hello every one,
I am using the latest nightly bild from CM10.1 and I am trying to install GPSCountryOptimizer app with adb but all the time it give me error INSTALL_FAILED_INVALID_APK ?
Can anyone please explain me what do I need to do? Also tried to wipe devlik after copying the same app in system folder and setting permissions as well but no use.
Thanks.
Click to expand...
Click to collapse
check settings in Developer Options about adb. may be you do not have some check point there...
also uncheck <verify application> and check <unknown sources> and try again
gtdaniel said:
check settings in Developer Options about adb. may be you do not have some check point there...
also uncheck <verify application> and check <unknown sources> and try again
Click to expand...
Click to collapse
Thanks for your quick reply. I have checked USB Debugging, Debugging over network is unchecked, Apps over USB checking is unchecked.
It should be right or maybe I am wrong.
With the Following Process it worked out how to install the unsigned apps.
Here are a couple of different options to try.
For both options you will need to put the gallery apk into the same directory as your sdk install. (if you don't know what this is try to pull a file from your device and see where it ends up. Mine is /AndroidSDK/tools because I installed the SDK in the /AndroidSDK directory on my PC)
with all of the commands to type below ignore the single quotes (')
*Install from PC*
1) connect your phone and make sure adb can detect it.
- Launch command prompt
- Navigate to your sdk directory
- type 'adb devices' - you should now see your device listed.
2) Go back to the command prompt and type 'adb install [apk name.apk]
3) You should now see a success message, if you it fails try my other option below.
*Manually place APK into /system/app*
1) connect your phone and make sure adb can detect it.
- Launch command prompt
- Navigate to your sdk directory
- type 'adb devices' - you should now see your device listed.
2) push gallery apk to your sd card.
-type 'adb push [apk name.apk] /sdcard/[apk name.apk]
3) Launch a second command prompt
-type 'adb shell'
-type 'su'
-type 'mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system'
4) go back to first command prompt
-type 'adb shell'
-type 'su'
-type 'cd /system/app'
-type 'cp /sdcard/[apk name.apk] [apk name.apk]'
-command prompt will show 'cp /sdcard/[apk name.apk] [apk name.apk]'
-type 'exit' (this will get you out of su)
-type 'exit' again (this should get you out of adb shell)
-type 'exit' again (this should close the command prompt)
5) go back to first command prompt
-type 'exit' (this will get you out of su)
-type 'exit' again (this should get you out of adb shell)
-type 'adb reboot' (this will reboot your phone)
-type 'exit' again (this should close the command prompt)
You may not need to do this in 2 command prompts, but for some reason I've had issue using just one before.
one of these should work.
Thanks to ezun for so detailed post.
Having the same problem here with the PwnMyMoto rooting file. Thing is, the Droid maxx does not have a sd card. Should I just type "System" instead of sdcard in the command?
I'm new to this please kindly help
It says command not found every time i try to do that
I'm using HTC one M7 International 4.4.2
Last login: Sun Mar 30 15:42:50 on console
Pipers-MacBook-Pro:~ PiperNatathaphol$ cd Desktop/Android
Pipers-MacBook-Pro:Android PiperNatathaphol$ ./ADB-Install-Mac.sh
This will install ADB and Fastboot on your computer.
Root Permissions required. Please type your password.
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Changed directory to /Users/PiperNatathaphol/Desktop/Android
Moving ADB
mv: rename Mac/adb_Mac to /usr/bin/adb: No such file or directory
ADB Moved to /usr/bin/adb
moving Fastboot
mv: rename Mac/fastboot_Mac to /usr/bin/fastboot: No such file or directory
Fastboot moved to /usr/bin/fastboot
You may now run Android Debug Bridge and Fastboot commands
Have a nice day.
Pipers-MacBook-Pro:Android PiperNatathaphol$ fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img.
-bash: fastboot: command not found