Settings Apk Recompiling error pls. help - Android Q&A, Help & Troubleshooting

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".

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

[Q][Help] Recompile/Decompile apk's

Hi guys !
I'm having a problem recompiling the systemui.apk, i'm modding some .xml files and everything goes fine, it recompiles ok but when i push it to my phone there's no change i decompile the modified apk and the xml files aren't change either it's like i didn't change anything from them.
Every single time a recompile an apk it goes back to normal
Does anyone else has that problem or is just me , and does someone knows how can i fix that problem?
INFO :
Windows 8 pro
Using : Apktool , Auto apktool and tickle my android (in all of them i get that same problem)
Thanks in advance, regards
Give the Command Prompt Editing section a read, might clear it up. - [Advice/Reference/Guide] The Definitive APK Modding & Theming Thread...
XperienceD said:
Give the Command Prompt Editing section a read, might clear it up. - [Advice/Reference/Guide] The Definitive APK Modding & Theming Thread...
Click to expand...
Click to collapse
Already read it and that's what i've been doing, and like i said the changes aren't saved. Every time i delete o put some codes in the xml file with notepad++ i save them but after i recompile the apk i decompile it again to check if everything's alright but the files look like the original ones.
monster30 said:
i decompile it again to check if everything's alright but the files look like the original ones.
Click to expand...
Click to collapse
Is this apk in the dist folder?
XperienceD said:
Is this apk in the dist folder?
Click to expand...
Click to collapse
Yep. I really don't know why i can't make it work a week ago i didn't have this problem. (i didn't change anything in my laptop etc)
Sent from my WT19i using xda premium
..
monster30 said:
Yep. I really don't know why i can't make it work a week ago i didn't have this problem. (i didn't change anything in my laptop etc)
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
here, pls try this to de-/recompile using his TuT; BUT recompile TuT has a bug:
''apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )'' <-- justtype in without ''.apk'' --> will work
i use this mostly bcuz for me, it dont maked any problem's (like some other tools), also allways work
bejunk said:
here, pls try this to de-/recompile using his TuT; BUT recompile TuT has a bug:
''apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )'' <-- justtype in without ''.apk'' --> will work
i use this mostly bcuz for me, it dont maked any problem's (like some other tools), also allways work
Click to expand...
Click to collapse
i tried that one a couple of times and it didn't worked ,right now i try it again and the changes were saved but when i push it to my phone the status bar was gone (i did copy the META.INF folder to the new apk)
monster30 said:
i tried that one a couple of times and it didn't worked ,right now i try it again and the changes were saved but when i push it to my phone the status bar was gone (i did copy the META.INF folder to the new apk)
Click to expand...
Click to collapse
and this apktool says recopiling was fine??
also: which rom is this systemUI from; what for a mod u will do?? (will try it on my pc, maybe the problem is win8 ?)
bejunk said:
and this apktool says recopiling was fine??
also: which rom is this systemUI from; what for a mod u will do?? (will try it on my pc, maybe the problem is win8 ?)
Click to expand...
Click to collapse
Yep, the recompile goes ok. I wanna change the toggle icons and wanna move the icons in the status bar.
And actually ticklefish already help me with that and when i push it nothing happen either, so i don't think it's a prob with win8 cuz before i didn't had that problem, it started this week
The systemUi is from honami i1 rom from aneel, i already install the framework from the rom.
Sent from my WT19i using xda premium

[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] *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

systemui of droidwin not working on cosmic

Hi,
I tried to copy Droidwin v3's systemui.apk to Cosmic v2. But, I am getting this error : "Unfortunately, system ui has stopped". I have followed the entire procedure on how to replace systemui apk using root explorer. Has this happened with anyone? Where do you think I could be making a mistake?
@krittin98
I think droidwin v4 is based on Baidu beta v67 and Baidu is a closed system and has a different framework.... So it won't work in cosmic rom
Link to droidwin v4--
http://forum.xda-developers.com/gra.../droidwin-v4-material-lollipop-theme-t3060455
Check out the link for further information
reply
Made a mistake! I was trying to use Droidwin v3's systemui apk which is based on MaterialDesign. I have made the correction in the original post too. I am not using the Baidu based Droidwin's systemui apk.
@krittin98
U should ask @mjraogr developer of droidwin series
krittin98 said:
Hi,
I tried to copy Droidwin v3's systemui.apk to Cosmic v2. But, I am getting this error : "Unfortunately, system ui has stopped". I have followed the entire procedure on how to replace systemui apk using root explorer. Has this happened with anyone? Where do you think I could be making a mistake?
Click to expand...
Click to collapse
I tried it.it ws working perfectly
Sent from my GT-I8552 using XDA Free mobile app
Reply
pauldominik said:
I tried it.it ws working perfectly
Sent from my GT-I8552 using XDA Free mobile app
Click to expand...
Click to collapse
I am always getting the error, "Unfortunately, system ui has stopped working", when I try to do it. Can you tell me the steps you followed to do that? I could be making a mistake in this part. Thanks for your help.
Best Regards
krittin98 said:
I am always getting the error, "Unfortunately, system ui has stopped working", when I try to do it. Can you tell me the steps you followed to do that? I could be making a mistake in this part. Thanks for your help.
Best Regards
Click to expand...
Click to collapse
Its simple
Copy the systemui.apk of drawidwin ( not baidu systemui .the latest one..from 3.2.4 updatewhich is themed to lollipop)o ur sdcard anywr
Thn open root explore and copy the system ui.apk and and paste it in root>system>app
It wll ask to replace thw original apk
Click yes
It wll replace the original apk with the new droidwin apk
Now longpress the new systemui.apk and set the permission rw r r
Reboot....it hav to work.
Sent from my GT-I8552 using XDA Free mobile app

Categories

Resources