SOLVED - Pull an APK from unrooted phone - G1 Q&A, Help & Troubleshooting

I have a Motorola Cliq, Also a G1. I was wondering. Is there a way to pull an APK from an unrooted phone? I can "adb shell" into the phone and look at it's contents. I see the APK i want to copy but since i don't have root, it says "CP Permission Denied"... Is there a way of pulling or copying an APK if the phone is not rooted???

Did you try adb remount first?

Karolis said:
Did you try adb remount first?
Click to expand...
Click to collapse
yes, I tried ADB remount but it doesn't work... I can do adb devices and it'll show but it won't mount it as rw... it just lists the contents but can't copy,move,pull or push.

Where is the apk located? If it's in /system and it's read-only in theory you should still be able to pull it. Don't know why you're using 'cp' rather than adb pull.. If it's in data/app-private then no you won't be able to pull it. Hence the ADP1 has root but can't download paid apps (to prevent piracy)..

Solved
I tried CP, MV, PULL, PUSH... nothing worked because the phone is not rooted... BUT I SOLVED THE PROBLEM!
Here's what my goal was. My wife got a Motorola Cliq. It came with the TeleNav program and i wanted to put it on my G1... I couldn't get it out because the phone's not rooted....
I fixed the problem though...
I installed ASTRO File Manager on the Motorola Cliq, located the APK and used the e-mail option to e-mail it to myself... that actually worked... woot woot!
Installed it on the G1 and it works like a charm... so now I have Turn by Turn directions on my G1.

follow up question because i'm attempting to do the same thing, just trying to extract the apk. where exactly did you find that file using astro, i've been looking but haven't seen it

jbearamus said:
follow up question because i'm attempting to do the same thing, just trying to extract the apk. where exactly did you find that file using astro, i've been looking but haven't seen it
Click to expand...
Click to collapse
Apps should be in /data/app.
Also, you could have used ADB
Code:
adb pull /data/app/app.to.pull.apk C:\apps

Ooglez said:
Apps should be in /data/app.
Also, you could have used ADB
Code:
adb pull /data/app/app.to.pull.apk C:\apps
Click to expand...
Click to collapse
now i understand the fact that i have a different device may screw things up, but when i look in the data file it says "directory is empty" and when i executed that command via cmd prompt it says remote object...does not exist

the new google maps in market hs turn by turns as well...

Problem solved through other means, thanks for the help!

Related

Teeter for G1

Anyone have this apk that would work for JF's builds?
Just take it from one of the magic roms. It works fine on my g1
Not to savy on how to do that little help please?
Joeriginal said:
Not to savy on how to do that little help please?
Click to expand...
Click to collapse
I have uploaded attached it for you. However I've not tested it but I see no reason to why it shouldnt work.
Just so you know, this isn't a normal installation apk. In order to install it you're gonna have to move it to /data/app through a terminal with superuser permissions. i.e. through terminal emulator:
su
mv /sdcard/teeter.apk /data/app
[email protected] said:
Just so you know, this isn't a normal installation apk. In order to install it you're gonna have to move it to /data/app through a terminal with superuser permissions. i.e. through terminal emulator:
su
mv /sdcard/teeter.apk /data/app
Click to expand...
Click to collapse
It says it fails cause of something cross-linked I have apps to sd, how would I install this through terminal
Keeps force closing.
Joeriginal said:
It says it fails cause of something cross-linked I have apps to sd, how would I install this through terminal
Click to expand...
Click to collapse
I get the same thing. Cant move it over to /system/sd/app
EDIT: Had to do it via adb shell
Wow I had it install straight up as soon as xmoo released the /system folder of the magic. I didn't need to use adb & its on my sdcard
Joeriginal said:
It says it fails cause of something cross-linked I have apps to sd, how would I install this through terminal
Click to expand...
Click to collapse
Has anyone been able to install this app via the terminal emulator if so will you post the commands? I have been searching around for quite a while and I still can't find it. Any assistance will be greatly appreciated.
hello i too am having problems installing apk. tried to install from adb but got same error and force close. can someone point me in the right direction? thanks
You need the HTC frameworks and a ramdisk that puts them into the BOOTCLASSPATH. My CM2-ADP build has this (and Teeter). I doubt you'll get it working on a US firmware, though, because you can't change the BOOTCLASSPATH without breaking the preinstalled apps.
ok got it. I did try your build yesterday but had too many problems with the camera and video force closing. didnt see any real proformance change from jf1.51 either maybe need to update spl.
thank for the answer.
I found the teeter that can be installed using a regular installer app like Lindas. Its off the sapphire build. It does work but it is rather buggy on the g1.
http://forum.xda-developers.com/showthread.php?t=494533
Sorry, wrong thread
http://www.megaupload.com/?d=UL4HK3DZ
heres another apk

[ADB] adb server is out of date. killing...

I am keep getting this message whenever I try to adb. It corrects itself and works fine after. But it annoying waiting that additional few seconds... I didnt have this before. Any idea why I am getting it now?
what sdk version are you using? also have you gone to task manager and tried ending adb.exe?
david1171 said:
what sdk version are you using? also have you gone to task manager and tried ending adb.exe?
Click to expand...
Click to collapse
I am using the latest SDK. Thanks! That fixed it. Ending adb.exe in Task Manager... I was messing around cos I cant get fastboot to work. I go into FastbootUSB, connect my usb, run "fastboot devices", and I get no results. It just waits for my next command.
I tried killing adb.exe after I wrote an adb command and it didn't do anything. I keep getting that out out date killing .... can anyone help? thanks!
I have the same problem. Can't get rid of that stupid message.
i was having the same problem, i took ADB.exe and adbwinapi.dll from 1.5r2 SDK and put it in the new SDK Tools folder, problem was fixed
palosjr said:
i was having the same problem, i took ADB.exe and adbwinapi.dll from 1.5r2 SDK and put it in the new SDK Tools folder, problem was fixed
Click to expand...
Click to collapse
I did that and still have that problem ...
could someone please help me .. thanks!
If anyone runs into this problem I fixed mine with the adb.exe from the new "universal" sdk. I downloaded it and just pasted that adb.exe into the existing tools folder. May not be recommended but I did not want to change my setup.
while your phone is in recovery and plugged in, go to device manager and see if there is a listing called adb interface. if so, do you know how to manually update the drivers? by pointing the driver update to the usb folder of the sdk?
konzern
running my adb shell ums_enable is no longer working says ums not found ?
edit to m y post i found a alternative thank god!
1.plug in your phone and open command prompt
2.change directories to where u have ur sdk stuff (ex. cd c:\thenameofdirectory/tools)
3.type this in
adb shell
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
I am curious if any of you loaded Droid Explorer? I loaded it, played around with it, and it was pretty cool for the screenshot and screencast stuff. But, later I noticed I kept getting the "adb server is out of date. killing..." I searched through these threads and Google for a solution, but nothing seemed to work. I could enter "adb remount" and it might work about 1 time in 5. Even adb devices would fail and fail before finally reporting my device. After I uninstalled Droid Explorer. The problem stopped immediately. Now that I think about it, I think Droid Explorer runs a service. Maybe after uninstalling, the services stopped, fixing this problem. If not Droid Explorer, maybe some other program that is trying to detect the device at plugin. Just my experience.
I just killed the DroidExplorer service, and set it to manual. Problem solved.
I've had no luck with DE anyhow, so it probably won't get started again any time soon.
_zygo_ said:
I am curious if any of you loaded Droid Explorer? I loaded it, played around with it, and it was pretty cool for the screenshot and screencast stuff. But, later I noticed I kept getting the "adb server is out of date. killing..." I searched through these threads and Google for a solution, but nothing seemed to work. I could enter "adb remount" and it might work about 1 time in 5. Even adb devices would fail and fail before finally reporting my device. After I uninstalled Droid Explorer. The problem stopped immediately. Now that I think about it, I think Droid Explorer runs a service. Maybe after uninstalling, the services stopped, fixing this problem. If not Droid Explorer, maybe some other program that is trying to detect the device at plugin. Just my experience.
Click to expand...
Click to collapse
Yes, this is a problem that occurs after installing Droid Explorer. The service also takes a lot of idle CPU time. I have uninstalled it due to this and other reasons.
Damn, Droid Explorer! I uninstalled and I am still having this problem. Damn !
OK, I got droid explorer and adb playing nice together. I deleted the SDK from my PC, and reinstalled droid explorer full (which comes with the SDK already). Then I just added the new tools directory droid explorer installs to the system path. You can find directions on how to do that here -> http://wiki.xda-developers.com/index.php?pagename=HTC_Sapphire_Hacking#sec02 . Instead of using C:\AndriodSDK\Tools\ for the string I added, I used the default location where droid explorer installs the tools directory ( C:\Program Files\Droid Explorer\SDK\tools ). Now I have the best of both worlds !
lotherius said:
Yes, this is a problem that occurs after installing Droid Explorer. The service also takes a lot of idle CPU time. I have uninstalled it due to this and other reasons.
Click to expand...
Click to collapse
I also noticed I was getting the blue screen of death, which I hadn't seen in years. I think DE was causing that, too, because I haven't had the BSOD since uninstall. So two problems I didn't think were related seem to have been caused by Droid Explorer. I think it's a pretty cool program, but I'd rather do things the "old fashioned" way.
Can any of you point me in the direction of how to use ADB to take a screenshot? Maybe it can't. Thanks.
Edit: I found it...Through DDMS!
sacredsoul said:
I am keep getting this message whenever I try to adb. It corrects itself and works fine after. But it annoying waiting that additional few seconds... I didnt have this before. Any idea why I am getting it now?
Click to expand...
Click to collapse
Sounds like you have droid explorer installed, goto the sdk folder in droid explorer (c:\program files\droid explorer\sdk) copy the 2 folders (platform and tools) to your own sdk folder.
billquinn1 said:
If anyone runs into this problem I fixed mine with the adb.exe from the new "universal" sdk. I downloaded it and just pasted that adb.exe into the existing tools folder. May not be recommended but I did not want to change my setup.
Click to expand...
Click to collapse
Can you link to the "universal" download please? Probably missing something obvious here, but can't seem to find any other version than the most recent r05.
Thank you - worked a treat
palosjr said:
i was having the same problem, i took ADB.exe and adbwinapi.dll from 1.5r2 SDK and put it in the new SDK Tools folder, problem was fixed
Click to expand...
Click to collapse
where can i get 1.5r2 SDK?
THX BRO!

how to upgrade to setCPU 2.0?

I try to download install it but I get error saying it couldnt be installed.
On the main page it says I need to manually update it? I dont know how to do that. Emailed the dev 2 times with no luck. Anybody can help me please?
Thanks
sti-06 said:
I try to download install it but I get error saying it couldnt be installed.
On the main page it says I need to manually update it? I dont know how to do that. Emailed the dev 2 times with no luck. Anybody can help me please?
Thanks
Click to expand...
Click to collapse
uninstall the old one first....
flybyme said:
uninstall the old one first....
Click to expand...
Click to collapse
that is the thing, when I went under "Manage Applications" setCPU is not even listed in there to uninstall it...
Under the same place I went under "All" clicked on setCPU and uninstall button is not highlighted
sti-06 said:
that is the thing, when I went under "Manage Applications" setCPU is not even listed in there to uninstall it...
Under the same place I went under "All" clicked on setCPU and uninstall button is not highlighted
Click to expand...
Click to collapse
try this in terminal
su
rm /system/app/setcpu.apk
sti-06 said:
that is the thing, when I went under "Manage Applications" setCPU is not even listed in there to uninstall it...
Under the same place I went under "All" clicked on setCPU and uninstall button is not highlighted
Click to expand...
Click to collapse
What ROM are you running? The ROM you are running probably installed setcpu to system so you would have to pull the old version using adb or you might be able to use a file explorer to find it and delete it.
flybyme said:
try this in terminal
su
rm /system/app/setcpu.apk
Click to expand...
Click to collapse
Didnt work, it said "rm failed for /systesm/app/setcpu/setcpu.apk, Read0only file system"
irishrally said:
What ROM are you running? The ROM you are running probably installed setcpu to system so you would have to pull the old version using adb or you might be able to use a file explorer to find it and delete it.
Click to expand...
Click to collapse
I am using kang-o-rama 0.9
I went under /system/app and all I see is setCpuWidgetMod. There is not an app called just setCPU
sti-06 said:
Didnt work, it said "rm failed for /systesm/app/setcpu/setcpu.apk, Read0only file system"
Click to expand...
Click to collapse
Remount and then do it again.
Or download root explorer and browse to /system/app and delete the .apk from there.
mortzz said:
Remount and then do it again.
Or download root explorer and browse to /system/app and delete the .apk from there.
Click to expand...
Click to collapse
I have the astro mananger, browsed inside /system/app but there is not a file called setcpu.apk....
If you have root explorer, do a search for setcpu
Sent from my Liquid using Tapatalk
sti-06 said:
I have the astro mananger, browsed inside /system/app but there is not a file called setcpu.apk....
Click to expand...
Click to collapse
why does it say you cannot install? its the fault of the rom dev of including it in his build. see if you can find and delete the app from /system/app
it may be that mod that you mentioned
su
remount
rm /system/app/setCpuWidgetMod.apk
flybyme said:
why does it say you cannot install? its the fault of the rom dev of including it in his build. see if you can find and delete the app from /system/app
it may be that mod that you mentioned
su
remount
rm /system/app/setCpuWidgetMod.apk
Click to expand...
Click to collapse
From what I see it does not give me reason it just says "Install unsuccessful"
tried:
su
remount
rm /system/app/setCpuWidgetMod.apk
on terminal and gave me same error "Read only file system"
also, when I typed "remount, it said "remount not found"...
If u install it, and while its downloading click the progress bar to get to the setcpu description screen in market, it'll show u the reason it failed.
Most likely it'll say something like insufficient space - which actually is a result of it not being able to overwrite the existing apk thats installed. To find the actual apk try this
find / -name *setcpu*
You should get a list of all files with setcpu on your phone. rm -F the correct apk. If its on /system you will need to do 'adb remount' from your windows command prompt, then open a adb shell before you can delete it.
btw it may actually be these two:
rm /data/data/com.mhuang.overclocking
rm /data/app/com.mhuang.overclocking-1.apk
kam187 said:
If u install it, and while its downloading click the progress bar to get to the setcpu description screen in market, it'll show u the reason it failed.
Most likely it'll say something like insufficient space - which actually is a result of it not being able to overwrite the existing apk thats installed. To find the actual apk try this
find / -name *setcpu*
You should get a list of all files with setcpu on your phone. rm -F the correct apk. If its on /system you will need to do 'adb remount' from your windows command prompt, then open a adb shell before you can delete it.
Click to expand...
Click to collapse
Thanks. It says: "Package file was not signed correctly"
kam187 said:
btw it may actually be these two:
rm /data/data/com.mhuang.overclocking
rm /data/app/com.mhuang.overclocking-1.apk
Click to expand...
Click to collapse
I looked inside the /data/ with ASTRO but there is nothing in there...
Yeah not sure why astro shows it empty. It may be because it doesnt run with root privaledges and only requests them when you try to delete something.
Use adb to check.
sti-06 said:
Thanks. It says: "Package file was not signed correctly"
Click to expand...
Click to collapse
yes this is because the old one is installed.
Use ES file explorer...not sure if its root access will work on that rom but it should
flybyme said:
yes this is because the old one is installed.
Use ES file explorer...not sure if its root access will work on that rom but it should
Click to expand...
Click to collapse
U mean EStrongs File Explorer right?
sti-06 said:
U mean EStrongs File Explorer right?
Click to expand...
Click to collapse
yes
it would be best if you do it through adb though

[Q] Deleted LG-home, no backup.. now what?

First post! So hello,
I made a big screwup. First i rooted my lg-p990, next i deleted lg-home using Titatium Free. I did not backup my file. Also i never installed a new homescreen.
When finishing this action, the phone didnt respond anymore. Now it wont restart. It is still possible to connect to pc and view sd cards. Also it will restart bringing the installation sequence, but when finishing it, the phone stops responding again.
I realise i havent been very smart. But does anybody have a solution?
Im guessing you will have to push the apk through adb.... but as i have limited knowledge on this i would wait until someone more experienced gives you help!
Moonie17 said:
Im guessing you will have to push the apk through adb.... but as i have limited knowledge on this i would wait until someone more experienced gives you help!
Click to expand...
Click to collapse
thanks for your reply. I heard about this before, but dont have they faintest clue about how to deal with it.. I hope sombody can help me out
goaner33 said:
thanks for your reply. I heard about this before, but dont have they faintest clue about how to deal with it.. I hope sombody can help me out
Click to expand...
Click to collapse
Short answer for you:
1) Download my attachement
2) Rename it from .zip to .apk
3) Put in adb folder
4) Run:
adb remount
adb push LGLauncher.apk /system/app/
adb reboot
doesn't pushing apks to system/app require root? Correct me if I'm wrong
aMpeX said:
doesn't pushing apks to system/app require root? Correct me if I'm wrong
Click to expand...
Click to collapse
Yes it does, as well as removing /system apps
Piter1225 said:
Short answer for you:
1) Download my attachement
2) Rename it from .zip to .apk
3) Put in adb folder
4) Run:
adb remount
adb push LGLauncher.apk /system/app/
adb reboot
Click to expand...
Click to collapse
Thanks again for your reply.
My next problem is that i dont know how to operate adb. I've got android sdk installed, but cant find how to work with adb.. What to do?
-edit-
I did some more research, and i cant use the commandline to acces :\android-sdk-windows\tool. This path doesn excist. Neither am i sure if USB-debugging is activated on the phone. I cannot acces the phones menu, so i cannot check..
what to do....
goaner33 said:
Thanks again for your reply.
My next problem is that i dont know how to operate adb. I've got android sdk installed, but cant find how to work with adb.. What to do?
Click to expand...
Click to collapse
You need to use command line to enter the lines I've written
Piter1225 said:
You need to use command line to enter the lines I've written
Click to expand...
Click to collapse
There are a few problems:
First is that there is no adb map to be found. Second is that when i for example enter the command "adb remount" my system doesnt recognise the command..
Thanks for your efforts though
Well. You rooted the phone. So usb debugging is enabled. It has to be for super one click to work.
Sent from my LG-P990 using XDA Premium App
Try that
Go to C:/Windows/System32
Copy cmd.exe
Paste it in SDK folder, where the ADB.exe is
Than enter my commands
gensplejs said:
Well. You rooted the phone. So usb debugging is enabled. It has to be for super one click to work.
Sent from my LG-P990 using XDA Premium App
Click to expand...
Click to collapse
And what when i... and i dont know this for sure, turned usb debugging off...
goaner33 said:
There are a few problems:
First is that there is no adb map to be found. Second is that when i for example enter the command "adb remount" my system doesnt recognise the command..
Thanks for your efforts though
Click to expand...
Click to collapse
"adb remount" wont work untill we have a modded boot image.
anyway. I can help you remotely if you want. just write me a PM.
gensplejs said:
"adb remount" wont work untill we have a modded boot image.
anyway. I can help you remotely if you want. just write me a PM.
Click to expand...
Click to collapse
Dam... my bomgar server seems to be down... or i locked myself out :-(
But i can help you remotely tomorrow.
gensplejs said:
Dam... my bomgar server seems to be down... or i locked myself out :-(
But i can help you remotely tomorrow.
Click to expand...
Click to collapse
Wow, that would be great! i'll pm you for my contactinfo!
Piter1225 said:
Try that
Go to C:/Windows/System32
Copy cmd.exe
Paste it in SDK folder, where the ADB.exe is
Than enter my commands
Click to expand...
Click to collapse
Okee, i must sound liek a real noob. I cannot find this SDK folder and the only file that i can find that relates to adb is adb_usb.exe..
i know that i am a real pain in the ass
If you manage to get a working adb connection the commands you need to execute are. Please make sure that the phone is unlocked when typing su (you will get a su access prompt on the phone and need to press allow)
adb push LGLauncher.apk /sdcard/
adb shell
su
busybox mount -o,remount -rw /system
stop
cp /sdcard/LGLauncher.apk /system/app/
reboot
problem solve
E-mail download link of the LGhomeLaunger.apk
Download on you phone and install.
It works as new!
Ok i solved the problem, thanks for thinking along with me..
It seemed i could still recieve emails, so i just sent the lghome.apk as a downloadlink true email..
it worked!
i guess sometimes solutions are not always as dificult!
goaner33 said:
Ok i solved the problem, thanks for thinking along with me..
It seemed i could still recieve emails, so i just sent the lghome.apk as a downloadlink true email..
it worked!
i guess sometimes solutions are not always as dificult!
Click to expand...
Click to collapse
well...
that is not a permanent fix.
when you install that way it is only installed in user space... If you ever factory reset the phone you will be stuck without a launcher again... and probably no way to config ur email :-(
you need to put the launcher apk file on your sd card... and then copy it to the /system/app folder using root explorer.
If you do this it will be fixed even after a factory reset...
anyway. Next time just freez apps. Dont uninstall them. If they are only frozen you can allways factory reset to get them back.

Anolog clock resets o reboot

Hi all,
Was not really sure where to put this apologies if its the wrong place.
I recently created my own analog clock, I'm using CM7 RC0, I simply replaced the clock background .png in the original desktopclock.apk, renamed it, signed it and then installed it through filemanager.
Now, it works fine! I was very happy, until I rebooted my phone today, got back onto the desktop and it had reset to the original anolog clock! Tried it again and sure enough everytime I reboot I have to reinstall the .apk!
Anybody have any idea why on earth this would happen?
Many thanks,
Sean
This was originally brought to my attention with the HTC_IME mod by Jonasl. I installed a themed version over the top of the one already installed by default in /system/app and on reboot the original (quite frankly ugly) keyboard was back...
for some reason I do not know, you have to manually un-install the previous version. Don't know why...
use this http://forum.xda-developers.com/showthread.php?t=644909
to un-install the original apk for the clock, then push your app into /system/app using adb. reboot and it should all be sorted... I hope.
Great stuff, thank you for your help. Now I wonder how to do this using linux, I will look into it, at least I know what the problem is
wiiija said:
Great stuff, thank you for your help. Now I wonder how to do this using linux, I will look into it, at least I know what the problem is
Click to expand...
Click to collapse
I'm on linux right now, and I did this to remove my stock messaging app not 3 hours ago...
Just open up your terminal and use adb, assuming you have the androidsdk on your computer...
If you don't it's going to be a little harder, you're going to have to find a root exploring file manager and delete the analog clock app from /system/app and then you're going to have to put the new one there AFTER rebooting.
If you want adb just ask and I'll tell you how to get it.
1. download the android sdk from http://dl.google.com/android/android-sdk_r12-linux_x86.tgz
2. open up the .tgz and extract it to /home/-your_user_name/androidsdk
3. open up terminal and type
su
PATH=$PATH:/home/-your_user_name/androidsdk/tools
adb
adb devices <-------(make sure your device is connected and in debug mode. If that fails just boot into recovery)
qiuness said:
adb shell
su
cd /system/app
mount -o rw,remount /system
rm -r analogclock.apk
Click to expand...
Click to collapse
4. install your new, themed app
abd push /path/to/your/app.apk /system/app
5. reboot.
Brilliant guys thank you very much, its all sorted, easy once you know how

Categories

Resources