Exploit databaseDownload repository ZIP
GH-13794a28e99af8452ce8e4224a1bc216
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138
Sources for CVE-2022-20138
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files5
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138Revision 144017c26d03
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
packages/SystemUI/plugin/update_plugin_lib.sh
Shell · 770 bytes#!/bin/bash
cd $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/plugin
# Clear out anything old.
rm -rf /tmp/plugin_classes/
mkdir /tmp/plugin_classes
# Compile the jar
javac -cp $ANDROID_BUILD_TOP/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar:$ANDROID_BUILD_TOP/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar `find ../plugin*/src -name *.java` -d /tmp/plugin_classes/
echo "" >> /tmp/plugin_classes/manifest.txt
jar cvfm SystemUIPluginLib.jar /tmp/plugin_classes/manifest.txt -C /tmp/plugin_classes .
# Place the jar and update the latest
mv SystemUIPluginLib.jar ./SystemUIPluginLib-`date +%m-%d-%Y`.jar
rm SystemUIPluginLib-latest.jar
ln -s SystemUIPluginLib-`date +%m-%d-%Y`.jar SystemUIPluginLib-latest.jar