If you copied melodies to system folder and you want to save it on all contacts after update firmware you need:
1. Make text file and save it as melody.sh with this text:
Code:
#!/bin/sh
cp ring/alarms/* /system/media/audio/alarms
cp ring/ringtones/* /system/media/audio/ringtones
cp ring/notifications/* /system/media/audio/notifications
chmod 644 /system/media/audio/alarms/*
chmod 644 /system/media/audio/ringtones/*
chmod 644 /system/media/audio/notifications/*
2. Make folder with name ring on your internal or external sdcard and copy melody.sh near this folder
3. Make in this folder empty .nomedia file to prevent melody's duplicate
4. Make also folders alarms, ringtones, notifications.
5. After update firmware in TWRP-Advanced-Terminal Command, select your sdcard . Write sh melody.sh
6. All done.
Related
I've tried the method below and it doesn't seem to work........it doesn't give me errors......but it doesn't delete the files that I don't want anymore.
I did try searching the forums but didn't see any posts regarding this....but seeing how new the 1.5 firmware it is...I didn't think there would be a post on it anyway and didn't think the command prompt or the location of these files would change
Any help is appreciated
-Type su
mount -o rw,remount -t yaffs2 /dev/block/
mtdblock3 /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
I did this yesterday, and removed all the stock ringtones and replaced with htc defaults.
I did this from ADB shell, I suppose you can do it from the terminal, matter of fact I'm sure you can.
The trick is to use busybox.
#commands below
busybox rm -rf /system/media/audio/ringtones # remove ringtones
busybox rm -rf /system/media/audio/notifications # removes notifications
# this removed all my ringtones and folders
After that I just used "adb push c:\ringtones /system/media/audio/ringtones"
That simply took whatever .ogg / .mp3 ringtones and put them back on the system memory of my G1.
Using JF 1.5, didn't need to go into recovery or anything.
This mod allows you to replace easily the system fonts
or to move your system fonts to the SD card freeing
some space in the ROM.
First thing to do is to replace libsgl.so with my modified version
or if you prefer compile it yourself after applying the attached patch.
Code:
adb remount
adb shell
cp /system/lib/libsgl.so /system/lib/libsgl.so.bak
mkdir /system/sd/fonts
exit
adb push libsgl.so /system/lib/
adb shell reboot
At reboot the system will check first in
Code:
/system/sd/fonts
if some suitable fonts are found there they will be loaded
else the default fonts in
Code:
/system/fonts
will be loaded.
The fonts in /system/sd/fonts must be named:
Code:
DroidSans.ttf
DroidSans-Bold.ttf
DroidSerif-Regular.ttf
DroidSerif-Bold.ttf
DroidSerif-Italic.ttf
DroidSerif-BoldItalic.ttf
DroidSansMono.ttf
These are optional, and can be ignored if not found in the file system.
DroidSansJapanese.ttf
DroidSansFallback.ttf
You can achieve this by moving or copying the default system fonts,
renaming the fonts you want to use or by a symbolic link e.g.
Code:
cd /system/sd/fonts
ln -s Vera.ttf DroidSans.ttf
I have tested it with DejaVu and DejaVu condensed fonts.
Enjoy and try out your own font combinations.
It's my fault to have post this message here.
It's for G7, but I think it is also OK for Incredible.
========================================
1. Prepare a short mp3 and name it android_audio.mp3
2. Put the mp3 under the adb folder
3. Save the following code as !bootaudio.bat (I use this name)
4. Turn your phone into ADB debugging mode
5. run !bootaudio.bat
6. Reboot your phone and have fun!
This should work on almost all G7
Tips: During the boot animation, the volume would change twice. So I suggest insert 1 second before the audio for escaping from the volume changing side-effect.
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
adb shell rm /data/local/android_audio.mp3
adb push android_audio.mp3 /data/local/
adb shell rm /system/customize/resource/android_audio.mp3
adb shell ln -s /data/local/android_audio.mp3 /system/customize/resource/android_audio.mp3
adb shell ls -l --color=never /data/local
adb shell ls -l --color=never /system/customize/resource/
adb pull /system/customize/CID/default.xml
pause
Script description:
Mount the system path to enable writing access.
Remove the original boot sound if it exists.
Push your mp3 into the data/local, where the bootanimation.zip is.
Make a link to data/local/android_audio.mp3
List the two affected pathes for you to confirm the result
Pull the default.xml out from the phone, if you find it not work after reboot, you can check the xml to see what the actural fullpath it is using. And manually change the script to try again.
My current boot sound is attached to the thread.
G7?
Sent from your mom's phone
How to deox any firmware manually?
download htc kitchen.
put your ROM in the original update folder.
run menu file
select option "Deodex ROM"
If you want deodex a running phone you need a rooted phone and:
1-Download xUltimate
xUltimate v2.3.3
Extract xUltimate to a folder
2-Install JDK
Download JDK
3-Connect phone to PC, open main.exe in xUltimate folder
Select option 5.
Process will take along time.
After that, copy 2 folder done_app and done_frame to SDcard
Remember Disconnect USB on phone after copy
4-go to xUltimate folder press combo key: ctrl + shift + mouse right to jar folder. Select open command window here
A CMD is open copy an paste all commands below
Code:
adb shell
Code:
su
Code:
stop
Code:
mount -o rw,remount -t rfs /dev/block/stl12 /system
Code:
rm /system/app/*.odex
Code:
rm /system/framework/*.odex
Code:
cp /sdcard/done_app/* /system/app/
Code:
cp /sdcard/done_frame/* /system/framework/
if cp command doesnt work you need addition command before use cp
Code:
ln -s /system/xbin/busybox /system/xbin/cp
And start your phone after done
Code:
start
zcop said:
If you want deodex a running phone you need a rooted phone and:
1-Download xUltimate
xUltimate v2.3.3
Extract xUltimate to a folder
2-Install JDK
Download JDK
3-Connect phone to PC, open main.exe in xUltimate folder
Select option 5.
Process will take along time.
After that, copy 2 folder done_app and done_frame to SDcard
Remember Disconnect USB on phone after copy
4-go to xUltimate folder press combo key: ctrl + shift + mouse right to jar folder. Select open command window here
A CMD is open copy an paste all commands below
Code:
adb shell
Code:
su
Code:
stop
Code:
mount -o rw,remount -t rfs /dev/block/stl12 /system
Code:
rm /system/app/*.odex
Code:
rm /system/framework/*.odex
Code:
cp /sdcard/done_app/* /system/app/
Code:
cp /sdcard/done_frame/* /system/framework/
if cp command doesnt work you need addition command before use cp
Code:
ln -s /system/xbin/busybox /system/xbin/cp
And start your phone after done
Code:
start
Click to expand...
Click to collapse
Step 4 isnt working,, I have disconnected the usb still there is no "open command window here" comming,,, i am on windows xp.....
Hello,
I`ve got a little problem - I cant format /data in CWM because of this file/folder
Code:
/data/system/dropbox/[email protected]
So, I connect tf via adb,switched to /data/system a tried to delete dropbox folder with this command
Code:
rm dropbox -r
output:
Code:
rm: cant remove dropbox/even[email protected]: No such file or directory
Code:
rm:cant remove dropbox: Directory not empty
So I switch to dropbox folder (
Code:
cd dropbox/
) and recieved this:
Code:
ls: ./[email protected]: No such file or directory
Can anyone help me to format data/remove dropbox folder please?
Flash the superwipe script from ARHD
Thanks!