[General Questions and Answers] jingsaw2859:
Reply

I used apktool to decompile the launcher, my device is using HuaweiLauncher3 for 2.3.6 and I want HuaweiLauncher6 for this device so I'm asking you guys how to port it, also I got error when decompiling it and I got no apktool.yml and I can't recompile. My apktool decompile log:

C:\Users\MAGNUM\Desktop\Apktool>apktool d HwLauncher6.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\MAGNUM\apktool\framework\1.apk

I: Loaded.

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b003f

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0040

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0041

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0042

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0043

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0044

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0045

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0046

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0009

W: Could not decode attr value, using undecoded value instead: ns=android, name=

hardwareAccelerated, value=0x7f090000

W: Could not decode attr value, using undecoded value instead: ns=android, name=

largeHeap, value=0x7f090001

W: Could not decode attr value, using undecoded value instead: ns=android, name=

theme, value=0x7f0d0019

W: Could not decode attr value, using undecoded value instead: ns=android, name=

theme, value=0x7f0d0017

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:

0x7f070000

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen

ceValue.java:62)

at brut.androlib.res.data.value.ResEnumAttr.serializeBody(ResEnumAttr.ja

va:56)

at brut.androlib.res.data.value.ResAttr.serializeToResValuesXml(ResAttr.

java:64)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour

ces.java:418)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:241

)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)

at brut.apktool.Main.cmdDecode(Main.java:141)

at brut.apktool.Main.main(Main.java:72)

My recompile log:

C:\Users\MAGNUM\Desktop\Apktool>apktool d HwLauncher6.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\MAGNUM\apktool\framework\1.apk

I: Loaded.

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b003f

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0040

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0041

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0042

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0043

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0044

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0045

W: Could not decode attr value, using undecoded value instead: ns=android, name=

description, value=0x7f0b0046

W: Could not decode attr value, using undecoded value instead: ns=android, name=

label, value=0x7f0b0009

W: Could not decode attr value, using undecoded value instead: ns=android, name=

hardwareAccelerated, value=0x7f090000

W: Could not decode attr value, using undecoded value instead: ns=android, name=

largeHeap, value=0x7f090001

W: Could not decode attr value, using undecoded value instead: ns=android, name=

theme, value=0x7f0d0019

W: Could not decode attr value, using undecoded value instead: ns=android, name=

theme, value=0x7f0d0017

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:

0x7f070000

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen

ceValue.java:62)

at brut.androlib.res.data.value.ResEnumAttr.serializeBody(ResEnumAttr.ja

va:56)

at brut.androlib.res.data.value.ResAttr.serializeToResValuesXml(ResAttr.

java:64)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour

ces.java:418)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:241

)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)

at brut.apktool.Main.cmdDecode(Main.java:141)

at brut.apktool.Main.main(Main.java:72)

I can't tell you where I got the APK from because it's not letting me post links, but you can find it by searching "Emotion UI Launcher download" on Google and it will be the third one from top to bottom, I got the Launcher for smartphone one. Oh yeah I remembered, I changed my phone SDK to 15 on the build.PROP and the app just crashed, so please help :o