19d9cc6233c7035c32d3b8622aa5dc7d413193dc7Adam Lesinski#!/bin/bash 260293197379e522c870c4a28462804207bab505dAdam Lesinski# 360293197379e522c870c4a28462804207bab505dAdam Lesinski# Copyright (C) 2014 The Android Open Source Project 460293197379e522c870c4a28462804207bab505dAdam Lesinski# 560293197379e522c870c4a28462804207bab505dAdam Lesinski# Licensed under the Apache License, Version 2.0 (the "License"); 660293197379e522c870c4a28462804207bab505dAdam Lesinski# you may not use this file except in compliance with the License. 760293197379e522c870c4a28462804207bab505dAdam Lesinski# You may obtain a copy of the License at 860293197379e522c870c4a28462804207bab505dAdam Lesinski# 960293197379e522c870c4a28462804207bab505dAdam Lesinski# http://www.apache.org/licenses/LICENSE-2.0 1060293197379e522c870c4a28462804207bab505dAdam Lesinski# 1160293197379e522c870c4a28462804207bab505dAdam Lesinski# Unless required by applicable law or agreed to in writing, software 1260293197379e522c870c4a28462804207bab505dAdam Lesinski# distributed under the License is distributed on an "AS IS" BASIS, 1360293197379e522c870c4a28462804207bab505dAdam Lesinski# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1460293197379e522c870c4a28462804207bab505dAdam Lesinski# See the License for the specific language governing permissions and 1560293197379e522c870c4a28462804207bab505dAdam Lesinski# limitations under the License. 1660293197379e522c870c4a28462804207bab505dAdam Lesinski# 179d9cc6233c7035c32d3b8622aa5dc7d413193dc7Adam Lesinski 189d9cc6233c7035c32d3b8622aa5dc7d413193dc7Adam Lesinskiaapt package -x -M AndroidManifest.xml -S res -F bundle.apk -f && \ 199d9cc6233c7035c32d3b8622aa5dc7d413193dc7Adam Lesinskiunzip bundle.apk resources.arsc && \ 209d9cc6233c7035c32d3b8622aa5dc7d413193dc7Adam Lesinskimv resources.arsc system.arsc && \ 219d9cc6233c7035c32d3b8622aa5dc7d413193dc7Adam Lesinskixxd -i system.arsc > system_arsc.h 22