[Q] Modifying the contents of an apk file - Android Software/Hacking General [Developers Only]

First off, I apologize if I'm posting in the wrong forum for this.
My main goal here is to replace a .wav tone in the Textfree app with my own custom .wav tone. (The app doesn't natively support custom tones)
I've retrieved the .apk from /data/apk off my phone, opened the .apk in 7zip, deleted the old .wav file from /assets/tones, and placed a new one in the same folder with the same name as the previous file. I've deleted the META-INF files, and resigned it using signapktic.
However, after the original version is uninstalled and the modified/signed apk is installed successfully, not a single tone will play. Everything else works fine and I can send/receive texts, but the tones no longer play. My volume is not muted or low on any channel.
Is there a different way that I should be going about replacing this file? Does the app make some file check that I'm not aware of / Is there something I missed?
Thanks in advance.

Anyone? I haven't made any progress on this yet.

Check out this post on how to reverse engineer an APK (in this case it's a guide on reverse engineering an EVO 4G FM Radio APK) overall process should be similar for any other APK:
http://forum.xda-developers.com/showthread.php?t=725870

Related

Sound assignment prob

Hi all, I'm new to this forum and also new to my smart phone. I have an HTC Elf 0300. I'm trying to assign a sound to Notification/ MMS downloaded. I've looked at the existing sounds available and tried to find the folder they're in via ActiveSync to no avail. I've converted the mp3 I want to use to .amr and put it in the My Ringtones and My Voices folders. I can access the amr file if I want to change the ringtone notification but not for the MMS downloaded. I can only assume that one can't use anything other than what came with the phone. If you know different, please advise, many thanks.
Ron_H said:
Hi all, I'm new to this forum and also new to my smart phone. I have an HTC Elf 0300. I'm trying to assign a sound to Notification/ MMS downloaded. I've looked at the existing sounds available and tried to find the folder they're in via ActiveSync to no avail. I've converted the mp3 I want to use to .amr and put it in the My Ringtones and My Voices folders. I can access the amr file if I want to change the ringtone notification but not for the MMS downloaded. I can only assume that one can't use anything other than what came with the phone. If you know different, please advise, many thanks.
Click to expand...
Click to collapse
Put your tones in the main windows folder, you will see that many of the tones already available to you are in wav/wma format.
Thanx Timmy, that worked, one learns as one goes along eh, lol.

Feebe Ringtones Edit problem

Hey guys,
I am in need of your help, obviously .
I have downloaded an app called FeebeRingtones. It works pretty good so far, apart from an annoying point.
You get the option to download some songs from it, which are apparently saved in the /sdcard/FeebeRings/mp3 folder. This annoys me because it essentially makes those downloaded mp3 ringtones playable from my media player.
What i want to do is edit the apk and make it save in /sdcard/media/audio/ringtones folder. I've opened up the apk, and got to a file named file_save.xml. Thing is when i open that file up its content shows up as gibberish. I tried opening it with an xml editor (Open XML Editor 1.6) but still no luck at all.
Can anyone point me at the right direction, as to what program to use and edit it?
I am attaching the file_save.xml in case anyone wants to have a look and help me out.
Thank you very much for your time.

[Request] Froyo Music.apk-(diff)-mod to include Codecs included in Eclair Music.apk

I am hoping that someone is smart enough to figure this one out.
As some of you might know, for Froyo Music.apk, Google omitted support for certain codecs that were supported in previous versions of the .apk. Namely, for GSM 6.10 (I think that's correct) .wav support. For some unknown reason Google does not seem to be in any hurry to correct the matter either.
The reason this sucks so much is that for those of us that have home/work telephone pbx services or servers that send out voicemail attachments as these types of.wav files, we cannot listen to the voicemails on our phones within the Gmail app->Preview->Listen with Music Player. This includes Vonage, RingCentral, and many company pbx systems where the user cannot change the type of attachment that the VM gets sent out in.
You can read more about the topic and the issues here.... http://code.google.com/p/android/issues/detail?id=4875
There are a couple work-arounds, one being a $4 app called Remote Wave. Another solution, in the US only, is to create a YouMail account, download the app and have the VM attachments forward to YouMail's dropbox service. But, that is giving up a lot of security, IMO.
My hope is that someone can figure out how to put the code that make this work in the Eclair Music.apk into the Froyo Music.apk.
Download the attached files and try to play it on your Froyo phone and see the error you get.
Can't upload .wav files as attachments on xda so the .zip is an actual .zip file with the .wav inside. So, you have to unzip it. The .txt file is just the .wav with the extension changed. So, just change it to .wav with Astro etc.
Thanks
I second this request!
I Third !!!!!!!!!!!!
anything on this?

Where are the sound files for the video camera?

Hi Guys,
When you record with the video camera, it makes a very irritating noise and I'd like to delete that. The camera app lets you go silent but the video doesn't for some reason.
I've looked in (using root explorer) /system/media/audio and I can't find those sound files, is there another location sound files are kept?
Best Regards
can you pull the camera apk file? i don't have root yet but maybe i can find it for you from the apk.
I pulled this one from /system/app
http://dl.dropbox.com/u/6759990/Camera.apk
Is this the right one?
cheers
Try replacing your /system/app/Camera.apk with this one (back up original first). I reduced the volume of the two WAV files to nothing. Haven't had a chance to test it myself as I am not yet rooted.
Be sure to force stop the app and clear its data, also a reboot might be necessary.
Thanks man, I'll give this a try shortly.
were the sound files embedded in the apk?
reapur said:
Thanks man, I'll give this a try shortly.
were the sound files embedded in the apk?
Click to expand...
Click to collapse
Yes they are! And very helpfully named camstart01.wav and camstop01.wav
HAHA never thought to look in there
I see them.
That's why I like android, seems like everything is possible.
Ok I'm at work so my brain may just be fried. but I renamed your file and tried it and it wouldn't launch.
Then I modified the wav files in the .apk with audacity, and when I launch it I get an FC right away but I can still see the camera working under the FC dialog.
I'll mess with it when I get home, it's probably user error
I updated the APK in my previous post, used a newer version of apktool, old version might have been buggy.
Need to use apktool to unpack and then repack it if you are trying it yourself and then sign it with jarsigner and zipalign it with zipalign.
Be sure to force stop the app and clear the app data, also a reboot might be necessary.
I hope it works.
That worked!
Many thanks.

[Q] Custom Key Sounds

I post this in my SGS4G Forum, but haven't gotten any hits, trying to broaden my chances of getting some help.
Ok, before i posted this i searched high and low and really couldn't find a strait answer. Here is what i am trying to do... I have a bunch of cool sounds... I would like to set these sounds as key tones... you know, like when i dial a number on my key pad.
So i got all the files in order, converted them to .ogg, and placed them in /system/media/audio/ui and renamed them key1.ogg key2.ogg etc.... Well nothing happens, i cant even play the file, it says its "unrecognized" by the stock media player and Rockplayer. anyone have any ideas?
I read somewhere that the "program" that plays these files will only recognize certain codecs or something, That is a little outside my AO (area of operation)....any help would be greatly appreciated!
panda
I found this
http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html
However, i am not a Dev so this might as well be Japanese, any hints?
That link is relevant for writting an app that plays sounds.
The app that does this, the dialer already exists though.
This rather sounds like a codec problem.
If you can't open and play those files with the native android player on your phone, the dialer won't be able either.
Recheck the encoding on those sound files and try again.
they will play from the sdcard, but when i move them to the UI folder on the root, they wont... still an encoding issue?
Could be a permission issue.
There is no permission issue on the sdcard, as all files are accessible to everyone, but this doesnt apply to files in the root folder.
So try changing the permissions.
Changed the hell out of the permissions, which made the native player play the file.. YAY!! However......when i changed the file name to Key1.ogg from key1a.ogg, i press the corresponding number on the dialer...i get nada. so sound at all, i will play with permissions a little more, maybe change the format to a lower quality file and see if that helps... Thanks for the insite!
Well the filename has to be the same as the original one, CASE SENSITIVE mostlikely.
To make sure you have absolutely the same kind of file you could extract the original sound file and use a common player (i.e. VLC?) to check the bitrate, encoding, kHz etc.
I DID IT!!! WOO HOO.. what a pain in the ass! LOL I made the files smaller... less than 16hz and 92kbps.. then sent them all to drop box... copied them to the ui folder... THEN...I renamed the originals...then renamed the new ones.. giving them god permission. It worked!! Wish i was more of a Dev.. i'd make an app to simplify it...took about an hour once i got the hang of it....

Categories

Resources