Problen in app compiled - Android General

Hi friends,
I'm having a problem on recompiling my Settings.apk.
I unpack the application to include the pt-rBR translation. I succeeded in including the translation.
When installing Settings.apk everything worked perfectly. However, when I perform a factory reset, settings.apk don't work, Simply apk disappears/deleted. The same happens if I create a system installation ZIP file via TWRP.
Error occurs because of this settings.apk file not being installed on the first boot. I have tried to translate all other apks of systems: framework-res.apk, systemUI.apk and all work normally, however with Settings.apk this error occurs.
Does anyone know tell me what I'm missing to do so it can be included in a Custom ROM to create a TWRP install?

jcdark said:
Hi friends,
I'm having a problem on recompiling my Settings.apk.
I unpack the application to include the pt-rBR translation. I succeeded in including the translation.
When installing Settings.apk everything worked perfectly. However, when I perform a factory reset, settings.apk don't work, Simply apk disappears/deleted. The same happens if I create a system installation ZIP file via TWRP.
Error occurs because of this settings.apk file not being installed on the first boot. I have tried to translate all other apks of systems: framework-res.apk, systemUI.apk and all work normally, however with Settings.apk this error occurs.
Does anyone know tell me what I'm missing to do so it can be included in a Custom ROM to create a TWRP install?
Click to expand...
Click to collapse
What tool(s) are you using? Are you resigning or using the original signature?
Sent from my KYOCERA-C6745 using Tapatalk

Related

Problem with framework-res...

So, i need some help from you.
Everytime I put some statusbaar icons into the framework-res.apk and resign it, it stucks in a boot loop.
In ddms it says me that the package android (i think its a file in the framework-res, or the framework-res) isn't signed correctly.
I attached the statusbaricons and the WORKING framework-res.
Could someone please integrate the files in the res/drawables folder and sign it correctly for me?
Thank you..
You would get a credit in my rom ;-) (Yes, i know, it's not very well known :-D , my roms name is MaxismaR, just search for it here..)
P.S: I'm on Windows 7, maybe that affects the signing process..
maxisma said:
So, i need some help from you.
Everytime I put some statusbaar icons into the framework-res.apk and resign it, it stucks in a boot loop.
In ddms it says me that the package android (i think its a file in the framework-res, or the framework-res) isn't signed correctly.
I attached the statusbaricons and the WORKING framework-res.
Could someone please integrate the files in the res/drawables folder and sign it correctly for me?
Thank you..
You would get a credit in my rom ;-) (Yes, i know, it's not very well known :-D , my roms name is MaxismaR, just search for it here..)
P.S: I'm on Windows 7, maybe that affects the signing process..
Click to expand...
Click to collapse
What are you using to sign? Keytools/Jarsigner?
I'm using the autosign.exe.
Ahh, Try my attachment.
Ok, tried and it gives me this :
06-18 21:52:40.797: ERROR/PackageManager(77): Package android signatures do not match the previously installed version; ignoring!
have you tried deleting the META-INF folder before you sign?
maxisma said:
Ok, tried and it gives me this :
06-18 21:52:40.797: ERROR/PackageManager(77): Package android signatures do not match the previously installed version; ignoring!
Click to expand...
Click to collapse
I've come across that error before, it's just telling you the current installation of framework-res doesn't match the signatures with the one you're trying to reinstall. I believe this framework jar file is located only in /system/framework so you would first have to remove any reference to the file (basically uninstall it). I know you can't uninstall a jar but basically you need to remove references to the file and signature of the file before you can replace it. It's possible you only need to remove /system/framework/framework-res.jar and /data/dalvik-cache/*framework-res*
I can't guarantee that if you remove this file that android will still boot up without errors. Be prepared to have to wipe and reload
why not take a full ROM update and put your images into that and then sign it. also make sure your images aren't too big. if you are using linux you can use pngcrush otherwise i'm no help
But there's no framework-res.jar in there.
But will try wiping after installing the new framework-res ;-)
If u r including icons like battery, check the number of icons in the framework of hero & that of ur rom, if it dosent mach, try removing or incliding some more or ger the source cod & insert those hero stuff inor source code & rebuild rom then get both framework res apk & the jar file....
thats the way i had implemented the percentage battery statusbar icons into 1.5
I know your always supposed to resign the apk's but the only workaround I have found for the exact same problem is to put.zip at the end of framework-res.apk.Right click on it explore to what directory im inserting my images in and paste em while leaving it zipped,when done take .zip back off dont sign it and it works then in the update.
THX to crotalusfreak! That fixed it! You'll get a credit in my next upload ;-)

[Q] Translating Settings.apk

Hi there
We, the Hungarian community are planning to translate settings.apk to Hungarian.
The problem is that I can extract it with apktool, but after build from the extracted files install it.
I tried to install like a standard apk, but it gives the error message "Application not inst Anyway, I tried to copy the file to /system/app folder, but after that Settings disappear i Launcher menu.
Need the builded Settings.apk be resigned? I don't know a lot about android apllication signing.
I noticed that when I try to install a stock application from other rom's /system/app fold gives the same error message: Application not installed
So the question is How can I install the rebuilded Settings.apk?
Thanks for any help

[Q] Can't translate my ICS ROM

Hi there,
I decompiled all apk from the system/app/ folder of the original .zip of the ICS ROM I want to translate (MIUIv4 RD), I added in each of decomplation directory the correct values-*lang*/ folder, I recompliled everything (without any error, using a bit mooded version of apktool (else it fails)), I flashed every apk to my phone, but the new language won't appear in MIUI ICS menu. Is there any more file to edit so that it can use new languages values ?
Thanks for help. If it succeed, I promise I will upload my files .
Cheers,
KennyG9

insert language of rom ics

Hi, I'm trying to enter the European languages ​​in the rom ics. I read around that the files should be placed on the framework-res.apk.
I tried to extract the apk with apktool and removes it properly. the problem comes when I have to recompile the apk. the file does not compile the program can not find the source.
"Could not find sources"
or installed the framework with the command "apktool if framework.pkg"
you have any suggestion about it?
for try to made this job a follow this guide http://www.freeyourandroid.com/guide/how_to_translate_any_rom_to_any_language
I also tried to recompile the file without changing anything but apktool always the same error.make this test i'm sure that i don't mistake to edit some file but the procedure for compile apk file
its not a good idea, the new apk with modified strings is not stable, even you work the compiling out, you would not like the result after you place the new apk in .
logg88 said:
Hi, I'm trying to enter the European languages ​​in the rom ics. I read around that the files should be placed on the framework-res.apk.
I tried to extract the apk with apktool and removes it properly. the problem comes when I have to recompile the apk. the file does not compile the program can not find the source.
"Could not find sources"
or installed the framework with the command "apktool if framework.pkg"
you have any suggestion about it?
for try to made this job a follow this guide http://www.freeyourandroid.com/guide/how_to_translate_any_rom_to_any_language
I also tried to recompile the file without changing anything but apktool always the same error.make this test i'm sure that i don't mistake to edit some file but the procedure for compile apk file
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1427959
I've tried to follow that guide but it did not work.
But there are already successful, but unfortunately modificado only the file framework-res.apk do not get a full translation of the Roma, but partial. There is certainly some other file to edit. the part that is not translated is that relating to the configuration that is the configuration menu
does anyone know how to translate the menu setting
tnks in advance
logg88 said:
I've tried to follow that guide but it did not work.
But there are already successful, but unfortunately modificado only the file framework-res.apk do not get a full translation of the Roma, but partial. There is certainly some other file to edit. the part that is not translated is that relating to the configuration that is the configuration menu
does anyone know how to translate the menu setting
tnks in advance
Click to expand...
Click to collapse
Wait for l9 to be released it uses same frame-res.apk or try the one from the prada
Please post all questions in the General section. Thanks! Thread moved.
Sent from my Galaxy Nexus using Tapatalk 2

[Q] De-Odexed Framework not working

Hello all;
I have an LG p698 device, with a custom ROM (ZemDroid)(Gingerbread). Everything is working fine, but I wanted to add Arabic support to it, and for that, I need a deodexed framework.
I pulled the entire /system/framework directory, copied and modified the BOOTCLASSPATH as necessary, and used smali and baksmali 2.0.3. They reported no errors in disassembling the framework.odex file, created the "out" directory, and then using smali created the classes.dex file, which I shoved into the framework.jar file using Ark (Kubuntu 13.10).
I made a copy of the working framework.jar and framework.odex files on device, and put the new jar, and of course, deleted the odex.
wiped the dalvik cache for good measure, and rebooted.. The phone got stuck on LG logo :/ (It didn't even reach the custom splash image)
I can reboot into CWM, I can even adb into it in this state, but it won't continue starting up. Replacing original ones lets the device start normally, but my deodexed framework.jar won't :crying:
Any ideas?

Categories

Resources