question about removing apps from ROMS: easy way? - Hero CDMA Q&A, Help & Troubleshooting

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.

Related

removing apps force

is there anyway to remove apps like peeps from hero rom and will it break the system?
Yes there is, you can do it with any app you want and the system will be fine. I use the terminal as it's easiest:
Gain su
Code:
su
First we need to know the name of the apk:
Code:
cd /system/sd/app_s/
ls
This will show you the name of the packages. You could also find that out by opening to zip file of the rom and going to the data/app_s directory if you have a computer near you.
Now remove the .apk and .odex (it may not have an odex file, we'll run the command just incase it does, if it doesn't it will tell you there's no such file, no biggie)
Code:
rm -r name.apk
rm -r name.odex
Some apps like peep also have widgets. Peep's widget is named com.htc.TwitterWidget.apk, so remove that too.

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] Installing Footprints and other HTC apps Via adb

Recently I've been trying to install the HTC Footprints .apk on to my phone.
I've tried using multiple file managers to install the app, they get to the installation screen and fail to install (yes unknowk sources is turned on), I've also tried installing it via adb but I get errors such as
adb push method:
Code:
Code:
C:\android-sdk-windows\tools>adb push HtcFootprints.apk /system/app/
failed to copy 'HtcFootprints.apk' to '/system/app//HtcFootprints.apk': Read-only file system
Using the adb install method:
Code:
C:\android-sdk-windows\tools>adb install HtcFootprints.apk
1080 KB/s (1054762 bytes in 0.953s)
pkg: /data/local/tmp/HtcFootprints.apk
Failure [INSTALL_FAILED_DEXOPT]
C:\android-sdk-windows\tools>
Any Ideas on what my problem could be?
I orginally roted my phone manully but I had to reset back to stock due to technical issues, but I re-rooted it using the flash recovery method located http://forum.xda-developers.com/showthread.php?t=584029
Another tid bit of information is that yesterday I could not use my SU (super user permissions) until I installed other roms and wiped it and did a nandroid restore.
did you
adb remount
adb push Footprints.apk /system/app
?
I found that using the fresh kitchen is much easier especially when I'm trying out many different Roms. Have you tried it yet i know that i have all my .apks setup in the designated folder makes it really simple if I've just flashed a new ROM and need to push all my apps. Hope I was helpful.
Check out Root Explorer in the market. Worth the money in my honest opinion.
"The ultimate file manager for root users. Access the whole of android's file system(including the elusive data folder!). Includes Text Editor, multi-select, zip files, execute scripts, search, re-mount, permissions, bookmarks, email, home, APK binary XML file viewer."
Root Explorer saves me so much time that I wasted putting in all the adb commands to do the same things. It is also the fastest way to remove Sprint's bloatware.
DJAscendance said:
did you
adb remount
adb push Footprints.apk /system/app
?
Click to expand...
Click to collapse
I tried this and nothing happend, I also tried
Originally Posted by bonesy
Try
adb remount
adb push HtcFootprints.apk /system/app/HtcFootprints.apk
adb push HtcFootprints.odex /system/app/HTcFootprints.odex
Click to expand...
Click to collapse
from http://forum.xda-developers.com/showthread.php?t=551240
and it worked, sort of I got the files to move
Code:
C:\android-sdk-windows\tools>adb push HtcFootprints.apk /system/app/HtcFootprint
s.apk
1173 KB/s (1054762 bytes in 0.878s)
C:\android-sdk-windows\tools>adb push HtcFootprints.odex /system/app/HtcFootprin
ts.odex
816 KB/s (581976 bytes in 0.696s)
C:\android-sdk-windows\tools>
But after I did this, I rebooted my hero but I could not get it to load past the boot screen.
most likely, your system memory is full. try removing another system apk of similar size (something you dont use such as stock, twitter facebook, etc)via adb and reinstall footprints the same way. I have had this happen before as well, and doing what I just stated worked for me
troyboytn said:
most likely, your system memory is full. try removing another system apk of similar size (something you dont use such as stock, twitter facebook, etc)via adb and reinstall footprints the same way. I have had this happen before as well, and doing what I just stated worked for me
Click to expand...
Click to collapse
Would removing the voicemail app work the same? adb shell rm /system/app/Voicemail.apk (not sure if this is the code or not)
you can remove all the ringtones and put them on your SD card... I know RegawMOD uses that trick to save space.
Noirad said:
Would removing the voicemail app work the same? adb shell rm /system/app/Voicemail.apk (not sure if this is the code or not)
Click to expand...
Click to collapse
Yes that would work as well as what mrinehart93 just stated about moving ringtones, etc to the sd which will free up nearly 6 mb of system memory(actually did that myself but didnt think of it). here is a link to accomplish that http://forum.xda-developers.com/showpost.php?p=5936137&postcount=3236
Alright, Moved the ringtones and alarms to my Sdcard, but I'm still getting the same errors
Code:
C:\android-sdk-windows\tools>adb remount
remount succeeded
C:\android-sdk-windows\tools>adb install HtcFootprints.apk
783 KB/s (1054762 bytes in 1.314s)
pkg: /data/local/tmp/HtcFootprints.apk
Failure [INSTALL_FAILED_DEXOPT]
C:\android-sdk-windows\tools>adb shell rm HtcFootprints.apk /system/app
rm failed for HtcFootprints.apk, Read-only file system
C:\android-sdk-windows\tools>adb remount
remount succeeded
C:\android-sdk-windows\tools>adb shell rm HtcFootprints.apk /system/app
rm failed for HtcFootprints.apk, Read-only file system
C:\android-sdk-windows\tools>adb remount
remount succeeded
C:\android-sdk-windows\tools>adb push HtcFootprints.apk /system/app
619 KB/s (1054762 bytes in 1.662s)
C:\android-sdk-windows\tools>adb shell
# reboot
reboot
C:\android-sdk-windows\tools>
Try,
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push HtcFootprints.apk /system/app
See if that helps. Reason it wont boot up is because if you're on a newer rom that doesnt have .odex files, then it wont work.
VinceOB said:
Try,
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push HtcFootprints.apk /system/app
See if that helps. Reason it wont boot up is because if you're on a newer rom that doesnt have .odex files, then it wont work.
Click to expand...
Click to collapse
I have the .odex files, but I'm not quite sure where Im supposed to put them.
Noirad said:
I have the .odex files, but I'm not quite sure where Im supposed to put them.
Click to expand...
Click to collapse
What Rom are you running?
If adb is successfully pushing the files (like it is in your posts) then the phone is successfully being mounted, so that's not your problem. You also have enough system space, because if you did not it would tell you that you didn't, and I didn't see that error message in any of your posts either.
Most likely, you're using a ROM that doesn't use .odex files (almost all of the 2.1 ROMs that are out now don't, with the exception of DarchLegend I believe) so the .apk isn't compatible because it's missing the classes.dex file and the .odex file won't work because it's not compatible with the ROM.
If you are using a ROM that uses .odex files, then you need to be sure that the APK you're using is the right version for your ROM. If you try using HtcFootprints.apk from a 1.5 ROM on a 2.1 ROM, it more than likely will not work, due to different frameworks and all that fun stuff.
Gregalous said:
If adb is successfully pushing the files (like it is in your posts) then the phone is successfully being mounted, so that's not your problem. You also have enough system space, because if you did not it would tell you that you didn't, and I didn't see that error message in any of your posts either.
Most likely, you're using a ROM that doesn't use .odex files (almost all of the 2.1 ROMs that are out now don't, with the exception of DarchLegend I believe) so the .apk isn't compatible because it's missing the classes.dex file and the .odex file won't work because it's not compatible with the ROM.
If you are using a ROM that uses .odex files, then you need to be sure that the APK you're using is the right version for your ROM. If you try using HtcFootprints.apk from a 1.5 ROM on a 2.1 ROM, it more than likely will not work, due to different frameworks and all that fun stuff.
Click to expand...
Click to collapse
Ahh, that could be my problem, Im currently using a Fresh Rom by Flipz running 2.1, but I just found a post by him of the applicastions that he removed and how to reinstall them, I'll try that and let you guys know how it goes
Success! My problem was that I was trying to install the 1.5 files onto my 2.1 ROM
Ahhh. Glad it worked.
all of these apps you can push or install using flips kitchen so you know!
fixxxer2008 said:
all of these apps you can push or install using flips kitchen so you know!
Click to expand...
Click to collapse
Haha thanks! Installing it right now
footprints
Noirad said:
Ahh, that could be my problem, Im currently using a Fresh Rom by Flipz running 2.1, but I just found a post by him of the applicastions that he removed and how to reinstall them, I'll try that and let you guys know how it goes
Click to expand...
Click to collapse
Noirad,
can i have the link to the post you were talking about. I also need to install footprints on a 2.1 rom. thanks

[SCRIPT] OLYEM_U4 1.4.2 Telstra/Bell FULL Deodex -> 1.1 Updated

Hey guys,
I have updated this thread with a script and files for those who are unsure of how to make this work. Its a quick script so don't expect much, reverse engineered to simply de-odex your phone fully.
You must have ADB added to your "Allow" list in Superuser.apk.
WARNING:
This can brick your phone if you do not do things properly. I have tested it on my phone and it worked flawlessly. Once again though, I was on a fresh install of 1.4.2.
INSTRUCTIONS:
-Download files here <-- Updated link
-Extract files to C:\
-Execute SevensDeodex1.1.bat
-Wait a few minutes
-Phone will reboot and take a while to start up
-Done
MANUAL INSTALL:
Navigate to extracted files through CMD or Shell
Type the following commands
adb.exe push 142system.tar.gz /data/local/tmp/
adb push bin/install_script.sh /data/local/tmp/install_script.sh
adb shell
Once in adb type:
su
cd /data/local/tmp
chmod 755 install_script.sh
./install_script.sh
Known issues:
-Photoeditor.apk deleted as de-odexing this was a problem. So what
Updates:
1.1 Updated to fix some issues with the bat file.
1.0 Original release
Special Thanks to: NFHimself for showing me the way
i know that ken was looking for a dump of /system and /data, did you or will you toss one at him seven?
i would, but i was working on some frameworks on 0.37 that i don't really want to leave unfinished
raybond25 said:
i know that ken was looking for a dump of /system and /data, did you or will you toss one at him seven?
i would, but i was working on some frameworks on 0.37 that i don't really want to leave unfinished
Click to expand...
Click to collapse
You want me to upload a framework dump?
Will that help, let me know exactly what you need and I'll try to help.
I found aout about that method too last night, I just deleted the photoeditor apk and odex file and it ran through the app deodex fine. When I tried to copy my framework files though adb shell refused to replace the files, even using the -f force command.
Yes... could someone throw me:
/system/
/data/
I know that's a lot... but that's what I'll need. Thanks guys. PM me if you need a private FTP server to upload it. If not, you can use Dropbox or Hotfile.com (I have a premium account).
http://db.tt/kdUycD1 just dumped that last night..might be a slow downlad though...raybond25 gave me the script for it since I've never done it hope its what you need
Sent from my MB860 using XDA Premium App
that was something that was needed, but after that it needed to be deodexed. I sent snake's dump to NFHimself and he deodexed it.
Deodexed system
raybond25 said:
that was something that was needed, but after that it needed to be deodexed. I sent snake's dump to NFHimself and he deodexed it.
Deodexed system
Click to expand...
Click to collapse
so with a deodex script we can deodex our system and framework?
Sent from my MB860 using XDA Premium App
SN4K3B1T3 said:
so with a deodex script we can deodex our system and framework?
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
i'm not sure how NFH did it, you'd have to ask him about his method but that system has deodexed /app and /framework
i'm not sure if he plans on writing a script that will do this and releasing it or not, that deodex was mainly because kennpenn was looking for it.
but, yes it can be done.
Will upload deodex files now
any special tricks ive tried deodexing at least 4 times and it stops at 91 out of 134...pissed
yeah i got an error at core.odex
I agree there is no sense reinventing the wheel, I used dsixda's htc kitchen to do it, had a working folder for something else, simply replaced app and framework with the files from telstra and ran his script and selected deodex. He has bits in there specific to the Atrix, I noticed that when looking at the scripts to do my own version, didn't bother after since it was already done. No errors, and haven't had a problem in over a month so it's all good, it only needs to be done once per firmware.
My rule of thumb, don't run anything for your $$$ phone if you don't have source or can read the scripts yourself, especially if it hasn't been tested specifically on your phone. Don't be in a rush to execute some file or script unless it's from a family member you really like with lots of money.
Cheers!
NFHimself said:
I agree there is no sense reinventing the wheel, I used dsixda's htc kitchen to do it, had a working folder for something else, simply replaced app and framework with the files from telstra and ran his script and selected deodex. He has bits in there specific to the Atrix, I noticed that when looking at the scripts to do my own version, didn't bother after since it was already done. No errors, and haven't had a problem in over a month so it's all good, it only needs to be done once per firmware.
My rule of thumb, don't run anything for your $$$ phone if you don't have source or can read the scripts yourself, especially if it hasn't been tested specifically on your phone. Don't be in a rush to execute some file or script unless it's from a family member you really like with lots of money.
Cheers!
Click to expand...
Click to collapse
I've updated the OP and thread title.
Now includes a working script to deodex. Very simple and straight forward, no need to use any other tools and this should make it easier for all other users who are new at this.
Thanks for your help sir, you are a king amongst men!
Not a problem.
One thing about the script, Superuser.apk needs to know about the shell having root access, so once you root the phone, do an adb shell su command, accept the prompt from Superuser.apk, and you are good to go. I tossed some stuff into my root.bat (.sh) scripts to launch Superuser.apk and update it's database automatically, bit of a hack but worked the last 20 times I tried it.
NFHimself said:
Not a problem.
One thing about the script, Superuser.apk needs to know about the shell having root access, so once you root the phone, do an adb shell su command, accept the prompt from Superuser.apk, and you are good to go. I tossed some stuff into my root.bat (.sh) scripts to launch Superuser.apk and update it's database automatically, bit of a hack but worked the last 20 times I tried it.
Click to expand...
Click to collapse
ooooooooh you absolutely right.
Since I'm new at making scripts i'm going to simply just update the script so that the user has to put ACCEPT on the phone before running the rest of the commands you know, new vers coming now
I keep getting this error.. I took a screen shot of it.. Any ideas?
nate_benji said:
I keep getting this error.. I took a screen shot of it.. Any ideas?
Click to expand...
Click to collapse
easy. It means you do not have root access allowed with ADB.
If you're phone is not rooted, go to the link in my signature that shows you how to root.
If you have root and you know its working then you must do the following first:
Open up your command prompt - make sure to keep your phone's screen active and unlocked.
Type "adb shell"
Once you have $
type "su"
check your phone's screen, as you will be prompted to allow, or deny access.
Select "Allow"
Now you are set to go, execute the script again.
Let me know of your results
I just tried it on a fresh SBF flash and root, root confirmed working though adb shell. It pushes everything fine, but when it goes to execute the script the cmd window just closes.
EDIT: Managed to get a screen right before it closes. Not sure of the problem because root works in adb and titanium backup.
Open up CMD manually
then navigate to where the bat file is and run it.
Tell me what the output is please.
Also, you said Root is working through ADB.
Then try to do everything manually as such:
adb.exe push 142system.tar.gz /data/local/tmp/
adb push bin/install_script.sh /data/local/tmp/install_script.sh
adb shell
Once in adb type:
su
cd /data/local/tmp
chmod 755 install_script.sh
./install_script.sh
And there you go.

Categories

Resources