Improperly compiled theme after compiling and installing (tmobile theme) - Android Q&A, Help & Troubleshooting

so i compiled my own cm7 theme..i have the apk and i signed it..but when i try to install it,i get "problem parsing package"....does anyone know how to fix this issue?? ive been searching high and low but i cant figure out how to fix this issue...thanks guys!

anyone???????

Mikekelso421 said:
so i compiled my own cm7 theme..i have the apk and i signed it..but when i try to install it,i get "problem parsing package"....does anyone know how to fix this issue?? ive been searching high and low but i cant figure out how to fix this issue...thanks guys!
Click to expand...
Click to collapse
The parsing package problem has nothing to do with the apk being signed. There's a problem with the compression method or how the compilation of the app. If there was an issue with the signing of the apk then it would just say app not installed.
Sent from my GT-I9100 using xda premium

Waddle said:
The parsing package problem has nothing to do with the apk being signed. There's a problem with the compression method or how the compilation of the app. If there was an issue with the signing of the apk then it would just say app not installed.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
how would i go about fixing this problem??im at a standstill on this theme.cant even test it without installing.lol
also,thanks for the response

Mikekelso421 said:
how would i go about fixing this problem??im at a standstill on this theme.cant even test it without installing.lol
also,thanks for the response
Click to expand...
Click to collapse
Did you make this theme from scratch, or did you base it off an already existing one? Try recompiling the apk again and see if that works.
Sent from my SGH-I777 using xda premium

Waddle said:
Did you make this theme from scratch, or did you base it off an already existing one? Try recompiling the apk again and see if that works.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
made it from scratch..(downloaded from source)..so i imported the source into eclipse and compiled using that..now the theme installs but im getting (this theme was improperly compiled.please contact the themes author) error. i removed the preview.png from the drawable-hdpi folder and just kept the preview.png in the drawable folder..but its still giving me the same error..just cant figure out why??
also,i read somewhere that the API minlevel but either be removed or adjusted to the right level for the OS your using (10 for GB i assume) but i cant find anywhere in the manifest for the API level...i cant think of any other reason for this error.
thanks for the help also!

Related

How to Change system apk's

Ok so I have been trying to change my market apk but it won't change. I push it to my system/app but the old one remains.here is the url of the png's I exchanged with. Can someone help me get this working? Please HELP me dont do it for me! Doing is half the fun. Also I dont have a vending.odex file, does it exist and can someone give it to me? Im using apk manager
http://forum.xda-developers.com/showthread.php?t=958184
aamir123 said:
Ok so I have been trying to change my market apk but it won't change. I push it to my system/app but the old one remains.here is the url of the png's I exchanged with. Can someone help me get this working? Please HELP me dont do it for me! Doing is half the fun. Also I dont have a vending.odex file, does it exist and can someone give it to me? Im using apk manager
http://forum.xda-developers.com/showthread.php?t=958184
Click to expand...
Click to collapse
What You Trynna Doo.....Change It 4 What ? Get Free Apps...lol im sorry i just wanna know
bosina said:
What You Trynna Doo.....Change It 4 What ? Get Free Apps...lol im sorry i just wanna know
Click to expand...
Click to collapse
U must not read. He's trying to change some pngs.
OP are u trying to take pngs from the dark colored market? I use both apk manager and ninja morph.Read my signature. If not shoot me a pm and ill help you via gmail.
Sent from my SGH-T959 using XDA App
rel500 said:
U must not read. He's trying to change some pngs.
OP are u trying to take pngs from the dark colored market? I use both apk manager and ninja morph.Read my signature. If not shoot me a pm and ill help you via gmail.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Actually Im trying to change it to become like the theme in the link I posted in the OP. That theme wasnt made for my rom (stock) so I'm trying to accomodate myself. Ive used apk manager and ninjamorph too but this one is weird. Everytime I push to system/app it either disappears or the stock green one shows up. I finally got it changed a little but its the older version (idk how it became the older version considering I used the newer version and changed png) and its still mostly green. Is there another apk I must change? Thanks for the help!
Did you try going under settings, manage applications, market...and uninstalling updates...that fixed my vending.apk problems
Sent from my SGH-T959 using XDA App
aamir123 said:
Actually Im trying to change it to become like the theme in the link I posted in the OP. That theme wasnt made for my rom (stock) so I'm trying to accomodate myself. Ive used apk manager and ninjamorph too but this one is weird. Everytime I push to system/app it either disappears or the stock green one shows up. I finally got it changed a little but its the older version (idk how it became the older version considering I used the newer version and changed png) and its still mostly green. Is there another apk I must change? Thanks for the help!
Click to expand...
Click to collapse
the newest Market is 2.3.3 make sure thats the one your working with...
From reading a few other themed ROM sections, lots of people with themed ROMS are seeing their themed market apk revert back you the green market.
One suggestion was deleting the market updater apk, clearing ur updates and cache in the themed market apk, and then re-pushing the themed market apk back to system/app.
This worked for me when I was using gingerRED.
Goodluck.
Sent from my Sammy Vibe
rel500 said:
the newest Market is 2.3.3 make sure thats the one your working with...
Click to expand...
Click to collapse
hewhoisnotasothers said:
Did you try going under settings, manage applications, market...and uninstalling updates...that fixed my vending.apk problems
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
The version I have is 2.21 & how do I uninstall updates?
Here, this is 2.3.2 CWM flashable, neon blue market. It will not update and change back to green unless you want it to. I already skipped two updates and very happy since it didn't change. You might have to reboot a couple of times before it changes and if it doesn't wipe data for market and reboot.
http://db.tt/hL5t9BI
Sent from my SGH-T959 using XDA Premium App
roumenjr said:
Here, this is 2.3.2 CWM flashable, neon blue market. It will not update and change back to green unless you want it to. I already skipped two updates and very happy since it didn't change. You might have to reboot a couple of times before it changes and if it doesn't wipe data for market and reboot.
http://db.tt/hL5t9BI
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
Thanks but how did you do this? This is exactly what I wanted. I need to know how to do this for future purposes!!
p.s. how do you make a cwm flashable zip file? Can you point me to a thread?
http://forum.xda-developers.com/showthread.php?t=894794
Cheers!
Sent from my SGH-T959 using XDA Premium App
roumenjr said:
http://forum.xda-developers.com/showthread.php?t=894794
Cheers!
Sent from my SGH-T959 using XDA Premium App[/QUOTE
Oh your not off the hook that easy, tell me how you did the market thing? I tried pushing every possible way and got stuck with an older version even though that version was never even used, extracted or saved anywhere phone or pc. You have to tell me!!!
Also that application/program doesnt contain the market app so....
Click to expand...
Click to collapse
Lol, I didn't make it, it was made already. I got it from someone few weeks back. not sure who made it but there is another thread for someone customizing market except I didn't see the neon blue one in there.
Sent from my SGH-T959
Ok I'm seriously doing something wrong because now Im trying to change my framework-res.apk and keep getting force closes. All I'm changing is .png not even .9.png. What am I doing wrong? Here are my stepsall using apk manager)
extract apk
change images as needed
optimize images
zip apk (using system option)
take apk and push to system/framework using various methods
the end
ps. all images exchanged are from roms or themes not supported by the stock rom. I get the images to go after Im done but also get hit by a million force closes.
aamir123 said:
Ok I'm seriously doing something wrong because now Im trying to change my framework-res.apk and keep getting force closes. All I'm changing is .png not even .9.png. What am I doing wrong? Here are my stepsall using apk manager)
extract apk
change images as needed
optimize images
zip apk (using system option)
take apk and push to system/framework using various methods
the end
ps. all images exchanged are from roms or themes not supported by the stock rom. I get the images to go after Im done but also get hit by a million force closes.
Click to expand...
Click to collapse
I used Titanium pro donate version and froze the market updater. After that I used Root Explorer and copied the themed vendor apk and pasted it to system/app. Worked perfectly. I did have to reboot initially and it worked. Hope this helps.
Sent from my SGH-T959 with Bionix-V 1.3.1 and Overstock kernel.
Scarinzi said:
I used Titanium pro donate version and froze the market updater. After that I used Root Explorer and copied the themed vendor apk and pasted it to system/app. Worked perfectly. I did have to reboot initially and it worked. Hope this helps.
Sent from my SGH-T959 with Bionix-V 1.3.1 and Overstock kernel.
Click to expand...
Click to collapse
Actually Im trying to change the framework-res.apk now I need to edit the thread title. I keep getting force closes when I edit framework-res.
Ps I pretty much never have had success editing any apk in the system folder. Can someone post a dumbed down tutorial on how to edit apk's in the system folder?

Apk multitool problem

Greetings XDA, Im new here and i need some help regarding apk multi tool.. Ive searched the forums but i couldnt find any suitable answers
So I am trying to decompile the framework-res.apk and edit the styles.xml in values folder .. but everytime i compile it back and push it to my sytem/framework, and restart my phone bootloops..
this happens even if i donot mod anything in the apk and just decompile - recompile - push..
Any ideas ?
Thanks in advance
You have to sign the APK after you decompile!
Follow This Page for more instructions on how to sign APK's.
Sent from my GT-I9003 using xda premium
PlusAndroid said:
You have to sign the APK after you decompile!
Follow This Page for more instructions on how to sign APK's.
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
This is wrong. Never sign a system framework file. You only sign user apps and a very small number of system apps.
What changes are you making? For what OS?
zelendel said:
This is wrong. Never sign a system framework file. You only sign user apps and a very small number of system apps.
What changes are you making? For what OS?
Click to expand...
Click to collapse
ohhk! It happened to me as well and someone told me its because I haven't signed the APK.
Anyways, Thanks for correcting me
Try by making compression level to 0 and heap size to 512
This solved my problem though.
Also be sure that u don't get any errors while compiling the apk.
Hit thanks if helped
I can't even get it to compile!
Post ur error from log
Sent from my Micromax_A70 using Tapatalk 2 Beta-4

[Q] *Strange* Error when recompiling -none system apk-

Hi Guys ,
I've a Strange problem when i recompile
I'm getting this error when i recompile -without modification- :
http://pastebin.com/S8Td4QxV
Then i've searched about the error and found some answer that said delete public.xml , i do that then i've got this error :
http://pastebin.com/tRechubZ
Then i've searched about the error and found some answer that said add @+ before drawable in xml in drawable , i do that then the error message has gone and i recompiled and signed apk without errors but after install apk in device i got force close , so what's problem exactly
BTW i've tired recompiling other apks without any problems
apk in Attach
How i do fix that please
MPooZD said:
How i do fix that please
Click to expand...
Click to collapse
Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thanks for respond
it's none system app
[quote name="lacoursiere18" post=51624609]Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thanks for respond
it's none system app[/QUOTE]
Looks like it is not installing correctly.. Also what Android version are you on? Does this app support it?
It is also requesting to write to internal storage which I know something in 4.4 have changed with that.
? Why are you decompiling it?
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Looks like it is not installing correctly.. Also what Android version are you on? Does this app support it?
It is also requesting to write to internal storage which I know something in 4.4 have changed with that.
? Why are you decompiling it?
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
i'm on 4.4.2 , yes support and works fine
But I got lots of error when i tried to decompile it without modified or changes !!
I'd change colors in xml
BTW all apps i had decompiled working fine , but had an error in this one
UP UP
BumpUp!
Is there any solutions

[Q]

I need help making my ROM. Any help is apreciated. Thx http://www.vmroms.com/index.php?topic=827.msg14743#msg14743
Nick_73 said:
I need help making my ROM. Any help is apreciated. Thx http://www.vmroms.com/index.php?topic=827.msg14743#msg14743
Click to expand...
Click to collapse
What kind of help are you looking for? Do you want suggestions on what to add? Are stuck on how to add a particular feature to your ROM? One thing you could try is compiling AOSP and using that as the base for your ROM a great guide on doing that can be found here and here (Official Google guide to building AOSP). I'll be happy to help you out best I can so let me know if you still have questions.
shimp208 said:
What kind of help are you looking for? Do you want suggestions on what to add? Are stuck on how to add a particular feature to your ROM? One thing you could try is compiling AOSP and using that as the base for your ROM a great guide on doing that can be found here and here (Official Google guide to building AOSP). I'll be happy to help you out best I can so let me know if you still have questions.
Click to expand...
Click to collapse
I am building it from stock. Right now the custom launcher won't open. Also after boot, it loops. Does the services.jar need a new odex if modified?
Sent from my SCH-S738C using Tapatalk
I fixed the launcher issue but not the services.jar. Also, the Trev-E mod WiFi tether app force closes when I flash Rom and boot
Sent from my SPH-L300 using Tapatalk
Also if an admin could name this "[Q] Rom help" that'd be great
Sent from my SPH-L300 using Tapatalk
Nick_73 said:
I fixed the launcher issue but not the services.jar. Also, the Trev-E mod WiFi tether app force closes when I flash Rom and boot
Sent from my SPH-L300 using Tapatalk
Click to expand...
Click to collapse
Glad you were able to fix that, my main suggestion would be to modify only one part of your ROM at time (Just like a science experiment) that way you know that if it doesn't work it's very likely because of the modification you just made. Also logcat will be a big help to help you figure out where things are causing problems and what things are causing problems.
shimp208 said:
Glad you were able to fix that, my main suggestion would be to modify only one part of your ROM at time (Just like a science experiment) that way you know that if it doesn't work it's very likely because of the modification you just made. Also logcat will be a big help to help you figure out where things are causing problems and what things are causing problems.
Click to expand...
Click to collapse
Why do all system apps I add force close until they're updated?
Sent from my SPH-L300 using Tapatalk
Nick_73 said:
Why do all system apps I add force close until they're updated?
Sent from my SPH-L300 using Tapatalk
Click to expand...
Click to collapse
Try updating the system apps to their latest version and pulling the apk's of the updates version then including these latest version updated apk's in your ROM :good:.
shimp208 said:
Try updating the system apps to their latest version and pulling the apk's of the updates version then including these latest version updated apk's in your ROM :good:.
Click to expand...
Click to collapse
I did that, but still fc.
Sent from my SPH-L300 using Tapatalk
Nick_73 said:
I did that, but still fc.
Sent from my SPH-L300 using Tapatalk
Click to expand...
Click to collapse
Also make sure in your ROM's updater-script the system apps you have added are given the proper file permissions.
I did a work-around and made added apps get flashed to /data/app. But Play Store still fc's. I modified the updater-script from another Rom for this phone, but I only added lines.
Sent from my SPH-L300 using Tapatalk
shimp208 said:
Also make sure in your ROM's updater-script the system apps you have added are given the proper file permissions.
Click to expand...
Click to collapse
I have an issue with smali. I backsmali a classes.dex file. I can re package it with smali, when I don't edit files. If I edit any files within the output folder, I cannot repackage it with smali. It gives me an error... Unexpected top-level exception. And I cannot find any help online....
Sent from my GT-P5110 using Tapatalk
Never mind. I tried it a few times and it worked
Sent from my GT-P5110 using Tapatalk

Settings Apk Recompiling error pls. help

I decompiled settings.apk of Micromax A110 using apktool.I installed framework-res.I did not even touch any file of the decompiled directory.i recompiled it.and it is showing the following error.I cannot even add my name in the ROM i created and it is my first rom .is it any problem with apktool or java.i can get the output apk and it donot get installed in the rom.There is no settings in the app drawer.You people are awesome rom developers .pls help me.i just want to add this. developer name sabeeh. . Thanks in advance.
sabeeh102 said:
I decompiled settings.apk of Micromax A110 using apktool.I installed framework-res.I did not even touch any file of the decompiled directory.i recompiled it.and it is showing the following error.I cannot even add my name in the ROM i created and it is my first rom .is it any problem with apktool or java.i can get the output apk and it donot get installed in the rom.There is no settings in the app drawer.You people are awesome rom developers .pls help me.i just want to add this. developer name sabeeh. . Thanks in advance.
Click to expand...
Click to collapse
have you installed proper deodexed framework and systemui apk?
I installed the frameworks for framework-res ,system ui,and even mediatek-res but no use. plss. help sir
sabeeh102 said:
I installed the frameworks for framework-res ,system ui,and even mediatek-res but no use. plss. help sir
Click to expand...
Click to collapse
These are just warnings the apk will compile fine...
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
These are just warnings the apk will compile fine...
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I would say the same thing, with a side note that while warnings are often dismissed because you can still compile and it MAY work, they are there for a reason. In this case, as far as I see, there are missing translations. It may or may not be pertinent, but it should be dismissed upon inspection, not upon realizing that "it compiles".

Categories

Resources