universal7885: FMRadio: Remove source edit

If the AIDL hal which can be allowed to change uid calls audioflinger API to change route, we don't need to change source for it. seteuid(audioserver_uid) will work fine
This commit is contained in:
roynatech2544 2022-10-08 01:09:57 +09:00
commit 946f4768e9
11 changed files with 27 additions and 39 deletions

View file

@ -24,11 +24,6 @@ for dev in a10dd a10 a20 a20e a30 a30s a40; do
bash ${UNIVERSAL}/setup.sh "$dev"
done
# For FM Radio
if grep -q isAudioServerUid\(callingUid\) frameworks/av/services/audioflinger/AudioFlinger.cpp; then
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"