universal7885: vendorsetup: remove FMRadio

remove FMRadio. We have our own FMRadio and it will give u an error: "Multiple definiton"
This commit is contained in:
kevios12 2022-04-11 10:40:18 +02:00 committed by GitHub
commit 0164a22774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
FM_PATH="packages/apps/FMRadio"
rm -rf hardware/samsung
if [ -e ~/.git-credentials ]; then
MODE="https://"
@ -40,3 +41,8 @@ if grep -q isAudioServerUid\(callingUid\) frameworks/av/services/audioflinger/Au
echo "Applying FM routing patch"
sed -i 's/isAudioServerUid(callingUid)/isAudioServerOrSystemServerUid(callingUid)/g' frameworks/av/services/audioflinger/AudioFlinger.cpp
fi
# Remove multiple declared FMRadio path (we have our own FMRadio and this cause build error)
if [ -d "$FM_PATH" ]; then
echo "Remove FMRadio from ROM Source"
rm -Rf $FM_PATH;
fi