error while compiling code of miui 7 for xperia m - Sony Xperia M

hi ,
error while compiling code of miui 7 for xperia m ..please help on this
[email protected]:~/patchrom/nicki_c19051$ make fullota
>>> build out/services.jar...
/home/abhinav/patchrom/tools/add_miui_smail.sh >/dev/null out/services_miui out/services
/home/abhinav/patchrom/tools/apktool --quiet b out/services -o out/services.jar
out/services/smali/com/android/server/am/ActivityManagerService.smali[16752,0] Cannot get the location of a label that hasn't been placed yet.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/server/am/ActivityManagerService.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354)
at brut.androlib.Androlib.buildSources(Androlib.java:294)
at brut.androlib.Androlib.build(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
/home/abhinav/patchrom/build/porting.mk:330: recipe for target 'out/services.jar' failed

abhinav1293 said:
hi ,
error while compiling code of miui 7 for xperia m ..please help on this
[email protected]:~/patchrom/nicki_c19051$ make fullota
>>> build out/services.jar...
/home/abhinav/patchrom/tools/add_miui_smail.sh >/dev/null out/services_miui out/services
/home/abhinav/patchrom/tools/apktool --quiet b out/services -o out/services.jar
out/services/smali/com/android/server/am/ActivityManagerService.smali[16752,0] Cannot get the location of a label that hasn't been placed yet.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/server/am/ActivityManagerService.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354)
at brut.androlib.Androlib.buildSources(Androlib.java:294)
at brut.androlib.Androlib.build(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
/home/abhinav/patchrom/build/porting.mk:330: recipe for target 'out/services.jar' failed
Click to expand...
Click to collapse
maybe @STRYDER~007 can help you in this or for a while use his guide
here
http://forum.xda-developers.com/android/software/guide-build-port-miui-rom-to-device-t3250984
good luck for your rom and eagerly waiting for your rom :good:

Related

[MODDING/THEMING] Apktool for ICS apks

If you are an amateur/aficionado modder or themer, this is for you:
Some people are still having problems de/compiling system apks on Samsung ICS builds, most of the errors arising are related to "bad magic values". I googled a little and managed to find a modded Apktool. I’ve tested it and it has worked fine so far with many apks (e.g. framework-res, TouchWiz30Launcher, etc).
I packed all necessary files below, including new aapt from Android SDK 4.0.3. As you may already know, you need latest JDK for this to work.
*** NOTICE *** There are some apks like SystemUI that need special treatment. If errors are found when decompiling an apk with ICS Apktool, you have to try decompiling it using the Original Apktool which I've just uploaded, then for recompiling it you need to use the ICS Apktool (if you run the Original Apktool to recompile, you will probably encounter errors). Remember, both packages contain different aapt executables so it is recommended making two separate folders for each zip content.
Credit goes to Brut.all who developed the original Apktool and gcrut…@gmail.com who modded it.
NOTE: This thread is not intended to be a guide for modding or theming. If you want to start messing with apks, there are many tutorials out there.
this is not work for me... got error when trying to decompile SystemUI.apk:
Code:
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 35 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
any solution?
i04055 said:
this is not work for me... got error when trying to decompile SystemUI.apk:
Code:
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 35 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
any solution?
Click to expand...
Click to collapse
Delete classes.dex from SystemUI.apk before decompiling. If you want to edit classes.dex use smali/baksmali 1.3.2.
i04055 said:
this is not work for me... got error when trying to decompile SystemUI.apk:
Code:
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 35 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
any solution?
Click to expand...
Click to collapse
Do the following:
Decompile SystemUI using "Original Apktool" (already uploaded to the OP). If you try to recompile the apk with the Original Apktool you might find errors so you have to recompile it but this time using the "ICS Apktool". I hope this work for you.
sileshnair said:
Delete classes.dex from SystemUI.apk before decompiling. If you want to edit classes.dex use smali/baksmali 1.3.2.
Click to expand...
Click to collapse
I am succeed decompile it without classes.dex, searching for baksmali now...
-- edit ---
I've tried, but get the same error as below....
xtremesv said:
Do the following:
Decompile SystemUI using "Original Apktool" (already uploaded to the OP). If you try to recompile the apk with the Original Apktool you might find errors so you have to recompile it but this time using the "ICS Apktool". I hope this work for you.
Click to expand...
Click to collapse
I am able to decompile it with original apk tool but when I tried to recompile it using ICS apktool i got this error :
Code:
E:\android\Lab\SystemUI\res\values\public.xml:318: error: Public symbol drawable/tw_stat_sys_6_level_signal_3 declared h
erbrut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\edp\LOCA
LS~1\Temp\APKTOOL4562847521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\
SystemUI\res, -M, E:\android\Lab\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\edp\LOCALS~1\Temp\APKTOOL4562847
521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\SystemUI\res, -M, E:\and
roid\Lab\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
e is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:319: error: Public symbol drawable/tw_stat_sys_6_level_signal_3_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:320: error: Public symbol drawable/tw_stat_sys_6_level_signal_4 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:321: error: Public symbol drawable/tw_stat_sys_6_level_signal_4_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:322: error: Public symbol drawable/tw_stat_sys_6_level_signal_5 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:323: error: Public symbol drawable/tw_stat_sys_6_level_signal_5_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:324: error: Public symbol drawable/tw_stat_sys_6_level_signal_6 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:325: error: Public symbol drawable/tw_stat_sys_6_level_signal_6_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:99: error: Public symbol drawable/tw_stat_sys_battery_not_charge declared
here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:326: error: Public symbol drawable/tw_stat_sys_signal_null declared here i
s not defined.
E:\android\Lab\SystemUI\res\values\public.xml:327: error: Public symbol drawable/tw_status_bar_close_on declared here is
not defined.
E:\android\Lab\SystemUI\res\values\public.xml:101: error: Public symbol drawable/zzz_stat_vt_signal declared here is not
defined.
E:\android\Lab\SystemUI\res\values\public.xml:102: error: Public symbol drawable/zzz_stat_vt_signal_null declared here i
s not defined.
what's going wrong here?
i04055 said:
I've tried, but get the same error as below....
I am able to decompile it with original apk tool but when I tried to recompile it using ICS apktool i got this error :
Code:
E:\android\Lab\SystemUI\res\values\public.xml:318: error: Public symbol drawable/tw_stat_sys_6_level_signal_3 declared h
erbrut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\edp\LOCA
LS~1\Temp\APKTOOL4562847521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\
SystemUI\res, -M, E:\android\Lab\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\edp\LOCALS~1\Temp\APKTOOL4562847
521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\SystemUI\res, -M, E:\and
roid\Lab\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
e is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:319: error: Public symbol drawable/tw_stat_sys_6_level_signal_3_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:320: error: Public symbol drawable/tw_stat_sys_6_level_signal_4 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:321: error: Public symbol drawable/tw_stat_sys_6_level_signal_4_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:322: error: Public symbol drawable/tw_stat_sys_6_level_signal_5 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:323: error: Public symbol drawable/tw_stat_sys_6_level_signal_5_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:324: error: Public symbol drawable/tw_stat_sys_6_level_signal_6 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:325: error: Public symbol drawable/tw_stat_sys_6_level_signal_6_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:99: error: Public symbol drawable/tw_stat_sys_battery_not_charge declared
here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:326: error: Public symbol drawable/tw_stat_sys_signal_null declared here i
s not defined.
E:\android\Lab\SystemUI\res\values\public.xml:327: error: Public symbol drawable/tw_status_bar_close_on declared here is
not defined.
E:\android\Lab\SystemUI\res\values\public.xml:101: error: Public symbol drawable/zzz_stat_vt_signal declared here is not
defined.
E:\android\Lab\SystemUI\res\values\public.xml:102: error: Public symbol drawable/zzz_stat_vt_signal_null declared here i
s not defined.
what's going wrong here?
Click to expand...
Click to collapse
Take into account that both packages contents must be in separate folders to retain their respective aapt file which is different for each one. The best way to do this is to decompile SystemUI with Original Apktool then take the generated SystemUI folder and copy it into the ICS Apktool folder and recompile after your modding is done.
Nice thread mate. This will e of great help for new themers
Cheers
xtremesv said:
Take into account that both packages contents must be in separate folders to retain their respective aapt file which is different for each one. The best way to do this is to decompile SystemUI with Original Apktool then take the generated SystemUI folder and copy it into the ICS Apktool folder and recompile after your modding is done.
Click to expand...
Click to collapse
too bad... stil got same error... I'm really confused....
good job, helpful tool.
thank you.
I've solved my problems with apktool v1.4.3 and ICS-JPQ using the original aapt file of the last SDK/plattform-tools and not the aapt file provided by apktool. Now I can decompile/recompile whatever ICS file (at least for now).
Tested with framework-res.apk, SystemUI.apk, Settings.apk, Phone.apk and android.policy.jar
my2cents
i04055 said:
too bad... stil got same error... I'm really confused....
Click to expand...
Click to collapse
The last error you posted seemed related to bad version of aapt.exe. That's why I recommended using both Apktools one for decompiling and the other for rebuilding, that way is how it has worked in my case.
I wish I could've helped you more.
intronauta said:
I've solved my problems with apktool v1.4.3 and ICS-JPQ using the original aapt file of the last SDK/plattform-tools and not the aapt file provided by apktool. Now I can decompile/recompile whatever ICS file (at least for now).
Tested with framework-res.apk, SystemUI.apk, Settings.apk, Phone.apk and android.policy.jar
my2cents
Click to expand...
Click to collapse
this method work for me in the past, while decompiling MIUI's framework, now, can't seem to make it work using stock rom's framework, tried using different version of apktool and apk manager, and the one in this thread, to no avail. im also having that aapt problem
It's really a pain in the ass to find a way to decompile/compile any ics apk file, so hope the tips suggested in this thread work...
Sent from my GT-I9100 using Tapatalk 2 Beta-2
Here is my ApkManager, it's based on ApkManager 4.9 and contain an updated aapt and hacked Apktool 1.4.3 (new magic values) with updated smali (thanks to Ficeto).
I hope this will help you, it should work for all current ICS apps.
wanam said:
Here is my ApkManager, it's based on ApkManager 4.9 and contain an updated aapt and hacked Apktool 1.4.3 (new magic values) with updated smali (thanks to Ficeto).
I hope this will help you, it should work for all current ICS apps.
Click to expand...
Click to collapse
TKS wanam
wanam said:
Here is my ApkManager, it's based on ApkManager 4.9 and contain an updated aapt and hacked Apktool 1.4.3 (new magic values) with updated smali (thanks to Ficeto).
I hope this will help you, it should work for all current ICS apps.
Click to expand...
Click to collapse
Thanks, Wanam. I do really want this tool, too!!!
wanam said:
Here is my ApkManager, it's based on ApkManager 4.9 and contain an updated aapt and hacked Apktool 1.4.3 (new magic values) with updated smali (thanks to Ficeto).
I hope this will help you, it should work for all current ICS apps.
Click to expand...
Click to collapse
I just tried de-compiling and re-compiling the systemui.apk, which is the only apk I've had issues with since making the transfer to ICS and it worked perfect using this. Thank you SOOO much!!
Tiffany84 said:
I just tried de-compiling and re-compiling the systemui.apk, which is the only apk I've had issues with since making the transfer to ICS and it worked perfect using this. Thank you SOOO much!!
Click to expand...
Click to collapse
Hi, Tiffany. I have trouble when I decompile and compile SystemUI.apk. Can you show me the step? Do I need to pull framework-res.apk and twframework-res.apk first and run "apktool if" command?
Sent from my GT-I9100 using XDA
cyfgeorge said:
Hi, Tiffany. I have trouble when I decompile and compile SystemUI.apk. Can you show me the step? Do I need to pull framework-res.apk and twframework-res.apk first and run "apktool if" command?
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
Yes, only framework-res.apk.
wanam said:
Here is my ApkManager, it's based on ApkManager 4.9 and contain an updated aapt and hacked Apktool 1.4.3 (new magic values) with updated smali (thanks to Ficeto).
I hope this will help you, it should work for all current ICS apps.
Click to expand...
Click to collapse
I'm struggling with this could someone help please? I'm getting the following error when compiling framework-res
--------------------------------------------------------------------------
|24/03/2012 -- 17:09:19.00|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values\plurals.xml:79: error: Found tag </item> where </plurals> is expected
C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rGB\plurals.xml:79: error: Found tag </item> where </plurals> is expected
C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_GB
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_GB
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_GB
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Mike\AppData\Local\Temp\APKTOOL4577066397448428082.tmp, -x, -S, C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res, -M, C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Mike\AppData\Local\Temp\APKTOOL4577066397448428082.tmp, -x, -S, C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\res, -M, C:\Android\android-sdk\Apk_Manager_ICS\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the file specified.
'7za' is not recognized as an internal or external command,
operable program or batch file.
'7za' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
Click to expand...
Click to collapse
Here's the log from decompiling
--------------------------------------------------------------------------
|24/03/2012 -- 17:01:57.71|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
Could Not Find C:\Android\android-sdk\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Android\android-sdk\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse

[Q] compiling systemUI and framework-res with apktool

Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from ice cold sandwich rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it
Galliture said:
Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from ice cold sandwich rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it
Click to expand...
Click to collapse
What do you mean by can't compile. What error are you getting we need more detail!
Sent from my Desire HD using XDA
scaryshark said:
What do you mean by can't compile. What error are you getting we need more detail!
Sent from my Desire HD using XDA
Click to expand...
Click to collapse
When i wanna compile both files it tells me that i didnt pulled the framework-res
I have replaced some files from systemui and framework from primo s rom to ice cold sandwich but i just replaced the png files and some small xml files from layout folder and i didnt add any thing ...
sorry for my bad english
Galliture said:
When i wanna compile both files it tells me that i didnt pulled the framework-res
I have replaced some files from systemui and framework from primo s rom to ice cold sandwich but i just replaced the png files and some small xml files from layout folder and i didnt add any thing ...
sorry for my bad english
Click to expand...
Click to collapse
Now were getting somewhere, but could you be more cleat.
What is the exact error, what are you using to compile/decompile have you installed the framework files?. Without being clear nobody has any idea how to help!
Sent from my Desire HD using XDA
OK these are the exact things i do:
In apktool I installed the ice cold sandwich framework and I decompiled the SystemUI and framework to make some changes
and when I wanna compile the framework-res folder i get this error:
D:\Mohammad\Android\AndroidTools\apktool>apktool if ics\framework-res.apk
I: Framework installed to: C:\Documents and Settings\Galliture\apktool\framework\1.apk
D:\Mohammad\Android\AndroidTools\apktool>apktool b icesense\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1280d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w500dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-land
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1024d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w360dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-h720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w480dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-sw600dp
(skipping index file 'D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res\drawable-hdpi\Thumbs.db')
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -
F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\ice
sense\framework-res\res, -M, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548
111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res, -M, D:\Mohammad\Android\
AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
what should I do?
Galliture said:
OK these are the exact things i do:
In apktool I installed the ice cold sandwich framework and I decompiled the SystemUI and framework to make some changes
and when I wanna compile the framework-res folder i get this error:
D:\Mohammad\Android\AndroidTools\apktool>apktool if ics\framework-res.apk
I: Framework installed to: C:\Documents and Settings\Galliture\apktool\framework\1.apk
D:\Mohammad\Android\AndroidTools\apktool>apktool b icesense\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1280d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w500dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-land
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1024d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w360dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-h720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w480dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-sw600dp
(skipping index file 'D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res\drawable-hdpi\Thumbs.db')
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -
F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\ice
sense\framework-res\res, -M, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548
111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res, -M, D:\Mohammad\Android\
AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
what should I do?
Click to expand...
Click to collapse
If your using primo in there make sure to use com.htc.resources.apk and framework-red.apk as the framework files, that seems to be the problem.
Sent from my Desire HD using XDA
b4 you decomp your files, u need 2 do:
apktool if framework-res.apk
Then u kan decomp, chang things nd compile

CM9 Mods Help Kinda

I have modded my status bar in cm9 so its transparent but when i try to make it have center clock i get this
|24/07/2012 -- 15:09:39.00|
--------------------------------------------------------------------------
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:20: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
when im trying to compile the apk any ideas :/
Guide is here http://forum.xda-developers.com/showthread.php?t=1773930
Download the latest version of smali 1.3.3 from here and compile it manually.
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layo ut\status_bar.xml:20 ... could you show us the line 20 in this xml?
I thanked both and i fixed my errors in line 20 but now ive got this
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:29: error: Error parsing XML: mismatched tag
Which i have no idea about ?
+ .txt file is in .zip because i cant upload it ;/ + just realised i changed extension so its supposed to be .xml
try this: View attachment status_bar.zip
cyberking said:
try this: View attachment 1219507
Click to expand...
Click to collapse
Thanks + I did it and got transparent mod and center clock working after a bit but now there is no status bar and i cannot get it to come up anyone got any ideas ? it came up once :/ Really want to get it to work quite a few people want this
Managed to do it thanks to everyone who helped I thanked everyone :')
nice, so where was problem, i'm just curios
cyberking said:
nice, so where was problem, i'm just curios
Click to expand...
Click to collapse
Had one extra line in the status_bar.xml file + to get it to appear i had to reflash cm9 after full wipe then install the cm9 zip again just with different SystemUI.apk in it
dudeman1996 said:
Download the latest version of smali 1.3.3 from here and compile it manually.
Click to expand...
Click to collapse
Dude,
Is there any way to lock my mobile again....???
devilsdude said:
Dude,
Is there any way to lock my mobile again....???
Click to expand...
Click to collapse
What do you mean lock?
Sent from my HTC Wildfire S A510e using xda premium

APKTOOL - recompiling error

I had been looking before for the same thread I created, but I hadn't found so I created this one. I want to mod some apps for my Jelly Sandwich. Decompiling goes well, but recompiling - error!
This what I exactly do:
apktool if framework-res.apk (success)
apktool d SystemUI.apk (success)
apktool b SystemUI.apk (error)
This is what I get after recompiling command:
Code:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
dostŕpu)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
... 8 more
Even without changing anything, apktool doesn't recompile my apk.
I have tried to recompile on two PCs - both of them have latest Java software installed.
I could post it in General Android section, but I think it can be related with Xperia only.
-----------------EDIT------------------------
I got something like that once also:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/drawab
le-sw600dp-hdpi
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/layout
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp-port
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL5816768975862364769.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\JA\Desktop\apktool\SystemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\JA\AppData\Local\Temp\APKTOOL5816768975862364769.tmp, -I, C:\Users\JA\apkto
ol\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\J
A\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
I had this problem before too
Are you sure the apk you decompiled hasnt been modified my anyone before ?
Are you using the latest aapt and apktool ? Apktool 1.5 kinda fix all those problems, althought most problems come from apk..
In the second log of your apktool, all you need to do is edit the xml files where the error is coming from.
Anyway, heres the apktool thread
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my WT19i
kokzhanjia said:
I had this problem before too
Are you sure the apk you decompiled hasnt been modified my anyone before ?
Are you using the latest aapt and apktool ? Apktool 1.5 kinda fix all those problems, althought most problems come from apk..
In the second log of your apktool, all you need to do is edit the xml files where the error is coming from.
Anyway, heres the apktool thread
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my WT19i
Click to expand...
Click to collapse
This 1.5 is strange... What is the comand for decompiling, compilng and installing frameworks? Damn...
Sent from my HTC One X using xda premium
Install frameworks first :apktool if framework-res.apk
Decompile : apktool d <name of apk> <folder created>
Recompile : apktool b <name of folder> <name of new apk>
Sent from my WT19i
Well, those methods work on 1.4.3 downloaded from Google project site only. And recompiling doesn't work also.
So I cannot recompile modded before apks by other people?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
maxio1998 said:
Well, those methods work on 1.4.3 downloaded from Google project site only. And recompiling doesn't work also.
So I cannot recompile modded before apks by other people?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
Click to expand...
Click to collapse
You can,but thr error you stated may happen again,maybe if you could send that apk and i have a look ? If its okay to you
Sent from my WT19i
I would learn to use apktool before making a ROM
Well, I had this problem a few month ago, and i solved it by reinstalling / downloading it and putting stock. 587 framework-res.apk...
Try it, hope it helps
Sent from my LT18i using xda app-developers app
jader13254 said:
I would learn to use apktool before making a ROM
Well, I had this problem a few month ago, and i solved it by reinstalling / downloading it and putting stock. 587 framework-res.apk...
Try it, hope it helps
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
I just cannot solve it, I installed 587 framework and infact I cannot recompile anything
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
papayayoghurt said:
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
Click to expand...
Click to collapse
Danke schön! I will try later, Freund!
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
maxio1998 said:
Danke schön! I will try later, Freund!
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
Click to expand...
Click to collapse
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
jader13254 said:
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
Ja, papayayoghurt ist Österreicher
Aber, wir mussen English sprechen - das ist xda
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
papayayoghurt said:
Try
Put an Folder where is just apktool.jar and aapt.exe
Open command
Type java -jar apktool.jar if framework-res.apk
Then type java -jar apktool.jar if SemcGenericUxpRes.apk
Then type java -jar apktool.jar d SystemUI.apk
Then java -jar apktool.jar b SystemUI
Gesendet von meinem LT18i mit Tapatalk 2
Click to expand...
Click to collapse
Code:
C:\Users\JA\Desktop\apktool>java -jar apktool.jar b lol
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\JA\Desktop\apktool\lol\res\values\arrays.xml:27: error: Found tag refer
ence-array where item is expected
C:\Users\JA\Desktop\apktool\lol\res\values\public.xml:888: error: Public symbol
array/shutdown_reboot_actions declared here is not defined.
C:\Users\JA\Desktop\apktool\lol\res\values\public.xml:887: error: Public symbol
array/shutdown_reboot_options declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-ver
sion, 15, -F, C:\Users\JA\AppData\Local\Temp\APKTOOL3563551836292598120.tmp, -I,
C:\Users\JA\apktool\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\lol\res, -
M, C:\Users\JA\Desktop\apktool\lol\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL3563551836292598120.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\lol\res, -M, C:\Users\JA\Desktop\apktool\lol\AndroidManifes
t.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
I placed folder with apktool on desktop, btw.
jader13254 said:
Danke schön, ich werde es später probieren mein Freund
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
Yeah, I know, I just wanted to put some English to German LOL
Hi
Ok, please try to decompile using this tool:
http://wanamlite.com/forums/showthread.php?tid=30
LG
papayayoghurt said:
Hi
Ok, please try to decompile using this tool:
http://wanamlite.com/forums/showthread.php?tid=30
LG
Click to expand...
Click to collapse
Will try tomorrow.
Ok, now I can recompile apks but only some. I get error while recompiling Phonebook, Mesaages or Phone. What is that?
Sent from the best phone in the world - HTC One X with ARHD and Bricked Kernel 1,6 GHz
I'm having the same issue. I cannot recompile some apk even without changes, on the other hand some others work well. The mentioned link doesn't work.
vavalexus said:
I'm having the same issue. I cannot recompile some apk even without changes, on the other hand some others work well. The mentioned link doesn't work.
Click to expand...
Click to collapse
Use the latest apktool, I have no problems with it. If you're on an older version, replace aapt.exe from the latest Android SDK.
僕のLT18iから送られてきた
popthosegaskets said:
Use the latest apktool, I have no problems with it. If you're on an older version, replace aapt.exe from the latest Android SDK.
僕のLT18iから送られてきた
Click to expand...
Click to collapse
I tried both old an latest (2.0 beta) apktools, same issue. Please try re-compile "skype.apk" (I do not attach it since it is quite heavy but I believe you will be able to download it somewhere).
Thank you!
vavalexus said:
I tried both old an latest (2.0 beta) apktools, same issue. Please try re-compile "skype.apk" (I do not attach it since it is quite heavy but I believe you will be able to download it somewhere).
Thank you!
Click to expand...
Click to collapse
You can send me the link which you downloaded it from, along with what you want to change. I can do it for you.
僕のLT18iから送られてきた

Compiling SecSettingsProvider

I am currently working on creating a new rom for the Note 2 (XXDLL4 - 4.1.2) and I was trying to edit SecSettingsProvider.apk. While I could decompile it, apktool kept bringing up errors while compiling even when not even modifying the apk. On other system files it worked correctly so I'm wondering if there's a different process to use with this file ?
This is the error :
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:168)
at brut.androlib.Androlib.build(Androlib.java:185)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
... 4 more
Thanks

Categories

Resources