summaryrefslogtreecommitdiffstats
path: root/cmds/idmap
Commit message (Collapse)AuthorAgeFilesLines
* ZipFileRO: Use precise widths for zip file types.Narayan Kamath2015-06-172-7/+8
| | | | | | | | | | | | | | | | | | getEntryInfo crashes on 64-bit devices because "long" types were being passed int pointers (that pointed to a stack frame) that were reinterpret_cast'ed to long* (sigh.). To fix this issue once and for all, use types with explicitly defined widths. This change also removes some dead invariant checking from Asset.cpp instead of cleaning it up. Note that we've introduced a wart in NativeLibraryHelper, where we need to deal with zlib's uLong type, which is "at least 32 bits wide". bug: 21622286 Change-Id: Iae675a9601db7aae03a8b80b40321d2cc1d97f50
* idmap: scan missing include for sys/stat.hMark Salyzyn2015-04-011-2/+3
| | | | | | | | | | | | scan.cpp gets sys/stat.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for sys/stat.h in this include file. Bug: 19908228 Change-Id: If547e86513b06c536972138ae571c3d9c714ffe9
* Track removal of refcounts from FileMap.Narayan Kamath2015-02-231-3/+3
| | | | | | Use delete instead of release. Change-Id: I25c841b368aa9d51e9259399b94cafa2bbb7a076
* Add missing <sys/file.h> include for flock.Elliott Hughes2015-02-161-0/+1
| | | | Change-Id: I0c66c03aeb4df614f7880a830b95c40f43f804db
* Adjust format strings to work on both 32-bit and 64-bit buildsBernhard Rosenkränzer2014-12-051-2/+2
| | | | | | | | Adjust format strings to not produce Clang warnings in both 32-bit and 64-bit builds Change-Id: I76c29d8d5d0fb4b5e9d9518077652370ffe9e871 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* Add appropriate casts for char16_t.Dan Albert2014-11-201-1/+1
| | | | | | | | C++11 defines a real char16_t, which is not implicitly convertible to uint16_t (and by extension jchar). Add casts as needed. Bug: 18300613 Change-Id: I00752002ef2e938bdb57f70947e8fd53ec103293
* Frameworks/base: Fix two warnings in cmdsAndreas Gampe2014-11-081-1/+1
| | | Change-Id: Ifb9c7fb7a2d28c13010ddc186bea5f5f0daefb4a
* Frameworks/base: Turn on -Wall -Werror in cmdsAndreas Gampe2014-11-074-33/+11
| | | | | | Fix small warnings, turn on -Wall -Werror. Change-Id: Iab1f01a7c7ebd6ba832b75067c5e395f380a1b8b
* Support multiple resource tables with same packageAdam Lesinski2014-06-183-159/+184
| | | | | | | | | | | | | | | | | | | | In order to support APK split features, the resource table needs to support loading multiple resource tables with the same package but potentially new set of type IDs. This adds some complexity as the type ID space changes from dense and ordered to potentially sparse. A ByteBucketArray is used to store the type IDs in a memory efficient way that allows for fast retrieval. In addition, the IDMAP format has changed. We no longer need random access to the type data, since we store the types differently. However, random access to entries of a given type is still required. Change-Id: If6f5be680b405b368941d9c1f2b5d2ddca964160
* Shared library resource supportAdam Lesinski2014-03-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Shared libraries can now export resources for applications to use. Exporting resources works the same way the framework exports resources, by defining the public symbols in res/values/public.xml. Building a shared library requires aapt to be invoked with the --shared-lib option. Shared libraries will be assigned a package ID of 0x00 at build-time. At runtime, all loaded shared libraries will be assigned a new package ID. Currently, shared libraries should not import other shared libraries, as those dependencies will not be loaded at runtime. At runtime, reflection is used to update the package ID of resource symbols in the shared library's R class file. The package name of the R class file is assumed to be the same as the shared library's package name declared in its manifest. This will be customizable in a future commit. See /tests/SharedLibrary/ for examples of a shared library and its client. Bug:12724178 Change-Id: I60c0cb8ab87849f8f8a1a13431562fe8603020a7
* frameworks/base: move idmap from frameworks/nativeColin Cross2014-02-116-0/+1056
idmap depends on libandroidfw, so it should go in frameworks/base. Change-Id: I3c1db3baa355f53d6b523d60f4377e63eff00c30