[HELP]{seclauncher deleted , cant reinstall} - Galaxy S Advance I9070 Q&A, Help & Troubleshooting

hello guys,
i was trying to mod the seclauncher to change the grid size on the homescreen using this guide i found:
http://forum.xda-developers.com/showpost.php?p=27433971&postcount=71&nocache=1&z=8374629435129464
and i ended up replacing the original file with the mod simply by copy paste it into /system/app using solid explorer , a duplicate file warning came but i chose to overwrite it now i dont have the default launcher , only the apex launcher that i had installed is present as the launcher
i tried fixing permissions to rw--r-r-- (ie, 644) and owner and group ,both to root
my phone is rooted and running ddulp8 jb firmware (deodexed)
i am attaching the original seclauncher and the one which i edited

Sorry, I didn't exactly understand your problem.. does your modded apk not work or is it force closing or something?
And after a quick comparison with my SecLauncher2 and yours.. the only thing missing in your yours is classes.dex
Did your apk re-compile successfully?
Sent from my Calculator using XDA Premium

i recompiled it with some warning which obviously i ont remember, and does the missing .dex file has something to do with the deodexed firmware ?

In both files you miss classes.dex, so I guess you did not use deodexed file to edit. From where did you get SecLauncher2.apk?

i copied it from the /system/app directory of my phone using solid explorer....,used apktool to edit it as per the guide seen in the first post....

cosmic blu said:
i copied it from the /system/app directory of my phone using solid explorer....,used apktool to edit it as per the guide seen in the first post....
Click to expand...
Click to collapse
You are 100% sure that your rom is deodexed? Because it should have that file. Deodexed seclauncher2.apk from my stock has that file. Check if you have seclauncher2.odex in system/app.
Sent from my GT-I9070 using Tapatalk

respected shaan, i have no odex files in my system/app directory , i flashed the deodexed firmware 2 months before
can u help me , what i did with apktool is said below:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Felix>cd\
C:\>cd "c:\apktool"
c:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Felix\apktool\framework\1.apk
c:\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Felix\apktool\framework\2.apk
c:\apktool>apktool d SecLauncher2.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Felix\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool d 46mod.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Felix\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool b SecLauncher2.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
c:\apktool>apktool b SecLauncher2
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'applications_tab_label' has no default translation in c:\
apktool\SecLauncher2\res; found: ko
I: Building apk file...
c:\apktool>apktool b C:\apktool\SecLauncher2 c:\apktool\101\
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
c:\apktool>

respected shaan, i have no odex files in my system/app directory , i flashed the deodexed firmware 2 months before
can u help me , what i did with apktool is said below:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Felix>cd\
C:\>cd "c:\apktool"
c:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Felix\apktool\framework\1.apk
c:\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Felix\apktool\framework\2.apk
c:\apktool>apktool d SecLauncher2.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Felix\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool d 46mod.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Felix\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool b SecLauncher2.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
c:\apktool>apktool b SecLauncher2
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'applications_tab_label' has no default translation in c:\
apktool\SecLauncher2\res; found: ko
I: Building apk file...
c:\apktool>apktool b C:\apktool\SecLauncher2 c:\apktool\101\
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
c:\apktool>

cosmic blu said:
respected shaan, i have no odex files in my system/app directory , i flashed the deodexed firmware 2 months before
can u help me , what i did with apktool is said below:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Felix>cd\
C:\>cd "c:\apktool"
c:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Felix\apktool\framework\1.apk
c:\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Felix\apktool\framework\2.apk
c:\apktool>apktool d SecLauncher2.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Felix\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool d 46mod.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Felix\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
c:\apktool>apktool b SecLauncher2.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
c:\apktool>apktool b SecLauncher2
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'applications_tab_label' has no default translation in c:\
apktool\SecLauncher2\res; found: ko
I: Building apk file...
c:\apktool>apktool b C:\apktool\SecLauncher2 c:\apktool\101\
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
c:\apktool>
Click to expand...
Click to collapse
Wait, what did you do there? When you decompile SecLauncher2.apk it went to SecLauncher2 folder. What is 46mod.apk?
W: Could not find sources - this means in folder C:\apktool\SecLauncher2 there is nothing.
Decompile, make changes, compile and add META-INF from the original apk to new one.

46mod is another seclaucher which i downloaded having a 4*6 app drawer , actually i decompiled it for reference while diting the values,
and , i followed your procedure during the mod ie,"Decompile, make changes, compile and add META-INF from the original apk to new one." but what i was missing was i didnt copy meta inf and androidmanifest from original to the bulid foder of the compiled folder and the again excecuted apktool b mynewapp.apk

any way even after sucessful compilation of the new apk nothing happened after pushing the modded apk to system/app, not showing up as a launcher...not even installed

cosmic blu said:
46mod is another seclaucher which i downloaded having a 4*6 app drawer , actually i decompiled it for reference while diting the values,
and , i followed your procedure during the mod ie,"Decompile, make changes, compile and add META-INF from the original apk to new one." but what i was missing was i didnt copy meta inf and androidmanifest from original to the bulid foder of the compiled folder and the again excecuted apktool b mynewapp.apk
Click to expand...
Click to collapse
Copy it after compile. Open apk with winrar or 7-zip.
Sent from my GT-I9070 using Tapatalk

http://forum.xda-developers.com/showthread.php?t=2290683http://forum.xda-developers.com/showthread.php?t=2290683
this is where i got the file that was renamed to 46mod.apk

http://forum.xda-developers.com/showthread.php?t=2290683http://forum.xda-developers.com/showthread.php?t=2290683
this is where i got the file that was renamed to 46mod.apk

Related

[Q] Decompiling apk using apktool, weird error

Hey guys..
I am trying to modify DialerTabActivity.apk and Contacts.apk..
When I decompile it using apktool.. it gives me weird error -
Code:
E:\GalaxyS\AppDev\apktool>apktool d -f DialerTabActivity.apk DialerTabActivity
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Rahulrulez\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x02050097
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0205009a
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
I've installed the proper framework-res.apk but still ti is giving me the same error..
Don't know what's wrong with apktool..
Please help me..
Because it has a twframework-res dependancy
Look for the syntax for depedancies or use apk manager and decompile with option 11
Then drag twframework-res (deodexed) into the window
Fyi : Wrong section

apktool decompile/compile errors

Ok, i'm having some issues with apktool.
I've installed sdk (Ubuntu)
now when i decompile for example Settings.apk:
java -Xmx512m -jar apktool.jar d Settings.apk somefolder i get this:
Code:
java -Xmx512m -jar /usr/local/bin/apktool.jar d Settings.apk out
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: /root/apktool/framework/1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_settings_ind_on_r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_inner_focus_c.9.png". Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102023c
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_settings_ind_on_c.9.png". Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102023c
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_inner_focus_r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_settings_ind_on_l.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_inner_press_c.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_inner_focus_l.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_inner_press_r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/appwidget_inner_press_l.9.png". Renaming it to *.png.
[B]Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3[/B]
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
So just try to edit a file anyway...
Now when building the apk i get:
Code:
java -Xmx512m -jar /usr/local/bin/apktool.jar b
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Unknown Source)
... 5 more
I'm really new to this sort of things, so i really don't know why this is happening...
Maybe someone can give me a hint or 2
compiling & decompiling with apkmanager on win7x64 works for me ...
i installed sdk & JDK (Java development kit) and set the path variables in windows ...
haven´t tried apktool yet ...
Ok, so maybe i have to use windows for this , luckily i have a dualboot
I suppose that you decompile with dependencies...?
settings.apk is depended from framework-res.apk.
I dont know how apk manager works on linux but in windows after you choose "10"(decompile with dependencies) it ask you for the depended apk and all you have to do is to drag and drop framework-res.apk on the cmd window..
Hope i helped
ageloskalp said:
I suppose that you decompile with dependencies...?
settings.apk is depended from framework-res.apk.
I dont know how apk manager works on linux but in windows after you choose "10"(decompile with dependencies) it ask you for the depended apk and all you have to do is to drag and drop framework-res.apk on the cmd window..
Hope i helped
Click to expand...
Click to collapse
I tried that, but it show me the error that it's not the dependee file:
Code:
"Sorry thats not the dependee apk, try again"
Drag the dependee apk in this window or type its path
Example to decompile Rosie.apk, drag com.htc.resources.apk in this window
Type input:
I use the Settings.apk and the framework-res.apk from the same rom, so i don't know why this doesn't work...
mine has no problem with the framework-res.apk.
I am sorry that it didnt work...!
Settings and framework-res.apk are from your rom and if yes from which one?So i can try and see if i have the same problem
ageloskalp said:
mine has no problem with the framework-res.apk.
I am sorry that it didnt work...!
Settings and framework-res.apk are from your rom and if yes from which one?So i can try and see if i have the same problem
Click to expand...
Click to collapse
Currently i'm trying it with my latest release: Slick2X-G V2.4 download
OK.
That rom is CM based so the settings arent depended only from framework-res.apk but from systemui.apk also.
Put both apks(framework-res.apk and systemui.apk) in the apk managers /other folder.
Then open a command window and go to /other folder(we want that because there is the apktool.jar).
Write those lines:
java -jar apktool.jar if framework-res.apk
java -jar apktool.jar if SystemUI.apk
Then close cmd,open script choose project and just decompile(choose 9 no 10).
Let me know if that worked for you
ageloskalp said:
OK.
That rom is CM based so the settings arent depended only from framework-res.apk but from systemui.apk also.
Put both apks(framework-res.apk and systemui.apk) in the apk managers /other folder.
Then open a command window and go to /other folder(we want that because there is the apktool.jar).
Write those lines:
java -jar apktool.jar if framework-res.apk
java -jar apktool.jar if SystemUI.apk
Then close cmd,open script choose project and just decompile(choose 9 no 10).
Let me know if that worked for you
Click to expand...
Click to collapse
Thanks, but it's not working....
This is the error log: log
Very weird I tried with your files and everything worked just fine.the most of your log is about .9 pngs errors witch is very common while decompiling framework -res.Apk but no with settings.apk.one last advice.delete settings.apk from projects, remove all apks from modification folder except settings.apk do what I told you on previous post.
Sent from my Optimus 2X using Tapatalk
ageloskalp said:
Very weird I tried with your files and everything worked just fine.the most of your log is about .9 pngs errors witch is very common while decompiling framework -res.Apk but no with settings.apk.one last advice.delete settings.apk from projects, remove all apks from modification folder except settings.apk do what I told you on previous post.
Sent from my Optimus 2X using Tapatalk
Click to expand...
Click to collapse
Well this is weird, still no luck. Really don't know what i'm doing wrong...
this is the solution for ubuntu users
http://forum.xda-developers.com/showthread.php?t=2119543
I have The same problem!
Inviato dal mio GT-N7100 usando Tapatalk 4

[Project] Translating AEDesign rom

Translation is ongoing at http://aenglish.tk
tobbeson said:
**Not sure if its the right place to post**
I've been tinkering with the AeDesign rom to try to translate it i have successfully translated the strings from weather.apk though it needs to be compiled to an apk again theres where I'm stuck.
i will post the apk & string here to see if someone can work this out
Click to expand...
Click to collapse
Someone please help to get this recompiled as an app, lol. This is so cool.
---------- Post added at 12:25 PM ---------- Previous post was at 12:24 PM ----------
Will you be trying to translate the entire rom, or each of the apk's? I would love to get the full rom on my HTC Evo 4G!
The Batman said:
Someone please help to get this recompiled as an app, lol. This is so cool.
---------- Post added at 12:25 PM ---------- Previous post was at 12:24 PM ----------
Will you be trying to translate the entire rom, or each of the apk's? I would love to get the full rom on my HTC Evo 4G!
Click to expand...
Click to collapse
This rom is so awesome that i just must translate it xD but i can't find out how to compile it.
visit Aenglish.tk there we can take the discussion further about translating the whole rom
Download apktool and you have to do few steps:
1. Decompile the .apk with this command:
Code:
apktool d -s FILENAME.apk
2. Open folder Values and edit/copy Strings.xml
3. Compile back the file with:
Code:
apktool b FOLDERNAME
With the -S switch you will decompile only the resources.arsc (which contains the Values folders) and the classes.dex will remain untouched.
Thanks ogo though i get these messages
Code:
Last login: Sat Oct 1 10:08:00 on ttys000
Tobiass-MacBook:~ Tobias$ cd desktop
Tobiass-MacBook:desktop Tobias$ cd 1
Tobiass-MacBook:1 Tobias$ apktool d -s Weather.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /Users/Tobias/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=contactWidth, value=0x00009601
W: Could not decode attr value, using undecoded value instead: ns=android, name=contactEdtTextSize, value=0x00001002
W: Could not decode attr value, using undecoded value instead: ns=android, name=contactEdtHint, value=0x7f070012
W: Could not decode attr value, using undecoded value instead: ns=android, name=contactEdtTextpaddingLeft, value=0x00002301
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010102d5
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Tobiass-MacBook:1 Tobias$ apktool b Weather
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Tobiass-MacBook:1 Tobias$
That's because you have to import a framework with this command:
For Sense apps:
Code:
apktool if PATH:\com.htc.resources.apk
For some other apps:
Code:
apktool if PATH:\framework-res.apk
or
Both of them for some apps.
That rom looks nice! Looking forward to see it on my legend

[Q] Apk Manager SystemUI.apk Compile Problem

Hello my friends.
I installed frameworkres and tw framework resources files. I decompiled SystemUI.apk and changed drawables.xml and status bar smali.
But I can't compile SystemUI.apk Error.
Log is here :
Code:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk Bulunamad
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HP\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeP****r.getSourceName(TreeP****r.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:451)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:243)
at brut.androlib.Androlib.buildSources(Androlib.java:200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
up up

can't decompile joyos settings.apk

after trying to decompile joyos rom settings.apk, I receive this error
Could Not Find C:\android\place-apk-here-for-modding\../place-apk-here-for-modding/signedJOYSettings.apk
Could Not Find C:\android\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedJOYSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Chito\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 17
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstitutions(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResStringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
TrojanHorses said:
after trying to decompile joyos rom settings.apk, I receive this error
Could Not Find C:\android\place-apk-here-for-modding\../place-apk-here-for-modding/signedJOYSettings.apk
Could Not Find C:\android\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedJOYSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Chito\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 17
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstitutions(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResStringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Click to expand...
Click to collapse
with apktool try this to decompile:
apktool d settings.apk
to re-compile:
apktool b settings
daniga74

Categories

Resources