[Help] Pulling apk's from phone to computer. - Hero CDMA Q&A, Help & Troubleshooting

I am trying to pull the Sprint_Core.apk out of Damage's 2.5 rom and try to mate it with this 1.0 rom.
But every time I try and pull it it will simply give me the adb options, or will say no such file. Here's what I'm doing:
adb remount
adb pull system/app/Sprint_Core.apk C:\My Documents
I have also tried, making /system writeable but still no avail.
Can someone direct me to how I'm commanding this wrong?
Thanks!

adb remount
adb shell
cd system/app/
rm Sprint_Core.apk

Tipharet said:
adb remount
adb shell
cd system/app/
rm Sprint_Core.apk
Click to expand...
Click to collapse
That would remove Sprint_Core from the phone & I think is just trying to get a copy of the Sprint_Core from DM2.5 to use with another ROM...

stephen240 said:
I am trying to pull the Sprint_Core.apk out of Damage's 2.5 rom and try to mate it with this 1.0 rom.
But every time I try and pull it it will simply give me the adb options, or will say no such file. Here's what I'm doing:
adb remount
adb pull system/app/Sprint_Core.apk C:\My Documents
I have also tried, making /system writeable but still no avail.
Can someone direct me to how I'm commanding this wrong?
Thanks!
Click to expand...
Click to collapse
See if this works:
adb pull /system/app/Sprint_Core.apk "c:\my documents\"
Make sure "My Documents" exists in your c:\ drive.

Try this
adb pull system/app/Sprint_Core.apk C:\Sprint_Core.apk
no remount needed it will put right on your c drive dont do that rm stuff unless your tryin to remove it oh wait according to my adb cheat sheet that actually wouldnt do anything without adb shell in there

thatguythatdid said:
Try this
adb pull system/app/Sprint_Core.apk C:\Sprint_Core.apk
no remount needed it will put right on your c drive dont do that rm stuff unless your tryin to remove it oh wait according to my adb cheat sheet that actually wouldnt do anything without adb shell in there
Click to expand...
Click to collapse
Ah, I understand now. Thanks this worked! Kudos to you!

gu1dry said:
That would remove Sprint_Core from the phone & I think is just trying to get a copy of the Sprint_Core from DM2.5 to use with another ROM...
Click to expand...
Click to collapse
He can then just extract the file from the update zip.

Related

How do you install new HTC_IME?

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

/sdcard/ problem

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

ADB Push Problem

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.

adb commands nexus one-read only error

I have been trying for some time now,pushing files via adb commands onto nexus one but keep getting cannot copy file read only file error.I am fully rooted and unlocked.I have also reinstalled the android sdk but always get the same error when I push the image file.has anyone experienced this with their phone. I have a feeling its something to do with the SD card but can't be sure.any help would be appreciated. Thanks.
I know you must be thinking "Jedi"how can he can he call himself an androidjedi when he can't sort this simple problem (to some of you),but I must say even a Jedi needs to learn!
try adb remount before your command
Dunno if this will help but have tried changing the system to rw then try to push
Tried that no cigar
are you trying to push it into your sdcard or the phone system??
and remember the whole folder name has to be in the push so it woul have to look like
C:\Users\Android>ad push "C:\Users\Android\Downloads\Android\Nexus 1\Phone.apk" /sdcard/files
has to have full path of where you are pushing it from/too.. i have mine sdk setup to use adb in any directory as well why you dont see it in the sdk directory
@ilostchild
Thanks i will try that later today and let you know
As for pushing the file - i am trying to push it to the sd card - but i am not really sure as i am following instructions in the [HOW-TO] Revert HBOOT 0.35.0017 to 0.33.0012 thread in the forum
as i need to downgrade my Hboot from #17 to 12
are the commands different for pushing a file to the phone?
the more i think about i think i need to flash the file to the phone - but i will try your adb command format of specifying the location of the file in the comp
androidjedi said:
the more i think about i think i need to flash the file to the phone - but i will try your adb command format of specifying the location of the file in the comp
Click to expand...
Click to collapse
Ooo you want to push to sdcard.. ok then yea, you would type it like this
C:\android-sdk-windows\tools> adb push C:\Users\Android\Downloads\Android\signed-passion-FRF50-from-
ERE27.1e519a24.zip /sdcard*
if you dont have the option to use adb in any directory, then you have to be in the android sdk directory and in tools
cd android-sd-windows
cd tools
adb push(drag the file you want to push in the command prompt window) /sdcard*
sorry i know its detailed and im sure you know all these things.. but it kinda gets the questions out of the way for future problems to come
ilostchild said:
Ooo you want to push to sdcard.. ok then yea, you would type it like this
C:\android-sdk-windows\tools> adb push C:\Users\Android\Downloads\Android\signed-passion-FRF50-from-
ERE27.1e519a24.zip /sdcard*
if you dont have the option to use adb in any directory, then you have to be in the android sdk directory and in tools
cd android-sd-windows
cd tools
adb push(drag the file you want to push in the command prompt window) /sdcard*
sorry i know its detailed and im sure you know all these things.. but it kinda gets the questions out of the way for future problems to come
Click to expand...
Click to collapse
thanks for spending time on this-i am new to the android world so any help is welcome-however detailed or not
thanks will try that
ilostchild said:
Dunno if this will help but have tried changing the system to rw then try to push
Click to expand...
Click to collapse
how do i change the system to read write as i am still getting cannot copy file read only file error
androidjedi said:
how do i change the system to read write as i am still getting cannot copy file read only file error
Click to expand...
Click to collapse
do adb shell
su
Mount -o remount,rw /dev/block/mtdblock3 /system
then exit and exit
then do push
ilostchild said:
do adb shell
su
Mount -o remount,rw /dev/block/mtdblock3 /system
then exit and exit
then do push
Click to expand...
Click to collapse
tried that did the push and all i got was 950 KB/s <0 bytes in 76044.000s>
looks like its not pushing the file not sure what to do now
androidjedi said:
tried that did the push and all i got was 950 KB/s <0 bytes in 76044.000s>
looks like its not pushing the file not sure what to do now
Click to expand...
Click to collapse
Umm if you got that mesage you may have pushed it in right..
ilostchild said:
Umm if you got that mesage you may have pushed it in right..
Click to expand...
Click to collapse
does not seem to have worked for some reason as after flashing it should reboot in htc mode and then i would be able to flash a rom with the hboot12
May i ask what are you trying to push into your phone/sdcard?
ilostchild said:
May i ask what are you trying to push into your phone/sdcard?
Click to expand...
Click to collapse
I am trying to follow the instructions on the thread which can be found in the the following link forum.xda-developers.com/showthread.php?t=726258
basically trying to flash two image files that enable downgrading the Hboot from 0.35.0017 to 0.33.0012
androidjedi said:
I am trying to follow the instructions on the thread which can be found in the the following link forum.xda-developers.com/showthread.php?t=726258
basically trying to flash two image files that enable downgrading the Hboot from 0.35.0017 to 0.33.0012
Click to expand...
Click to collapse
managed to do it after just following the instructions and inoring what i thought was an error i managed to downgrade my happy days have a good weekend
will no doubt ask you for help another time cheers and thanks a lot
Welcome and congratz
Sent from my Nexus One using XDA App

[Q] adb remount

Hi guys,
sorry if my english isnt so good...
i'm in trouble with ADB..
i want to upgrade my swype keyboard on my NEW M1 rom eu....i got the 1.58 and i want to try the 1.60..
i found a thread on this forum with commands for upgrading the swype like this way:
Code:
adb remount
adb shell
su
pm list packages -f | grep swype
rm /system/app/<restOfApkPathFoundInAboveCommand>
pm uninstall <value after apk= found in result of 2 commands above>
exit
Install normally. If you want the apk in the rom:
adb push <newSwype.apk> /system/app/<newSwype.apk>
adb remount
adb shell
pm install <newSwype.apk>
(found here-> LINK)
I'm stuck at the beginning:
Code:
C:\android\tools>adb devices
List of devices attached
9000ec2a228b device
C:\android\tools>adb remount
remount failed: No such file or directory
my phone is rooted and in debug usb mode..I dont understand how can I go ahead...
what can I do?
thanks
ivan
Same here.
gbates said:
Same here.
Click to expand...
Click to collapse
oh..i'm not the only one! : >
we need to find the solution...but it's not easy..
are u using the NEW M1 rom too?
Rooting doesn't automatically give you remount permissions AFAIK.
i just use this command
Code:
adb push test.txt /sdcard/test.txt
and the copy is ok....i found the file in the sgs sdcard...
The command adb remount is for the /system directory (for set write permission) .... i think it cant find the directory /system on the phone......why?!?!
danmullen said:
Rooting doesn't automatically give you remount permissions AFAIK.
Click to expand...
Click to collapse
mmmm what do u mean? i need to do something else? thanks
Are you using the internal ext2 lagfix? I think that causes problems with the adb remount command. It doesn't work for me either.
Same results using a different ROM?
psychedelic'd said:
Are you using the internal ext2 lagfix? I think that causes problems with the adb remount command. It doesn't work for me either.
Click to expand...
Click to collapse
No lagfix installed at the moment..i installed lagfix when i was on M2 but i think that reflashing removed the lag fix...is it right?
harold4 said:
Same results using a different ROM?
Click to expand...
Click to collapse
Not yet but i think i'm gonna try it this afteroon if i dont find a solution.
Sent from my GT-I9000 using XDA App
adb remount as well
Trying to remap hard keys, adb remount along with push and pull do not work. Depending on whether im in shell or not I get no such file or directory or file not found errors. I can change into directory of each of the folders im trying to work with, and look at the file but I can't push it from my tools folder(locally) or pull it from the system folder. Every tutorial I see has adb remount command first, which fails every time.
Samsung Fascinate
Blackhole-build your own rom
(also tried on jt's latest rom, same issue
Crazy
I'm having the same issue here too. I'm trying to get a custom boot screen on my rooted Samsung Infuse and I've tried every way I can think of and it wont take. Clockworkmod says successfully installed, but its not. Soon as I reboot I see the At&T stock boot. I've fixed all of my permissions and still no luck.
So I saw a solution to do it via adb by typing "adb remount" and I get the same thing u guys are getting. I've got a headache now. Done all I could, even typing "shell", "su", that all goes well then when I tried to push it "adb push bootanimation.zip system/media" I get adb: not found. Smh, is it a device issue?
i think ive got the solution
flash a new kernel..................................worked for me................

Categories

Resources