Audio Files - G1 Q&A, Help & Troubleshooting

I want to remove all the ringtones/alarms/notification sounds from my phone and then add the nexus sounds. Because I have doubles and triples of some ringtones. And I can't seem to get it to work. =/ Any insight?

Bustacoal said:
I want to remove all the ringtones/alarms/notification sounds from my phone and then add the nexus sounds. Because I have doubles and triples of some ringtones. And I can't seem to get it to work. =/ Any insight?
Click to expand...
Click to collapse
To remove files from the system, first mount /system as rw
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
To remove ringtone.ogg, you would enter
Code:
rm /system/media/audio/ringtones/ringtone.ogg
To remove notification.ogg,
Code:
rm /system/media/audio/notifications/notification.ogg
To remove alarm.ogg
Code:
rm /system/media/audio/alarms/alarm.ogg
To remove all media from a folder, say for example ringtones, you could enter
Code:
rm /system/media/audio/ringtones/*
Now, to copy a the folder /ringtones from the sdcard to your system, you would first mount /system as rw (as in the first step) then enter
Code:
cp -r /sdcard/ringtones /system/media/audio
When done, be sure to reboot.

Related

ADB/Term app install/uninstall

I'm having trouble finding a definitive way of uninstalling/installing apps onto my phone. this is what I've found.
Either through terminal or ADB:
mount -o rw,remount /system (another thread had mount -o rw,remount -t yaffs, /dev/block/mtdblock3 /system... or something along those lines)
rm -r /system/app/appname.apk
That only seemed to work for com.amazon.mp3.apk.
I've used astro file manager to find out the app names, for example on CM 4.0.4 he has the Work email, which I don't use. Under astro it is called just "Mail". I tried removing mail.apk and i've tried removing com.htc.android.mail.apk (which is what the app says under astro) but I cannot remove that one, nor any of the easier ones (camera.apk etc...). Only amazon mp3 was removed.
Am I missing something?
Also, installing apps. I am having trouble finding out how to push your own.
Any help with these?
Thanks
Easiest way would be to get root explorer off the market.
Or with adb do
Code:
adb remount
adb shell
rm /system/app/xxxx.apk (or if that doesn't work put -r after rm
In recovery console do
Code:
mount system
rm /system/app/xxx.apk (or -r if doesn't work)
Thats how i remove system apps.
same thing...
I tried rebooting into the console and trying this, here's what I got.
# Mount System
# rm /system/app/com.amazon.mp3.apk (this one works)
# rm /system/app/mail.apk
rm: cannot remove '/system/app/mail.apk' : No such file or directory
# rm /system/app/com.htc.android.com.apk
rm: cannot remove '/system/app/com.htc.android.com.apk' : No such file or directory
the others don't. I am finding the root address the same as with amazon mp3.
I am running CM 4.1.9. I tried it with 4.0.4 but I get the same issue. Only app that comes out is the amazon mp3. I am trying to delete the Work Email, Voice Dialer and push in the My Faves.
Any ideas what I am doing wrong?
Filenames are case sensitive.
/system/app/Mail.apk
/system/app/Camera.apk
Go to your apps directory to see the filenames with
Code:
cd /system/app
ls
Forum search adb explorer
AdamPI said:
Filenames are case sensitive.
/system/app/Mail.apk
/system/app/Camera.apk
Go to your apps directory to see the filenames with
Code:
cd /system/app
ls
Click to expand...
Click to collapse
Ahhh, Case sensitive. I didn't realize. Thanks for the info. You are the man!!!!!!!!
That was exactly it.
Thanks again!!!!!

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

[REF] *Update - 8/30/10* Change or remove boot down sequence

Hey guys,
Ran into this today as I was browsing through the Vibrant dump and thought I would share it
What's needed:
A T-Mobile Vibrant
SU access(root)
busybox
It is possible that this might work for other Galaxy S phones, but as of yet I am unaware of whether or not they all have a shutdown animation.
Basically, this is a quick HOW-TO on removing or changing the quick little animation that plays when you turn off your phone. I'm pretty sure most people find it annoying and would like to turn it off, while others may want to do something interesting with it so I'll break it up into 2 tutorials(though they are fairly similar).
NOTE: This only works for the shutdown sequence. The boot sequence is stored in proprietary files called .qmg and doesn't apply to this simple hack.
Quick Structure Overview: (Just jibber jabber...read if you want)
Alright, so basically the animation is simply a bunch of PNG's that represent frames in the movie/animation. They are found in the folder '/system/media/video/shutdown' and are named under a framed convention "shutdown_x.png" where 'x' represents the frame number in the animation. There are 14 frames in the initial batch, and from what I've tested(which isn't a ton) that's the max frames, but you are more than welcome to try; it won't hurt anything if you do.
Also, based off my tests, the system will do any subset range as long as it starts at 1(so like 1-5 or 1-12 instead of 1-14). It also may be important to note that I have not tried any other files besides .png. It may be a good experiment to try other files. Post your results here; I'm sure someone will find them useful.
FOR BOTH:
If you want to back up the animation(terminal or adb shell):
Code:
//Name the directory whatever you want...this is just an example
$ mkdir /sdcard/animationbackup
$ busybox cp /system/media/video/shutdown /sdcard/animationbackup
REMOVE:
Simply remove the shutdown folder that holds all the frames.
Open terminal(or adb shell):
Code:
$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/video/shutdown
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
You should now be able to shut off your phone and enjoy the nice shutdown progress spindle instead of the animation.
CHANGE:
Load up your list of PNG's that you want for your animation and throw them in a folder called "shutdown" (no quotes). Be sure they are named in this format:
Code:
shutdown_x.png
//where x is the frame of this image
Throw it onto your 15GB internal memory(Not the 2GB sdcard but the big one that the system references as /sdcard)
Then run this command(terminal or adb shell):
Code:
$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/video/shutdown
$ busybox cp /sdcard/shutdown /system/media/video/
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
Lastly, there is some programs that will take a video file and convert it into frames(decompile them, in other words). I found Blaze Media Pro, yesterday and worked fine for this if you are interested.
UPDATE:
Batistian has figured out how to remove the 14 frame limit that seemed to be a requirement for the shutdown sequence. It requires a config file inside the shutdown folder. Attached I have the i9000's shutdown folder with the config file inside it. Also attached is the config file that you can just throw into your shutdown folder if you want it to progress more frames.
Also, bubonik has posted the directory locations of the audio sounds. You should be able to change these if you want, if you hate the T-Mobile branded sounds.
bubonik said:
Startup sound: /system/etc/PowerOn.wav
Shutdown sound: /system/media/audio/ui/Shutdown_128.ogg
Click to expand...
Click to collapse
Last attachment is the shutdown and power on sounds from the i9000. You can use these to replace those sounds using similar tactics that was mentioned in the tutorial.
UPDATE 2:
Replace your Bootup with the i9000 boot up
1) Download the attached Bootup.zip and unzip it. Contained is the bootsamsung.qmg.
2) Copy to your SD Card(the one that shows up as 15 gb)
3) Run this command in adb shell, terminal, or use Root Explorer:
Code:
$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/bootsamsung.qmg
$ busybox cp /sdcard/bootsamsung.qmg /system/media/
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
This should replace your boot up sequence
Thanks to Batistian, bubonik, jroid, and everyone else who worked on advancing the progress of this tutorial. I know a lot of you were digging through both the Vibrant dump and the i9000 dump, all for good reason
Lastly, I need to point out that I'm not responsible for any destructo-proceedings that may develop after following this tutorial. Know what you are getting into before doing anything that involves your system files.
nice stuff thanks for the post.
The startup/shutdown sounds are so annoying, this is a great start.
I was already looking into this yesterday, u beat me to it What I'm trying to do is get the galaxy S 19000 shutdown animation on the vibrant. I seen it in a vid someone posted about odin3, where I noticed by quick glance that the shutdown animation was similar to the galaxy S boot animation (with the cool blue chips rotating to form GalaxyS) I got a hold of a 19000 dump so i'll be looking into it
Tydiz said:
Code:
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
$ rm -R /system/media/video/shutdown
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Code:
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
$ rm -R /system/media/video/shutdown
$ busybox cp /sdcard/shutdown /system/media/video/
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Shouldn't that be:
mount -o rw,remount -t rfs /dev/block/stl9 /system
to mount rw
and
mount -o ro,remount -t rfs /dev/block/stl9 /system
to mount ro
??
Maybe I am missing something
thanks! worked like a charm, i can't wait to change my boot animation to android peeing on apple
What you guys don't like all that pink nonsense floating around?
Droid gets the cool eye and we get the love, hugs, kiss's, or whatever the heck it says.
t1n0m3n said:
Shouldn't that be:
mount -o rw,remount -t rfs /dev/block/stl9 /system
to mount rw
and
mount -o ro,remount -t rfs /dev/block/stl9 /system
to mount ro
??
Maybe I am missing something
Click to expand...
Click to collapse
They both work and seem to do the same thing. This is the command I've always used to grant the rw permissions in the system partition and its always worked fine. If I were to guess(and it probably is wrong), the yaffs(yet another flash file system) points the the rfs as a generalized pointer(in case something decides not to use rfs???). Anyway, both work on the vibrant from what I've tested
Zyxwvu44 said:
thanks! worked like a charm, i can't wait to change my boot animation to android peeing on apple
Click to expand...
Click to collapse
If you actually do this, let us know! I totally want that on my phone!
Sent from my SGH-T959 using XDA App
gravis86 said:
If you actually do this, let us know! I totally want that on my phone!
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
i had it on my droid. when i get home i can post the image files, but i don't know how we would load it on to the vibrant. all i had to do was update.zip for the droid, we may have to wait for a recovery to be working
is there a similar process for startup?
basataom said:
is there a similar process for startup?
Click to expand...
Click to collapse
boot process handles its animation a lil differently. There are 2 animations (tmo & galaxy S) that reside in /system/media/ that are called by 2 scripts in /system/bin precisely bootanimation and bootanimation2nd. shutdown is alot easier to replace and mod because it's handled by a dedicated shutdown app that processes the .png's as long as they're in order in sequence of shutdown_.png In order to mod bootanimation, we need a tool that can read .qmg files. I'm pretty sure inside the .qmg's files are png's also as aosp's bootanimation.zip for eclair contain .png's
Ok so a little on my progress:
I'm not able to delete the whole /shutdown dir and copy it over from the sdcard it gives me this error cp: 'omitting /sdcard/shutdown' so instead I did:
mkdir /system/media/video/shutdown
cp /sdcard/shutdown/* /system/media/video/shutdown
and it copies, however, it gets all mixed up and out of order. The result is the shutdown animation appearing but not running, it gets stuck obviously because the png's are out of order. Any idea as to how to transfer the contents into /shutdown without the system screwing up the order?? There's 60 png's for this animation btw
here is the droid peeing on apple boot animation for the droid. the desc file tells it the resolution, how many times to repeat, the lag in between switching sections. i dont remember the specifics of that file, but im sure its different for the vibrant anyway,
well, these pictures could be used at least
kizer said:
What you guys don't like all that pink nonsense floating around?
Droid gets the cool eye and we get the love, hugs, kiss's, or whatever the heck it says.
Click to expand...
Click to collapse
Its cause Tmo loves us! They have to give us the hugs and kisses somehow
Zyxwvu44 said:
here is the droid peeing on apple boot animation for the droid. the desc file tells it the resolution, how many times to repeat, the lag in between switching sections. i dont remember the specifics of that file, but im sure its different for the vibrant anyway,
well, these pictures could be used at least
Click to expand...
Click to collapse
I haven't tested it, but I formated your files so you should be able to transfer them and give it a go
jroid said:
Ok so a little on my progress:
I'm not able to delete the whole /shutdown dir and copy it over from the sdcard it gives me this error cp: 'omitting /sdcard/shutdown' so instead I did:
mkdir /system/media/video/shutdown
cp /sdcard/shutdown/* /system/media/video/shutdown
and it copies, however, it gets all mixed up and out of order. The result is the shutdown animation appearing but not running, it gets stuck obviously because the png's are out of order. Any idea as to how to transfer the contents into /shutdown without the system screwing up the order?? There's 60 png's for this animation btw
Click to expand...
Click to collapse
Looking into this as well. I have the files copied over...I'll play around with it when I get a chance and update when I find something new about it
Tydiz said:
Looking into this as well. I have the files copied over...I'll play around with it when I get a chance and update when I find something new about it
Click to expand...
Click to collapse
you have the galaxy S shutdown files? I can upload if you need them. I also have the files copied over, however, like I mentioned earlier the order is all screwed up. When I shutdown, it shows the galaxy S logo and about to start the animation but stops and the tmobile audio plays like usual then shuts down. The audio for the shutdown anim. is in /system/media/audio/ui
You can also delete the entire /video folder.
Startup sound: /system/etc/PowerOn.wav
Shutdown sound: /system/media/audio/ui/Shutdown_128.ogg
I remember there was a time that the remount command was shorter for some ROM's on the g1.
Is
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
the only option for remounting system as rw?
Thanks for this. I used root explorer to make my changes. Now to find a better shutdown audio file.

how to delete welcome video and default pictures?

Hello-
Is it possible to delete the preloaded welcome video and pictures from the nook color?
thanks!
Figured this out, so here's the info:
The images, manual, whatnot are in:
/system/media/books
/system/media/pictures
/system/media/slideshow
/system/media/videos
/system/media/wallpapers
You need to mount /system as rw, so from cmd prompt:
adb shell
mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
cd /system/media/pictures
rm *
Repeat cd and rm for each folder.

Categories

Resources