[Q] Trying to edit an apk - General Topics

This is my first post so please dont flame me too bad!
Just bought a GS2SR and installed a keyboard app to replace the android keyboard however i LOATHE the keypress sound (sounds like an old typewriter). I really like the galaxy s2 keyboard sounds so here's what i've done to solve the issue so far..
-downloaded stock GS2 rom and extracted the .ogg sound files for the keyboard click
-converted .ogg files to .wav(same format as files i am replacing inside the .apk) and renamed them to the EXACT name of the .wav files i am replacing inside the .apk
-download the keyboard .apk and open in winRAR (didn't change file extention)
-inside the .apk i located directory containing the .wav files and deleted them
-from the desktop i dragged the new .wav files into winRAR and dropped them in the original directory
-close winRAR
-resign .apk
-plug phone in and view on PC as mass storage mode.
-click and drag newly edited and signed .apk into the downloads folder on phone
-unplug phone
-install .apk on phone
So the installation went fine. I go into messaging and the keyboard shows up and works perfectly. only problem is i have no keyboard sounds! why aren't my new .wav files playing when i press a key? what am i missing here?

Did you rename the .wav files to be the same?

weaselnoze said:
This is my first post so please dont flame me too bad!
Just bought a GS2SR and installed a keyboard app to replace the android keyboard however i LOATHE the keypress sound (sounds like an old typewriter). I really like the galaxy s2 keyboard sounds so here's what i've done to solve the issue so far..
-downloaded stock GS2 rom and extracted the .ogg sound files for the keyboard click
-converted .ogg files to .wav(same format as files i am replacing inside the .apk) and renamed them to the EXACT name of the .wav files i am replacing inside the .apk
-download the keyboard .apk and open in winRAR (didn't change file extention)
-inside the .apk i located directory containing the .wav files and deleted them
-from the desktop i dragged the new .wav files into winRAR and dropped them in the original directory
-close winRAR
-resign .apk
-plug phone in and view on PC as mass storage mode.
-click and drag newly edited and signed .apk into the downloads folder on phone
-unplug phone
-install .apk on phone
So the installation went fine. I go into messaging and the keyboard shows up and works perfectly. only problem is i have no keyboard sounds! why aren't my new .wav files playing when i press a key? what am i missing here?
Click to expand...
Click to collapse
From my limited experience, I don't think it's that easy to modify the apk. Me thinks you need to decompile the .dex, muck around with that a bit, re-compile the apk, then rezip and resign it.
Doesn't hurt to Zipalign it also.
Look up Apk Manager to get more info.

Related

Keyboard color change

Hey folks,
Okay so I have the HTC_IME_JONASI file installed and I see it in the setting but I am having trouble changing the keyboard colors, Can anyone walk me through this or direct me to a link where I can do this?
Thanks In Advance Folks!
afaik you would need to modify it before pushing it over to the phone
unless its something different than just a themed ime
(this should be in Q&A btw)
You have to do this
1. change the file extension from .apk to .zip
2. extract the contents of the .zip file to a directory, if you use winrar or 7zip or similar, you usually can just right click on the file, then it will extract to "xxxxxx\" where xxxxx would just be the name of the file and a directory where that file is located will be created.
3. Go to the directory that was just created and then go to the RES folder
4. Scan through the different folders within RES and find the files you will need to change
5. Download GIMP (free) or acquire Photoshop (ripoff price)
6. Use GIMP or photoshop to edit your .png files, then save to same directory
7. Do this for all files needed, also read up on .9.png files, if you don't edit them properly before sending them back to your phone, your keys might be coming out looking stretched.
8. Once you edit all files, and also note that some files might exist in other directories that are the same as in another. Same filename, check the dimensions (pixels example 54 x 47) and if they are the same just copy then paste it over from the other directory and overwrite that file that wasn't edited, that way you don't have to do it twice
9. Use your program 7zip or winrar or similar and compress the files again. Easy way is to go back to the root of the folder where it shows all the files you extracted within the folder you created, select all files in that folder, right click, then choose add to archive, and make sure you create a zip. Change the file extension from .zip to .apk
10. Push to phone and pray it looks right.

Windows Phone 7 Keyboard Sounds (for HTC_IME Mod)

*Other Edit*Changed the zip file,(now packed with winzip) should work on every pc
*EDIT* Added 7zip packed version for those who don't can get the zip version to work (remember to download 7zip Its free!)
Hi Its Moon Again :3
i saw many who wanted them, so I got the windows phone 7 keyboard sounds for everyone who want them!
They are meant for HTC_IME MOD
You can get from here http://forum.xda-developers.com/showthread.php?t=624416
There are both .wav and .ogg files
You Need the .ogg files for The IME mod ;D
Hope i was a help
Hi, Moon.
Having trouble with the zip.
Astro says can not find file type and my computer cannot extract them either.
Any ideas? Thanks!!
Oh! Sorry D: i check it now..
Hmm.. What do you use to unzip?
they work fine here (Both ubuntu and windows 7)
oh and they are meant to be extracted on the pc,
I'm running Windows 98. And winzip says its skipping the file because of unknown compression method.
Can you make this for the 2.3.3 gingerbread keyboard??
Oh Hi! i see you run CM7
Yes open Root explorer and go to "/system/media/audio/ui/" and rename every Ogg file from my zip to the right ones and overwrite those in the "ui" folder
REMEMBER TO BACK UP PLEASE ;3
Eh? Win98? x3 sorry but i think you should use 7zip it should work on older windows versions too,
Thanks for the update Moon.
7Zip worked for me!!
Your Welcome. and by the way i packed the .zip version wrong i re,upload it Too!
Moonystorm said:
Oh Hi! i see you run CM7
Yes open Root explorer and go to "/system/media/audio/ui/" and rename every Ogg file from my zip to the right ones and overwrite those in the "ui" folder
REMEMBER TO BACK UP PLEASE ;3
Click to expand...
Click to collapse
That didn't work
Sometimes I hear a noise when I'm typing, but it's not working
What else can I do? Because I want my keyboard to have those sounds! They are awesome!
Emm, the Htc_ime mod i linked to on the first post is amazing Take the High_ress version
install it Put the .ogg files to /sdcard/media/audio and name them something easy
BTW the Htc_ime mod is 10 times better than the stock keyboard!

[Q] [q] how to edit widget image

So... I have a rooted Fascinate... i've been playing around with Bettercut to edit icons and whatnot... however, i'm wondering if i can edit widget-images as well...
can somebody lend me a hand?
Thank You
also, you can add me on MSN messenger: tommythekirby(at)hotmailDOTcom
Download root explorer
Search for the widgets .apk in /data/data or /system/app/
Copy to your sdcard and open it on your pc with winrar
Go to the res/drawable(-hdpi) and edit the .png files you want
Put them back in the .apk file and push the file to the destinated folder using android sdk.

Circular battery mod for all firmwares(easiest way)

Instructions:
copy "framework-res.apk"to your PC
Rename .apk to .rar(zip) then right click"framework-res.rar"then extract it with WinRAR(WinZip)
Enter framework-res\res\drawable-hdpi and select"stat_sys_battery_0.png" to "stat_sys_battery_100.png",total 101 pictures which from your sources folder and copy all of them to the destination,replace older files like these
When you finish doing that back to find folder"framework-res",then use WinRAR OR 7zip(i used 7zip) to compress it to a .APK file the"archive name" is end with .apk And "Compression method" is "Store"
Modify the attribution of this apk!(from root explorer).
Its attribution is "rw-r--r--"
Modify with Root Explorer or other programs and now copy "framework-res .apk in system/app
Reboot...
n u r with your new battery mod
LINK------http://www.mediafire.com/?6o7r6wy2gu3bnyw
NJOY frnds !!!!
IF BY ANY MEANS I HELPED U,PLEASE HIT THANX
akshatsourav said:
Instructions:
copy "framework-res.apk"to your PC
Rename .apk to .rar(zip) then right click"framework-res.rar"then extract it with WinRAR(WinZip)
Enter framework-res\res\drawable-hdpi and select"stat_sys_battery_0.png" to "stat_sys_battery_100.png",total 101 pictures which from your sources folder and copy all of them to the destination,replace older files like these
When you finish doing that back to find folder"framework-res",then use WinRAR OR 7zip(i used 7zip) to compress it to a .APK file the"archive name" is end with .apk And "Compression method" is "Store"
Modify the attribution of this apk!(from root explorer).
Its attribution is "rw-r--r--"
Modify with Root Explorer or other programs and now copy "framework-res .apk in system/app
Reboot...
n u r with your new battery mod
LINK------http://www.mediafire.com/?6o7r6wy2gu3bnyw
NJOY frnds !!!!
IF BY ANY MEANS I HELPED U,PLEASE HIT THANX
Click to expand...
Click to collapse
First copying framevork apk to app folder does nothing, second just adding new graphics to apk without modding xml files does nothing.
I suppose that you have already modded framework (first Chinese rooted ROM had this modd in framework-res.apk) and replaced those .pngs and there is no need to rename and compress just drag and drop using winrar. Of course you could not have any effect if you did not copied this apk to your root/system/framework folder.
There is also charging graphics, after all without modding xml files you can only see few graphics (battery level 0, 10, 20, 40...). And dangerous thing is replacing framework apk with another from other ROM version will end up with "bootloop"...
nedooo said:
First copying framevork apk to app folder does nothing, second just adding new graphics to apk without modding xml files does nothing.
I suppose that you have already modded framework (first Chinese rooted ROM had this modd in framework-res.apk) and replaced those .pngs and there is no need to rename and compress just drag and drop using winrar. Of course you could not have any effect if you did not copied this apk to your root/system/framework folder.
There is also charging graphics, after all without modding xml files you can only see few graphics (battery level 0, 10, 20, 40...). And dangerous thing is replacing framework apk with another from other ROM version will end up with "bootloop"...
Click to expand...
Click to collapse
and if i hav a cwm backup i can restore it.....so wat
is a problm it trying...?

Need help with this app. Getting zip to apk

I am not smart with Android apps yet so I would apprecicate some help
I have a Nvidia Shield and I found an app to use 4k images on the Daydream (screen saver) versus the horrible default.
I found someone that made this app 9 months ago but the creator has been unresponsive.
Attached is the zip file I found and the APK file.
I found how to change the images in the .zip file but I can not get it load like the original .apk file he has.
I tried just chaning .zip to .apk but the Shield installer did not reconize it (it installed the original .apk file fine).
If I change the .apk file to .zip, it is not the same as the original .zip file so I cannot find how to change the backgrounds.
Both files are downloadable from the link below:
Need to copy and paste: plus.google.com/+JacobKlinker/posts/L6Jg7HKs3nx

Categories

Resources