DivestOS/Scripts/LineageOS-14.1/Rebrand.sh

32 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
2017-10-31 17:24:35 +00:00
#Copyright (c) 2017 Spot Communications, Inc.
#Updates select user facing strings
2017-10-18 14:00:05 +00:00
echo "Rebranding..."
cd $base"build"
sed -i 's|echo "ro.build.user=$USER"|echo "ro.build.user=emy"|' tools/buildinfo.sh; #Override build user
sed -i 's|echo "ro.build.host=`hostname`"|echo "ro.build.host=dosbm"|' tools/buildinfo.sh; #Override build host
cd $base"packages/apps/Settings"
sed -i '/.*cmlicense_title/s/LineageOS/DivestOS/' res/values*/cm_strings.xml
sed -i '/.*cmupdate_settings_title/s/LineageOS/DivestOS/' res/values*/cm_strings.xml
sed -i '/.*mod_version/s/LineageOS/DivestOS/' res/values*/cm_strings.xml
cd $base"packages/apps/SetupWizard"
2017-10-18 14:00:05 +00:00
sed -i 's|http://lineageos.org/legal|https://divestos.xyz/pages/legal/pp.html|' src/com/cyanogenmod/setupwizard/LineageSettingsActivity.java;
sed -i '/.*setup_services/s/LineageOS/DivestOS/' res/values*/strings.xml
sed -i '/.*services_explanation/s/LineageOS/DivestOS/' res/values*/strings.xml
cd $base"packages/apps/Updater"
sed -i 's|>LineageOS|>DivestOS|' res/values*/strings.xml
cd $base"vendor/cm"
2017-10-22 17:00:01 +00:00
sed -i 's|https://lineageos.org/legal|https://divestos.xyz/pages/about.html|' config/common.mk;
#sed -i '/.*ZIPFILE=/s/lineage/divestos/' build/envsetup.sh
2017-10-19 03:10:20 +00:00
rm -rf bootanimation #TODO: Create a boot animation
2017-10-18 14:00:05 +00:00
cd $base
echo "Rebranding complete!"