Decompiling and compiling Spareparts.apk - Android Q&A, Help & Troubleshooting

Hello people, i have a few problems compiling some .apk's
I want only to hide the spareparts from my launcher, and to put a entry on settings.apk...
So far so good, i followed the knowed steps, but when i made a clean install, like put the apk in the rom, i got FC. But if i do a patch for it, it works very well.
I want to make it like a system apk, and i dont want to install through a patch.
Can you help me to find the error?
I only changed the "AndroidManifest.xml" to hide it from the launcher.
If you have any idea please help me
Thanks

yes i want to how to

Related

[Q] Stock Blur Kybd On CM7 Or Other Roms

Let me start off by saying that I have a condition known as "Sausage Fingers"...I am pretty much unable to use any keyboard I've come across due to the tiny letter keys...Luckily the stock blur keyboard suits my stubby little appendages.
My question is: Is there a way to get this keyboard to work on other ROMS as I have tried and it won't work. I'm experienced in phone development and have done all the things necessary to get an installed keyboard to work...to no avail. Must the APK be modified in some way?
Maybe...
http://forum.xda-developers.com/showthread.php?p=22749340
Sent from; does anyone care?
You need a deodexed version of latinime.apk from blur and that needs to go into /system/app with the proper permissions.
Then you need libjni_latinime.so from blur and that needs to be put in /system/lib with the proper permissions.
Reboot and see if it works. Either way you need more than an apk, you need a matching lib.
thickkeys keyboard
KSmithInNY said:
You need a deodexed version of latinime.apk from blur and that needs to go into /system/app with the proper permissions.
Then you need libjni_latinime.so from blur and that needs to be put in /system/lib with the proper permissions.
Reboot and see if it works. Either way you need more than an apk, you need a matching lib.
Click to expand...
Click to collapse
I realize with a simple google search I could probably find this out but I'll ask anyhow...whats the easiest way to deodex latinime.apk myself?
I tried attaching it for you but keep getting a vbulliten error so I'll link it in a minute. Be prepared to read a logcat when/if this doesn't work. I wouldn't put it past moto to add a dependency on their custom framework but hey you never know ....
EDIT - HERES THE LINK TO DOWNLOAD LATINIME.APK DEODEXED[/URL]
EDIT - Very welcome. I killed the link because im cleaning up my Ubuntu One account. Good luck.
KSmithInNY said:
I tried attaching it for you but keep getting a vbulliten error so I'll link it in a minute. Be prepared to read a logcat when/if this doesn't work. I wouldn't put it past moto to add a dependency on their custom framework but hey you never know ....
EDIT - HERES THE LINK TO DOWNLOAD LATINIME.APK DEODEXED
Click to expand...
Click to collapse
Thanks man...i appreciate it!

[Q] Force Close when decompile&compile CM7 Contacts.apk CMParts

I want to change locales and images in system apk of CM 7.2.0 on my LG-P500. It is Contacts.apk and CMParts.apk. Decompiling and compiling passed without errors. Everything is ok! But!
When i put on phone already changed Contacts.apk upon transition to a tab of a dialer I receive an (android.process.acore Force Close!) And
When i put on phone already changed CMParts.apk upon transition to Interface/Notification Power Widget/Widget Buttons/Brightness modes I receive an (android.process.acore Force Close!).
Help me please...! I don't know that I do not so. Thanks!
(Sorry for my English)
Did you sign the apk?
I know that some people claim you don't need to sign system apps, but there are times when signing it is the only way to make it work.
Also, did you decompile and recompile with the appropriate framework-res.apk installed (the one from the rom you are using)?
Yes. I put signed and not signed apks. All the same too most. And when I try to decompile with dependences APK Manager writes that this application not the dependent.
TroyxRUS said:
Yes. I put signed and not signed apks. All the same too most. And when I try to decompile with dependences APK Manager writes that this application not the dependent.
Click to expand...
Click to collapse
Have you tried running a logcat to see what the issues are? That's what I always do when I get errors. Usually the logcat will tell you the error in a detailed enough manner that you can go back and fix the code.
Is this by any chance a stock rom? Because if its a stock rom, I've heard of people having issues sticking modified apks into a stock rom.
I have the same problem and would like very very much to know how to solve that ...
thanks
How to install framework?
Press Thanks on getting Helped by me

[Q] PinyinMe to normal APK, English only and AZERTY

So there is this PinyinMe keyboard which looks the most like an iphone keyboard which I like as my phone is an iPhone Replica.
1. So the things I want to do is change the APK to a normal APK but I only know the way by TitaniumBackup but this app aint installed so it doesnt work.
2. The next thing I want to do is edit the APK xml files so I can remove all the chinese signs in it and change it to normal letters (mainly english).
- I already tried this but the APK wont install
3. If this is all working, I would like to make a second version of it which has AZERTY keyboard instead of QWERTY.
Please, I would really apreciate it and others too.
bOyka8 said:
So there is this PinyinMe keyboard which looks the most like an iphone keyboard which I like as my phone is an iPhone Replica.
1. So the things I want to do is change the APK to a normal APK but I only know the way by TitaniumBackup but this app aint installed so it doesnt work.
2. The next thing I want to do is edit the APK xml files so I can remove all the chinese signs in it and change it to normal letters (mainly english).
- I already tried this but the APK wont install
3. If this is all working, I would like to make a second version of it which has AZERTY keyboard instead of QWERTY.
Please, I would really apreciate it and others too.
Click to expand...
Click to collapse
Here's the APK and OBEX which I forgot to add
http://www.mediafire.com/?216cm8rcgi2z5m8
I really hope someone can help me out with this !
Ok so in this ZIP file is the original APK that you can just install and use. Also the one I edited which gives App not installed.
Can anyone look into this please??
http://www.mediafire.com/?216cm8rcgi2z5m8
bOyka8 said:
Ok so in this ZIP file is the original APK that you can just install and use. Also the one I edited which gives App not installed.
Can anyone look into this please??
http://www.mediafire.com/?216cm8rcgi2z5m8
Click to expand...
Click to collapse
You have two files in the zip. One is an .apk and the other is an .odex file.
I saw this thread as I was browsing around and came across your GooApple thread.
I am not sure what your level of expertise is, but basically, an apk from a manufacturer comes in two parts (.apk and .odex). If you want to edit the app, you must either edit both the .apk and .odex files, or you can 'deodex' the file which basically takes the contents of the .odex file and places it inside the .apk file.
If you have deodexed an apk file (removed the need for the .odex), you no longer need the .odex file. In this way, you get 'deodexed' ROMs with no .odex files inside. These are much easier to edit and work with.
There are lots of tutorials to find out more about this and about deodexing and editing .apk files if you search.
Here is a good starting point
If you are already aware of this, I apologise
nobnut said:
You have two files in the zip. One is an .apk and the other is an .odex file.
I saw this thread as I was browsing around and came across your GooApple thread.
I am not sure what your level of expertise is, but basically, an apk from a manufacturer comes in two parts (.apk and .odex). If you want to edit the app, you must either edit both the .apk and .odex files, or you can 'deodex' the file which basically takes the contents of the .odex file and places it inside the .apk file.
If you have deodexed an apk file (removed the need for the .odex), you no longer need the .odex file. In this way, you get 'deodexed' ROMs with no .odex files inside. These are much easier to edit and work with.
There are lots of tutorials to find out more about this and about deodexing and editing .apk files if you search.
Here is a good starting point
If you are already aware of this, I apologise
Click to expand...
Click to collapse
Hey man, thanks for giving me this information.
I did read about deodexing but havent had the time to look it up. And I think TBP does the deodex (I could be wrong) when changing the system app to a user app.
Anyways, I have been able to edit the xml & png's, but whenever I try to install the newly created APK, I get the error : App not installed.
Maybe this deodexing can do the trick, I'll test it out once I find 30min of free time ^^
Titanium backup doesn't deodex the .apk. That is why you are having the issue. You can swap pngs etc without decompiling, but to edit smali and some xmls etc you have to decompile... it is much easier if you have first deodexed your apk to remove the .odex file.
nobnut said:
Titanium backup doesn't deodex the .apk. That is why you are having the issue. You can swap pngs etc without decompiling, but to edit smali and some xmls etc you have to decompile... it is much easier if you have first deodexed your apk to remove the .odex file.
Click to expand...
Click to collapse
I did recompile a working APK, but when I put it all back together and try as a system/normal app and do zipalign or no zipalign, I always get an error or just a crash. But probably deodexing will do the trick.
Hopefully I'll get some time this week for doing it cause its like:
Wake up - Eat - Job - Eat - Sleep - Eat - Soccer - Eat - Sleep
The life of a mailman

[Q] App Google Cloud Print Mod - No Icon

I wonder, if anyone has found the application of Cloud Print (official) without icon in the launcher (non-icon).
I tried descompilarla and compile, and I have not succeeded.
I tried to decompile, fix it and compile it, but I have not succeeded
I would greatly appreciate if anyone could help me.
Answer
vk2r said:
I wonder, if anyone has found the application of Cloud Print (official) without icon in the launcher (non-icon).
I tried descompilarla and compile, and I have not succeeded.
I tried to decompile, fix it and compile it, but I have not succeeded
I would greatly appreciate if anyone could help me.
Click to expand...
Click to collapse
What do you mean you have not succeeded?
Decompile the apk file, remove the icon and replace a transparent icon with the same name and if possible in same format as the older icon.
Also in android manifest file, look whether the icon is given with an extension. If so, change it to the icon's format that you have placed.
Now again recompile the apk file and also sign the apk.
There are lots of tutorials on both Google and XDA that will help you to learn decompiling and recompiling an apk.
Press thanks if I have helped you.
I am a newbie. Anyone can correct me if I am wrong.

[Q] OLD compiled APKs are not working!

Hi everyone
I'm having a little problem here. From months, I edited and compiled some SystemUI APKs and those APKs were fully working, but now I'm trying to use those old APKs and they are not working!! As usual, I've put the SystemUI.apk in /system/app, I've given the right permissions (RW-R-R) and rebooted the phone. The status bar has vanished!!! The strange thing is that those APKs were working before.
The APKs were not signed before, but they were working without signing them.
Okay. Can anybody help me?
People, I'm here! Kindly, can anyone help me?!

Categories

Resources