Command for removing peep and twitter apks from hero? - G1 Q&A, Help & Troubleshooting

So these to apps slow down hero a lot, and i wanted the command for console(rec mode) to remove them.

can't you remove them with rm from shell?

jackslim said:
can't you remove them with rm from shell?
Click to expand...
Click to collapse
you just need to remount the system with RW permissions.
mount remount,rw -o yaffs2 /dev/block/mtdblock3 /system
then run rm commands to get rid of it

search just about any hero thread in development for "peep" and you'll find adb instructions........

Related

?how to uninstall myfaves from CM 4.1.9999?

Does anyone know how to uninstall myfaves from CM 4.1.9999 I had the apk that you were able to install to 4.0.4 and me thinking and acting like a noob I tried to install it on the new rom now I just keep getting force closes from it...if anyone can help it would be nice
Here is the command I used to install it from terminal
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
#cp /sdcard/download/MyFaves.apk /system/app
Thanks in advanced
su
mount -o rw,remount /system
rm -r /system/app/MyFaves.apk
Thank you very much....no more force closes

Help create a script to remove .apk's on CM.9999 PLZ??

ok now there is a few apps i dont like that come in the ROM like
Voice Dialer
Music(dont use it)
IM
Mail
Amazon MP3
Talk
now im tired that everything i flash i need to go trew terminal to delete these apps can i like write a script that i can run an do all of these for me? (is that what scripts can do?) can some one help me out
I know that you CAN, I just don't know exactly how... but I'm interested as well, so here's hoping someone with the knowledge lays it on you.
so a specific script can be created?? now to find who can help me go about it
brios86 said:
ok now there is a few apps i dont like that come in the ROM like
Voice Dialer
Music(dont use it)
IM
Mail
Amazon MP3
Talk
now im tired that everything i flash i need to go trew terminal to delete these apps can i like write a script that i can run an do all of these for me? (is that what scripts can do?) can some one help me out
Click to expand...
Click to collapse
im about to leave right now, but when i get back i can write it up .. i usually delete VoiceDialer/VoiceSearch and Amazon everytime I flash a new ROM
IIRC, miketaylor00 posted up a script a while back to automatically remove a couple apps. I sent him a message with a link to this thread, but it looks like the board's Dominicano can help.
this would remove the apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm VoiceDialer.apk
rm Music.apk
rm com.amazon*.apk
rm IM.apk
rm Mail.apk
rm Talk.apk
Just remove the .txt extension from the attachment
What's the difference between "rm" and "rm -r"?
uansari1 said:
What's the difference between "rm" and "rm -r"?
Click to expand...
Click to collapse
the -r switch will make it recursive, but since we're not doing it to directory, we don't need it ... i was gunna add some more to the script to remove the data/data/ directories for each of those apps up there, but i gotta look to see what they are first
thankx this is great i knew i wasent the only1 tired of doing that...
xidominicanoix said:
this would remove the apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm VoiceDialer.apk
rm Music.apk
rm com.amazon*.apk
rm IM.apk
rm Mail.apk
rm Talk.apk
Just remove the .txt extension from the attachment
Click to expand...
Click to collapse
to remove the data of those apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /data/data/
rm -r com.android.voicedialer
rm -r com.android.music
rm -r com.amazon.mp3
rm -r com.android.im
rm -r com.htc.android.mail
rm -r com.google.android.talk
wow even more thankz never new that one of removing the data, im sure this can come in helpfull to others. looking at the script i didnt know it could be that easy(atleast thats what it seems like to me)
brios86 said:
wow even more thankz never new that one of removing the data, im sure this can come in helpfull to others. looking at the script i didnt know it could be that easy(atleast thats what it seems like to me)
Click to expand...
Click to collapse
yup just gotta be careful with removing an app that could be dependent on another app
Is there anything stopping me from combining both into one shell script? I was going to make a script to do this myself because I am so sick of that damn teeter app! I will never play it and almost every ROM has it included.
Dyonas said:
Is there anything stopping me from combining both into one shell script? I was going to make a script to do this myself because I am so sick of that damn teeter app! I will never play it and almost every ROM has it included.
Click to expand...
Click to collapse
go ahead and combine them .. it should still work as long as you dont interleave the 2
also, the 2nd script doesnt need that mount command since we are messing with /data/ instead of /system/
I hand-typed the commands in console and received this error:
"mount: mounting /dev/block/mtdblock3 on /system failed: Invalid Argument
Any ideas?
theartar said:
I hand-typed the commands in console and received this error:
"mount: mounting /dev/block/mtdblock3 on /system failed: Invalid Argument Any ideas?
Click to expand...
Click to collapse
you dd a typo check again look between (mtdblock3 /system) you wrote (mtdblock3 on /system) <~~~ no good
this is:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
ok now that i got my phon working again i was having a SPL problem all done now thank god lol yes thank god i love my phone. anyways one question were do i put this script at??
also foundout MMS is save to remove and use a replacement app and you will work fine for those who use chop or handcent app
xidominicanoix said:
this would remove the apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm VoiceDialer.apk
rm Music.apk
rm com.amazon*.apk
rm IM.apk
rm Mail.apk
rm Talk.apk
Just remove the .txt extension from the attachment
Click to expand...
Click to collapse
a noob question... how do you run a script? and what do you mean by removing .txt extension...
thank you!!!
Save his file to your SD card, and rename it to RemoveApp.sh instead of RemoveApp.sh.txt. To run it, you can go into Terminal Emulator and type "sh /sdcard/RemoveApp.sh", substituting the correct file path where you have saved the script.
uansari1 said:
Save his file to your SD card, and rename it to RemoveApp.sh instead of RemoveApp.sh.txt. To run it, you can go into Terminal Emulator and type "sh /sdcard/RemoveApp.sh", substituting the correct file path where you have saved the script.
Click to expand...
Click to collapse
or to save you time get GScript in the market

Script Making

Tell me what I'm doing wrong here. I'm trying to make a script that will remove some apps whenever I flash a new rom. Here's what I thought would work:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
cd /system/app
rm com.amazon*.apk
rm Mail.apk
rm Development.apk
rm LatinIME.apk
To use it I type:
Code:
$ su
# sh /sdcard/apps.sh
and it just fails at every line. Any help would be appreciated.
On the first line try
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
or your could shortcut it by using
mount /system
Stupid question, but do you have the permissions set to allow root access?
I've done that a few times to realize what my "mistake" was.
well you could just make a script for your PC something along the lines of
Code:
@echo off
adb remount
adb shell rm /system/app/com.amazon*.apk
adb shell rm /system/app/Mail.apk
adb shell rm /system/app/Development.apk
adb shell rm /system/app/LatinIME.apk
adb shell reboot
and rename it to a .bat or .cmd file
jackslim said:
On the first line try
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
or your could shortcut it by using
mount /system
Click to expand...
Click to collapse
Ok so I did that and the script appears to be working. I'll test it when Cyanogen release another update with amazon... Adding the -t yaffs2, what exactly did that do?
The -t is a trigger saying that your going to specify what type of filesystem your mounting, yaffs2 is the type of filesystem

***HELP***

HOW DO I LOAD A CUSTOM LAUNCHER?????CAN SOMEONE HELP ME PLZ
Jerzdre said:
HOW DO I LOAD A CUSTOM LAUNCHER?????CAN SOMEONE HELP ME PLZ
Click to expand...
Click to collapse
You can use adb: (enter after each line) Put Launcher.apk in C: 1st.
adb shell
rwsystem or mount -o rw,remount /dev/block/mtdblock3 /system
exit
adb push C:\Launcher.apk /system/app
or you can use terminal: (enter after each line) Make sure Launcher.apk is on the root of your sd card 1st
su
rwsystem or mount -o rw,remount /dev/block/mtdblock3 /system
rm system/app/Launcher.apk
cp sdcard/Launcher.apk /system/app
exit
exit
Hope this helped.
Exiting out will cause problems. A lot!
Rather than typing exit type reboot instead.

Push to phone for n00b

I am trying to push the stock HTC clock widget to my phone. Here are my command lines...
/AndroidSDK/tools
adb shell
# adb remount
adb not found
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# adb push HtcClockWidget.apk /system/app/
adb not found
What am I doing wrong? Please help.
I can get into the system/app folder and run a list of my apps, but have been unable to push to the phone
pipefitter said:
I am trying to push the stock HTC clock widget to my phone. Here are my command lines...
/AndroidSDK/tools
adb shell
# adb remount
adb not found
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# adb push HtcClockWidget.apk /system/app/
adb not found
What am I doing wrong? Please help.
I can get into the system/app folder and run a list of my apps, but have been unable to push to the phone
Click to expand...
Click to collapse
You don't use adb commands inside the shell.
C:\AndroidSDK/tools> adb remount
C:\AndroidSDK/tools> adb push HtcClockWidget.apk /system/app/

Categories

Resources