2018-02-11 23:50:18 -05:00
|
|
|
#!/bin/bash
|
|
|
|
#DivestOS: A privacy oriented Android distribution
|
|
|
|
#Copyright (c) 2017-2018 Spot Communications, Inc.
|
|
|
|
#
|
|
|
|
#This program is free software: you can redistribute it and/or modify
|
|
|
|
#it under the terms of the GNU General Public License as published by
|
|
|
|
#the Free Software Foundation, either version 3 of the License, or
|
|
|
|
#(at your option) any later version.
|
|
|
|
#
|
|
|
|
#This program is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
|
|
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#Updates select user facing strings
|
|
|
|
|
|
|
|
echo "Rebranding..."
|
|
|
|
|
|
|
|
enter "bootable/recovery"
|
|
|
|
sed -i 's|Android Recovery|DivestOS Recovery|' *_ui.cpp;
|
|
|
|
|
2018-02-12 04:00:28 -05:00
|
|
|
enter "build/make"
|
2018-02-11 23:50:18 -05:00
|
|
|
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
|
|
|
|
|
2018-02-28 08:17:17 -05:00
|
|
|
enter "packages/apps/Settings"
|
|
|
|
sed -i '/.*lineagelicense_title/s/LineageOS/DivestOS/' res/values*/cm_strings.xml
|
2018-02-12 04:00:28 -05:00
|
|
|
#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
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-02-28 08:17:17 -05:00
|
|
|
enter "packages/apps/SetupWizard"
|
|
|
|
sed -i 's|http://lineageos.org/legal|https://divestos.xyz/pages/legal/pp.html|' src/org/lineageos/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
|
2018-02-11 23:50:18 -05:00
|
|
|
|
|
|
|
enter "packages/apps/Updater"
|
|
|
|
sed -i 's|>LineageOS|>DivestOS|' res/values*/strings.xml
|
|
|
|
|
2018-02-12 04:00:28 -05:00
|
|
|
enter "vendor/lineage"
|
2018-02-11 23:50:18 -05:00
|
|
|
sed -i 's|https://lineageos.org/legal|https://divestos.xyz/pages/about.html|' config/common.mk;
|
2018-03-22 08:29:40 -04:00
|
|
|
sed -i '/.*ZIPFILE=/s/lineage/divestos/' build/envsetup.sh;
|
2018-02-11 23:50:18 -05:00
|
|
|
rm -rf bootanimation #TODO: Create a boot animation
|
|
|
|
|
|
|
|
cd $base
|
|
|
|
echo "Rebranding complete!"
|