[P8lite Android Development] XTutorials:
Hi! I've been trying to fix GPS on my dotOS Nougat, and edited the file in the same exact way shown here. But now every time I build it I get a random error which I wouldn't get before the GPS patch.

I've tried building the ROM with/without ninja, and I get 2 different errors:

Without ninja:

Install: /mnt/disks/ssd/dot/out/target/product/alice/root/init.hi6210sft.power.rc
/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of file
Install: /mnt/disks/ssd/dot/out/target/product/alice/root/init.hi6210sft.rc
system/core/rootdir/Android.mk:165: recipe for target '/mnt/disks/ssd/dot/out/target/product/alice/obj/ETC/init.environ.rc_intermediates/init.environ.rc' failed
make: *** [/mnt/disks/ssd/dot/out/target/product/alice/obj/ETC/init.environ.rc_intermediates/init.environ.rc] Error 1
make: *** Waiting for unfinished jobs....
device/huawei/alice/init/../../../../device/huawei/alice/init/init_alice.cpp:99:19: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
for (i = 0; i < buf.size(); i++) {
~ ^ ~~~~~~~~~~
1 warning generated.
make: Leaving directory '/mnt/disks/ssd/dot'
#### make failed to build some targets (10:50 (mm:ss)) ####

With ninja:

[ 87% 42203/48298] Building with Jack: /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex
FAILED: /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex
/bin/bash -c "(rm -f /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex ) && (rm -f /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates
/classes.jack ) && (rm -rf /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc ) && (mkdir -p /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/with
-local/ ) && (mkdir -p /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/ ) && (mkdir -p /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc ) && (r
m -f /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list ) && (touch /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/jav
a-source-list ) && (echo -n 'packages/providers/MediaProvider/src/com/android/providers/media/MediaDocumentsProvider.java packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.ja
va packages/providers/MediaProvider/src/com/android/providers/media/MediaScannerReceiver.java packages/providers/MediaProvider/src/com/android/providers/media/MediaScannerService.java packages/providers/
MediaProvider/src/com/android/providers/media/MediaThumbRequest.java packages/providers/MediaProvider/src/com/android/providers/media/MediaUpgradeReceiver.java packages/providers/MediaProvider/src/com/an
droid/providers/media/MtpReceiver.java packages/providers/MediaProvider/src/com/android/providers/media/MtpService.java packages/providers/MediaProvider/src/com/android/providers/media/RingtonePickerActi
vity.java /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/src/src/com/android/providers/media/IMtpService.java ' >> /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_i
ntermediates/jack-rsc/java-source-list ) && (if [ -d \"/mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/src\" ]; then find /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProv
ider_intermediates/src -name '*.java' >> /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list; fi ) && (tr ' ' '\\n' < /mnt/disks/ssd/dot/out/target/common/
obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list | build/tools/normalize_path.py | sort -u > /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-l
ist-uniq ) && (echo -basedirectory /mnt/disks/ssd/dot > /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex.flags; echo -forceprocessing -include build/core/p
roguard.flags -dontobfuscate -dontoptimize -printmapping /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack_dictionary -include /mnt/disks/ssd/dot/out/target/common/obj/APPS/M
ediaProvider_intermediates/proguard_options -include /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/proguard_options >> /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaPro
vider_intermediates/with-local/classes.dex.flags ) && (if [ -s /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list-uniq ] ; then export tmpEcjArg=\"@/mnt/d
isks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list-uniq\"; else export tmpEcjArg=\"\"; fi; JACK_VERSION=3.36.CANDIDATE /mnt/disks/ssd/dot/out/host/linux-x86/bi
n/jack @build/core/jack-default.args --verbose error -g -D jack.java.source.version=1.8 --classpath /mnt/disks/ssd/dot/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack:/mnt/d
isks/ssd/dot/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack:/mnt/disks/ssd/dot/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jack:/m
nt/disks/ssd/dot/out/
target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack:/mnt/disks/ssd/dot/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jack:/mnt/disks/ssd/dot/out/target/common/obj/JAVA_
LIBRARIES/okhttp_intermediates/classes.jack -D jack.android.min-api-level=25 -D jack.import.resource.policy=keep-first -D jack.import.type.policy=keep-first --output-jack /mnt/disks/ssd/dot/out/target/
common/obj/APPS/MediaProvider_intermediates/classes.jack --output-dex /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc --config-proguard /mnt/disks/ssd/dot/out/target/
common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex.flags \$tmpEcjArg || ( rm -rf /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/classes.jack; exit 41 ) ) && (mv
/mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/classes*.dex /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/ ) && (rm -f /mnt/dis
ks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list ) && (mv /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc/java-source-list-un
iq /mnt/disks/ssd/dot/out/target/common/obj/APPS/MediaProvider_intermediates/jack-rsc.java-source-list )"
ERROR: /mnt/disks/ssd/dot/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4300: The method eraseMiniThumb(long) is undefined for the type MiniThumbFile
ERROR: /mnt/disks/ssd/dot/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4325: The method eraseMiniThumb(long) is undefined for the type MiniThumbFile
ERROR: /mnt/disks/ssd/dot/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:4516: The method eraseMiniThumb(long) is undefined for the type MiniThumbFile
[ 87% 42203/48298] target R.java/Manifest.java: PackageInstaller (/mnt/disks/ssd/dot/out/target/common/obj/APPS/PackageInstaller_intermediates/src/R.stamp)
nothing matches overlay file preference_category_material.xml, for flavor v17
nothing matches overlay file preference_category_material.xml, for flavor v21
[ 87% 42203/48298] Building with Jack: /mnt/disks/ssd/dot/out/target/common/obj/APPS/Dialer_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
build/core/ninja.mk:159: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/disks/ssd/dot'
#### make failed to build some targets (01:20:53 (hh:mm:ss)) ####

Do you have any idea how to fix any of these errors? I'm using the latest OpenKirin source codes, slightly modified to work with dot.

Thanks in advance

Regards,