[Android Software Development] weirdgyn:
Hallo... thanks for your support. Today I tried it again.

I tried using AMT.bat and it works installing framework but at the time I try do decompile the app (Bla Bla Car btw) I got this error:

## Decompile apk

APKTOOL JAR = Program_Files\apktool.jar
APK NAME = HondaAppCenter_A1
SOURCE APK = Files\HondaAppCenter_A1.apk
DECOMPILED APK FOLDER = Decompiled_apk\HondaAppCenter_A1

## Decompiling Files\HondaAppCenter_A1.apk...

I: Using Apktool 2.1.1 on HondaAppCenter_A1.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\m.santucci\apktool\framework\1.apk

I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x01010435
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x0101042c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0101045c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0101045c
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010479
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:58)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:72)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:513)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)

# Press any key to continue or CTRL + C to break

Pretty strange isn't it?

Anyway I think I understood what's going on. If I did not 'install' the framework-res.apk and decompile the application everything works.

The application is decompiled correctly (i.e. I got no errors). I can also recompile it, sign it and the application correctly installs and run on the target android system (for safety reasons I just removed it after the first run).

The framework-res.apk comes from the target device (Honda Connect) that runs Android 4.0.4 probably customized in some manner so it lacks of some lib (i.e. brut ?? and some resources) ... is it a reasonable diagnosis?

Again I need to know if the process of decompiling -> modify AndroidManifest.xml (and other layout .xml files) -> recompile -> sign .apk .... is safe or it can result in a unstable device. I cannot get Honda Connect into recovery mode (unless some of you wizards find a way to hack it) so I need to know If I'm going to take a reasonable risk or not.

..... and PLEASE correct "press a ket to continue" .... unless you have a ketboard ;)

BTW when I decompile the apk the framework file is created automatically (maybe is found statically linked in the app?)

Best regards,

Michele Santucci