Commit Graph

201 Commits

Author SHA1 Message Date
Ryszard Wiśniewski
e9db0b3426 Added possibility to mark resource as synthesized, so it won't be included in value XMLs. 2010-04-02 14:19:09 +02:00
Ryszard Wiśniewski
08a95d754c . 2010-04-02 14:17:13 +02:00
Ryszard Wiśniewski
5c27cba88a Rewrited bags factoring mechanisms. 2010-04-02 13:46:26 +02:00
Ryszard Wiśniewski
024b369a6e ResReferenceValue: added type name. 2010-04-02 13:45:46 +02:00
Ryszard Wiśniewski
b636373e1d AndrolibResources.escapeForResXml(): don't insert new-line char to XML output. 2010-04-02 13:42:24 +02:00
Ryszard Wiśniewski
4bd9ea4b60 Storing resources.arsc uncompressed in framework apk files. 2010-04-02 13:38:50 +02:00
Ryszard Wiśniewski
602fd95f8a AndrolibResources.escapeForResXml(): escaping quotes. 2010-04-02 12:44:43 +02:00
Ryszard Wiśniewski
432146c8bb 2010-04-01 18:38:22 +02:00
Ryszard Wiśniewski
9234017707 Added support for framework apks. 2010-04-01 17:38:30 +02:00
Ryszard Wiśniewski
5a6e684f80 AndrolibResources.aaptPackage(): added possibility to package framework resources. 2010-04-01 17:37:23 +02:00
Ryszard Wiśniewski
79a1b564e7 ResTable +hasPackage() 2010-04-01 17:34:16 +02:00
Ryszard Wiśniewski
b8bbbad458 ResFileDecoder: disabled xml-decoding of .html files. 2010-04-01 17:31:57 +02:00
Ryszard Wiśniewski
f4a5e7f910 XmlPullStreamDecoder: added some log messages. 2010-04-01 15:16:33 +02:00
Ryszard Wiśniewski
453d5d1751 Added support for apks which do not have sources or resources. 2010-04-01 14:52:17 +02:00
Ryszard Wiśniewski
f1742c1956 ARSCDecoder: added support for config chunks of size other than 32. 2010-03-27 22:24:05 +01:00
Ryszard Wiśniewski
8094115fbc AndrolibResources.escapeForResXml(): fixed bug triggered when empty string given. 2010-03-27 21:33:42 +01:00
Ryszard Wiśniewski
d35120da35 Added automatic 9-patch workaround. 2010-03-27 21:09:16 +01:00
Ryszard Wiśniewski
dc1a645396 Androlib +buildLib() 2010-03-27 20:02:43 +01:00
Ryszard Wiśniewski
4e49612c18 Androlib: completely rewritten build methods, added changes checking, etc. 2010-03-27 19:49:05 +01:00
Ryszard Wiśniewski
901035d240 ApkDecoder: moved outDir creating from setOutDir() to decode(). 2010-03-27 19:47:09 +01:00
Ryszard Wiśniewski
a955495284 AndrolibResources.aaptPackage(): added assetDir argument. 2010-03-27 19:44:48 +01:00
Ryszard Wiśniewski
43b28c7ee5 AndrolibResources.decode(): get apkFile as ExtFile. 2010-03-26 16:43:36 +01:00
Ryszard Wiśniewski
c09e74c4dd Make messages outputing/logging consistent between files. 2010-03-26 15:40:54 +01:00
Ryszard Wiśniewski
3561384aec +ApkDecoder 2010-03-26 14:32:00 +01:00
Ryszard Wiśniewski
336f61db83 Androlib: replaced decode() by many decode*() methods. 2010-03-26 14:31:34 +01:00
Ryszard Wiśniewski
ecca0d80b7 Androlib: updated to interface changes in brut.directory . 2010-03-26 14:28:51 +01:00
Ryszard Wiśniewski
da2b3d8313 AndrolibResources: using ExtFile to get contents of apk file. 2010-03-26 14:25:43 +01:00
Ryszard Wiśniewski
c41f46cf08 +ExtFile 2010-03-26 14:24:44 +01:00
Ryszard Wiśniewski
96e62f955b ExtMXSerializer.setProperty(): fixed a bug, which makes impossible to set PROPERTY_DEFAULT_ENCODING. 2010-03-26 14:23:16 +01:00
Ryszard Wiśniewski
35efa39be3 Removed unused class ApkFile. 2010-03-25 21:33:31 +01:00
Ryszard Wiśniewski
64fe894062 ExtMXSerializer: added possibility to set default encoding. 2010-03-25 21:15:44 +01:00
Ryszard Wiśniewski
ac1bc7ca54 ExtMXSerializer.startDocument(): new line depends on serializer setup. 2010-03-25 21:01:12 +01:00
Ryszard Wiśniewski
d42798fd92 ResXmlSerializer -> ExtMXSerializer 2010-03-25 21:00:41 +01:00
Ryszard Wiśniewski
a9ab437ae0 Platform-independence improvement. 2010-03-25 13:35:44 +01:00
Ryszard Wiśniewski
3fdde30939 AndrolibResources: added possibility to decode resources.arsc from InputStream. 2010-03-25 11:11:12 +01:00
Ryszard Wiśniewski
51e1a28bda Removed some old code. 2010-03-25 10:53:47 +01:00
Ryszard Wiśniewski
9efcc88170 Removed bits related to decoding res table using jni. 2010-03-25 10:48:01 +01:00
Ryszard Wiśniewski
28cb022d1a AndrolibResources: using ARSCDecoder instead of jni code. 2010-03-25 10:38:55 +01:00
Ryszard Wiśniewski
6a6c34671b +ARSCDecoder 2010-03-25 10:38:11 +01:00
Ryszard Wiśniewski
4e20bfaa79 ResConfigFlags: reduced field sizes, added constructor using loose values, removed some old code. 2010-03-25 10:26:59 +01:00
Ryszard Wiśniewski
4dbfecc003 Added public methods for factoring bag, string and reference values. 2010-03-25 10:15:22 +01:00
Ryszard Wiśniewski
532bdaf74f ResAttrFactory.factory(): returning ResAttr instead of ResValue. 2010-03-25 10:06:18 +01:00
Ryszard Wiśniewski
7a5223cda1 Androlib.buildPackage: deleting out.apk file before packaging.
It fixes bug related to bs command not working.
2010-03-24 11:09:41 +01:00
Ryszard Wiśniewski
a1e9bbaa2b Disabled resIds tagging and updating.
It is now unnecessary, because rebuilt apk has same resIds as original file.
2010-03-24 10:54:26 +01:00
Ryszard Wiśniewski
22a312f544 Generating public.xml file to set same resource IDs as in original apk. 2010-03-24 10:53:43 +01:00
Ryszard Wiśniewski
a82506892d +ResIdValue.serializeToXml 2010-03-24 10:47:34 +01:00
Ryszard Wiśniewski
d626afaf7e android-framework: made some resources public (needed by Google Maps). 2010-03-24 00:02:27 +01:00
Ryszard Wiśniewski
921eae6b8d ResReferenceValue.toResXmlFormat(): adding plus sign for references to ResIdValue. 2010-03-23 23:58:06 +01:00
Ryszard Wiśniewski
77957ae1ae ResReferenceValue: removed some old code. 2010-03-23 23:55:27 +01:00
Ryszard Wiśniewski
62ff8d58df ResIdValue is now not serializable to XML. 2010-03-23 23:21:18 +01:00
Ryszard Wiśniewski
da2b21472e ResValueFactory: added ResIdValue recognition. 2010-03-23 23:17:40 +01:00
Ryszard Wiśniewski
df39ed5488 ResResSpec +hasResource() +hasDefaultResource(). 2010-03-23 23:15:54 +01:00
Ryszard Wiśniewski
d8a9c97f23 AXmlResourceParser.getAttributeValue(): escaping string values. 2010-03-23 21:15:19 +01:00
Ryszard Wiśniewski
ac810d0619 Removed some bits related to C++-based XML decoding. 2010-03-23 21:12:08 +01:00
Ryszard Wiśniewski
a1d9766a90 Decoding XML files using pure-Java AXmlResourceParser instead of ResXmlStreamDecoder. 2010-03-23 21:07:07 +01:00
Ryszard Wiśniewski
17380788c6 AXmlResourceParser: attribute values decoding using ResAttrDecoder. 2010-03-23 20:38:53 +01:00
Ryszard Wiśniewski
6af633590a AXmlResourceParser.getAttributeValue(): returning non-string values using TypedValue.coerceToString(). 2010-03-23 17:00:42 +01:00
Ryszard Wiśniewski
795591f935 AXmlResourceParser.setInput(): implemented using open() method. 2010-03-23 16:56:40 +01:00
Ryszard Wiśniewski
6c375dabed +AXmlResourceParser.AXmlResourceParser(InputStream stream). 2010-03-23 16:55:15 +01:00
Ryszard Wiśniewski
19f06fe98d StringBlock, AXmlResourceParser: use ExtDataInput instead of IntReader and ChunkUtil. 2010-03-23 15:57:23 +01:00
Ryszard Wiśniewski
819d2aa463 Format fix 2010-03-23 14:50:17 +01:00
Ryszard Wiśniewski
20817df69f StringBlock, AXmlResourceParser: reformat. 2010-03-23 12:15:39 +01:00
Ryszard Wiśniewski
4ced4222f9 StringBlock, AXmlResourceParser: reformat. 2010-03-22 17:32:17 +01:00
Ryszard Wiśniewski
843768aad0 StringBlock, AXmlResourceParser: added my copyrights. 2010-03-22 17:29:48 +01:00
Ryszard Wiśniewski
f68d809ea9 +AXmlResourceParser +StringBlock
These are tools from android4me project.
2010-03-22 17:26:59 +01:00
Ryszard Wiśniewski
9afccd60b3 +ResAttrDecoder 2010-03-22 17:01:35 +01:00
Ryszard Wiśniewski
5b7cafa81e format fix 2010-03-22 16:58:27 +01:00
Ryszard Wiśniewski
2973601ee9 +XmlPullStreamDecoder 2010-03-22 16:56:38 +01:00
Ryszard Wiśniewski
814b70f1d5 +XmlResourceParser +AttributeSet 2010-03-22 16:17:44 +01:00
Ryszard Wiśniewski
9bedd6b8e6 ResValueFactory: use type ids stored in TypedValue class. 2010-03-22 16:14:54 +01:00
Ryszard Wiśniewski
93850ff820 +ResValueFactory.factory(int type, int value) 2010-03-22 16:12:09 +01:00
Ryszard Wiśniewski
4213125d5f +ResDimenValue +ResFractionValue 2010-03-22 16:09:49 +01:00
Ryszard Wiśniewski
8ef7d361b2 +LEDataInputStream 2010-03-22 16:06:43 +01:00
Ryszard Wiśniewski
1d4d4e341c ResStringValue: added possibility to set type name. 2010-03-21 19:50:35 +01:00
Ryszard Wiśniewski
1441587bd7 AndrolibSmali.smali(): throws exceptions instead of stopping the VM. 2010-03-17 10:41:08 +01:00
Ryszard Wiśniewski
7ed00631c6 Fixed link to libAndroid.so . 2010-03-17 00:18:11 +01:00
Ryszard Wiśniewski
fe9aa43c05 Moved libAndroid.so to /src/brut/androlib . 2010-03-17 00:03:32 +01:00
Ryszard Wiśniewski
4f78f1bb49 Added submodule brut.androlib.jni . 2010-03-16 23:57:51 +01:00
Ryszard Wiśniewski
9b781a22fa Moved resources.arsc to resource file: /brut/androlib/android-framework.jar . 2010-03-16 23:45:06 +01:00
Ryszard Wiśniewski
c95742f66f Fixed bug in a AndrolibSmali. 2010-03-16 23:35:34 +01:00
Ryszard Wiśniewski
03a98d6a1c Added possibility to not decode resources. 2010-03-13 22:29:03 +01:00
Ryszard Wiśniewski
5577654105 ResValueFactory: modified decPattern a little. 2010-03-13 14:27:47 +01:00
Ryszard Wiśniewski
6d8bd55ba6 Generate warning instead of exception on multipackage apks. 2010-03-13 13:31:02 +01:00
Ryszard Wiśniewski
235bfbc803 + UndefinedResObject 2010-03-13 13:07:08 +01:00
Ryszard Wiśniewski
d165208793 - UndefinedResourceSpec. 2010-03-13 13:02:04 +01:00
Ryszard Wiśniewski
2d9580eb86 ResXmlSerializer: normal value serializing if attr is undefined. 2010-03-13 12:51:13 +01:00
Ryszard Wiśniewski
8c0a1a0c98 + UndefinedResObject 2010-03-13 12:40:47 +01:00
Ryszard Wiśniewski
f65ded9c7c ResXmlSerializer: remove adding "+" to id references. 2010-03-13 12:07:06 +01:00
Ryszard Wiśniewski
510c19c78a ResValueFactory: removed special case for "id" type. 2010-03-13 12:05:23 +01:00
Ryszard Wiśniewski
99ec06d40c Added support for serializing scalar values to "item" tag. 2010-03-13 12:04:07 +01:00
Ryszard Wiśniewski
6634963ab8 ResSmaliUpdater: output warnings instead of throwing exceptions when tagging undefined resId. 2010-03-13 04:25:50 +01:00
Ryszard Wiśniewski
440140b082 + UndefinedResourceSpec 2010-03-13 04:05:49 +01:00
Ryszard Wiśniewski
2ef47b3f60 ResXmlSerializer: do not try to get namespace prefix. 2010-03-13 04:03:24 +01:00
Ryszard Wiśniewski
6353e27395 ResValueFactory: small fix in regex. 2010-03-13 04:01:48 +01:00
Ryszard Wiśniewski
37bb440daf ResXmlSerializer: parsing of attributes that aren't in android namespace. 2010-03-13 02:25:11 +01:00
Ryszard Wiśniewski
7200c2efb8 ResValueFactory: string value parsing using regexes. 2010-03-13 02:22:45 +01:00
Ryszard Wiśniewski
a469b8b0b3 Modified resources.arsc file to make some resources public.
Needed by some "weird" apps, for example DeskClock.apk .
2010-03-12 23:39:49 +01:00
Ryszard Wiśniewski
329c966196 Readded escaping of non-Android attributes in xml resources. 2010-03-12 22:02:55 +01:00
Ryszard Wiśniewski
bc67e2efc7 Removed SDK/platforms/*/android.jar dependency. 2010-03-12 16:59:30 +01:00
Ryszard Wiśniewski
a27e1adcde Loading Android resources from a apktool.jar file, rather than from SDK. 2010-03-12 16:54:45 +01:00
Ryszard Wiśniewski
48e1afd6b1 Added current version. 2010-03-12 12:47:56 +01:00