2017-10-18 07:54:56 -04:00
|
|
|
#!/bin/bash
|
2017-11-05 10:58:01 -05:00
|
|
|
#DivestOS: A privacy oriented Android distribution
|
2018-01-19 03:14:25 -05:00
|
|
|
#Copyright (c) 2017-2018 Spot Communications, Inc.
|
2017-11-05 10:58:01 -05:00
|
|
|
#
|
|
|
|
#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/>.
|
2017-10-18 07:54:56 -04:00
|
|
|
|
|
|
|
#Updates select user facing strings
|
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
echo "Rebranding...";
|
2017-10-18 10:00:05 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "bootable/recovery";
|
2017-11-10 12:23:07 -05:00
|
|
|
sed -i 's|Android Recovery|DivestOS Recovery|' *_ui.cpp;
|
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "build";
|
2017-10-19 19:19:26 -04: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-03-23 09:37:08 -04:00
|
|
|
sed -i '/CM_TARGET_PACKAGE/s/lineage/coverage/' core/Makefile;
|
2017-10-19 19:19:26 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "packages/apps/Settings";
|
2018-04-03 09:10:49 -04:00
|
|
|
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;
|
2017-10-18 07:54:56 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "packages/apps/SetupWizard";
|
2017-10-18 10:00:05 -04:00
|
|
|
sed -i 's|http://lineageos.org/legal|https://divestos.xyz/pages/legal/pp.html|' src/com/cyanogenmod/setupwizard/LineageSettingsActivity.java;
|
2018-04-03 09:10:49 -04:00
|
|
|
sed -i '/.*setup_services/s/LineageOS/DivestOS/' res/values*/strings.xml;
|
|
|
|
sed -i '/.*services_explanation/s/LineageOS/DivestOS/' res/values*/strings.xml;
|
2018-03-28 16:14:03 -04:00
|
|
|
cp $patches"android_packages_apps_SetupWizard/logo.xml" "res/drawable/logo.xml"; #Replace Lineage logo with ours
|
2017-10-18 07:54:56 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "packages/apps/Updater";
|
2018-04-03 09:10:49 -04:00
|
|
|
sed -i 's|>LineageOS|>DivestOS|' res/values*/strings.xml;
|
2017-10-18 07:54:56 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "vendor/cm";
|
2017-10-22 13:00:01 -04:00
|
|
|
sed -i 's|https://lineageos.org/legal|https://divestos.xyz/pages/about.html|' config/common.mk;
|
2018-03-22 09:49:44 -04:00
|
|
|
sed -i '/.*ZIPPATH=/s/lineage/coverage/' build/envsetup.sh;
|
2017-10-18 23:10:20 -04:00
|
|
|
rm -rf bootanimation #TODO: Create a boot animation
|
2017-10-18 10:00:05 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
cd $base;
|
|
|
|
echo "Rebranding complete!";
|