[Android Software Development] kopfspalter:
Hello, Iam using The Viper One S Rom 2.10.

and I tried to decompile the framework-res.apk (1.apk)

When I try to decompile it I get the following error:

C:\Android\APK>apktool d 1.apk

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: AndroidManifest.xml

at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode

r.java:133)

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

)

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

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

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

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

Caused by: brut.directory.PathNotExist: AndroidManifest.xml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:

103)

at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode

r.java:129)

... 5 more

And this is a Htc based rom so I also tried the command:

Apktool if com.htc.resources.apk

I get the following error messages:

C:\Android\APK>Apktool if com.htc.resources.apk

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-mdpi-ERR0

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-mdpi-ERR1

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-mdpi-ERR2

W: Config flags size > 36. Exceeding bytes: 0x6000000.

W: Invalid config flags detected: dimen-mdpi-ERR3

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-hdpi-ERR4

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-hdpi-ERR5

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-hdpi-ERR6

W: Config flags size > 36. Exceeding bytes: 0x6000000.

W: Invalid config flags detected: dimen-hdpi-ERR7

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-xhdpi-ERR8

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-xhdpi-ERR9

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-xhdpi-ERR10

W: Config flags size > 36. Exceeding bytes: 0x6000000.

W: Invalid config flags detected: dimen-xhdpi-ERR11

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-ja-mdpi-ERR12

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-ja-mdpi-ERR13

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-ja-mdpi-ERR14

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-ja-hdpi-ERR15

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-ja-hdpi-ERR16

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-ja-hdpi-ERR17

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-ja-xhdpi-ERR18

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-ja-xhdpi-ERR19

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-ja-xhdpi-ERR20

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-ko-mdpi-ERR21

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-ko-mdpi-ERR22

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-ko-mdpi-ERR23

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-ko-hdpi-ERR24

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-ko-hdpi-ERR25

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-ko-hdpi-ERR26

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-ko-xhdpi-ERR27

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-ko-xhdpi-ERR28

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-ko-xhdpi-ERR29

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-zh-rCN-mdpi-ERR30

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-zh-rCN-mdpi-ERR31

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-zh-rCN-mdpi-ERR32

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR33

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR34

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR35

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR36

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR37

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR38

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-zh-rTW-mdpi-ERR39

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-zh-rTW-mdpi-ERR40

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-zh-rTW-mdpi-ERR41

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR42

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR43

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR44

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR45

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR46

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR47

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: integer-mdpi-ERR48

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: integer-mdpi-ERR49

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: integer-mdpi-ERR50

W: Config flags size > 36. Exceeding bytes: 0x6000000.

W: Invalid config flags detected: integer-mdpi-ERR51

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: integer-hdpi-ERR52

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: integer-hdpi-ERR53

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: integer-hdpi-ERR54

W: Config flags size > 36. Exceeding bytes: 0x6000000.

W: Invalid config flags detected: integer-hdpi-ERR55

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected: integer-xhdpi-ERR56

W: Config flags size > 36. Exceeding bytes: 0x4000000.

W: Invalid config flags detected: integer-xhdpi-ERR57

W: Config flags size > 36. Exceeding bytes: 0x5000000.

W: Invalid config flags detected: integer-xhdpi-ERR58

W: Config flags size > 36. Exceeding bytes: 0x6000000.

W: Invalid config flags detected: integer-xhdpi-ERR59

I: Framework installed to: C:\Users\Foxen\apktool\framework\2.apk

Am I doing something wrong ? .

I am using apktool 1.5.2