2 # inherit variables from the parent script by running it as ". script.sh"
4 # a hack to skim down : remove vendor-specific RIL
6 TELEPHONY
="tmp/${FILE}.out/smali/com/android/internal/telephony/"
8 GARBAGE
=($
(find "$TELEPHONY" -name "*RIL*" -a -not -name "RIL*"))
9 elif [[ $RIL == SonyQualcommRIL
]]; then # needs to be before *Qualcomm*RIL
10 GARBAGE
=($
(find "$TELEPHONY" -name "*RIL*" -a -not -name "RIL*" -a -not -name "${RIL}*"))
11 elif [[ $RIL == SamsungQualcommD2RIL
]]; then
12 GARBAGE
=($
(find "$TELEPHONY" -name "*RIL*" -a -not -name "RIL*" -a -not -name "${RIL}*" -a -not -name "SamsungQualcommUiccRIL*" -a -not -name "QualcommSharedRIL*" ))
13 elif [[ $RIL == *Qualcomm
*RIL
]]; then
14 GARBAGE
=($
(find "$TELEPHONY" -name "*RIL*" -a -not -name "RIL*" -a -not -name "${RIL}*" -a -not -name "QualcommSharedRIL*" ))
16 GARBAGE
=($
(find "$TELEPHONY" -name "*RIL*" -a -not -name "RIL*" -a -not -name "${RIL}*"))
18 if [[ -n ${GARBAGE[@]} ]]; then
19 printtask
"... remove unnecessary ${#GARBAGE[@]} files to avoid methods cap ..."
20 echo "DELETE RILS= ${GARBAGE[@]}" >> "$LOG"