[Q] *Strange* Error when recompiling -none system apk- - Android Q&A, Help & Troubleshooting

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

Related

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

Improperly compiled theme after compiling and installing (tmobile theme)

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!

[Q] How to decompile and re-compile settings.apk for KitKat 4.4?

Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Click to expand...
Click to collapse
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
hnkotnis said:
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
Click to expand...
Click to collapse
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
TheStart101 said:
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
Click to expand...
Click to collapse
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
hnkotnis said:
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
Click to expand...
Click to collapse
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
TheStart101 said:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
Click to expand...
Click to collapse
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
TheStart101 said:
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
Click to expand...
Click to collapse
Post a screen shot of you installing framework.. What ROM are you decompiling this from?
The problem I think is resulting from framework not installing properly..
Sent from my SCH-I605 using xda app-developers app
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
TheStart101 said:
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
Click to expand...
Click to collapse
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but I'm curious if maybe i messed something up, i am far from dev lol. Any ways it was 1mb over the threshold lol
danm captcha ha
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
TheStart101 said:
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
Click to expand...
Click to collapse
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
TheStart101 said:
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
Click to expand...
Click to collapse
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I don't know it says it's open source and gives you the link to all the code on github ;o who knows, but for now I want to try again and hope i get somewhere this time Maybe the next rom you install will be one I made Again I thank you very much
Hi there,
sorry for warming up this thread. I don't find the Settings.apk:
C:\Program Files\_Android\SDK\platform-tools>adb devices
List of devices attached
59973133 device
C:\Program Files\_Android\SDK\platform-tools>adb pull /system/app/Settings.apk
remote object '/system/app/Settings.apk' does not exist​
So the device (Kyocera KC-S701 unrooted) seems to be connected, but no Settings.apk. Also not when using "adb shell" with "cd system/app" + ls.
A bunch of files but no Settings.apk.
Any ideas?

[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