[Q] where to i push an .apk too? - Hero CDMA Q&A, Help & Troubleshooting

when pushing an .apk through adb, where to i push it? for example, you put in the .apk file name
com.fede.launcher.v.0.8.1.1.apk/system/???
i don't know where to push it to get it on my hero lol.
can anyone plz help me noob self out?

Where you push it to is completely situational.
If you want the application to be a "system" app you would push it to /system/app/
Code:
adb remount
adb push ./appnamehere.apk /system/app
Like for example a Home such as the one you wrote - LauncherPro.
Otherwise you can push apps to /data/app - which is where most of your market downloaded/non-market (unknown source) apps get installed to.
Code:
adb push ./appnamehere.apk /data/app
(the rest go to /data/app-private but that doesn't matter here)

ok thanks so much for the reply! i will do that. and since i want to put in a new launcher i have to remove the old one first?

You could keep the old one there if you wanted, but if you're never going to use it you might as well remove it

Related

Champion v2 problem

My text messaging isnt working anymore why is this the rom is super fast for me i love it but i cant get text messages any one having same prob? or know of a solution?
im on this rom and dont have this problem...try pushing a Mms.apk from another hero build
how do you do that?
Code:
adb remount
adb push [directory on your computer that contains the Mms.apk]/Mms.apk /system/sd/app_s/Mms.apk
adb shell reboot
someone correct me if that is the wrong location
since i am going to assume you do not have adb though
go into the recovery terminal and type
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd/app_s
cd system/sd/app_s
rm Mms.apk
reboot
then have the Mms.apk from another build on your sdcard(fat32) and install it via astro or some other package installer
again someone correct me if that is the wrong location because i am not on a hero build right now or i would confirm the directories myself
Im pretty sure u cant install system apps with astro. Either try the super user file browser from the market, terminal, or adb
pistol4413 said:
Im pretty sure u cant install system apps with astro. Either try the super user file browser from the market, terminal, or adb
Click to expand...
Click to collapse
i have installed AlarmClock.apk and the modified Mms.apk by rgv151 with astro after deleting the original one with astro, but then again maybe i am special lol

How to replace fonts without USB?

I like to use Helvetica, so every time I flash a new cyanogen ROM, I find myself having to hook up USB and copying over the ttf files from my desktop.
Code:
adb remount
adb push ~/android/fonts/Helvetica/DroidSans.ttf system/fonts
adb push ~/android/fonts/Helvetica/DroidSans-Bold.ttf system/fonts
adb shell reboot
Can someone help me figure out how to do this directly on the phone?
I have the ttf files on my SD card, but I can't figure out how to copy them over to /system/fonts.
I tried using Better Terminal Emulator (a) but it's a pain to type it all, and (b) it doesn't allow it.
Is there a way to create a script to do this?
Can the script be made into an app/icon on my home screen?
It would be great if someone wrote up an app that could change fonts in general.
Thanks!
d0g said:
I like to use Helvetica, so every time I flash a new cyanogen ROM, I find myself having to hook up USB and copying over the ttf files from my desktop.
Code:
adb remount
adb push ~/android/fonts/Helvetica/DroidSans.ttf system/fonts
adb push ~/android/fonts/Helvetica/DroidSans-Bold.ttf system/fonts
adb shell reboot
Can someone help me figure out how to do this directly on the phone?
I have the ttf files on my SD card, but I can't figure out how to copy them over to /system/fonts.
I tried using Better Terminal Emulator (a) but it's a pain to type it all, and (b) it doesn't allow it.
Is there a way to create a script to do this?
Can the script be made into an app/icon on my home screen?
It would be great if someone wrote up an app that could change fonts in general.
Thanks!
Click to expand...
Click to collapse
Is there a way to post in the correct section?
Anyways, have them on the root of your sdcard and
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/*.ttf /system/fonts
reboot
That should change the fonts.
Gscript
d0g said:
I like to use Helvetica, so every time I flash a new cyanogen ROM, I find myself having to hook up USB and copying over the ttf files from my desktop.
Code:
adb remount
adb push ~/android/fonts/Helvetica/DroidSans.ttf system/fonts
adb push ~/android/fonts/Helvetica/DroidSans-Bold.ttf system/fonts
adb shell reboot
Can someone help me figure out how to do this directly on the phone?
I have the ttf files on my SD card, but I can't figure out how to copy them over to /system/fonts.
I tried using Better Terminal Emulator (a) but it's a pain to type it all, and (b) it doesn't allow it.
Is there a way to create a script to do this?
Can the script be made into an app/icon on my home screen?
It would be great if someone wrote up an app that could change fonts in general.
Thanks!
Click to expand...
Click to collapse
ever heard of "gscript" .. it's pretty simple to create a script to do whatever you want it to do .. ie. "cp /sdcard/*.ttf /system/fonts" .. no USB needed .. come to think of it i don't use a USB connection for any of my G1 needs
Thanks! That worked!
I found this handy app -- GScripts (on the market) -- that let me set up the script to run with one click.
PS: I'm sorry -- which section should this go in? Regular Q&A?

Help with pushing apks

ok i have exhausted my brain with trying to get into all this by myself. All i want to do is change the drawable's and push them back to my phone. I started small by pulling my HtcClockWidget.apk. I pulled res folder edited some imgs and put folder back in. I have also rm via sdk my origanal one from /system/app i cant for the life of me figure out how to open new one back up. I used Freshkitchen to push file back becuase i couldnt do it myself via adb and here i am now. Why cant i open or install this apk. is it becuase of its location in the system? i sure could use a little friendly help. pm or [No1ukno1357 at aol thnks. If i even posted this in right place. I have about ten diff browsers open trying things so i did search before posting lol. ***I did rm old one first.***
adb remount
adb push HtcClockWidget.apk /system/app/
adb reboot
Does that not work ?
-------------------------------------
Sent from my HERO200
well its booting up we will see lol
well it is now pushed to there but how do you install its not own my widgets list anymore and using esfileexplore wont let you touch them pretty much. my logcat is going absolutly nuts lol ok well it loaded it back up but my changes were not made looks the same lol. going to double check that it was correct one i put back in there
did you remove the apk you edited out of your system before pushing it back?
i use this command when i putting apks back into system.
# install /sdcard/HtcClockWidget.apk /system/app/
Some of the widget files are located in com.htc.resources.apk
no1ukno1357 said:
ok i have exhausted my brain with trying to get into all this by myself. All i want to do is change the drawable's and push them back to my phone. I started small by pulling my HtcClockWidget.apk. I pulled res folder edited some imgs and put folder back in. I have also rm via sdk my origanal one from /system/app i cant for the life of me figure out how to open new one back up. I used Freshkitchen to push file back becuase i couldnt do it myself via adb and here i am now. Why cant i open or install this apk. is it becuase of its location in the system? i sure could use a little friendly help. pm or [No1ukno1357 at aol thnks. If i even posted this in right place. I have about ten diff browsers open trying things so i did search before posting lol.
Click to expand...
Click to collapse
why dont u just put the apk into a zip file then use pre kitchen to sign it and then flash it. also some of the backgrounds are in htcresources apk found in the framworks of roms
yes it did install I think I may have edited some of the wrong pics for the clock I wanted. I also was also trying to push file from desktop. lol I sure do appreciate every ones help.
Sent from my HERO

Installing stock apps on CM6

CM6 truly is full of awesome. Some people (like me) just tend to prefer stock counterparts over custom software. To be specific, I want to install the stock Launcher and Music apps. ADW Launcher and the modified music player are good, but as a UX Designer, I find the stock counterparts smoother at the moment.
I got the apks of the two apps from the stock Froyo zip, but they can't be installed. How do I install stock apps on CM6?
anthro said:
CM6 truly is full of awesome. Some people (like me) just tend to prefer stock counterparts over custom software. To be specific, I want to install the stock Launcher and Music apps. ADW Launcher and the modified music player are good, but as a UX Designer, I find the stock counterparts smoother at the moment.
I got the apks of the two apps from the stock Froyo zip, but they can't be installed. How do I install stock apps on CM6?
Click to expand...
Click to collapse
Did you try to push them to the /system/app folder? Also, this should be in q&a, not in the dev section.
Some of us are noobs, what is the correct advice comands to push these files.
Sent from my Nexus One
Mi|enko said:
Did you try to push them to the /system/app folder? Also, this should be in q&a, not in the dev section.
Click to expand...
Click to collapse
This is weird. Pushing didn't work. Both ADW Launcher and the custom music app are still here...
anthro said:
This is weird. Pushing didn't work. Both ADW Launcher and the custom music app are still here...
Click to expand...
Click to collapse
They have different names. Pushing DOES work. You have to uninstall ADW and music app with rm commands.
Code:
adb shell rm /system/app/ADWLauncher.apk
Not entierly sure but the same goes for Music app...
The stock music app is called MusicGoogle.apk
The Cyanogen is just called music.apk.
so..
Code:
adb shell rm /system/app/music.apk
Remember to push the other files before removing these apk's..
Always MAKE A BACKUP before removing any APK file, or any other file for that matter.
Code:
adb pull /system/app/ADWLauncher.apk backups/ADWLauncher.apk
adb shell rm /system/app/ADWLauncher.apk
adb push backups/Launcher2.apk /system/app
Sindroid said:
They have different names. Pushing DOES work. You have to uninstall ADW and music app with rm commands.
Code:
adb shell rm /system/app/ADWLauncher.apk
Not entierly sure but the same goes for Music app...
The stock music app is called MusicGoogle.apk
The Cyanogen is just called music.apk.
so..
Code:
adb shell rm /system/app/music.apk
Remember to push the other files before removing these apk's..
Click to expand...
Click to collapse
I just successfully rm-ed ADWLauncher.apk and Music.apk and pushed Launcher2.apk and MusicGoogle.apk. Unfortunately, I just lost ADWLauncher and the custom Music apps.
Installing the apks still don't work, btw.
Any idea?
Put them in your tools folder, then
cd/
cd/androidsdk/tools
adb remount
adb push whatever.apk /system/app
If you see numbers, it's pushed. If you want to remove stock apps
adb devices
adb shell
rm /system/app/whatever.apk
Sent from my Nexus One using XDA App
blas4me said:
Put them in your tools folder, then
cd/
cd/androidsdk/tools
adb remount
adb push whatever.apk /system/app
If you see numbers, it's pushed. If you want to remove stock apps
adb devices
adb shell
rm /system/app/whatever.apk
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Done that. Pushed the apks of the apps I want and removed what I dont. Now, either of the launchers and Music apps appear to be "installed"
i want to install the stock mp3 player in the custom ROM.
I hav apk's and .odex's of the stock firmware.
I copy pasted the mp3 player's apk and odex files into the system/app folder in r/w mode (used root explorer).
But still i dint get the stock mp3 player installed in my device.
What do i do ?
How can i get the stock mp3 player working in teh custom rom?
Pls help.
Thank u

question about removing apps from ROMS: easy way?

hi, i just had an idea and idk if this has been posted before, so if it has been posted, im sorry.
instead of using terminal emulator, is it possible for me to go into the .zip of the ROM and delete the apps i do not want in the /system/app folder? i want to know if it will "screw up" the ROM and make it unflashable in my hero's recovery. it takes me too long to remove all the apps i want in terminal emulator and think it would be faster doing it the way i described.
**if this question sounds extremely stupid, then im sorry, im still somewhat of a noob at all this rooting stuff**
The zip's have to be signed in order to be flashed. You cannot just open them, modify them, rezip and install. Find out how to sign the OS zip and you can modify all you want.
thanks for answering, thats all i wanted to know
make a bat
open note pad and paste this:
Code:
adb remount
adb shell rm system/app/*Stock*
adb shell rm system/app/IM.apk
adb shell rm system/app/*Facebook*
adb shell rm system/app/Flickr.apk
adb shell rm system/app/Sprint_Navigation.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/HTCNew.apk
adb shell rm system/app/com.htc.TwitterWidget.apk
adb shell rm system/app/com.htc.FriendStreamWidget.apk
adb shell rm system/app/com.damaged.DConfig.apk
adb shell rm system/app/HtcTwitter.apk
adb shell rm system/app/HtcFacebook.apk
adb shell rm system/app/FriendStream.apk
the add or remove lines accordingly, substitute one apk for another if you want then save as a .bat file (mine is named removeapks.bat) place in the tools folder if you wish, flash a rom once booted run the .bat file and poof theyre gone
alexnaoumi said:
thanks for answering, thats all i wanted to know
Click to expand...
Click to collapse
There's a tool written in Java that makes signing zip's really easy. It's included in a suite of apps called AndroidMod.zip
Once you have it, the syntax to sign the new zip is simple. Just:
java -jar signapk.jar testkey.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
Or you can get "root manager" from market which does a lot including removal of unwanted system apps.
Sent from my HERO200 using XDA App
I think Fresh Pre kitchen does it also.
Titanium backup is what I use. Haven't had any trouble using it.
Moved to Q&A.
alexnaoumi said:
hi, i just had an idea and idk if this has been posted before, so if it has been posted, im sorry.
instead of using terminal emulator, is it possible for me to go into the .zip of the ROM and delete the apps i do not want in the /system/app folder? i want to know if it will "screw up" the ROM and make it unflashable in my hero's recovery. it takes me too long to remove all the apps i want in terminal emulator and think it would be faster doing it the way i described.
**if this question sounds extremely stupid, then im sorry, im still somewhat of a noob at all this rooting stuff**
Click to expand...
Click to collapse
I like Root Manager also because there is a "multi-select" option so you can select all of the files you'd like to delete. For the "/system/app" folder you can mount as "read/write", then delete the files. I then reboot into recovery, wipe the cache and Dalvick cache, and reboot. I've had no issues doing this. It's not so much how you delete, rather than what you delete. The forums here at XDA (as well as others that you can Google) that tell you what apps are safe to delete and which should remain untouched. As long as you don't delete an apk that is critical to ROM, you should be okay.
bombaatomica said:
The zip's have to be signed in order to be flashed. You cannot just open them, modify them, rezip and install. Find out how to sign the OS zip and you can modify all you want.
Click to expand...
Click to collapse
Since this is my first post, and I cannot post links, do a search on "modaco zipsigner". This is the utility I found for re-signing zip files, and it has worked flawlessly for me.

Categories

Resources