Quick question about ADB - G1 Q&A, Help & Troubleshooting

Im still getting the hang of adb, and so far ive used it correctly in everthing ive needed to do, but now i need to know how to remove files off of the phone using adb (if possible)
i pushed a .mp3 to a folder, but i meant to push it to a different folder, how can i remove it from the phone?
and i dont want to just move it (although id like to know how to do so) i want to know how to actually take it off of the phone
thanks

adb shell rm /path/to/mp3

Related

htc camera

is it possible for me to replace my camera wit the htc camera app that is on the hero rom, and if so where can i get it??
not sure if possible, but it's easy to find out.
all you have to do is download the hero rom and extract the files. go into the system folder and look inside of the app folders and look for HTCCamera.apk OR Camera.apk.
take it and push it to your phone and reboot, it should work or not work you can test. it wont harm your phone. make sure you backup your current camera app first so you can revert if the hero camera dont work. Make a note of what file name your current camera is, and rename the hero camera to be the same thing. then push it.
NguyenHuu said:
not sure if possible, but it's easy to find out.
all you have to do is download the hero rom and extract the files. go into the system folder and look inside of the app folders and look for HTCCamera.apk OR Camera.apk.
take it and push it to your phone and reboot, it should work or not work you can test. it wont harm your phone. make sure you backup your current camera app first so you can revert if the hero camera dont work. Make a note of what file name your current camera is, and rename the hero camera to be the same thing. then push it.
Click to expand...
Click to collapse
you dont think i can jus install it as a normal app?? and if not, how do i "push it to my phone"??
gamefan231 said:
you dont think i can jus install it as a normal app?? and if not, how do i "push it to my phone"??
Click to expand...
Click to collapse
this is the exact steps you need to take.. first you need adb installed
adb remount
adb pull /system/app/Camera.apk
adb install directoryoffile/HTCCamera.apk
adb install directoryoffile/HTCAlbum.apk
adb shell remount
if it doesnt work or you get a FAILURE when pushing either one of these .apk files just push back your old Camera.apk
palosjr said:
this is the exact steps you need to take.. first you need adb installed
adb remount
adb pull /system/app/Camera.apk
adb install directoryoffile/HTCCamera.apk
adb install directoryoffile/HTCAlbum.apk
adb shell remount
if it doesnt work or you get a FAILURE when pushing either one of these .apk files just push back your old Camera.apk
Click to expand...
Click to collapse
where can i find "adb" and how do i install it?
gamefan231 said:
where can i find "adb" and how do i install it?
Click to expand...
Click to collapse
ay yi yi... look here... it will tell you exactly how to get ADB up and running... once you do, you will wonder how you ever lived without it...
ADB, Fastboot, Nandroid for n00bs
also, this write up is for the 1.5r2 SDK, the setup for 1.5r3, which is the newest one is exactly the same
IF YOU HAVE THE SDK INSTALLED, THEN YOU ALRREADY HAVE ADB. needed that in caps so you dont go installing stuff u might not need.
if you are on windows, hit start > run. then type CMD, then the dos box will pop up. here you can enter in the commands that palosjr gave earlier.
i was following the directions on the thread posted but when i tried to put the sdk folder in my c/ drive it told me i didnt have enuff space...would it be possible for someone to put the htccamera app into a theme for me?
I tried it but it resulted in following error:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
For either one (HTCCamera and HTCAlbum)
ya nm good luck im going to see how it turns out i would love to have HTC camera and Album seems nice.
abraxas_son said:
I tried it but it resulted in following error:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
For either one (HTCCamera and HTCAlbum)
Click to expand...
Click to collapse
probably needing some other framework from hero to make this work... i will do some searching for you and see if i cant get it to work. if you guys want the HTC camera, why dont yall just flash jacheroski1.8 or 2.0? both are solid, and in case you didnt hear, all the SMS issues are fixed.
I have ran those roms and ya they are solid but i like to stick with cyanogen roms. Im only really after the ablum app with multi touch. Now that BFS has hit the scene I'm tempted to give a hero rom a look see but i want to see what cyanogen will do next lol.
I looked around in two hero roms and found in the lib folder two *.so files for the camera and one for album. Those are the only files that are named after the apps. On a side note, do the camera and ablum app rely on one another? The reason i ask is the thread was started about the camera app and then it is recommended to push both by adb. Getting album to work is what caught my eye to begin with all though htc camera app would be nice.
Any progress on this front? I tried a couple Hero roms and really liked the camera and gallery. I can't stay on Hero because it doesn't work right with Google Voice dial-thru. Is there a way to get them ported into Cyanogen 4.1.11.1?
Install_failed_already_exists
Interesting... trying to adb install HTCCamera.apk (taken from the Sprint Hero dump) into Cyanogen 4.1.11.1 fails with the message [INSTALL_FAILED_ALREADY_EXISTS]
Doing the same for HTCAlbum.apk gives the message [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

SOLVED - Pull an APK from unrooted phone

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!

Install A System App

Hi I've searched the forums to the best of my ability, and cant figure out how to install a system app. I pulled the app (Via ADB Pull) and tried to push it back into /system/app and it works, but never installs? And i cant find it with astro or other software. =( Im using a G1 with Cyan, If you need more information please tell me!
Pushing does install. It doesn't have the install text like adb install does, but that is how you push files so it should work.
You could check to see if you have it set as read only, or delete the file then copy over the new one.
Im not sure what i did but i just kept trying and rebooting untill something worked =/ Lol Thanks though.. What do you mean by Read Only?
System partition is read-only by default, you need to change it to read-write if you want to install or push anything to it. I can never remember commands but they are all over this forum.

[Q] adb confusion

Hey there xda forums,
so a while ago i bought a galaxy s, and i was pretty happy with it! rooted it, used a lagfix, and now im trying to tweak the framework-res.apk to get a glass status bar + dock.
now i know theres enough tutorials on this, and i know how the adb works, but i cant seem to 'push' my framework-res.apk back onto my phone after i've modified it.
here's what it says
Code:
C:\android-sdk-windows\tools>adb push framework-res.apk /system/framework/
failed to copy 'framework-res.apk' to '/system/framework//framework-res.apk': Permission denied
it seems i am missing some permissions. as i've mentioned, my phone is rooted, so i dont think thats the problem. anyone else having trouble trying to push apk's?
please help me out, id like some more customizing, but i cant seem to get past the 'permission denied'.
i've read a superuser authentication box is supposed to pop up when i keep the phone from going to stand by, but nothing is happening.
when i went to the adb shell and run 'su' i did get the box..
regards,
terraego
bumperdiebump,
cmon someone with a xxjf3 device must have tried adb? i really want to customize my device
I had the same trouble with ADB on my JM1 ROM, in the end I used "Root Explorer" (from the market) to alter the permissions of the system and Framework folders, to give ALL read/write access... had to reboot a few times before the permissions would stick... now adb worked first time
Just install Root Explorer, Long press on the System Folder and select Permission, then make sure ALL boxes are ticked, then browse to the Framework fodler and do the same....

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