Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## need to switch java version..
- #~/Desktop/Parallels Shared Folders/sciaps-device/xrf/hardwareservice
- # Build Android Firmware XRF
- cd /opt/aosp \
- && . build/envsetup.sh \
- && lunch full_phenix-eng \
- && rm -rf /opt/aosp/out/target/product \
- && rm -rf root* \
- && rm -rf out/target/product/phenix/rootfs_staging \
- && m \
- && m root.ubi \
- && cp /opt/aosp/root.ubifs /media/psf/Dropbox/Documents/freelance/SciAps/binaries/xrf_SciAps_Ubuntu_Android_17/ \
- && cp /opt/aosp/root.ubi /media/psf/Dropbox/Documents/freelance/SciAps/binaries/xrf_SciAps_Ubuntu_Android_17/
- # Build Linux Kernel for XRF (make sure to switch to the dev branch)
- cd /opt/aosp \
- && . build/envsetup.sh \
- && lunch full_phenix-eng \
- && m cleankernel \
- && m kernel \
- && cp /opt/aosp/kernel/sciaps/phenix/arch/arm/boot/uImage ~/Documents
- # Build FastFP
- cd /opt/aosp/vendor/sciaps/ \
- && rm -rf /opt/aosp/vendor/sciaps/FastFP \
- && cp -R /media/psf/Home/Dropbox/Documents/freelance/SciAps/github/FastFP /opt/aosp/vendor/sciaps \
- && cd /opt/aosp/vendor/sciaps/FastFP \
- && make native-build android-build android-strip archive \
- && cp build/android/out/lib/libFastFP.so /media/psf/Home/Dropbox/Documents/freelance/SciAps/misc/scripts/Install_XRF_FastFP/ \
- && cd /media/psf/Home/Dropbox/Documents/freelance/SciAps/misc/scripts/Install_XRF_FastFP/ \
- && zip -r Install_XRF_FastFP.sup . \
- && cd /opt/aosp/vendor/sciaps/FastFP
- # Full Install XRF Service
- # && rm -rf out/target/product/phenix/ \
- cd /opt/aosp/ \
- && rm -rf out/target/product/phenix/ \
- && cd /opt/aosp/ \
- && rm -rf /opt/aosp/device/sciaps/ \
- && cp -R "/home/timnuwin/Desktop/Parallels Shared Folders/sciaps-device" /opt/aosp/device/sciaps \
- && . build/envsetup.sh \
- && lunch full_phenix-eng \
- && m XRFService \
- XRFComputeService \
- com.sciaps.xrfhardware \
- libXRFService_jni \
- libXRoadsSci \
- && cp out/target/product/phenix/system/bin/XRFService ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/bin/XRFComputeService ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/lib/libusb1.0.so ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/lib/libXRoadsSci.so ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/lib/libXRFService_jni.so ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/framework/com.sciaps.xrfhardware.jar ~/Documents/xrfservice/ \
- && cd ~/Documents/xrfservice/ \
- && zip -r Install_XRFService.sup . \
- && cd /opt/aosp
- # Quick Install XRF Service
- cd /opt/aosp/ \
- && cd /opt/aosp/ \
- && rm -rf /opt/aosp/device/sciaps/ \
- && cp -R "/home/timnuwin/Desktop/Parallels Shared Folders/sciaps-device" /opt/aosp/device/sciaps \
- && . build/envsetup.sh \
- && lunch full_phenix-eng \
- && m XRFService \
- XRFComputeService \
- com.sciaps.xrfhardware \
- libXRFService_jni \
- libXRoadsSci \
- && cp out/target/product/phenix/system/bin/XRFService ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/bin/XRFComputeService ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/lib/libusb1.0.so ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/lib/libXRoadsSci.so ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/lib/libXRFService_jni.so ~/Documents/xrfservice/ \
- && cp out/target/product/phenix/system/framework/com.sciaps.xrfhardware.jar ~/Documents/xrfservice/ \
- && cd ~/Documents/xrfservice/ \
- && zip -r Install_XRFService.sup . \
- && cd /opt/aosp
- #/opt/aosp/device/sciaps
- ##### ONLY JARRING IT UP...
- cd /opt/aosp/ \
- && cd /opt/aosp/ \
- && rm -rf /opt/aosp/device/sciaps/ \
- && cp -R "/home/timnuwin/Desktop/Parallels Shared Folders/sciaps-device" /opt/aosp/device/sciaps \
- && . build/envsetup.sh \
- && lunch full_phenix-eng \
- && m com.sciaps.xrfhardware \
- && cp out/target/product/phenix/system/framework/com.sciaps.xrfhardware.jar ~/Documents/xrfservice/ \
- && cd /opt/aosp
- ##### BUILD JAR w/ classes exposed...
- cd /opt/aosp/device/sciaps/xrf/hardwareservice/
- ./gradlew clean build
- cp /opt/aosp/device/sciaps/xrf/hardwareservice/build/libs/xrfhardware-2.0.3.jar /home/timnuwin/Documents/xrfservice_hardware_for_android/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement