ok guys.... here is where im at... i wanted to replace the camera click sound to the sound of the camera from texas chainsaw massacre.... i just like the way it sounds... i downloaded the file, converted it to .ogg renamed it camera_click.ogg but i am not sure what to do from here. i know i need to unzip the apk, replace the file, zip it again, and sign the file, but i have no clue where to begin on that. any help would be appreciated guys!
PS- i attached the .ogg file just remove the .zip to listen to it. also, if anyone just wants to try to tackle job that would rock as well
where did the ogg come from? (as in what location)
You should just be able to push it back using the terminal
cp /sdcard/nameoffile.apk /new/location/
AdrianK said:
where did the ogg come from? (as in what location)
You should just be able to push it back using the terminal
cp /sdcard/nameoffile.apk /new/location/
Click to expand...
Click to collapse
the ogg is packed inside of camera.apk----- system/app/camera.apk
inside the apk, it is camera/res/raw/camera_click.ogg
i know i need to replace the .ogg file, once i do this do i just zip it back up, sign and push the new .apk to my phone?
running jacxrom btw
palosjr said:
the ogg is packed inside of camera.apk----- system/app/camera.apk
inside the apk, it is camera/res/raw/camera_click.ogg
i know i need to replace the .ogg file, once i do this do i just zip it back up, sign and push the new .apk to my phone?
running jacxrom btw
Click to expand...
Click to collapse
You may have to re-sign it but you can try as is
borodin1 said:
You may have to re-sign it but you can try as is
Click to expand...
Click to collapse
i want to try it, but im too chickensh** to try it right now, got class in the morning and i dont wanna spend tonight wiping my phone and setting things back up if it doesnt work right lol
question... once i edit the files i need to, i zip back up and it is named as zip... do i just change .zip to .apk and voila its changed and able to push to my phone or am i missing something here?
so i got the file replaced, but when i try to push/install back to my phone through adb i get install parse error. i tried using stericsons autosign util but no luck getting it working on my computer at the moment. if i upload the zip of the camera with the file replaced can someone sign and upload it back here again so i can use it? I would appreciate it.
EDIT---I got it signed and installed, but none of the sounds from the camera app play when i take a picture. Any idea as to why this may be?
palosjr said:
so i got the file replaced, but when i try to push/install back to my phone through adb i get install parse error. i tried using stericsons autosign util but no luck getting it working on my computer at the moment. if i upload the zip of the camera with the file replaced can someone sign and upload it back here again so i can use it? I would appreciate it.
EDIT---I got it signed and installed, but none of the sounds from the camera app play when i take a picture. Any idea as to why this may be?
Click to expand...
Click to collapse
Don't zip it. Open the apk with winrar and drag and drop in the new sound, it should remain as an apk. At this point you can try pushing it as it is. If it doesn't work then sign it, and make sure the method you're using works for apks (some are only for update.zip). If that adds a .zip on the end, remove it.
AdrianK said:
Don't zip it. Open the apk with winrar and drag and drop in the new sound, it should remain as an apk. At this point you can try pushing it as it is. If it doesn't work then sign it, and make sure the method you're using works for apks (some are only for update.zip). If that adds a .zip on the end, remove it.
Click to expand...
Click to collapse
Thanks adriank, that worked so much easier... all the other sounds play except for the new .ogg file i replaced though still.
palosjr said:
Thanks adriank, that worked so much easier... all the other sounds play except for the new .ogg file i replaced though still.
Click to expand...
Click to collapse
Is the new ogg the exact same length and bitrate.
AdrianK said:
Is the new ogg the exact same length and bitrate.
Click to expand...
Click to collapse
no they arent. could that be it?
palosjr said:
no they arent. could that be it?
Click to expand...
Click to collapse
Yeah, I'm 99% sure that the length is the problem, just due to the way the app is programmed to load sounds. Wouldn't hurt to make it the same bit rate.
AdrianK said:
Yeah, I'm 99% sure that the length is the problem, just due to the way the app is programmed to load sounds. Wouldn't hurt to make it the same bit rate.
Click to expand...
Click to collapse
ok ill try it when i get home. im sitting in BCIS right now.. boring
Related
i want to change Effect_tick.ogg in the /system/media/audio/ui
i try to overwrite it or delete it or movie it and im denied even in su mode.
how can i take a ogg of the same name from my sdcard or computer and switch this sucker? this is the sound file for the the screen selection setting and i want to change it.
possible? how? adb push/pull? other than adb?
Your best bet would probably be to unzip your current ROM, throw it in there, zip and sign, and flash. I don't think little files like that can be over-written.
lukekirstein said:
Your best bet would probably be to unzip your current ROM, throw it in there, zip and sign, and flash. I don't think little files like that can be over-written.
Click to expand...
Click to collapse
trying that now. i would have to resign and stuff right? i never done that hmmm
okay i unzipped the rom, took MY effect_tick.ogg and threw it in the unzipped rom, rezipped and signed and the error i got while updating is WRONG DIGEST and it named the system path to my effect_tick.ogg i tried putting in... hmmm im asking cyanogen i first wanted to to it on his ROM. i do realize this is a sound and path not exclusive to his ROMs but its worth a shot thanks for the help
http://androidcommunity.com/forums/...-selection-sound-or-any-other-ui-sound-17949/
That should do it. If you have any good sound files to use as a replacement, can you please upload em so I can take a listen? or maybe suggest where I may acquire some myself possibly?
Seoulboy1 said:
http://androidcommunity.com/forums/...-selection-sound-or-any-other-ui-sound-17949/
That should do it. If you have any good sound files to use as a replacement, can you please upload em so I can take a listen? or maybe suggest where I may acquire some myself possibly?
Click to expand...
Click to collapse
today i set up adb on my work comp (honestly i was lost as to how to get adb working and what exactly is was for the longest haha), just followed your tutorial, and bam! i've got the final fantasy IV screen finger pointer sound as my selection sound.
THANK YOU! oh and i dont have any other good ogg's right now i just wanted taht one. if i make more ill be sure to post em!
thanks again!
As the title says can someone show me how to do this strictly on a mac!
I have failed miserably at it!
All the tools are for windows..
I have the sdk for mac all set up and I can push an pull files!
but everything I edit on the mac and push to the phone crashes the phone with force closes and stuff...
-kitt050383
I came across this in a google search for the same thing. Can someone post a how-to step by step for modding .apk files with adb commands to push to the phone? Thanks in Advance.
Me as well please, been searching for a good 30 minutes now and cant find any tools to do this on a MAC, especially to edit the .9.png's
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
ajones7279 said:
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
Click to expand...
Click to collapse
So, i change the extension to .zip double click and it unzips it. Open the folder, edit the files... and then i just switch the extension back to .apk?
I dont get what you are saying.
If you're using the default archiver, you may have to change it to .zip. Since I use betterzip, I just associated the .apk extension with BetterZip so it automatically opens it like an archive. Now, extract the contents of the apk, make whatever changes you please, put the contents back into the archive, sign the apk, then push it back to the phone. I'm typing this from my Hero so I'll try to make a more detailed post when I get off.
ajones7279 said:
If you're using the default archiver, you may have to change it to .zip. Since I use betterzip, I just associated the .apk extension with BetterZip so it automatically opens it like an archive. Now, extract the contents of the apk, make whatever changes you please, put the contents back into the archive, sign the apk, then push it back to the phone. I'm typing this from my Hero so I'll try to make a more detailed post when I get off.
Click to expand...
Click to collapse
Thanks for the tip! I'll give it a shot tomorrow.
Didn't know Betterzip was out there. I'll give it a try later tonight as well.
almost there...
ok i can transform an apk to a zip and unzip for editing, but how do i change it back? i just did a bunch of editing work, and now i am stuck. please help me....
So pretty much we all want to know the same thing...
Once we get the apk open... and we change files around how do we get it back to an apk file.
anyone gonna help?
ipeench said:
So pretty much we all want to know the same thing...
Once we get the apk open... and we change files around how do we get it back to an apk file.
anyone gonna help?
Click to expand...
Click to collapse
someone did.
http://forum.xda-developers.com/showpost.php?p=5849463&postcount=6
Better Zip works great for this. Now, if there was a way to do zero compression like the APK Manager. Without that, the sounds for lock/unlock won't work.
Me too have the same problem. I think installing windows on your mac will work fine with all .exe tools. if you don't wanna do anything o your osx then you can run a virtualbox and run windows without affecting os x.
NO WAY
ajones7279 said:
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
Click to expand...
Click to collapse
Hi, I have tried to extract the APK with BetterZip.
I can extract files. But, XML file are like unable to open.
The image files are quite OK.
My purpose is to check out Manifest File and other XML Files.
So, if you can actually do those things after extracting with BetterZip, do let me know.
Thanks in advance.
The most useful way is install Windows via Bootcamp or Virtual Machine...
While I don't have a Mac, I should be able to help. First, rename the extension from .apk to .zip so it can be viewed and extracted from whatever archive manager you use. Doing this won't decompile the apk but it will at least let you modify the images. If you want to modify the xml's in the apk file. You can use Apktool which will decompile and recompile apk's, and sign the apk if it's a non-system app. You will also need to have JDK installed to do this.
JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Apktool: https://code.google.com/p/android-apktool/downloads/list
I'd hate to be that guy who starts a whole thread for something...but I've looked everywhere and can't find the answer.
I'm working on my first theme, and I unzipped the framework recourse apk files, made the changes to the files inside, and now I want to turn them back into apk format so I can make everything into a flashable update.
I can't figure out how to turn these framework recourse folders into framework recourse apk files! Can anyone help me!? Thanks! If all goes well, I'll have a new theme out for you guys by tonight.
Thanks in advance!
alexthearmo said:
I'd hate to be that guy who starts a whole thread for something...but I've looked everywhere and can't find the answer.
I'm working on my first theme, and I unzipped the framework recourse apk files, made the changes to the files inside, and now I want to turn them back into apk format so I can make everything into a flashable update.
I can't figure out how to turn these framework recourse folders into framework recourse apk files! Can anyone help me!? Thanks! If all goes well, I'll have a new theme out for you guys by tonight.
Thanks in advance!
Click to expand...
Click to collapse
http://www.4shared.com/file/1LIk07D5/Avabox.html
download for windows. it has auto sign. as for changing back to apk just change extension back to .apk
so...do i use that program to zip up the file, then just change the extension?
........................
alexthearmo said:
so...do i use that program to zip up the file, then just change the extension?
Click to expand...
Click to collapse
Yes. Zip up file, change .zip to .apk.
What? You dont need to resign .apk's. In fact, you're making too much work for yourself. Im sure you extracted the .apk to a folder. All you need to do is reopen that .apk with 7zip. Drag and drop your changes into the .apk and you're done. No need to resign or anything.
VinceOB said:
What? You dont need to resign .apk's. In fact, you're making too much work for yourself. Im sure you extracted the .apk to a folder. All you need to do is reopen that .apk with 7zip. Drag and drop your changes into the .apk and you're done. No need to resign or anything.
Click to expand...
Click to collapse
Thanks for your help guys. I ran into some trouble with all this, and even realized that I mistakenly used some of the wrong files (from a theme that I actually didn't want to use)...so I'm gonna have to spend more time working on this. Hopefully I can get it finished and uploaded tomorrow. But thank you for your help. Right now I got homework to do. bleh.
Thanks for the post. I've been looking all over for this answer.
sweet...........
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
DrededStar87 said:
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
Click to expand...
Click to collapse
Try this: http://www.darktremor.com/upload/changes-signed.zip
scratch that, i packaged it wrong, there is the main folder "Changes-signed" and inside of that there is a "changes" folder, then they system folder inside of that and the "framework-res.apk" folder is still a zip and not apk, it just has an alias apk file name fml
DrededStar87 said:
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
Click to expand...
Click to collapse
I use mac too. The way you zip it is go into the folder where it is, select the contents, right-click and hit compress. It should save into archive.zip. Now, to sign it, use this amazing tool. http://forum.xda-developers.com/showthread.php?t=573498 Put the testsign.jar in Macintosh HD and put the app in the dock. Just drag the zip you want to sign onto the icon, and wait for the dot to go away under the sign app. Then, go to the folder where the original zip was, and there should be a Myzip-signed.zip. That should be a flashable zip as long as there's an update-script.
HeroMeng said:
I use mac too. The way you zip it is go into the folder where it is, select the contents, right-click and hit compress. It should save into archive.zip. Now, to sign it, use this amazing tool. http://forum.xda-developers.com/showthread.php?t=573498 Put the testsign.jar in Macintosh HD and put the app in the dock. Just drag the zip you want to sign onto the icon, and wait for the dot to go away under the sign app. Then, go to the folder where the original zip was, and there should be a Myzip-signed.zip. That should be a flashable zip as long as there's an update-script.
Click to expand...
Click to collapse
so it does not have to be an apk file? im gonna try to sign it myself
DrededStar87 said:
so it does not have to be an apk file? im gonna try to sign it myself
Click to expand...
Click to collapse
Uhh... that program is for your mac, not your phone.
HeroMeng said:
Uhh... that program is for your mac, not your phone.
Click to expand...
Click to collapse
i meant the "framework-res.apk" file because i made it an alias of the original file, but it is still a zip, i have no clue how to make it back into an apk file after unzipping it
and i used the search button but the things i found were not much help....just to let people getting ready to yell at me for not using it
DrededStar87 said:
i meant the "framework-res.apk" file because i made it an alias of the original file, but it is still a zip, i have no clue how to make it back into an apk file after unzipping it
and i used the search button but the things i found were not much help....just to let people getting ready to yell at me for not using it
Click to expand...
Click to collapse
Ok, you know what... just make a metamorph file. Metamorph is much easier.
Wait, what? You were trying to reinstall framework-res.apk? Nonononono. No. You need to write an update-script. It will put the apk in /data/app (or /sdext/app) if you install it as an apk.
HeroMeng said:
Ok, you know what... just make a metamorph file. Metamorph is much easier.
Click to expand...
Click to collapse
ummmmmm...i guess saying that i am extremely new to this is an understatement
the easiest way to do what you are talking about is to use something like 7zip or winzip to open , NOT UNZIP, the apk. Next, open up the zip you made. Now, drag the folder called res from YOUR zip into the open window of the apk. This should replace the old folder with your new one that contains all your edits. Now just close the opened apk, and you are done. Simple.
tejasrichard said:
the easiest way to do what you are talking about is to use something like 7zip or winzip to open , NOT UNZIP, the apk. Next, open up the zip you made. Now, drag the folder called res from YOUR zip into the open window of the apk. This should replace the old folder with your new one that contains all your edits. Now just close the opened apk, and you are done. Simple.
Click to expand...
Click to collapse
He has mac, like me. No 7zip.
HeroMeng said:
He has mac, like me. No 7zip.
Click to expand...
Click to collapse
But you have some sort of zip program, right?
tejasrichard said:
But you have some sort of zip program, right?
Click to expand...
Click to collapse
We have Archive Utility, straight from apple, comes with the mac.
It doesn't allow you to open without unzipping? (obviously I know nothing about macs)
tejasrichard said:
It doesn't allow you to open without unzipping? (obviously I know nothing about macs)
Click to expand...
Click to collapse
Nope. We can run Windows apps in WINE if we want....
so...what are my options people? cuz im still confused...
Re: i think i did this right...
bump.....anyone know anything?
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
So here's the issue: Drededstar has unzipped the framework apks, and changed the files...now he wants to know how to turn the .zip folder into actual apk files.
Macs don't have 7zip or ANY program that lets you look into apk contents without unzipping them all the way. So, you have to unzip them. Then once you're done making the changes, you need to change them back to apk files. DOES ANYONE KNOW HOW TO CHANGE THEM BACK TO APK FILES?!!!
I have a mac too, but I do all my theming on my wife's computer...and she's probably tired of me kicking her off. If anyone knows how to do this one simple step could you please let us mac users know?!! Thanks!
as long as the file structure is right, you just have to rename the zip file to apk.
I really did not like the gray background on the music widget so I made a transparent version that looks real good on the Xoom.
To apply the apk you will need adb and root running.
adb remount
adb push Music2.apk /system/app/Music2.apk
What exactly did you edit to get it to do that? I'd like to play around with it a little bit.
arrtoodeetoo said:
What exactly did you edit to get it to do that? I'd like to play around with it a little bit.
Click to expand...
Click to collapse
Used Photoshop to edit the images. If you extract the files from the .apk using winrar or something similar you can find the background files in res/drawable-mdpi. There are 4 files in there that all start with bg_panel and are 9.png's.
Once I had the files edited the way I wanted, I just dragged and dropped them into the .apk using winrar.
Hope that helps.
great job on this
why do you use advanced task killer?
Works great, thanks.
Note to anyone trying to be lazy like me: You must use the ADB method he instructed how to use, simply trying to install the .apk doesn't work.
PaulG1488 said:
why do you use advanced task killer?
Click to expand...
Click to collapse
I use ATK more out of habit than anything else. I like to know what is running and kill what is not needed to reduce battery usage. Have used this since the G1 days
B Dizzle said:
Used Photoshop to edit the images. If you extract the files from the .apk using winrar or something similar you can find the background files in res/drawable-mdpi. There are 4 files in there that all start with bg_panel and are 9.png's.
Once I had the files edited the way I wanted, I just dragged and dropped them into the .apk using winrar.
Hope that helps.
Click to expand...
Click to collapse
Thank you! I knew how to edit them, I just couldn't track down the files.
There is also a preview file that shows up when you are adding widgets to the screen. I don't recall which folder it is in but the name of the png is obvious.
Was searching for a market alternative that looked like this but none I found worked so this made my day! Thanks!
pure music should be working sometime soon, i emailed the dev about it and he acknowledged that there was a problem.
@B Dizzle: Thanks for this. I have not rooted yet but will soon to get this music widget mod. I am trying to make all my widgets have transparency (except CNN) and Pandora is the only one I have left to make my home screen complete. Do you know if it is possible to do something similar with Pandora widget?
See screen here (lower center).
Please HELP
Ive tried to install this mod, but music app is now lost.
Anyone can help me on this one?
Thanks in advance!
drziddo said:
Ive tried to install this mod, but music app is now lost.
Anyone can help me on this one?
Thanks in advance!
Click to expand...
Click to collapse
For simplicity put the music2.apk file in the same directory as adb. Then attempt to push the file again.
A reboot may also fix this.
If all else fails, download the official dump from the dev section and push the original music2.apk back to your device.
Sent from my Xoom using Tapatalk
I havnt got a XOOM yet so I can only use the emulator but maybe I could make one with the blue "holographic" outline if anyone is interested. Just let me know.
B Dizzle said:
For simplicity put the music2.apk file in the same directory as adb. Then attempt to push the file again.
A reboot may also fix this.
If all else fails, download the official dump from the dev section and push the original music2.apk back to your device.
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
Downloaded the dump, pushed the apk, not working.
Any ideas?
If I had to guess there is a permission issue if the music2.apk is actually in the /system/app folder. Check permissions on the apk. Check the owner of the file. Try replacing the file with another using Root Explorer.