mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
#!/bin/bash
|
|
#Copyright (c) 2017 Spot Communications, Inc.
|
|
|
|
#Updates select user facing strings
|
|
|
|
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"
|
|
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"
|
|
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
|
|
rm -rf bootanimation #TODO: Create a boot animation
|
|
|
|
cd $base
|
|
echo "Rebranding complete!"
|