mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Fix the deblob script
This commit is contained in:
parent
d62c861942
commit
85cbf32299
@ -1,9 +1,10 @@
|
||||
#!/bin/bash
|
||||
base="/home/tad/Android/Build/LineageOS-14.1/"
|
||||
deblob() {
|
||||
dir=$1
|
||||
blobList=$2;
|
||||
cd $base$dir; #Enter the target directory
|
||||
echo "[DEBLOBBING] "$dir; #Inform the user
|
||||
echo "[DEBLOBBING] "$dir$blobList; #Inform the user
|
||||
initialSize="$(wc -l < $blobList)"; #Record the initial size
|
||||
cp $blobList $blobList".bak"; #Make a backup
|
||||
#
|
||||
@ -15,44 +16,47 @@ deblob() {
|
||||
|
||||
#Nuke CNE/DPM
|
||||
grep -vE "(andsfCne.xml|ATT_profiles.xml|cnd|cneapiclient.jar|cneapiclient.xml|CNEService.apk|com.motorola.motosignature.jar|com.motorola.motosignature.xml|com.qti.dpmframework.jar|com.qti.dpmframework.xml|com.quicinc.cne.jar|com.quicinc.cne.xml|ConnectivityExt.jar|ConnectivityExt.xml|dpmapi.jar|dpmapi.xml|dpm.conf|dpmd|dpmserviceapp.apk|libcneapiclient.so|libcneconn.so|libcneqmiutils.so|libcne.so|libdpmframework.so|libdpmnsrm.so|libNimsWrap.so|libvendorconn.so|libwqe.so|NsrmConfiguration.xml|ROW_profiles.xml|SwimConfig.xml|VZW_profiles.xml)" $blobList > $blobList".new";
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
|
||||
#Nuke DRM files
|
||||
grep -vE "(com.google.widevine.software.drm.jar|com.google.widevine.software.drm.xml|dxhdcp2.b00|dxhdcp2.b01|dxhdcp2.b02|dxhdcp2.b03|dxhdcp2.mdt|libdrmfs.so|libdrmtime.so|libdrmwvmplugin.so|libDxHdcp.so|libmm-hdcpmgr.so|libSHIMDivxDrm.so|libtzdrmgenprov.so|libwvdrmengine.so|libwvdrm_L1.so|libwvdrm_L3.so|libwvm.so|libWVphoneAPI.so|libWVStreamControlAPI_L1.so|libWVStreamControlAPI_L3.so|playread.b00|playread.b01|playread.b02|playread.b03|playread.mdt|widevine.b00|widevine.b01|widevine.b02|widevine.b03|widevine.mdt)" $blobList > $blobList".new";
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
|
||||
#Nuke Sprint files
|
||||
grep -vE "(com.android.omadm.service.xml|ConnMO.apk|CQATest.apk|DCMO.apk|DiagMon.apk|DMConfigUpdate.apk|DMService.apk|GCS.apk|HiddenMenu.apk|libdmengine.so|libdmjavaplugin.so|LifetimeData.apk|SprintDM.apk|SprintHM.apk|whitelist_com.android.omadm.service.xml)" $blobList > $blobList".new";
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
|
||||
#Nuke Verizon files
|
||||
grep -vE "(com.verizon.apn.xml|com.verizon.embms.xml|com.verizon.provider.xml|VerizonUnifiedSettings.jar|VZWAPNLib.apk|VZWAPNService.apk|VZWAVS.apk|VzwLcSilent.apk|vzw_msdc_api.apk|VzwOmaTrigger.apk|vzw_sso_permissions.xml)" $blobList > $blobList".new";
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
|
||||
#
|
||||
#END OF REMOVAL
|
||||
#
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
finalSize="$(wc -l < $blobList)"; #Record the final size
|
||||
delta=$(($initialSize - $finalSize)); #Calculate the difference in size
|
||||
echo "Removed "$delta" blobs from "$blobList; #Inform the user
|
||||
source setup-makefiles.sh; #Update the make files
|
||||
sh -c "cd $base$dir && ./setup-makefiles.sh";
|
||||
}
|
||||
|
||||
deblob "device/amazon/hdx-common/" "proprietary-adreno-files.txt"
|
||||
deblob "device/amazon/hdx-common/" "proprietary-files.txt"
|
||||
deblob "device/amazon/thor/" "proprietary-files.txt"
|
||||
deblob "device/asus/msm8916-common/" "proprietary-files.txt"
|
||||
deblob "device/asus/Z00T/" "proprietary-files.txt"
|
||||
deblob "device/huawei/angler/" "lineage-proprietary-blobs.txt"
|
||||
deblob "device/huawei/angler/" "lineage-proprietary-blobs-vendorimg.txt"
|
||||
deblob "device/huawei/angler/" "proprietary-blobs.txt"
|
||||
deblob "device/google/marlin/" "device-proprietary-files.txt"
|
||||
deblob "device/lge/bullhead/" "proprietary-blobs.txt"
|
||||
deblob "device/lge/bullhead/" "proprietary-blobs-vendorimg.txt"
|
||||
deblob "device/lge/g3-common/" "proprietary-files.txt"
|
||||
deblob "device/lge/hammerhead/" "proprietary-blobs.txt"
|
||||
deblob "device/lge/mako/" "proprietary-blobs.txt"
|
||||
deblob "device/lge/vs985/" "proprietary-files.txt"
|
||||
deblob "device/motorola/clark/" "proprietary-files.txt"
|
||||
deblob "device/moto/shamu/" "device-proprietary-files.txt"
|
||||
deblob "device/oneplus/bacon/" "proprietary-files-qc.txt"
|
||||
deblob "device/oneplus/bacon/" "proprietary-files.txt"
|
||||
deblob "device/oppo/msm8974-common/" "device-proprietary-files.txt"
|
||||
deblob "device/oppo/msm8974-common/" "proprietary-files.txt"
|
||||
deblob "device/amazon/hdx-common/" "proprietary-adreno-files.txt";
|
||||
deblob "device/amazon/hdx-common/" "proprietary-files.txt";
|
||||
deblob "device/amazon/thor/" "proprietary-files.txt";
|
||||
deblob "device/asus/msm8916-common/" "proprietary-files.txt";
|
||||
deblob "device/asus/Z00T/" "proprietary-files.txt";
|
||||
deblob "device/huawei/angler/" "lineage-proprietary-blobs.txt";
|
||||
deblob "device/huawei/angler/" "lineage-proprietary-blobs-vendorimg.txt";
|
||||
deblob "device/huawei/angler/" "proprietary-blobs.txt";
|
||||
deblob "device/google/marlin/" "device-proprietary-files.txt";
|
||||
deblob "device/lge/bullhead/" "proprietary-blobs.txt";
|
||||
deblob "device/lge/bullhead/" "proprietary-blobs-vendorimg.txt";
|
||||
deblob "device/lge/g3-common/" "proprietary-files.txt";
|
||||
deblob "device/lge/hammerhead/" "proprietary-blobs.txt";
|
||||
deblob "device/lge/mako/" "proprietary-blobs.txt";
|
||||
deblob "device/lge/vs985/" "proprietary-files.txt";
|
||||
deblob "device/motorola/clark/" "proprietary-files.txt";
|
||||
deblob "device/moto/shamu/" "device-proprietary-files.txt";
|
||||
deblob "device/oneplus/bacon/" "proprietary-files-qc.txt";
|
||||
deblob "device/oneplus/bacon/" "proprietary-files.txt";
|
||||
deblob "device/oppo/msm8974-common/" "device-proprietary-files.txt";
|
||||
deblob "device/oppo/msm8974-common/" "proprietary-files.txt";
|
||||
|
Loading…
Reference in New Issue
Block a user