So I guess my question is, "Can anyone help me?"
I used custom ringtones, and I don't like using them from the SD card, it creates lag, takes longer to load the ringtone, etc, so I keep them on my /system/media folder. Normally to accomplish this, when I install a new ROM update, I edit it and resign it, with my media folder, rather than the ROM's.
My predicament however, is that I don't know how to change the file structure for the update, I know there are files in the update that say, this and this folder exist, where this goes, etc. This is what I don't know how to do.
All I need the update to do is contain the media (/system/media) folder, so I can just add all my ringtones and notifications to this update, and flash it after I flash whatever update/rom, etc, instead of always having to be at my computer to create a custom version of every rom I use.
Could anyone please care to help? I'd be ever grateful.
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
ID# said:
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
Click to expand...
Click to collapse
is this just to be used for signing? i already know how to sign files. i need someone to edit w/e files are inside the rom that tell its structure (this folder exists, and gets flashed here, this folder goes here, etc). i cant just take a cm rom and delete everything i dont need then flash it. it will get errors in recovery.
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
cloverdale said:
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
Click to expand...
Click to collapse
Thanks man, but my buddy actually just helped me out with this, but yeah thats exactly what I needed to know. Thanks a ton mate
Related
ok, so I've made some modifications to the default theme but I cannot seem to get a .zip that will flash. I've just transferred them straight to my hero using android commander, which works.
But anyway, it doesn't really matter if no one wants to use it, right? so here are some screenshots, if someone could help me out that would be much appreciated.
easiets way is to look inside a rom.zip
Take out the files META-INF and System
go through the meta-inf folder until you get to update-script and open it in notepad.
Delete everything except the first show progress line and the on saying copy package:SYSTEM or something very similar.
Go back to the system folder and open that,depending what files you are trying to flash you need to keep and empty those files....
if your changing rosie.apk its in system/app so empty system>app and put rosie.apk inside it.
Framework-res.apk is inside system>framework so put it there
When you have finished putting your files in go back to where META-INF and system are,Add them to an archive (.zip) and then resign! if you are unsure of the siging process please search google on how to resign update.zip
So I've got a handful of audio files I need to copy to /system/media/audio/notifications and /system/media/audio/ringtones every time I flash a new ROM (even upgrade).
I do this since I often have my SD card mounted (car/desk/etc), and if I do, I get the terrible system beep ringtone/notification, since my N1 can't find the configured sound file.
How would I go about creating a flashable zip that would install those files to the correct location, rather than doing it manually each time?
I've made a similar flashable zip.
Here is what I did. Took a ROM zip file. Made a copy. Opened the *copy* up. Navigate to System. Delete all files/folders except for media.
Open up media folder. Delete all files/folders except for audio.
Open up audio folder. Delete all files/ folders except for ringtones and notifications.
Open up ringtones folder. Delete all files and add the ringtones you want.
Open up notifications folder. Delete all files and add the notifications you want.
Save the new zip file to the SD card and flash it.
And most importantly, NANDROID before you flash it.
BTW, you can also make a media/audio/notifications folder (and/or media/audio/ringtones) on the SD card. Then you can run then right from the card instead of loading them each time. Takes a little time for the new ringtones to show up in settings.
Hi,
i want to have the stock bootanimation on my N1 which is running CM7 #96
I have this attached bootanimation and want to sign it, so that i can flash it.
I dont want to push it to system/app via rootexplorer and change permission and reboot anymore.
How do i do that? Or can somebody get it done for me?
It's a little more complicated than just signing it - in fact, you don't need to sign it, you need to create a flashable zip which will install the file.
I find the easiest way is to add the file to a gapps package in the right directory structure, so that everything gets flashed in a single zip. You would need to look at the install script in the gapps package, and make sure it first removes the existing animation, and then check to see if it installs the whole /system structure, or individual files. If it installs individual files, you will need to list your animation...
I noticed all the ringers and notifier files in the system/media/audio/ folders. Could I:
1) take that zip and delete everything except for these files,
2) remove ringers I don't like,
3) add others I want
and just flash it in recovery? I know I can just put files on the sd card but in MIUI it's alot of navigating. Will it rewrite the folder contents and delete files not in the zip or just append whats there?
Thanks
If someone can teach me how convert the rom.... I really appreciate it.
Use this method..
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Download a valid update.zip to
use as a template - for example,
my CyanogenMod 0.7.
Extract the zip to a new folder and
rename it - let's call the folder
updatezip .
Inside the updatezip folder, delete
the system folder and boot.img
file (as these are the
CyanogenMod files that you don't
want).
For the ROM you want to convert,
extract the contents of its
system.rfs image to a new folder
called system.
Copy this new system folder to the
updatezip folder.
Copy the boot.img file from your
ROM to the updatezip folder.
Re-zip the contents of the
updatezip folder (but not the
updatezip folder itself). If you see
warnings about symlinks not
being added, don't worry - we
don't want to add them anyway.
You need to have some Linux shell
experience in order to do this. You
can't do it from Windows.
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Use dsxida kitchen
Search about it.
Sent from my Nexus 5 using Tapatalk 2
Thanks for to all of your concerns. I really appreciated.
@sangalgojoe
Thanks Dude???
thanks for this i was seraching for this