[Q] decompiling error - Galaxy Note GT-N7000 Q&A, Help & Troubleshooting

hey,
im trying to decompile apks using apkmanage 5.0.2. but every time im geting this error.
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)
Could Not Find C:\Users\agri\Desktop\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedFlashBarService.apk
Could Not Find C:\Users\agri\Desktop\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedFlashBarService.apk
I: Baksmaling...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -7FFE0000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-v13-ERR0
I: Loaded.
I: Loading resource table from file: C:\Users\agri\apktool\framework\1.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR1
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
I: Loading resource table from file: C:\Users\agri\apktool\framework\1.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR2
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000000f
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
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.AndrolibResources.decode(AndrolibResources.java:114)
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)
im really new to editing apk files. any help would be appreciated. thanks in advance.

what u need is a tuitorial u must be missing something b4 doing decompile n compile
read it http://forum.xda-developers.com/showthread.php?t=1756953
u can try out majdinj OP to get baksmali/smali manager to work it out
http://forum.xda-developers.com/showthread.php?p=42250570#post42250570

Related

how can i compilation and decompilation the file ''blur-res.apk''?

how can i compilation and decompilation the file ''blur-res.apk''?? no matter how i compilation the file ''blur-res.apk'',it turned out the APK cannot work properly,why???
mapleshadow said:
how can i compilation and decompilation the file ''blur-res.apk''?? no matter how i compilation the file ''blur-res.apk'',it turned out the APK cannot work properly,why???
Click to expand...
Click to collapse
Moto added signatures to each apk in /system. After you re-compile the apk, you need to open both with an archive manager, and copy the META-INF folder from the old to the new.
hello friend,thank you for your reply.i understand for your answer,i also have tried this way.there are many ways of dealing with system-level APK file,i have tried most of it,every files are normal,including framework-res.apk.but the framework-res.apk didn't work well
more curious,using apktool to compile the blur-res.apk,but Decompilate it again will occur error.apktool says there is lacking some values.can you please tell me how to fix it??
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar d blur-res.apk
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\1.apk
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d5
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
UP~~~~~~~~

[Q] help with decompiling ics apks?

can someone help me with the correct process to decompiling a stock deodexed apk...i cant even install framework properly
i keep getting this when installing the framework:
Code:
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
I: Framework installed to: C:\Users\Mikey Gutierrez\apktool\framework\1.apk
i then try and decompile and i get the same thing...and when i try and recompile with no edits i get this:
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktools\framework-res\res\values\anims.xml:3: error: Found tag anim where it
em is expected
C:\apktools\framework-res\res\values\public.xml:6576: error: Public symbol anim/
htc_ime_decelerate_interpolator declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\MIKEYG~1\AppData\Local\Tem
p\APKTOOL2407349169427975423.tmp, -x, -S, C:\apktools\framework-res\res, -M, C:\
apktools\framework-res\AndroidManifest.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\MIKEYG~1\AppData\Local\Temp\APKTOOL2407349169427975423.tmp, -x, -S, C:\apkt
ools\framework-res\res, -M, C:\apktools\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
i really wanna get into the dev scene for this phone but if i cant even figure out how to decompile the apks then i wont be able to...ive tried this with many difrent apktools included 1.4.3, modded ones for ics, some other modded ones...i keep getting the same thing...
so if someone can point me in the right direction for the correct apktool to use as well as any special steps i would appreciate it...i know the commands for installing, decompiling and recompiling already...apktool if, apktool d , apktool b
i am on windows 7, i have the newest jdk installed "jdk 7u5"
ive also tried under ubuntu with jdk 6...got the same problems...
any and all help is appreciated...like i said i wanna get into the dev scene
Anyone? Has anybody personally installed or decompiled framework-res.apk?
I'm open for any help...
Sent from my HTC PH39100 using XDA
never mind...im selling this phone...as much as i wanna love it, i hate it...too many problems, have to pull bettery every other day just so i can listen to audio through headphone, dev section seems slow (not the devs fault...can blame htc for that)...it just doesnt support my flashaholic needs...
Htc vivid at&t wont boot stuck on blanks screen
Hello im a newbe and would like some insight im trying to find out what the problem is with my vivid X710a its stuck on blank screen and dim light behind it ...when plug into computer it reads QHSUSB/DLOAD I am stumped i dont no were to go the phone is like new never droped and no water ....if anyone has ideas to help would be greatly appreciated thanks
TalJag2000 said:
Hello im a newbe and would like some insight im trying to find out what the problem is with my vivid X710a its stuck on blank screen and dim light behind it ...when plug into computer it reads QHSUSB/DLOAD I am stumped i dont no were to go the phone is like new never droped and no water ....if anyone has ideas to help would be greatly appreciated thanks
Click to expand...
Click to collapse
might wanna post your own thread with that problem to get better help from everyone...

[Q] Edit Settings.apk

Hi,
I would like to know how I could change the settings.apk background to another color. Ex: From the stock black to white
Is it just change a .png image (like on the SGSII) or I must do something else?
I'm asking because I'm not finding (assuming it's a .png) the correct one to edit.
Thank you in advance for your time and answer.
Necr6phag1st said:
Hi,
I would like to know how I could change the settings.apk background to another color. Ex: From the stock black to white
Is it just change a .png image (like on the SGSII) or I must do something else?
I'm asking because I'm not finding (assuming it's a .png) the correct one to edit.
Thank you in advance for your time and answer.
Click to expand...
Click to collapse
Did you look in the htc-resources.apk. I may be wrong but im sure its there or maybe i'm thinking of the sony devices that keep the backgrounds in SemcGenericUpRes.apk
Hi, are you find any answer? I need thi one too..
Sent from my HTC Sensation XL with Beats Audio X315e using xda app-developers app
Its in framework-res in sense 4 on 3.6 dont remember but can be this same. When i back home i will write more.
EDIT:
This is for Samsung Epic 4G Touch but this give you a point to work.
Sent from my HTC One V using xda premium
stona175 said:
Its in framework-res in sense 4 on 3.6 dont remember but can be this same. When i back home i will write more.
EDIT:
This is for Samsung Epic 4G Touch but this give you a point to work.
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
Can you please post a link with the files you use to decompile or tell me wich apktool build you use...because I tried every possible tutorial in where, but I always have errors when decompiling the framework-res.
:good:
Necr6phag1st said:
Can you please post a link with the files you use to decompile or tell me wich apktool build you use...because I tried every possible tutorial in where, but I always have errors when decompiling the framework-res.
:good:
Click to expand...
Click to collapse
to decompile and edit i'm using Virtuous Ten Studio.
this is working apktool.
put framework-res and com.htc.resources
install it and than decompile something
Than you
stona175 said:
to decompile and edit i'm using Virtuous Ten Studio.
this is working apktool.
put framework-res and com.htc.resources
install it and than decompile something
Click to expand...
Click to collapse
Thanks for the link, i tried it but still getting the same error as i get with other version of apktools.. what are other software requirements? like jdk & stuff?
C:\Users\apk>apktool d Settings.apk
I: Baksmaling...
testI: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Shami\apktool\framework\1.apk
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Shami\apktool\framework\2.apk
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR27
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\apk>apktool b Settings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'accessibility_power_button_ends_call' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
aapt: warning: string 'accessibility_power_button_ends_call_summary' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
aapt: warning: string 'bluetooth_disconnect_pan_profile' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in tl
aapt: warning: string 'bluetooth_pan_profile_summary_connected' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
aapt: warning: string 'bluetooth_tethering_connected_subtext' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
aapt: warning: string 'user_dict_settings_title' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
aapt: warning: string 'wifi_tether_settings_subtext' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
aapt: warning: string 'wifi_tether_settings_text' has no default translation in C:\Users\Shami\apk\Settings\res; found: ca in rm tl
I: Building apk file...
Yes, the framework-res from your rom doesn't decompile. Use the UOL kitchen to build it again. Then you can decompile and recompile it again without errors. At least that worked for me. By the way great rom you made.
Sent from my HTC Desire S using xda premium
Send me the file i will decompile and compile for you
Sent from my HTC One X using xda premium

Apktool Fail Compile

Hello there, I'm trying to compile SystemUI.apk but always gives me an error.
I have tried to load but I also framework.apk error:
Config flags size > 38. Exceeding bytes: 0x2400.
W: Invalid config flags detected. Dropping resources: string-ERR0
W: Config flags size > 38. Exceeding bytes: 0x9C00.
W: Invalid config flags detected. Dropping resources: string-ERR1
W: Config flags size > 38. Exceeding bytes: 0x2A02.
W: Invalid config flags detected. Dropping resources: string-ERR2
W: Config flags size > 38. Exceeding bytes: 0x9C00.
W: Invalid config flags detected. Dropping resources: string-ERR3
W: Config flags size > 38. Exceeding bytes: 0x8801.
W: Invalid config flags detected. Dropping resources: string-ERR4
W: Config flags size > 38. Exceeding bytes: 0xE703.
W: Invalid config flags detected. Dropping resources: string-ERR5
W: Config flags size > 38. Exceeding bytes: 0xDE00.
W: Invalid config flags detected. Dropping resources: string-ERR6
W: Config flags size > 38. Exceeding bytes: 0x5401.
W: Invalid config flags detected. Dropping resources: string-ERR7
W: Config flags size > 38. Exceeding bytes: 0xE401.
W: Invalid config flags detected. Dropping resources: string-ERR8
W: Config flags size > 38. Exceeding bytes: 0x4F00.
W: Invalid config flags detected. Dropping resources: string-ERR9
W: Config flags size > 38. Exceeding bytes: 0x4803.
W: Invalid config flags detected. Dropping resources: string-ERR10
W: Config flags size > 38. Exceeding bytes: 0x9C00.
W: Invalid config flags detected. Dropping resources: string-ERR11
W: Config flags size > 38. Exceeding bytes: 0x4803.
W: Invalid config flags detected. Dropping resources: string-ERR12
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x0104005f string/needPuk, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:193)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:162)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:128)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:103)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:607)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:52)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:94)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
The SystemUI.apk descompile is https://www.dropbox.com/s/1p9u168j5gdv6jz/SystemUI.rar?dl=0
Thanks.
spoolk said:
Hello there, I'm trying to compile SystemUI.apk but always gives me an error.
I have tried to load but I also framework.apk error:
Config flags size > 38. Exceeding bytes: 0x2400.
W: Invalid config flags detected. Dropping resources: string-ERR0
W: Config flags size > 38. Exceeding bytes: 0x9C00.
W: Invalid config flags detected. Dropping resources: string-ERR1
W: Config flags size > 38. Exceeding bytes: 0x2A02.
W: Invalid config flags detected. Dropping resources: string-ERR2
W: Config flags size > 38. Exceeding bytes: 0x9C00.
W: Invalid config flags detected. Dropping resources: string-ERR3
W: Config flags size > 38. Exceeding bytes: 0x8801.
W: Invalid config flags detected. Dropping resources: string-ERR4
W: Config flags size > 38. Exceeding bytes: 0xE703.
W: Invalid config flags detected. Dropping resources: string-ERR5
W: Config flags size > 38. Exceeding bytes: 0xDE00.
W: Invalid config flags detected. Dropping resources: string-ERR6
W: Config flags size > 38. Exceeding bytes: 0x5401.
W: Invalid config flags detected. Dropping resources: string-ERR7
W: Config flags size > 38. Exceeding bytes: 0xE401.
W: Invalid config flags detected. Dropping resources: string-ERR8
W: Config flags size > 38. Exceeding bytes: 0x4F00.
W: Invalid config flags detected. Dropping resources: string-ERR9
W: Config flags size > 38. Exceeding bytes: 0x4803.
W: Invalid config flags detected. Dropping resources: string-ERR10
W: Config flags size > 38. Exceeding bytes: 0x9C00.
W: Invalid config flags detected. Dropping resources: string-ERR11
W: Config flags size > 38. Exceeding bytes: 0x4803.
W: Invalid config flags detected. Dropping resources: string-ERR12
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x0104005f string/needPuk, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:193)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:162)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:128)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:103)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:607)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:52)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:94)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
The SystemUI.apk descompile is https://www.dropbox.com/s/1p9u168j5gdv6jz/SystemUI.rar?dl=0
Thanks.
Click to expand...
Click to collapse
You're not alone with this issue. Huawei are using software engineering tools that are not readily available. So trying to decompile these apk's invariably fails.
However, I have had some success with their Settings.apk. I used the framework-res.apk from the MIUI V5 ROM that was ported to the P7. This framework installs and decompiles without error. Using this framework I was able to successfully modify Chinese language strings in the Settings.apk from a customised ROM. Decompiling produces no errors although recompiling produces a number of warnings. The Settings.apk still functions correctly in spite of the warnings so I guess the warnings aren't critical.
If you want, you can download the framework here:
https://drive.google.com/folderview?id=0B6QnIbFOPM4pc0JpS1l2dGRuOWc&usp=sharing
I've had no success with the SystemUI.apk however.
My phone: P7-L07 Custom ROM:HRT-P7-L05/L07-V3.0-B125
Thanks for the info , I'll try your framework.
A greeting .
spoolk said:
Thanks for the info , I'll try your framework.
A greeting .
Click to expand...
Click to collapse
Hi, you had access to decompile SystemUi.apk with this framework?

[Q] How to mod SystemUI on Marshmallow?

I know hoy to use APK Tool and all that stuff, I've extracted framework-res and SystemUI and I want to do some modding, but I can't deompile the SystemUI with APK Tool... I got an error when trying to install the framework.
C:\Users\Jona\Desktop\Nueva carpeta>apktool if framework-res.apk
W: Config flags size > 52. Exceeding bytes: 0x16662214.
W: Invalid config flags detected: string-mcc204-mnc04-ERR0
W: Config flags size > 52. Exceeding bytes: 0x16662214.
W: Invalid config flags detected: array-mcc204-mnc04-ERR1
W: Config flags size > 52. Exceeding bytes: 0x16662214.
W: Invalid config flags detected: bool-mcc204-mnc04-ERR2
I: Framework installed to: C:\Users\Jona\apktool\framework\1.apk
C:\Users\Jona\Desktop\Nueva carpeta>
Do I have to deodex my ROM? And if so, how can I do it?
Any ideas please?
Moto X 2014 Marshmallow, Rooted, Xposed, etc etc etc...

Categories

Resources