zhanwei / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 1 forks source link

Does not load resources from com.mediatek(2.apk) #669

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E:\Phone\Tools\apktool\Settings\res\layout\preference_header_switch_
item.xml:11: error: Error: No resource found that matches the given name (at 'st
yle' with value '@com.mediatek:style/ImageSwitch').

E:\Phone\Tools\apktool\Settings\res\layout\preference_nfc.xml:11: error: Error:
No resource found that matches the given name (at 'style' with value '@com.media
tek:style/ImageSwitch').

E:\Phone\Tools\apktool\Settings\res\layout\preference_sim_info.xml:13: error: Er
ror: No resource found that matches the given name (at 'style' with value '@com.
mediatek:style/ImageSwitch').

E:\Phone\Tools\apktool\Settings\res\layout\preference_sim_info_enabler.xml:15: e
rror: Error: No resource found that matches the given name (at 'style' with valu
e '@com.mediatek:style/ImageSwitch').

E:\Phone\Tools\apktool\Settings\res\layout\sim_widget_view.xml:5: error: Error:
No resource found that matches the given name (at 'style' with value '@com.media
tek:style/ImageSwitch').

E:\Phone\Tools\apktool\Settings\res\layout\wifi_switch_for_oobe.xml:7: error: Er
ror: No resource found that matches the given name (at 'style' with value '@com.
mediatek:style/ImageSwitch').

I have installed the mediatek-res.apk which definitely contains the 
style/ImageSwitch but the apktool is unable to find it. 

Problem could be that apktool is just not loading Resource table from 2.apk

Original issue reported on code.google.com by Devile...@gmail.com on 14 Aug 2014 at 5:54

GoogleCodeExporter commented 9 years ago
I am using Android 4.4.2 

Original comment by Devile...@gmail.com on 14 Aug 2014 at 5:56

GoogleCodeExporter commented 9 years ago
Apktool 2.0.0 beta 9 
Windows 8.1

Original comment by Devile...@gmail.com on 14 Aug 2014 at 7:34

GoogleCodeExporter commented 9 years ago
Can you attach the two frameworks and the file?

Original comment by connor.tumbleson on 14 Aug 2014 at 11:43

GoogleCodeExporter commented 9 years ago
Sure here you go :)
http://d-h.st/iMm

I was decompiling and recompiling the Settings.apk

Original comment by Devile...@gmail.com on 14 Aug 2014 at 2:48

GoogleCodeExporter commented 9 years ago
Add id 2 to apktool.yml before recompiling.

Like so

usesFramework:
  ids:
  - 1
  - 2

Which makes this a duplicate of

Original comment by connor.tumbleson on 16 Aug 2014 at 3:11

GoogleCodeExporter commented 9 years ago
ohk will try this when i get to my lappy

Original comment by Devile...@gmail.com on 16 Aug 2014 at 3:16

GoogleCodeExporter commented 9 years ago
Thnks it worked ;) solved my problem . 

Original comment by Devile...@gmail.com on 16 Aug 2014 at 4:15