This directory contains code-snippets from the Android Dalvik implementation and the TaintDroid additions to that project. This is why some of the files contain the standard Apache header comment. Some of those files were modified to match our usecase but this includes mainly deletions.
Here is the combined header comment for those files:
/*
- Copyright (C) 2008 The Android Open Source Project
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License. */
/*
- Access .dex (Dalvik Executable Format) files. The code here assumes that
- the DEX file has been rewritten (byte-swapped, word-aligned) and that
- the contents can be directly accessed as a collection of C arrays. Please
- see docs/dalvik/dex-format.html for a detailed description.
- The structure and field names were chosen to match those in the DEX spec.
- It's generally assumed that the DEX file will be stored in shared memory,
- obviating the need to copy code and constant pool entries into newly
- allocated storage. Maintaining local pointers to items in the shared area
- is valid and encouraged.
- All memory-mapped structures are 32-bit aligned unless otherwise noted. */