Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect apns.xml (framework-res.apk) decoding #187
Original issue 76 created by stari4ek on 2010-07-05T21:52:13.000Z:
I've checked /data/data/com.android.providers.telephony/databases/telephony.db for correct values.
I've attached framework-res.apk from Hero_HTC_RUS_3.32.411.1
Comment #1 originally posted by Brut.alll on 2010-08-29T20:40:44.000Z:
XML attributes are stored in both original/string and parsed/integer form. E.g. if you have "android:layout_width="fill_parent"" in your XML, then it's stored as:
This time it was:
This is the reason, why apktool has removed "0" - this value is stored in XML file with type=integer, so apktool get its int value. But textual value is still there, so we can use it.
I decided to ignore attribute type and use simple algorithm: if there is string value, then use it, if not, then use int value and if it's resource attribute, then decode it to textual form. I hope I won't blow up everything - these few lines of code are critical for apks decoding.
Comment #3 originally posted by Brut.alll on 2010-08-29T21:25:30.000Z:
I have about ~100 apks with different "weirdnesses" and I always rebuild them all before release. This don't give me a sureness, that I didn't break something, but it's better than nothing.