Results 1 to 22 of 22
- 05-14-2011, 01:17 AM
Thread Author #1
Does anyone know how to edit Settings.apk? [Solved!]
I've been trying to do this for some time, but I've hit a wall. I want to take the Settings.apk from my current rom (which ever one it happens to be). Decompile it. Edit some entries. Then recompile and sign it, so that I can use it with said rom.
I've tried using (and a few automated versions of it). It works great to decompile and recompile. I then use signapk.jar to sign the apk using a test key. But when I copy Settings.apk over to my /system/app folder, change the permissions, and reboot, the settings menu fails to load and my wallpaper disappears.
I thought that it might be edits I am making. So I tried decompiling, recompiling, and signing with no edits and I still get the same problem where the settings menu fails to load.
I even tried following this crazy guide:
But I had the same problem.
I have successfully used apktool and my signing tool to edit and use other apk files. So I know that they work. Can anyone (probably a dev) explain what I'm doing wrong?
Thanks!
Update: SolutionLast edited by mmarz; 06-05-2011 at 01:39 PM.
If You Enjoy My Work, Consider Donating.
Thank You! - 05-14-2011, 05:50 AM #2
Have you tried apk_manager, which I believe uses akptool? It has an option to decompile with dependencies. Perhaps you can track down which other files you need with it?
- 05-14-2011, 07:11 AM #3
- 05-14-2011, 05:14 PM
Thread Author #4
I tried signing all the system apps and clearing the dalvik cache but the system refuses to boot. I'll give apk_manager a try thanks!
- 05-14-2011, 06:21 PM
Thread Author #5
I figured out the problem! Oddly enough, it was the signing that broke it. When I didn't sign the Settings.apk it worked fine. I used apk manager 4.9. I then decompiled the apk. Did my edits. Compiled it and told the program it was a system apk. I deleted the files I changed from the keep folder along with resources.arsc. I then DIDN'T sign it, and pushed it to my /system/app folder. Rebooted and everything worked.
If anyone is interested in it, here is my Settings.apk from the Nameless rom v1:
It has the privacy menu removed and it has the tether settings added to the wireless menu. No need to have a tether app or launcher pro, and no chance of accidentally doing a factory reset.
Thanks guys!Last edited by mmarz; 06-05-2011 at 01:40 PM.
If You Enjoy My Work, Consider Donating.
Thank You!Thanked by: - 05-14-2011, 06:27 PM #6
Make a cm7 one without privacy<3
Sent from my Optimus V - 05-14-2011, 07:05 PM
Thread Author #7
- 05-14-2011, 08:09 PM #8
Hmmm, I've been trying to mod the Swype keyboard with no luck, and I always signed it too. Maybe leaving it unsigned will work for Swype as well. Thanks!
- 05-15-2011, 12:54 AM #9
- 05-15-2011, 01:31 AM
Thread Author #10
- 05-15-2011, 11:10 PM #11
- 05-15-2011, 11:30 PM
Thread Author #12
That camera app is actually not created by lge. It is a proprietary program made by .
I've gotten it to load and open on my phone, but it's not made to work with our camera drivers. I can't get any sort of image to load. It'll require the work of one of the devs to make it work. It is not a simple task.
on a side note, their official camera looks interesting:Thanked by: - 05-16-2011, 12:54 AM #13
- 05-16-2011, 01:24 AM
Thread Author #14
Here is an Engrish translation of that Olaworks app I found:
It's kind of interesting. It is a location based camera app. You can take pictures of books, buildings, people..etc. and then search through your pictures using names. It'll also scan barcodes, locate businesses around you, and show you online prices for items you are looking at. - 05-16-2011, 11:27 AM #15
You can try the MIUI camera. This apk installs fine along side the other camera.
Here:
Also Camera 360 has a few cool options.
There is a way to mod the camera to use a higher resolution i.e. 480x320. You'd have to mess with the internals but it should be able to be done. As it was done on the HTC Hero CDMA.
If VM/LG drops GB source updated libs should help. - 05-16-2011, 01:45 PM
Thread Author #16
- 05-16-2011, 09:10 PM #17
- 12-08-2011, 04:15 AM #18
Re: Does anyone know how to edit Settings.apk? [Solved!]
Thank you so much for posting this walk-through. I was trying to change the icons in the settings menu to the ICS icons and for some reason it wasn't working. After reading the walk-through (and testing) I realized it was because I was entering "n" on the second question after compiling. Now my settings menu looks awesome!
- 06-06-2012, 04:56 AM #19
Re: Does anyone know how to edit Settings.apk? [Solved!]
Hello.
Thanks you for this walk-through but the procedure seems to be different on linux, with apk manager 5.0
The Apk Mananger menu look like this:
So, I've tried to modify my Settings.apk (to include french translations removed in my chinese roms ...), simply with options 9 and 10 but it doesn't work.Code:****************************** Apk Manager ******************************* ------------------Simple Tasks Such As Image Editing---------------------- 0 Adb pull 1 Extract apk 2 Optimize images inside (Only if "Extract Apk" was selected) 3 Zip apk 4 Sign apk (Dont do this if its a system apk) 5 Zipalign apk (Do once apk is created/signed) 6 Install apk (Dont do this if system apk, do adb push) 7 Zip / Sign / Install apk (All in one step) 8 Adb push (Only for system apk) -----------------Advanced Tasks Such As Code Editing----------------------- 9 Decompile apk 10 Compile apk 11 Sign apk 12 Install apk 13 Compile apk / Sign apk / Install apk (All in one step) --------------------------------------------------------------------------- 14 Batch Optimize Apk (inside place-apk-here-to-batch-optimize only) 15 Sign an apk (inside place-apk-here-for-signing folder only) 16 Batch optimize ogg files (inside place-ogg-here only) 17 Quit ****************************************************************************
In my android log I've this:
If you've any idea of what I can do, I takeCode:06-06 11:36:44.083: W/PackageManager(1249): Failed verifying certificates for package:com.android.settings 06-06 11:36:46.504: E/PackageManager(1249): Package com.google.android.backup has no signatures that match those in shared user android.uid.system; ignoring! 06-06 11:36:48.590: E/PackageManager(1249): Package com.google.android.location has no signatures that match those in shared user android.uid.system; ignoring! 06-06 11:36:50.700: W/PackageManager(1249): System package com.android.settings no longer exists; wiping its data

Thanks.
EDIT: Got it working with apktool and 7z
I've followed (a good part of) this tuto:
Now my settings are in french ... awesome
Last edited by tuxfamily; 06-06-2012 at 05:46 AM.
- 09-12-2012, 07:51 AM #20
Re: Does anyone know how to edit Settings.apk? [Solved!]
Please i need to remove the Item " Bluetooth " from settings => wireless & networks . please can someone help me . i edit wirelesssettings.xml and wirelesssettings.smali but when i install the application i found an error " application not installed " .i try to sign my application but also the same error . Thanks
- 09-12-2012, 10:03 AM #21
- 01-24-2013, 10:22 AM #22



Reply



































