mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Fix deblob script and remove more blobs
This commit is contained in:
parent
360adbdb66
commit
af7ec45cbc
@ -8,55 +8,56 @@ deblob() { #TODO: GPS, IZat, Location Provider, Tether Extensions
|
||||
blobs="";
|
||||
|
||||
#ATFWD
|
||||
blobs+="ATFWD-daemon|atfwd.apk";
|
||||
blobs=$blobs"ATFWD-daemon|atfwd.apk";
|
||||
|
||||
#CNE/DPM XXX: Requires unsetting 'BOARD_USES_QCNE' in BoardConfig.mk and 'persist.cne.feature'/'persist.dpm.feature' in system.prop. XXX: Breaks radio, requires hexediting
|
||||
#blobs+="|andsfCne.xml|ATT_profiles.xml|cnd|cneapiclient.jar|cneapiclient.xml|CNEService.apk|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";
|
||||
#blobs=$blobs"|andsfCne.xml|ATT_profiles.xml|cnd|cneapiclient.jar|cneapiclient.xml|CNEService.apk|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";
|
||||
|
||||
#DivX
|
||||
blobs+="|dxhdcp2.b00|dxhdcp2.b01|dxhdcp2.b02|dxhdcp2.b03|dxhdcp2.mdt|libDxHdcp.so|libSHIMDivxDrm.so";
|
||||
blobs=$blobs"|dxhdcp2.b00|dxhdcp2.b01|dxhdcp2.b02|dxhdcp2.b03|dxhdcp2.mdt|libDxHdcp.so|libSHIMDivxDrm.so";
|
||||
|
||||
#DRM XXX: Breaks FDE
|
||||
#blobs+="|libdrmdecrypt.so|libdrmfs.so|libdrmtime.so|libtzdrmgenprov.so";
|
||||
#blobs=$blobs"|libdrmdecrypt.so|libdrmfs.so|libdrmtime.so|libtzdrmgenprov.so";
|
||||
|
||||
#Google Widevine
|
||||
blobs+="|com.google.widevine.software.drm.jar|com.google.widevine.software.drm.xml|libdrmwvmplugin.so|libwvdrmengine.so|libwvdrm_L1.so|libwvdrm_L3.so|libwvm.so|libWVphoneAPI.so|libWVStreamControlAPI_L1.so|libWVStreamControlAPI_L3.so|widevine.b00|widevine.b01|widevine.b02|widevine.b03|widevine.mdt";
|
||||
blobs=$blobs"|com.google.widevine.software.drm.jar|com.google.widevine.software.drm.xml|libdrmwvmplugin.so|libwvdrmengine.so|libwvdrm_L1.so|libwvdrm_L3.so|libwvm.so|libWVphoneAPI.so|libWVStreamControlAPI_L1.so|libWVStreamControlAPI_L3.so|widevine.b00|widevine.b01|widevine.b02|widevine.b03|widevine.mdt";
|
||||
|
||||
#HDCP
|
||||
blobs+="|libmm-hdcpmgr.so";
|
||||
blobs=$blobs"|libmm-hdcpmgr.so";
|
||||
|
||||
#IPACM
|
||||
blobs+="|ipacm|ipacm-diag";
|
||||
blobs=$blobs"|ipacm|ipacm-diag";
|
||||
rm -rf data-ipa-cfg-mgr;
|
||||
|
||||
#Microsoft Playready
|
||||
blobs+="|playread.b00|playread.b01|playread.b02|playread.b03|playread.mdt";
|
||||
blobs=$blobs"|playread.b00|playread.b01|playread.b02|playread.b03|playread.mdt";
|
||||
|
||||
#Misc
|
||||
blobs+="|libuiblur.so";
|
||||
blobs=$blobs"|libuiblur.so";
|
||||
|
||||
#Motorola
|
||||
blobs+="|com.motorola.motosignature.jar|com.motorola.motosignature.xml|MotoSignatureApp.apk";
|
||||
blobs=$blobs"|com.motorola.motosignature.jar|com.motorola.motosignature.xml|MotoSignatureApp.apk|com.motorola.DirectedSMSProxy.xml|AppDirectedSMSProxy.apk";
|
||||
|
||||
#Sprint
|
||||
blobs+="|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";
|
||||
blobs=$blobs"|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";
|
||||
|
||||
#Venus
|
||||
#blobs+="|venus.b00|venus.b01|venus.b02|venus.b03|venus.b04|venus.mbn|venus.mdt";
|
||||
#blobs=$blobs"|venus.b00|venus.b01|venus.b02|venus.b03|venus.b04|venus.mbn|venus.mdt";
|
||||
|
||||
#Verizon
|
||||
blobs+="|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";
|
||||
blobs=$blobs"|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|com.vzw.vzwapnlib.xml";
|
||||
|
||||
#Voice recognition
|
||||
blobs+="|aonvr1.bin|aonvr2.bin|com.motorola.triggerenroll.xml|HotwordEnrollment.apk|librecoglib.so|libsupermodel.so|libtrainingcheck.so|TriggerEnroll.apk|TriggerTrainingService.apk";
|
||||
blobs=$blobs"|aonvr1.bin|aonvr2.bin|com.motorola.triggerenroll.xml|HotwordEnrollment.apk|librecoglib.so|libsupermodel.so|libtrainingcheck.so|TriggerEnroll.apk|TriggerTrainingService.apk";
|
||||
|
||||
grep -vE "($blobs)" $blobList > $blobList".new"; #Remove the bad blobs from the manifest
|
||||
grep -vE "("$blobs")" $blobList > $blobList".new"; #Remove the bad blobs from the manifest
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
delta=$(($(wc -l < $blobList".bak") - $(wc -l < $blobList))); #Calculate the difference in size
|
||||
echo "Removed "$delta" blobs from "$dir$blobList; #Inform the user
|
||||
sh -c "cd $base$dir && ./setup-makefiles.sh"; #Update the makefiles
|
||||
}
|
||||
|
||||
#Find all using: cd device && find . -name "*proprietary*" | grep -v ".bak"
|
||||
deblob "device/amazon/hdx-common/" "proprietary-adreno-files.txt";
|
||||
deblob "device/amazon/hdx-common/" "proprietary-files.txt";
|
||||
deblob "device/amazon/thor/" "proprietary-files.txt";
|
||||
@ -74,6 +75,7 @@ deblob "device/lge/hammerhead/" "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/moto/shamu/" "proprietary-blobs.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";
|
||||
|
Loading…
Reference in New Issue
Block a user