ok so I have managed to pull all the apps from the phone to comp and the app-private to have a backup.
I cleared the ext partition
BUT now when I push them on .. well TRY to ... it starts gets to about 10 of them and then just stops. I have tried to restart and it stops at different places and just doesnt go all the way from start to finish.
anyone have any ideas on why this happening and whats going on here??
hey how did you pull your apps mine wont let me
what command did you use (exactly Please)
jf4888 said:
hey how did you pull your apps mine wont let me
what command did you use (exactly Please)
Click to expand...
Click to collapse
Pull apps off phone onto computer (adb remount before)
Code:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
and to
Push apps back to phone from the computer (adb remount before)
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
also to remove apps from sd
Delete existing apps on SD
Code:
adb shell rm -r /system/sd/app
adb shell rm -r /system/sd/app-private
can copy/paste these comands into the CMD window when you have adb up and going .. you cant do these from the # prompt. It has to be done that that "cd C:\android-sdk-windows-1.5_r3" or whatever line: <--- not exact, dont copy/paste that one.
yo thanxs bro so did you fix your problem yet?
no .. not yet gonna try some other stuff to see what works.
if you are using windows Strapt and you are typing that long command each time you want to use adb to push or pull... etc. then just so i can sleep better at night and you don't have to type a book every time you want to push or pull a file then add adb.exe and and adbwinapi.dll to your windows/system32/ directory and you can use adb from any dos directory prompt. (got that info from this thread)
Related
ok so I got adb working fine .. but apparently I have NO idea on how to properly pull and anything from the phone or push to the phone what I saw was something about adb pull system/sd/app app and then I have seen adb pull system/sd/app/app which BOTH give me the adb: not found
then I have created a folder named android on my C:
then I tried the cd C:\android adb pull /system/sd/app/app and that gives me a bad substitution
I have also tried the adb pull system/sd/app/app cd C:\android .. this also gives me that bad substitution error
so what I NEED is SOMEONE to give me SPECIFIC examples of this
so i am asking for 2 exapmles
one to pull the calcultor from the phone to the comp
second is to pull an installed app like chompsms from the phone to the comp
I am doing all of this from the #
I have searched google and cannot find ANYTTING on this
I have searched here and found nothing
I have read the adb for dummies and the adb useful commands
any help on this would be great
also I have done the cd data then cd app and then when I get to the cd ls is says cannot cd into ls
But when I just ls I get the apps list
I am using vista 64 too
BTW I am using the 1.5MOD from lucid and I do have my apps to the sd card by using his lucid script
Strapt said:
BOTH give me the adb: not found
Click to expand...
Click to collapse
Put the path to your folder with adb in it in your system path directory. Instructions from the android dev site:
Optionally, you may want to add the location of the SDK's primary tools directory to your system PATH. The primary tools/ directory is located at the root of the SDK folder. Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory.
On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
export PATH=${PATH}:<your_sdk_dir>/tools
On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you haven't already set one up on your machine.
On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.
Click to expand...
Click to collapse
then I have created a folder named android on my C:
then I tried the cd C:\android adb pull /system/sd/app/app and that gives me a bad substitution
Click to expand...
Click to collapse
Adb push/pull requires two arguments, the source and the destination. E.g. on windows:
adb push \completely_legit_apps\gamelofd-monopolizing.apk /data/app/mono.apk
-or-
adb pull /system/app/Mail.apk \roflmao_i_ripped_exchangemail.apk
Notice that on the Android side, the path delimiter is the forward slash (/), whereas on the Windows side it's backslash (\).
Edit: also, on windows if you don't specify an absolute path, it is taken as being relative to your usr directory:
adb push \app.apk <-- pushes c:\Documents and Settings\username\app.apk, NOT c:\app.apk
^above^
But this is also in the wrong forum! This belongs to Q&A.
jashsu said:
Put the path to your folder with adb in it in your system path directory. Instructions from the android dev site:
Adb push/pull requires two arguments, the source and the destination. E.g. on windows:
adb push \completely_legit_apps\gamelofd-monopolizing.apk /data/app/mono.apk
-or-
adb pull /system/app/Mail.apk \roflmao_i_ripped_exchangemail.apk
Notice that on the Android side, the path delimiter is the forward slash (/), whereas on the Windows side it's backslash (\).
Edit: also, on windows if you don't specify an absolute path, it is taken as being relative to your usr directory:
adb push \app.apk <-- pushes c:\Documents and Settings\username\app.apk, NOT c:\app.apk
Click to expand...
Click to collapse
ok so I am trying to pull the Mms.apk to the comp into my C: documents
So I got
# adb pull /system/app/Mms.apk ... then what exactly would I need to finish the rest? how would that look whole?
My Mms.apk is in system/app in my phone and I do have apps to sd if that makes a diff
also .. if I pull this does that completely remove it from the phone? assuming it would
I keep getting adb not found But I can type lucid and it shows the lucid comands and reboot and it reboots ... so i am connected ...
Strapt said:
ok so I am trying to pull the Mms.apk to the comp into my C: documents
So I got
# adb pull /system/app/Mms.apk ... then what exactly would I need to finish the rest? how would that look whole?
My Mms.apk is in system/app in my phone and I do have apps to sd if that makes a diff
also .. if I pull this does that completely remove it from the phone? assuming it would
I keep getting adb not found But I can type lucid and it shows the lucid comands and reboot and it reboots ... so i am connected ...
Click to expand...
Click to collapse
adb pull /system/app/Mms.apk temp/
Of course, you can substitute temp with any folder you want (by default, you will save it under the folder that adb is located in,
so the command above would push the file to /adb directory/temp
Like that.
Its might be saying that its not there, because its not there, with apps2sd it should be located under /system/sd/app_s/Mms.apk (but of course this differs from build to build)
and no, I don't think it will remove it, it should still be there, to remove it you have to type:
adb shell rm /system/sd/app_s/Mms.apk
h.nocturna said:
adb pull /system/app/Mms.apk temp/
Like that.
Its might be saying that its not there, because its not there, with apps2sd it should be located under /system/sd/app_s/Mms.apk (but of course this differs from build to build)
and no, I don't think it will remove it, it should still be there, to remove it you have to type:
adb shell rm /system/sd/app_s/Mms.apk
Click to expand...
Click to collapse
ok so I tried both the
/system/app/Mms.apk temp/
and the adb pull /system/sd/app_s/Mms.apk temp/
BOTH I get adb not found
Do i need to add something like cd C:\Documents adb pull /system/app/Mms.apk ??? (which If I do that I get a bad substitution error or a directory not found .. which it is in there)
when I go thru astro the path is system/app then I see all the stock apps and the odex files
EDIT: some I have seen have been adb pull /system/app/Mms.apk/Mms.apk OR adb pull /system/app/Mms.apk Mms.apk .. those I still get adb not found
EDIT EDIT: hell even adb remount gets me adb not found ... and the cd ls gets me cant cd into ls
EDIT EDIT EDIT: ok so i tried to change the dir to where the file goes. So I created a Documents folder in root of my C drive. Then I used the adb pull /system/app/Mms.apk Documents\ and I got a > and nothing is in my folder I changed the direction of the last \ after Documents
I got it!!! this worked!!!
adb pull /system/app/Mms.apk \Documents WORKS!!! NOT FROM THE#!!!
Strapt said:
I got it!!! this worked!!!
adb pull /system/app/Mms.apk \Documents WORKS!!! NOT FROM THE#!!!
Click to expand...
Click to collapse
I think you should learn more about command prompts and linux shell commands
other than that, good for you.
glad it worked for you. If i wasn't clear, I meant that you should've cd to the location of adb on your computer through command prompt, then from there run the commands that I outlined above.
h.nocturna said:
glad it worked for you. If i wasn't clear, I meant that you should've cd to the location of adb on your computer through command prompt, then from there run the commands that I outlined above.
Click to expand...
Click to collapse
ok so like what ya mean?
from the
C:\Users\Owner
I do then "cd C:\android-sdk-windows-1.5_r2\tools"
and that takes me to the plain C:\android-sdk-windows-1.5_r2\tools
so from here what would you type in to cd and cd into what?
apparently the problem what that I typed adb shell and then was doing everything from the comand prompt and that didnt work.
ok so I think I figured out what you mean.
I did type the cd C:\Documents then I get the C:\Documents> and from there I can run just the adb pull /system/app/Mms.apk Mms.apk
now that I have that working I have to try the push now
so with the same example above I would:
again cd C:\Documents
then
adb push Mms.apk /system/app/
is that right or should that be different?
ok so here is a question
I did mange to find where my downloaded apps are going by mounting the volumes onto ubuntu. which is /media/disk-1/app and this is in my ext2 partition
but I cant seem to be able cd to the /media/disk-1/app everytime it says cant cd to /media/disk-1/app
trying to do two things
one is trying to cd into that path so I can ls
and also trying to see how I would be able to pull apps that I have downloaded
I have kinda figured out the other pull but now would like to know why this isnt working.
Strapt said:
ok so I think I figured out what you mean.
I did type the cd C:\Documents then I get the C:\Documents> and from there I can run just the adb pull /system/app/Mms.apk Mms.apk
now that I have that working I have to try the push now
so with the same example above I would:
again cd C:\Documents
then
adb push Mms.apk /system/app/
is that right or should that be different?
Click to expand...
Click to collapse
adb should only work from whatever location you put the adb.exe, so for instance, I'm assuming that you put adb in c:\Documents. Then you would type cd c:\documents and run your adb commands there, and adb will treat c:\Documents as your root folder (which is why everything transfers to c:\Documents by default for you). Therefore, the push commands will also treat c:\Documents as your root folder, so you can only push whatever is in c:\Documents. So transfer whatever file you want to be pushed to c:\Documents and then adb push file within c:\Documents /wherever you want it on the phone
h.nocturna said:
adb should only work from whatever location you put the adb.exe, so for instance, I'm assuming that you put adb in c:\Documents. Then you would type cd c:\documents and run your adb commands there, and adb will treat c:\Documents as your root folder (which is why everything transfers to c:\Documents by default for you). Therefore, the push commands will also treat c:\Documents as your root folder, so you can only push whatever is in c:\Documents. So transfer whatever file you want to be pushed to c:\Documents and then adb push file within c:\Documents /wherever you want it on the phone
Click to expand...
Click to collapse
well actually I made the Documents folder and its completely empty
the actual adb.exe is in the C:\android-sdk-windows-1.5_r2\tools\adb.exe
I think that I have copied and pasted that and some win something .dll into system32 folder. not sure if that makes a difference or not.
from my understanding I can now change it to whatever folder I want to move the files to on my comp just by typing the location and folder name and not just to the Documents folder.
also when I am at the C:\android-sdk-windows-1.5_r2 in cmd what is that line called or the commands that you do from that line called? and the pull push has to be from this line right?
Im guessing that the adb shell is the linux shell commands which is the # right?
also I would to really like to say thank you for your continued help on this!!
Its no problem, placing it in system32, allows you to use adb.exe straight from the console so its alright. But instead of cd(ing?) to whatever location the adb.exe is located, just cd to wherever you want to pull the files or wherever the files you want to push are and then just run the commands outlined above for pushing/pulling files.
the # denotes that you have entered the phone's terminal with root permissions. Yes, it is linux.
Yes the commands must be typed from the command prompt so:
C:\Documents>adb pull /system/sd/app_s/Mms.apk C:\Documents
or wherever you want, just replace C:\Documents with whatever you want.
Hi I was trying to install the new HTC_IME on my phone right now I am currently using 2.0 and I tried to install with appsinstaller and it didn't work. So is there a way to do it threw terminal emulator, or threw recovery?
I don't use adb cause I tried setting it up and it didn't work.
So somebody please give me a good reply! Thanks!
try with astro
if astro doesn't work try this.
you must have adb working. adb does wonders. works every time. top cmds is for adb and bttm is terminal on phone.
Adb remount
Adb push HTC_IME.apk system/app
Adb shell rm system/sd/app/HTC_IME.apk
Adb shell rm data/app/HTC_IME.apk
Adb shell reboot
Or from terminal
Mount -o rw,remount -t yaffs2 dev/block/mtdblock3 /system
Cp *yourdir*/HTC_IME.apk system/app
rm data/app/HTC_IME.apk
rm system/app/HTC_IME.apk
reboot
PHP:
since you dont use adb, if your using any kind of windows let me know and i can personally walk you thru an adb setup. i have encountered the worst of worst mess ups. durrr lol... fosho . . . . .
that doesnt make any sense, why are you removing HTC_IME right after you're done pushing it?
You need three files for HTC IME to work, HTC_IME.apk, Clicker.apk (both of those in /system/app or /data/app) and libt9.so (in /system/lib)
Assuming you place all three in C:\
Code:
adb remount
adb push C:\libt9.so /system/lib
adb push C:\Clicker.apk /system/app (or /data/app if you don't have space)
adb push C:\HTC_IME.apk /system/app (or /data/app if you don't have space)
no need to reboot, just give it time to finish dexopting (about a minute) then go to Settings>Locale & Text and enable (checkmark) Touch Input, disable Android Keyboard if you wish.
About where to get the files? search, but it's easier if you search inside Cyanogen's (version 4.0.4 and below) roms and pull them from those.
rockin_mod said:
if astro doesn't work try this.
you must have adb working. adb does wonders. works every time. top cmds is for adb and bttm is terminal on phone.
Adb remount
Adb push HTC_IME.apk system/app
Adb shell rm system/sd/app/HTC_IME.apk
Adb shell rm data/app/HTC_IME.apk
Adb shell reboot
Or from terminal
Mount -o rw,remount -t yaffs2 dev/block/mtdblock3 /system
Cp *yourdir*/HTC_IME.apk system/app
rm data/app/HTC_IME.apk
rm system/app/HTC_IME.apk
reboot
PHP:
since you dont use adb, if your using any kind of windows let me know and i can personally walk you thru an adb setup. i have encountered the worst of worst mess ups. durrr lol... fosho . . . . .
Click to expand...
Click to collapse
What do you mean by *yourdir*? Lol sorry kinda of a noob to this
Brandice128 said:
What do you mean by *yourdir*? Lol sorry kinda of a noob to this
Click to expand...
Click to collapse
First of all thank you for taking my advice , the Q & A section is the best place for all your questions about android . Seeing that your new here it would be wise that you do some research on the following
ADB
zip7
rar
cyanogen's 1.4 recovery
terminal commands
and so on . There's a lot but as you search you will find them ...
NOW the yourdir question ,it's on your SDcard where you downloaded your htc_ime.apk , if it's on the root of the sdcard (not in any folders) then just use cp sdcard/HTC_IME.apk or if you downloaded it then it's in your download folder then you do cp sdcard/download/HTC_IME.apk
adb remount
adb install directoryofyourfile\HTC_IME.apk
Click to expand...
Click to collapse
worked for me
i can never access from terminal
/sdcard/app.apk when tryin to install from someones commands.. they say cp /sdcard/app.apk /system/app
then i get cp cannot stat '/sdcard/app.apk no such file or directory?
mrnv45 said:
i can never access from terminal
/sdcard/app.apk when tryin to install from someones commands.. they say cp /sdcard/app.apk /system/app
then i get cp cannot stat '/sdcard/app.apk no such file or directory?
Click to expand...
Click to collapse
Is the .apk on the root of your card?
whats the app name? just want to confirm your using the apk files name instead of "app.apk"
mrnv45 said:
i can never access from terminal
/sdcard/app.apk when tryin to install from someones commands.. they say cp /sdcard/app.apk /system/app
then i get cp cannot stat '/sdcard/app.apk no such file or directory?
Click to expand...
Click to collapse
It sounds like you've got your commands mixed up. What are you trying to do exactly? You shouldn't really be pushing apps to /system while the phone is on..
just any app exapmle..
i tried to install the modified contacts.apk so i just go by the abundence of commands i got since it wasnt workin while in recovery in terminal to adb push /sdcard/contacts.apk /system/app/contacts.apk (with or without the last contac ts.apk on this section cause i know some do it without and just leave the folder name)
also when i am in my terminal and i to all that rw, -o,remount code they give you but i never can access /sdcard/ that away either.. and i usually just go to recovery load up adb shell ums_enable and the i run adb install f:/contacts.apk but then i get a sh: bin error or something like that..
now i cant even access my sdcard via adb using adb shell ums_enable/disable ..and at times a cant adb remount it says remount unsuccesful.. idk just alot of crazy ****
your sd card is probably going bad. also the commands are case sensitive. Contacts.apk
also RA recovery lets you toggle usb. you dont have to type ums_enable disable
just go and click on "toggle usb" in the recovery
I'm trying to push a folder from my PC's desktop to the /system folder on my device. Basically I pulled the /system/app folder from my device in order to remove some unused system apps, removed the .apks, and am now trying to get the folder back on the phone without success. Getting the error "Failed to copy... : Read-only file system." I thought you could push and pull anything to and from anywhere with ADB and root. Am I wrong, or I'm I simply missing something? Thanks for any help.
adb remount
adb push c:\app /system/app
adb reboot
BoomBoomPOW said:
adb remount
adb push c:\app /system/app
adb reboot
Click to expand...
Click to collapse
Dude. You helped. It worked. And you didn't trash on me for being a noob. You rule. Thanks!
Part Four said:
Dude. You helped. It worked. And you didn't trash on me for being a noob. You rule. Thanks!
Click to expand...
Click to collapse
Wait. It kind of didn't work. Even though the CMD window showed a successful push, I rebooted and the apps are still there. Damn. Thanks anyway.
adb remount
adb pull /system/app c:\
Make your changes..
adb remount
adb shell rm /system/app
adb push c:\app /system/app
adb reboot
BoomBoomPOW said:
adb remount
adb pull /system/app c:\
Make your changes..
adb remount
adb shell rm /system/app
adb push c:\app /system/app
adb reboot
Click to expand...
Click to collapse
Thanks again, but still no luck. The apps remain. Strange, because it looks like everything worked just fine in adb.
I can't find a thread for this, but how would I delete stock wallpapers or stock live wallpapers. I prefer to pick and choose which ones to remove to try and save a little space.
I have a rooted N1 with Cyan's mod. I'm comfortable using ADB, just don't know the proper commands, locations of wallpapers or names of specific files.
Me too. want to know where the files are located.
Me three. I've searched around in nearly every directory and cannot find them. I would like to remove the stock htc wallpapers to save space.
adb shell rm /system/app/LiveWallpapers.apk
adb shell rm -r /data/data/com.android.wallpaper
adb uninstall com.android.wallpaper
adb shell rm /system/app/MagicSmokeWallpapers.apk
adb shell rm -r /data/data/com.android.magicsmoke
adb shell rm /system/app/VisualizationWallpapers.apk
adb shell rm -r /data/data/com.android.VisualizationWallpaper
adb uninstall com.android.VisualizationWallpaper
adb shell rm /system/app/Mode10Wallpapers.apk
LiveWallpapers.apk = contains nexus and water live wallpaper and some other i cant remember
wallpapers are located inside of /system/framework/framework-res.apk and does require slight knowledge of how to edit framework files
hey i follow the first adb then i got this (?) then no go???what i need to do after (?)
vinny.1967 said:
hey i follow the first adb then i got this (?) then no go???what i need to do after (?)
Click to expand...
Click to collapse
Check if ur phone is detected by adb (adb devices). Then do an adb remount and the run the above adb commands
My device is detected but i try to put in the above commands I it says that its a read-only file system.
Static wallpapers (except the single default wallpaper) are stored in your launcher or in CM6 or Kang-o-rama a special wallpapers app.
It's much easier to download ES File Explorer, turn on root functions, mount system as read/write (same menu) and selectively delete the files you want from /system/app/ and /data/data/ as above.
But really, you're not going to save any user space as all because, for the most part, you're deleting stuff from /system which you don't otherwise need space on.