Skip to content

Commit

Permalink
blobs extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
ezio84 committed Feb 4, 2018
1 parent 1afa5a2 commit 11ffe84
Show file tree
Hide file tree
Showing 8 changed files with 1,275 additions and 0 deletions.
Binary file not shown.
50 changes: 50 additions & 0 deletions blobs-extraction-deodexing/vdex/blobs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# special prefix characters:
# - define as a prebuilt package
#

bin/ssr_setup
bin/subsystem_ramdump
etc/permissions/cneapiclient.xml
etc/permissions/com.android.omadm.service.xml
etc/permissions/com.android.sdm.plugins.connmo.xml
etc/permissions/com.android.sdm.plugins.sprintdm.xml
etc/permissions/com.google.android.camera.experimental2016.xml
etc/permissions/privapp-permissions-angler.xml
etc/permissions/privapp-permissions-google.xml
etc/permissions/privapp-permissions-platform.xml
etc/permissions/qcrilhook.xml
etc/sysconfig/angler_common.xml
etc/sysconfig/whitelist_com.android.omadm.service.xml
-framework/com.google.android.camera.experimental2016.jar
-framework/qcrilhook.jar
lib64/libManufacture.so
lib64/libManufacture.so
lib64/libtinyxml2.so
lib/libdmengine.so
lib/libdmengine.so:priv-app/DMService/lib/arm/libdmengine.so
lib/libdmjavaplugin.so
lib/libdmjavaplugin.so:priv-app/DMService/lib/arm/libdmjavaplugin.so
lib/libfilterpack_facedetect.so
lib/libmm-qcamera.so
lib/libtinyxml2.so
-app/HwMMITest/HwMMITest.apk
-app/SetupSmartDeviceOverlay/SetupSmartDeviceOverlay.apk:PRESIGNED
-app/HwSarControlService/HwSarControlService.apk
-app/Tycho/Tycho.apk:app/Tycho/Tycho.apk:PRESIGNED
-priv-app/atfwd/atfwd.apk
-priv-app/CallStatistics/CallStatistics.apk:priv-app/CallStatistics/CallStatistics.apk
-priv-app/CarrierServices/CarrierServices.apk:priv-app/CarrierServices/CarrierServices.apk:PRESIGNED
-priv-app/CarrierSetup/CarrierSetup.apk:priv-app/CarrierSetup/CarrierSetup.apk
-priv-app/CNEService/CNEService.apk
-priv-app/ConnMO/ConnMO.apk
-priv-app/DCMO/DCMO.apk
-priv-app/DiagMon/DiagMon.apk
-priv-app/DMService/DMService.apk
-priv-app/Entitlement/Entitlement.apk:priv-app/Entitlement/Entitlement.apk
-priv-app/GCS/GCS.apk:priv-app/GCS/GCS.apk:PRESIGNED
-priv-app/HiddenMenu/HiddenMenu.apk
-priv-app/HotwordEnrollmentOKGoogleWCD9330/HotwordEnrollmentOKGoogleWCD9330.apk:priv-app/HotwordEnrollmentOKGoogleWCD9330/HotwordEnrollmentOKGoogleWCD9330.apk:PRESIGNED
-priv-app/HotwordEnrollmentTGoogleWCD9330/HotwordEnrollmentTGoogleWCD9330.apk:priv-app/HotwordEnrollmentTGoogleWCD9330/HotwordEnrollmentTGoogleWCD9330.apk:PRESIGNED
-priv-app/HotwordEnrollmentXGoogleWCD9330/HotwordEnrollmentXGoogleWCD9330.apk:priv-app/HotwordEnrollmentXGoogleWCD9330/HotwordEnrollmentXGoogleWCD9330.apk:PRESIGNED
-priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk
-priv-app/SprintDM/SprintDM.apk
42 changes: 42 additions & 0 deletions blobs-extraction-deodexing/vdex/extract-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash -e
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS 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.
#
export VENDOR="$2"
export DEVICE="$3"

# Load extractutils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

REPO_ROOT="$MY_DIR"
ROM_ROOT="$REPO_ROOT"
HELPER=

HELPER="$REPO_ROOT/extract_utils.sh"

if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"

SRC=$1

setup_vendor "$DEVICE" "$VENDOR" "$REPO_ROOT"

# Extract the device specific files that always occur in /system
extract "$MY_DIR/blobs.txt" "$SRC"
42 changes: 42 additions & 0 deletions blobs-extraction-deodexing/vdex/extract-main-gapps-apk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash -e
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS 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.
#
export VENDOR="gapps"
export DEVICE="arm64"

# Load extractutils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

REPO_ROOT="$MY_DIR"
ROM_ROOT="$REPO_ROOT"
HELPER=

HELPER="$REPO_ROOT/extract_utils.sh"

if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"

SRC=$1

setup_vendor "$DEVICE" "$VENDOR" "$REPO_ROOT"

# Extract the device specific files that always occur in /system
extract "$MY_DIR/gapps.txt" "$SRC"
Loading

0 comments on commit 11ffe84

Please sign in to comment.