├── image2.jpg ├── adb_devices.jpg ├── BackupRestoreScripts_v2.zip ├── Android Karoo images ├── image3.jpg ├── image4.jpg ├── image5.jpg ├── image6.jpg ├── image7.jpg └── image8.jpg ├── license.md ├── Karoo_apps_install.sh ├── README.md └── Karoo_Backup.sh /image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/image2.jpg -------------------------------------------------------------------------------- /adb_devices.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/adb_devices.jpg -------------------------------------------------------------------------------- /BackupRestoreScripts_v2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/BackupRestoreScripts_v2.zip -------------------------------------------------------------------------------- /Android Karoo images/image3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/Android Karoo images/image3.jpg -------------------------------------------------------------------------------- /Android Karoo images/image4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/Android Karoo images/image4.jpg -------------------------------------------------------------------------------- /Android Karoo images/image5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/Android Karoo images/image5.jpg -------------------------------------------------------------------------------- /Android Karoo images/image6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/Android Karoo images/image6.jpg -------------------------------------------------------------------------------- /Android Karoo images/image7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/Android Karoo images/image7.jpg -------------------------------------------------------------------------------- /Android Karoo images/image8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnJ80/Karoo-App-Sideloading/HEAD/Android Karoo images/image8.jpg -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | The data in project is freely available for use. No guarantees, warranties or performance is guaranteed. Use is at your own risk. No liability is assumed by the author and that is understood upon reading or using any of the data contained in this project. 2 | -------------------------------------------------------------------------------- /Karoo_apps_install.sh: -------------------------------------------------------------------------------- 1 | printf "Starting installation of Karoo apps. \n\n" 2 | 3 | printf "Removing spaces from filenames. \n\n" 4 | 5 | for karoo_file in ./Karoo/apps/*; 6 | do 7 | echo "removing spaces from apk file:" $karoo_file 8 | mv "$karoo_file" "${karoo_file// /_}"; 9 | done 10 | 11 | printf "Installing Karoo apps.....\n\n\n" 12 | 13 | for file in ./Karoo/apps/*; 14 | do 15 | ./adb install -r $file; 16 | done 17 | 18 | printf "\n\n All Done installing Karoo apps.\n" 19 | 20 | ./adb push ./Karoo/Android/data/net.osmand.plus /sdcard/Android/data 21 | ./adb push ./Karoo/Android/data/de.komoot.android /sdcard/Android/data 22 | ./adb push ./Karoo/data/com.teslacoilsw.launcher /sdcard/data 23 | 24 | printf "\n\nAll Done installing Osman, Komoot and Nova Launcher data.\n" 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Karoo-App-Sideloading 2 | 3 | This project contains a set of scripts that I created that can be used to both backup and restore sideloaded applications on the Hammerhead Karoo bike computer. 4 | 5 | This Bike computer is android based and, as such, will work with the Android developer tools and specifically the Android Deverlopers Bridge (hereafter, "adb"). 6 | 7 | Nothing on this site is either supported, endorsed or provided by Hammerhead. Use is at your own risk. This is provided solely for informtion purposes and is not presented as being bug free or being even good. All I can say that is that as I use them and make them work for my purposes, and I'm sharing them here with the idea that they are informational to others. 8 | 9 | This set of scripts presumes you are on a mac, although being on a Win-doze computer is undoubtedly similar. I use a mac, so this is the context for this information. 10 | 11 | On your Karoo, this presumes you have set it up in developer mode. You will need at least load a launcher and an appstore. I use Nova Launcher which is availble directly from their website. I also use APKpure's app store (also available as an apk directly from them) and Amazon's webstore which typically can be downloaded as an apk from http://www.amazon.com/androidapp on your device the first time. To do that, you will need to use the apkpure appstore and download Firefox and install it and then use that to access the Amazon website at the link above to get the amazon app store apk. Once that is done, you will never have to do this again since the list of apps on your Karoo will contain these apps and you'll be able to bulk load them in using the adb. 12 | 13 | Once you have the Amazon app store installed, then install the ES File Explorer file manager app. This can be used to rapidly backup all your apks and put them in a directory for upload to your mac. 14 | 15 | Once I get this more mature, I'll try and fill in the wiki with directions and pictures. 16 | 17 | Read about what these scripts do and how they work FIRST. Start here at the wiki: 18 | 19 | https://github.com/JohnJ80/Karoo-App-Sideloading/wiki 20 | 21 | -------------------------------------------------------------------------------- /Karoo_Backup.sh: -------------------------------------------------------------------------------- 1 | 2 | SECONDS=0 3 | 4 | printf "*____________________________________________*\n" 5 | printf "* *\n" 6 | printf "* Karoo apps and Nav Backup script *\n" 7 | printf "* *\n" 8 | printf "*____________________________________________*\n" 9 | printf "\n\n\n" 10 | 11 | printf "Setting up directory for backup.\n" 12 | 13 | if (mkdir ./Karoo/apps_backup) 14 | then 15 | printf "Created backup directory with no issues. \n" 16 | else 17 | printf "Using backup directory to backup current apps backup.\n" 18 | fi 19 | 20 | printf "Copying previous backup to backup directory.\n" 21 | 22 | rm -r ./Karoo/apps_backup 23 | cp -R -v ./Karoo/apps ./Karoo/apps_backup 24 | 25 | printf "Backup of apps backed up using ES File Explored installed on Karoo.\n\n" 26 | 27 | rm -r ./Karoo/apps 28 | mkdir ./Karoo/apps 29 | 30 | ./adb pull /sdcard/backups/apps ./Karoo 31 | 32 | printf "\n\n Backing up of Osmand data and maps.\n\n" 33 | if (mkdir ./Karoo/data_backup) 34 | then 35 | printf "Created map data backup directory with no issues. \n" 36 | else 37 | printf "Using map data backup directory to backup current data backup.\n" 38 | fi 39 | 40 | 41 | printf "\n Backing up old Osmand data and maps. \n\n" 42 | rm -r ./Karoo/data_backup 43 | cp -R -v ./Karoo/Android/data ./Karoo/data_backup 44 | 45 | rm -r ./Karoo/Android/data 46 | mkdir ./Karoo/Android/data 47 | 48 | ./adb pull -a /sdcard/Android/data/net.osmand.plus ./Karoo/Android/data 49 | 50 | printf "Backing up of Komoot Data." 51 | 52 | ./adb pull -a /sdcard/Android/data/de.komoot.android ./Karoo/Android/data 53 | 54 | printf "\n\nBacking up Nova Launcher data including backups.\n\n" 55 | 56 | ./adb pull -a /sdcard/data/com.teslacoilsw.launcher ./Karoo/data/ 57 | 58 | printf "\n\nAll done backup up Karoo apps plus Osmand and Komoot data.\n" 59 | 60 | printf "Renaming backed up apps without spaces in their names for easy re-install.\n" 61 | 62 | printf "Starting to Rename files \n" 63 | 64 | for karoo_file in ./Karoo/apps/*; 65 | do 66 | echo "removing spaces from apk file:" $karoo_file 67 | mv "$karoo_file" "${karoo_file// /_}"; 68 | done 69 | 70 | printf "\nList of backed up apps.\n\n" 71 | 72 | ls ./Karoo/apps 73 | 74 | printf "\nList of backed up Osmand maps.\n" 75 | 76 | ls -al ./Karoo/Android/data/net.osmand.plus/files/*.obf 77 | 78 | printf "\n List of other files backed up.\n" 79 | ls -al ./Karoo/data 80 | 81 | printf "\n\n\n --------All Done!---------\n\n\n" 82 | duration=$SECONDS 83 | duration=$SECONDS 84 | echo " $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." 85 | printf "\n\n" 86 | --------------------------------------------------------------------------------