aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Sagalara <mail@kasesag.me>2026-06-19 19:08:11 +0200
committerKacper Sagalara <mail@kasesag.me>2026-06-19 19:08:11 +0200
commit7821c02171d77229797e3a57edd0502e942373cc (patch)
tree2856fdb7f36144c6e539cfedacd475bf10458ce1
parent0339c6b9e1cafffc2e37c47df4277157fc678041 (diff)
Add missing files.HEADmaster
-rw-r--r--.gitignore1
-rw-r--r--LICENSE674
-rw-r--r--Makefile46
-rw-r--r--README.md2
-rw-r--r--res/apks/apps/OpenBoard.apkbin0 -> 52721423 bytes
-rw-r--r--res/apks/priv-apps/DriedLamuAssistant.apkbin0 -> 62108 bytes
-rw-r--r--res/apks/priv-apps/Lawnchair.apkbin0 -> 17270215 bytes
-rw-r--r--res/configs/preferred-apps/preferred-apps-driedlamu.xml58
-rw-r--r--res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml4
-rw-r--r--res/media/alarms/Barium.oggbin0 -> 51499 bytes
-rw-r--r--res/media/alarms/Hassium.oggbin0 -> 147068 bytes
-rw-r--r--res/media/alarms/NuclearLaunch.oggbin0 -> 65601 bytes
-rw-r--r--res/media/alarms/Scandium.oggbin0 -> 47812 bytes
-rw-r--r--res/media/alarms/Timer.oggbin0 -> 96320 bytes
-rw-r--r--res/media/notifications/Adara.oggbin0 -> 10414 bytes
-rw-r--r--res/media/notifications/Aldebaran.oggbin0 -> 7593 bytes
-rw-r--r--res/media/notifications/Altair.oggbin0 -> 7021 bytes
-rw-r--r--res/media/notifications/Alya.oggbin0 -> 8927 bytes
-rw-r--r--res/media/notifications/Antares.oggbin0 -> 10375 bytes
-rw-r--r--res/media/notifications/Antimony.oggbin0 -> 27849 bytes
-rw-r--r--res/media/notifications/Arcturus.oggbin0 -> 7933 bytes
-rw-r--r--res/media/notifications/Argon.oggbin0 -> 15851 bytes
-rw-r--r--res/media/notifications/Ariel.oggbin0 -> 60950 bytes
-rw-r--r--res/media/notifications/Beat_Box_Android.oggbin0 -> 34601 bytes
-rw-r--r--res/media/notifications/Bellatrix.oggbin0 -> 15714 bytes
-rw-r--r--res/media/notifications/Beryllium.oggbin0 -> 19381 bytes
-rw-r--r--res/media/notifications/Betelgeuse.oggbin0 -> 16108 bytes
-rw-r--r--res/media/notifications/CaffeineSnake.oggbin0 -> 19121 bytes
-rw-r--r--res/media/notifications/Canopus.oggbin0 -> 11948 bytes
-rw-r--r--res/media/notifications/Capella.oggbin0 -> 13126 bytes
-rw-r--r--res/media/notifications/Carme.oggbin0 -> 34830 bytes
-rw-r--r--res/media/notifications/Castor.oggbin0 -> 14648 bytes
-rw-r--r--res/media/notifications/Ceres.oggbin0 -> 39805 bytes
-rw-r--r--res/media/notifications/CetiAlpha.oggbin0 -> 26158 bytes
-rw-r--r--res/media/notifications/Cobalt.oggbin0 -> 18121 bytes
-rw-r--r--res/media/notifications/Cricket.oggbin0 -> 10936 bytes
-rw-r--r--res/media/notifications/DearDeer.oggbin0 -> 18659 bytes
-rw-r--r--res/media/notifications/Deneb.oggbin0 -> 14416 bytes
-rw-r--r--res/media/notifications/Doink.oggbin0 -> 8911 bytes
-rw-r--r--res/media/notifications/DontPanic.oggbin0 -> 16985 bytes
-rw-r--r--res/media/notifications/Drip.oggbin0 -> 13244 bytes
-rw-r--r--res/media/notifications/Elara.oggbin0 -> 36963 bytes
-rw-r--r--res/media/notifications/Electra.oggbin0 -> 15199 bytes
-rw-r--r--res/media/notifications/Europa.oggbin0 -> 26143 bytes
-rw-r--r--res/media/notifications/F1_New_SMS.oggbin0 -> 11941 bytes
-rw-r--r--res/media/notifications/Fluorine.oggbin0 -> 18674 bytes
-rw-r--r--res/media/notifications/Fomalhaut.oggbin0 -> 22003 bytes
-rw-r--r--res/media/notifications/Gallium.oggbin0 -> 12214 bytes
-rw-r--r--res/media/notifications/Heaven.oggbin0 -> 38517 bytes
-rw-r--r--res/media/notifications/Helium.oggbin0 -> 7445 bytes
-rw-r--r--res/media/notifications/Highwire.oggbin0 -> 18442 bytes
-rw-r--r--res/media/notifications/Hojus.oggbin0 -> 13986 bytes
-rw-r--r--res/media/notifications/Iapetus.oggbin0 -> 45046 bytes
-rw-r--r--res/media/notifications/Io.oggbin0 -> 40129 bytes
-rw-r--r--res/media/notifications/Iridium.oggbin0 -> 58227 bytes
-rw-r--r--res/media/notifications/Krypton.oggbin0 -> 11566 bytes
-rw-r--r--res/media/notifications/KzurbSonar.oggbin0 -> 15619 bytes
-rw-r--r--res/media/notifications/Laser.oggbin0 -> 11575 bytes
-rw-r--r--res/media/notifications/Merope.oggbin0 -> 18854 bytes
-rw-r--r--res/media/notifications/Mira.oggbin0 -> 17711 bytes
-rw-r--r--res/media/notifications/Naughty.oggbin0 -> 31725 bytes
-rw-r--r--res/media/notifications/OnTheHunt.oggbin0 -> 20052 bytes
-rw-r--r--res/media/notifications/Palladium.oggbin0 -> 14645 bytes
-rw-r--r--res/media/notifications/Plastic_Pipe.oggbin0 -> 6652 bytes
-rw-r--r--res/media/notifications/Polaris.oggbin0 -> 20531 bytes
-rw-r--r--res/media/notifications/Pollux.oggbin0 -> 23463 bytes
-rw-r--r--res/media/notifications/Pong.oggbin0 -> 36542 bytes
-rw-r--r--res/media/notifications/Procyon.oggbin0 -> 22344 bytes
-rw-r--r--res/media/notifications/Proxima.oggbin0 -> 13244 bytes
-rw-r--r--res/media/notifications/Radon.oggbin0 -> 25356 bytes
-rw-r--r--res/media/notifications/Rang.oggbin0 -> 95315 bytes
-rw-r--r--res/media/notifications/Rhea.oggbin0 -> 22540 bytes
-rw-r--r--res/media/notifications/Rubidium.oggbin0 -> 21191 bytes
-rw-r--r--res/media/notifications/Salacia.oggbin0 -> 40548 bytes
-rw-r--r--res/media/notifications/Selenium.oggbin0 -> 10893 bytes
-rw-r--r--res/media/notifications/Shaula.oggbin0 -> 24298 bytes
-rw-r--r--res/media/notifications/Sirrah.oggbin0 -> 20976 bytes
-rw-r--r--res/media/notifications/Spica.oggbin0 -> 9069 bytes
-rw-r--r--res/media/notifications/Stone.oggbin0 -> 56319 bytes
-rw-r--r--res/media/notifications/Strontium.oggbin0 -> 39203 bytes
-rw-r--r--res/media/notifications/Syrma.oggbin0 -> 8479 bytes
-rw-r--r--res/media/notifications/TaDa.oggbin0 -> 43522 bytes
-rw-r--r--res/media/notifications/Talitha.oggbin0 -> 10435 bytes
-rw-r--r--res/media/notifications/Tethys.oggbin0 -> 40075 bytes
-rw-r--r--res/media/notifications/Thallium.oggbin0 -> 18235 bytes
-rw-r--r--res/media/notifications/Titan.oggbin0 -> 32387 bytes
-rw-r--r--res/media/notifications/Upsilon.oggbin0 -> 24040 bytes
-rw-r--r--res/media/notifications/Vega.oggbin0 -> 29310 bytes
-rw-r--r--res/media/notifications/Voila.oggbin0 -> 16487 bytes
-rw-r--r--res/media/notifications/Xenon.oggbin0 -> 27860 bytes
-rw-r--r--res/media/notifications/Zirconium.oggbin0 -> 12697 bytes
-rw-r--r--res/media/notifications/moonbeam.oggbin0 -> 16243 bytes
-rw-r--r--res/media/notifications/pixiedust.oggbin0 -> 16905 bytes
-rw-r--r--res/media/notifications/pizzicato.oggbin0 -> 18884 bytes
-rw-r--r--res/media/notifications/regulus.oggbin0 -> 27852 bytes
-rw-r--r--res/media/notifications/sirius.oggbin0 -> 26612 bytes
-rw-r--r--res/media/notifications/tweeters.oggbin0 -> 10421 bytes
-rw-r--r--res/media/ringtones/Andromeda.oggbin0 -> 24973 bytes
-rw-r--r--res/media/ringtones/Aquila.oggbin0 -> 21457 bytes
-rw-r--r--res/media/ringtones/ArgoNavis.oggbin0 -> 225891 bytes
-rw-r--r--res/media/ringtones/Attentive.oggbin0 -> 550264 bytes
-rw-r--r--res/media/ringtones/BOOTES.oggbin0 -> 26310 bytes
-rw-r--r--res/media/ringtones/Backroad.oggbin0 -> 36049 bytes
-rw-r--r--res/media/ringtones/BeatPlucker.oggbin0 -> 28433 bytes
-rw-r--r--res/media/ringtones/BentleyDubs.oggbin0 -> 30759 bytes
-rw-r--r--res/media/ringtones/Big_Easy.oggbin0 -> 46673 bytes
-rw-r--r--res/media/ringtones/BirdLoop.oggbin0 -> 41828 bytes
-rw-r--r--res/media/ringtones/Bollywood.oggbin0 -> 39174 bytes
-rw-r--r--res/media/ringtones/Boxbeat.oggbin0 -> 712951 bytes
-rw-r--r--res/media/ringtones/BussaMove.oggbin0 -> 48968 bytes
-rw-r--r--res/media/ringtones/CASSIOPEIA.oggbin0 -> 31941 bytes
-rw-r--r--res/media/ringtones/Cairo.oggbin0 -> 37672 bytes
-rw-r--r--res/media/ringtones/Callisto.oggbin0 -> 405681 bytes
-rw-r--r--res/media/ringtones/Calypso_Steel.oggbin0 -> 38875 bytes
-rw-r--r--res/media/ringtones/CanisMajor.oggbin0 -> 31133 bytes
-rw-r--r--res/media/ringtones/CaribbeanIce.oggbin0 -> 30615 bytes
-rw-r--r--res/media/ringtones/Carina.oggbin0 -> 15384 bytes
-rw-r--r--res/media/ringtones/Centaurus.oggbin0 -> 27644 bytes
-rw-r--r--res/media/ringtones/Champagne_Edition.oggbin0 -> 39921 bytes
-rw-r--r--res/media/ringtones/Club_Cubano.oggbin0 -> 37179 bytes
-rw-r--r--res/media/ringtones/CrayonRock.oggbin0 -> 37952 bytes
-rw-r--r--res/media/ringtones/CrazyDream.oggbin0 -> 206809 bytes
-rw-r--r--res/media/ringtones/CurveBall.oggbin0 -> 30925 bytes
-rw-r--r--res/media/ringtones/Cygnus.oggbin0 -> 29807 bytes
-rw-r--r--res/media/ringtones/DancinFool.oggbin0 -> 61434 bytes
-rw-r--r--res/media/ringtones/Dione.oggbin0 -> 344043 bytes
-rw-r--r--res/media/ringtones/DonMessWivIt.oggbin0 -> 50545 bytes
-rw-r--r--res/media/ringtones/Draco.oggbin0 -> 31778 bytes
-rw-r--r--res/media/ringtones/DreamTheme.oggbin0 -> 175423 bytes
-rw-r--r--res/media/ringtones/Eastern_Sky.oggbin0 -> 50578 bytes
-rw-r--r--res/media/ringtones/Enter_the_Nexus.oggbin0 -> 61699 bytes
-rw-r--r--res/media/ringtones/Eridani.oggbin0 -> 36585 bytes
-rw-r--r--res/media/ringtones/EtherShake.oggbin0 -> 31563 bytes
-rw-r--r--res/media/ringtones/FreeFlight.oggbin0 -> 113055 bytes
-rw-r--r--res/media/ringtones/FriendlyGhost.oggbin0 -> 46425 bytes
-rw-r--r--res/media/ringtones/Funk_Yall.oggbin0 -> 39738 bytes
-rw-r--r--res/media/ringtones/GameOverGuitar.oggbin0 -> 49978 bytes
-rw-r--r--res/media/ringtones/Ganymede.oggbin0 -> 135334 bytes
-rw-r--r--res/media/ringtones/Gimme_Mo_Town.oggbin0 -> 38688 bytes
-rw-r--r--res/media/ringtones/Girtab.oggbin0 -> 44376 bytes
-rw-r--r--res/media/ringtones/Glacial_Groove.oggbin0 -> 54923 bytes
-rw-r--r--res/media/ringtones/Growl.oggbin0 -> 41094 bytes
-rw-r--r--res/media/ringtones/HalfwayHome.oggbin0 -> 68588 bytes
-rw-r--r--res/media/ringtones/Highscore.oggbin0 -> 217486 bytes
-rw-r--r--res/media/ringtones/Hydra.oggbin0 -> 22924 bytes
-rw-r--r--res/media/ringtones/InsertCoin.oggbin0 -> 15146 bytes
-rw-r--r--res/media/ringtones/Kuma.oggbin0 -> 164867 bytes
-rw-r--r--res/media/ringtones/LoopyLounge.oggbin0 -> 38307 bytes
-rw-r--r--res/media/ringtones/LoveFlute.oggbin0 -> 34627 bytes
-rw-r--r--res/media/ringtones/Luna.oggbin0 -> 114250 bytes
-rw-r--r--res/media/ringtones/Lyon.oggbin0 -> 111064 bytes
-rw-r--r--res/media/ringtones/Lyra.oggbin0 -> 42540 bytes
-rw-r--r--res/media/ringtones/Machina.oggbin0 -> 38054 bytes
-rw-r--r--res/media/ringtones/MidEvilJaunt.oggbin0 -> 28124 bytes
-rw-r--r--res/media/ringtones/Momentum.oggbin0 -> 1062393 bytes
-rw-r--r--res/media/ringtones/Moto.oggbin0 -> 170669 bytes
-rw-r--r--res/media/ringtones/Nairobi.oggbin0 -> 41355 bytes
-rw-r--r--res/media/ringtones/Nassau.oggbin0 -> 44104 bytes
-rw-r--r--res/media/ringtones/NewPlayer.oggbin0 -> 15563 bytes
-rw-r--r--res/media/ringtones/No_Limits.oggbin0 -> 32933 bytes
-rw-r--r--res/media/ringtones/Noises2.oggbin0 -> 39025 bytes
-rw-r--r--res/media/ringtones/Noises3.oggbin0 -> 26662 bytes
-rw-r--r--res/media/ringtones/Oberon.oggbin0 -> 465727 bytes
-rw-r--r--res/media/ringtones/OrganDub.oggbin0 -> 32640 bytes
-rw-r--r--res/media/ringtones/Orion.oggbin0 -> 54419 bytes
-rw-r--r--res/media/ringtones/Paradise_Island.oggbin0 -> 39199 bytes
-rw-r--r--res/media/ringtones/Pegasus.oggbin0 -> 86694 bytes
-rw-r--r--res/media/ringtones/Perseus.oggbin0 -> 236343 bytes
-rw-r--r--res/media/ringtones/Phobos.oggbin0 -> 115442 bytes
-rw-r--r--res/media/ringtones/Playa.oggbin0 -> 56616 bytes
-rw-r--r--res/media/ringtones/PyxisMaterial.oggbin0 -> 629613 bytes
-rw-r--r--res/media/ringtones/Rasalas.oggbin0 -> 178685 bytes
-rw-r--r--res/media/ringtones/Revelation.oggbin0 -> 52536 bytes
-rw-r--r--res/media/ringtones/Rigel.oggbin0 -> 57764 bytes
-rw-r--r--res/media/ringtones/Ring_Classic_02.oggbin0 -> 59024 bytes
-rw-r--r--res/media/ringtones/Ring_Digital_02.oggbin0 -> 21007 bytes
-rw-r--r--res/media/ringtones/Ring_Synth_02.oggbin0 -> 52809 bytes
-rw-r--r--res/media/ringtones/Ring_Synth_04.oggbin0 -> 43965 bytes
-rw-r--r--res/media/ringtones/Road_Trip.oggbin0 -> 49108 bytes
-rw-r--r--res/media/ringtones/Rockin.oggbin0 -> 216000 bytes
-rw-r--r--res/media/ringtones/RomancingTheTone.oggbin0 -> 31641 bytes
-rw-r--r--res/media/ringtones/Safari.oggbin0 -> 42220 bytes
-rw-r--r--res/media/ringtones/Savannah.oggbin0 -> 39138 bytes
-rw-r--r--res/media/ringtones/Scarabaeus.oggbin0 -> 108945 bytes
-rw-r--r--res/media/ringtones/Sceptrum.oggbin0 -> 316370 bytes
-rw-r--r--res/media/ringtones/Sedna.oggbin0 -> 197002 bytes
-rw-r--r--res/media/ringtones/Seville.oggbin0 -> 44422 bytes
-rw-r--r--res/media/ringtones/Sheep.mp3bin0 -> 35759 bytes
-rw-r--r--res/media/ringtones/Shes_All_That.oggbin0 -> 39413 bytes
-rw-r--r--res/media/ringtones/SilkyWay.oggbin0 -> 44186 bytes
-rw-r--r--res/media/ringtones/Simple.oggbin0 -> 1134690 bytes
-rw-r--r--res/media/ringtones/SitarVsSitar.oggbin0 -> 28898 bytes
-rw-r--r--res/media/ringtones/Solarium.oggbin0 -> 89515 bytes
-rw-r--r--res/media/ringtones/SpringyJalopy.oggbin0 -> 26144 bytes
-rw-r--r--res/media/ringtones/Steppin_Out.oggbin0 -> 37847 bytes
-rw-r--r--res/media/ringtones/Terminated.oggbin0 -> 36620 bytes
-rw-r--r--res/media/ringtones/Testudo.oggbin0 -> 72078 bytes
-rw-r--r--res/media/ringtones/Themos.oggbin0 -> 175478 bytes
-rw-r--r--res/media/ringtones/Third_Eye.oggbin0 -> 36539 bytes
-rw-r--r--res/media/ringtones/Thunderfoot.oggbin0 -> 46049 bytes
-rw-r--r--res/media/ringtones/Titania.oggbin0 -> 683708 bytes
-rw-r--r--res/media/ringtones/Triton.oggbin0 -> 471219 bytes
-rw-r--r--res/media/ringtones/TwirlAway.oggbin0 -> 26298 bytes
-rw-r--r--res/media/ringtones/Umbriel.oggbin0 -> 246893 bytes
-rw-r--r--res/media/ringtones/UrsaMinor.oggbin0 -> 185005 bytes
-rw-r--r--res/media/ringtones/VeryAlarmed.oggbin0 -> 28691 bytes
-rw-r--r--res/media/ringtones/Vespa.oggbin0 -> 18043 bytes
-rw-r--r--res/media/ringtones/World.oggbin0 -> 31136 bytes
-rw-r--r--res/media/ringtones/Yukaay.oggbin0 -> 603651 bytes
-rw-r--r--res/media/ringtones/Zeta.oggbin0 -> 77919 bytes
-rw-r--r--res/microg/apks/apps/GoogleCalendarSyncAdapter.apkbin0 -> 2484539 bytes
-rw-r--r--res/microg/apks/apps/GoogleContactsSyncAdapter.apkbin0 -> 1571497 bytes
-rw-r--r--res/microg/permissions/apps/permissions-com.google.android.gms.xml27
-rw-r--r--res/microg/permissions/apps/permissions-google-sync.xml21
-rw-r--r--res/microg/permissions/priv-apps/com.google.android.maps.xml5
-rw-r--r--res/microg/permissions/priv-apps/privapp-permissions-org.microG.xml62
-rw-r--r--res/microg/signatures-google/gms/APKSigningBlockbin0 -> 16384 bytes
-rw-r--r--res/microg/signatures-google/gms/APKSigningBlockOffset1
-rw-r--r--res/microg/signatures-google/phonesky/APKSigningBlockbin0 -> 12288 bytes
-rw-r--r--res/microg/signatures-google/phonesky/APKSigningBlockOffset1
-rw-r--r--res/microg/system/framework/com.google.android.maps.jarbin0 -> 142919 bytes
-rw-r--r--res/microg/system/lib/arm64/libconscrypt_gmscore_jni.sobin0 -> 2111792 bytes
-rw-r--r--res/microg/system/lib/arm64/libcronet.102.0.5005.125.sobin0 -> 6034224 bytes
-rw-r--r--res/microg/system/lib/arm64/libmapbox-gl.sobin0 -> 9911176 bytes
-rw-r--r--res/microg/system/lib/armeabi-v7a/libconscrypt_gmscore_jni.sobin0 -> 1288128 bytes
-rw-r--r--res/microg/system/lib/armeabi-v7a/libcronet.102.0.5005.125.sobin0 -> 3309728 bytes
-rw-r--r--res/microg/system/lib/armeabi-v7a/libmapbox-gl.sobin0 -> 7384204 bytes
-rw-r--r--res/permissions/apps/default-permissions-org.dslul.openboard.inputmethod.latin.xml9
-rw-r--r--res/permissions/priv-apps/privapp-permissions-app.lawnchair.xml61
-rw-r--r--res/permissions/priv-apps/privapp-permissions-me.kasesag.driedlamu.asistant.xml6
-rwxr-xr-xscripts/add_media.sh29
-rwxr-xr-xscripts/apk_obtain_permissions.sh49
-rw-r--r--scripts/bloatware/bloatware.json720
-rwxr-xr-xscripts/bloatware/main.sh21
-rwxr-xr-xscripts/configs/main.sh20
-rwxr-xr-xscripts/configs/modify_configs.sh57
-rwxr-xr-xscripts/configs/remove_configs.sh95
-rwxr-xr-xscripts/download_apks.sh65
-rwxr-xr-xscripts/install_apks.sh57
-rwxr-xr-xscripts/microg.sh130
-rwxr-xr-xscripts/permissions/install_permissions.sh37
-rwxr-xr-xscripts/permissions/main.sh14
-rwxr-xr-xscripts/permissions/remove_permissions.sh154
-rwxr-xr-xscripts/props.sh115
-rwxr-xr-xstages/build.sh334
-rwxr-xr-xstages/config.sh116
-rwxr-xr-xstages/flash.sh83
-rwxr-xr-xutils/bin/fectool/fecbin0 -> 1572304 bytes
-rw-r--r--utils/bin/fectool/ld-linux-x86-64.so.2bin0 -> 236616 bytes
-rw-r--r--utils/bin/fectool/libc++.sobin0 -> 1306312 bytes
-rw-r--r--utils/bin/fectool/libdl.so.2bin0 -> 14408 bytes
-rw-r--r--utils/bin/fectool/libgcc_s.so.1bin0 -> 183024 bytes
-rw-r--r--utils/bin/fectool/libm.so.6bin0 -> 952616 bytes
-rw-r--r--utils/bin/fectool/libpthread.so.0bin0 -> 14408 bytes
-rw-r--r--utils/bin/fectool/libresolv.so.2bin0 -> 68104 bytes
-rw-r--r--utils/bin/fectool/librt.so.1bin0 -> 14624 bytes
-rw-r--r--utils/jar/apktool.jarbin0 -> 25925346 bytes
-rwxr-xr-xutils/scripts/add_to_fs.sh29
-rwxr-xr-xutils/scripts/list_packages.sh7
-rwxr-xr-xutils/scripts/modify_apk.sh50
260 files changed, 3159 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index b7962d5..721df4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,6 @@ unpacked
super.img
super_raw.img
.config
+.old
prototype
firmware
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0eb36d7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
+.PHONY: help
+
+define HEADER
+ ____ _ _ _
+| _ \ _ __(_) ___ __| | | __ _ _ __ ___ _ _
+| | | | '__| |/ _ \/ _` | | / _` | '_ ` _ \| | | |
+| |_| | | | | __/ (_| | |__| (_| | | | | | | |_| |
+|____/|_| |_|\___|\__,_|_____\__,_|_| |_| |_|\__,_|
+
+DriedLamu Firmware
+https://kasesag.me/projects/driedlamu
+https://git.firestarter.house/driedlamu.git
+endef
+export HEADER
+
+info:
+ @echo "$$HEADER"
+ @echo ""
+ @echo "Debloated firmware for G15/lamu Builder"
+ @echo "This project is a fork of DebloatedMotoWeed for G13."
+ @echo "Original source: https://github.com/moto-penangf/DebloatedMotoWeed"
+ @echo ""
+ @echo "Available options: info, clean, build, flash-fresh, flash-upgrade, config"
+flash:
+ @echo "$$HEADER"
+ @echo ""
+ @echo "Available options: flash-fresh, flash-upgrade"
+clean:
+ @echo "$$HEADER"
+ @echo ""
+ rm -rf ./unpacked && rm -rf /tmp/driedlamu && rm -rf ./super.img
+build:
+ @echo "$$HEADER"
+ @echo ""
+ @FECTOOL_DIR=$(shell cd $(dir $(lastword $(MAKEFILE_LIST))) && pwd)/utils/bin/fectool \
+ PATH=$$PATH:$$FECTOOL_DIR \
+ ./stages/build.sh
+flash-fresh:
+ @echo ""
+ ./stages/flash.sh fresh
+flash-upgrade:
+ @echo "$$HEADER"
+ @echo ""
+ ./stages/flash.sh upgrade
+config:
+ ./stages/config.sh
diff --git a/README.md b/README.md
index 533d855..952d806 100644
--- a/README.md
+++ b/README.md
@@ -84,8 +84,8 @@ Original source: https://github.com/moto-penangf/DebloatedMotoWeed
- Run ```make flash``` script to flash DriedLamu on your device.
- Run ```make upgrade``` script to upgrade DriedLamu on your device (might not always work).
-
### Credits
- https://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/blackview_bv5300_pro
- https://github.com/WeiguangTWK/fec-standalone-for-AVBTool
- https://github.com/moto-penangf/DebloatedMotoWeed/
+- https://github.com/IsHacker003/microg_no_sigspoof
diff --git a/res/apks/apps/OpenBoard.apk b/res/apks/apps/OpenBoard.apk
new file mode 100644
index 0000000..ed76304
--- /dev/null
+++ b/res/apks/apps/OpenBoard.apk
Binary files differ
diff --git a/res/apks/priv-apps/DriedLamuAssistant.apk b/res/apks/priv-apps/DriedLamuAssistant.apk
new file mode 100644
index 0000000..bacd4c6
--- /dev/null
+++ b/res/apks/priv-apps/DriedLamuAssistant.apk
Binary files differ
diff --git a/res/apks/priv-apps/Lawnchair.apk b/res/apks/priv-apps/Lawnchair.apk
new file mode 100644
index 0000000..effc56d
--- /dev/null
+++ b/res/apks/priv-apps/Lawnchair.apk
Binary files differ
diff --git a/res/configs/preferred-apps/preferred-apps-driedlamu.xml b/res/configs/preferred-apps/preferred-apps-driedlamu.xml
new file mode 100644
index 0000000..157b249
--- /dev/null
+++ b/res/configs/preferred-apps/preferred-apps-driedlamu.xml
@@ -0,0 +1,58 @@
+<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
+<preferred-activities>
+ <item name="org.fossify.phone/.activities.DialpadActivity">
+ <filter>
+ <action name="android.intent.action.VIEW" />
+ <action name="android.intent.action.DIAL" />
+ <cat name="android.intent.category.DEFAULT" />
+ <cat name="android.intent.category.BROWSABLE" />
+
+ <scheme name="tel" />
+ </filter>
+ </item>
+
+ <item name="org.fossify.phone/.activities.DialerActivity">
+ <filter>
+ <action name="android.intent.action.CALL" />
+ <cat name="android.intent.category.DEFAULT" />
+
+ <scheme name="tel" />
+ </filter>
+ </item>
+
+ <item name="org.fossify.messages/.activities.NewConversationActivity">
+ <filter>
+ <action name="android.intent.action.SENDTO" />
+ <cat name="android.intent.category.DEFAULT" />
+ <scheme name="smsto" />
+ </filter>
+ </item>
+ <item name="org.fossify.messages/.activities.NewConversationActivity">
+ <filter>
+ <action name="android.intent.action.SENDTO" />
+ <cat name="android.intent.category.DEFAULT" />
+ <scheme name="mmsto" />
+ </filter>
+ </item>
+ <item name="org.fossify.messages/.activities.NewConversationActivity">
+ <filter>
+ <action name="android.intent.action.SENDTO" />
+ <cat name="android.intent.category.DEFAULT" />
+ <scheme name="mms" />
+ </filter>
+ </item>
+ <item name="app.lawnchair/.LawnchairLauncher">
+ <filter>
+ <action name="android.intent.action.MAIN" />
+ <cat name="android.intent.category.HOME" />
+ <cat name="android.intent.category.DEFAULT" />
+ </filter>
+ </item>
+ <item name="org.fossify.messages/.activities.NewConversationActivity">
+ <filter>
+ <action name="android.intent.action.SENDTO" />
+ <cat name="android.intent.category.DEFAULT" />
+ <scheme name="sms" />
+ </filter>
+ </item>
+</preferred-activities>
diff --git a/res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml b/res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml
new file mode 100644
index 0000000..b1a1235
--- /dev/null
+++ b/res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<config>
+ <hidden-api-whitelisted-app package="app.lawnchair"/>
+</config>
diff --git a/res/media/alarms/Barium.ogg b/res/media/alarms/Barium.ogg
new file mode 100644
index 0000000..9a92022
--- /dev/null
+++ b/res/media/alarms/Barium.ogg
Binary files differ
diff --git a/res/media/alarms/Hassium.ogg b/res/media/alarms/Hassium.ogg
new file mode 100644
index 0000000..793c269
--- /dev/null
+++ b/res/media/alarms/Hassium.ogg
Binary files differ
diff --git a/res/media/alarms/NuclearLaunch.ogg b/res/media/alarms/NuclearLaunch.ogg
new file mode 100644
index 0000000..00a4a83
--- /dev/null
+++ b/res/media/alarms/NuclearLaunch.ogg
Binary files differ
diff --git a/res/media/alarms/Scandium.ogg b/res/media/alarms/Scandium.ogg
new file mode 100644
index 0000000..86ffbf8
--- /dev/null
+++ b/res/media/alarms/Scandium.ogg
Binary files differ
diff --git a/res/media/alarms/Timer.ogg b/res/media/alarms/Timer.ogg
new file mode 100644
index 0000000..97519aa
--- /dev/null
+++ b/res/media/alarms/Timer.ogg
Binary files differ
diff --git a/res/media/notifications/Adara.ogg b/res/media/notifications/Adara.ogg
new file mode 100644
index 0000000..e87f379
--- /dev/null
+++ b/res/media/notifications/Adara.ogg
Binary files differ
diff --git a/res/media/notifications/Aldebaran.ogg b/res/media/notifications/Aldebaran.ogg
new file mode 100644
index 0000000..fe30137
--- /dev/null
+++ b/res/media/notifications/Aldebaran.ogg
Binary files differ
diff --git a/res/media/notifications/Altair.ogg b/res/media/notifications/Altair.ogg
new file mode 100644
index 0000000..660c800
--- /dev/null
+++ b/res/media/notifications/Altair.ogg
Binary files differ
diff --git a/res/media/notifications/Alya.ogg b/res/media/notifications/Alya.ogg
new file mode 100644
index 0000000..f07a0d1
--- /dev/null
+++ b/res/media/notifications/Alya.ogg
Binary files differ
diff --git a/res/media/notifications/Antares.ogg b/res/media/notifications/Antares.ogg
new file mode 100644
index 0000000..f4f94d7
--- /dev/null
+++ b/res/media/notifications/Antares.ogg
Binary files differ
diff --git a/res/media/notifications/Antimony.ogg b/res/media/notifications/Antimony.ogg
new file mode 100644
index 0000000..6f83fe4
--- /dev/null
+++ b/res/media/notifications/Antimony.ogg
Binary files differ
diff --git a/res/media/notifications/Arcturus.ogg b/res/media/notifications/Arcturus.ogg
new file mode 100644
index 0000000..8b83285
--- /dev/null
+++ b/res/media/notifications/Arcturus.ogg
Binary files differ
diff --git a/res/media/notifications/Argon.ogg b/res/media/notifications/Argon.ogg
new file mode 100644
index 0000000..e58b3b6
--- /dev/null
+++ b/res/media/notifications/Argon.ogg
Binary files differ
diff --git a/res/media/notifications/Ariel.ogg b/res/media/notifications/Ariel.ogg
new file mode 100644
index 0000000..ff17500
--- /dev/null
+++ b/res/media/notifications/Ariel.ogg
Binary files differ
diff --git a/res/media/notifications/Beat_Box_Android.ogg b/res/media/notifications/Beat_Box_Android.ogg
new file mode 100644
index 0000000..c5d5747
--- /dev/null
+++ b/res/media/notifications/Beat_Box_Android.ogg
Binary files differ
diff --git a/res/media/notifications/Bellatrix.ogg b/res/media/notifications/Bellatrix.ogg
new file mode 100644
index 0000000..37a1bdc
--- /dev/null
+++ b/res/media/notifications/Bellatrix.ogg
Binary files differ
diff --git a/res/media/notifications/Beryllium.ogg b/res/media/notifications/Beryllium.ogg
new file mode 100644
index 0000000..2c5b4fe
--- /dev/null
+++ b/res/media/notifications/Beryllium.ogg
Binary files differ
diff --git a/res/media/notifications/Betelgeuse.ogg b/res/media/notifications/Betelgeuse.ogg
new file mode 100644
index 0000000..7145a16
--- /dev/null
+++ b/res/media/notifications/Betelgeuse.ogg
Binary files differ
diff --git a/res/media/notifications/CaffeineSnake.ogg b/res/media/notifications/CaffeineSnake.ogg
new file mode 100644
index 0000000..98cdd14
--- /dev/null
+++ b/res/media/notifications/CaffeineSnake.ogg
Binary files differ
diff --git a/res/media/notifications/Canopus.ogg b/res/media/notifications/Canopus.ogg
new file mode 100644
index 0000000..0d55925
--- /dev/null
+++ b/res/media/notifications/Canopus.ogg
Binary files differ
diff --git a/res/media/notifications/Capella.ogg b/res/media/notifications/Capella.ogg
new file mode 100644
index 0000000..88a955d
--- /dev/null
+++ b/res/media/notifications/Capella.ogg
Binary files differ
diff --git a/res/media/notifications/Carme.ogg b/res/media/notifications/Carme.ogg
new file mode 100644
index 0000000..ec6e7cb
--- /dev/null
+++ b/res/media/notifications/Carme.ogg
Binary files differ
diff --git a/res/media/notifications/Castor.ogg b/res/media/notifications/Castor.ogg
new file mode 100644
index 0000000..92de8e7
--- /dev/null
+++ b/res/media/notifications/Castor.ogg
Binary files differ
diff --git a/res/media/notifications/Ceres.ogg b/res/media/notifications/Ceres.ogg
new file mode 100644
index 0000000..f7386a7
--- /dev/null
+++ b/res/media/notifications/Ceres.ogg
Binary files differ
diff --git a/res/media/notifications/CetiAlpha.ogg b/res/media/notifications/CetiAlpha.ogg
new file mode 100644
index 0000000..cd09526
--- /dev/null
+++ b/res/media/notifications/CetiAlpha.ogg
Binary files differ
diff --git a/res/media/notifications/Cobalt.ogg b/res/media/notifications/Cobalt.ogg
new file mode 100644
index 0000000..b6e253a
--- /dev/null
+++ b/res/media/notifications/Cobalt.ogg
Binary files differ
diff --git a/res/media/notifications/Cricket.ogg b/res/media/notifications/Cricket.ogg
new file mode 100644
index 0000000..47b3868
--- /dev/null
+++ b/res/media/notifications/Cricket.ogg
Binary files differ
diff --git a/res/media/notifications/DearDeer.ogg b/res/media/notifications/DearDeer.ogg
new file mode 100644
index 0000000..f092433
--- /dev/null
+++ b/res/media/notifications/DearDeer.ogg
Binary files differ
diff --git a/res/media/notifications/Deneb.ogg b/res/media/notifications/Deneb.ogg
new file mode 100644
index 0000000..3b17e28
--- /dev/null
+++ b/res/media/notifications/Deneb.ogg
Binary files differ
diff --git a/res/media/notifications/Doink.ogg b/res/media/notifications/Doink.ogg
new file mode 100644
index 0000000..b8b7181
--- /dev/null
+++ b/res/media/notifications/Doink.ogg
Binary files differ
diff --git a/res/media/notifications/DontPanic.ogg b/res/media/notifications/DontPanic.ogg
new file mode 100644
index 0000000..35c9478
--- /dev/null
+++ b/res/media/notifications/DontPanic.ogg
Binary files differ
diff --git a/res/media/notifications/Drip.ogg b/res/media/notifications/Drip.ogg
new file mode 100644
index 0000000..2981758
--- /dev/null
+++ b/res/media/notifications/Drip.ogg
Binary files differ
diff --git a/res/media/notifications/Elara.ogg b/res/media/notifications/Elara.ogg
new file mode 100644
index 0000000..e4dcf28
--- /dev/null
+++ b/res/media/notifications/Elara.ogg
Binary files differ
diff --git a/res/media/notifications/Electra.ogg b/res/media/notifications/Electra.ogg
new file mode 100644
index 0000000..9335d8d
--- /dev/null
+++ b/res/media/notifications/Electra.ogg
Binary files differ
diff --git a/res/media/notifications/Europa.ogg b/res/media/notifications/Europa.ogg
new file mode 100644
index 0000000..ce94e21
--- /dev/null
+++ b/res/media/notifications/Europa.ogg
Binary files differ
diff --git a/res/media/notifications/F1_New_SMS.ogg b/res/media/notifications/F1_New_SMS.ogg
new file mode 100644
index 0000000..1c6851d
--- /dev/null
+++ b/res/media/notifications/F1_New_SMS.ogg
Binary files differ
diff --git a/res/media/notifications/Fluorine.ogg b/res/media/notifications/Fluorine.ogg
new file mode 100644
index 0000000..fd884f5
--- /dev/null
+++ b/res/media/notifications/Fluorine.ogg
Binary files differ
diff --git a/res/media/notifications/Fomalhaut.ogg b/res/media/notifications/Fomalhaut.ogg
new file mode 100644
index 0000000..9448c18
--- /dev/null
+++ b/res/media/notifications/Fomalhaut.ogg
Binary files differ
diff --git a/res/media/notifications/Gallium.ogg b/res/media/notifications/Gallium.ogg
new file mode 100644
index 0000000..3c7e115
--- /dev/null
+++ b/res/media/notifications/Gallium.ogg
Binary files differ
diff --git a/res/media/notifications/Heaven.ogg b/res/media/notifications/Heaven.ogg
new file mode 100644
index 0000000..368c32d
--- /dev/null
+++ b/res/media/notifications/Heaven.ogg
Binary files differ
diff --git a/res/media/notifications/Helium.ogg b/res/media/notifications/Helium.ogg
new file mode 100644
index 0000000..8c4db67
--- /dev/null
+++ b/res/media/notifications/Helium.ogg
Binary files differ
diff --git a/res/media/notifications/Highwire.ogg b/res/media/notifications/Highwire.ogg
new file mode 100644
index 0000000..85ffcb9
--- /dev/null
+++ b/res/media/notifications/Highwire.ogg
Binary files differ
diff --git a/res/media/notifications/Hojus.ogg b/res/media/notifications/Hojus.ogg
new file mode 100644
index 0000000..96a3ed9
--- /dev/null
+++ b/res/media/notifications/Hojus.ogg
Binary files differ
diff --git a/res/media/notifications/Iapetus.ogg b/res/media/notifications/Iapetus.ogg
new file mode 100644
index 0000000..d7c810d
--- /dev/null
+++ b/res/media/notifications/Iapetus.ogg
Binary files differ
diff --git a/res/media/notifications/Io.ogg b/res/media/notifications/Io.ogg
new file mode 100644
index 0000000..e05a529
--- /dev/null
+++ b/res/media/notifications/Io.ogg
Binary files differ
diff --git a/res/media/notifications/Iridium.ogg b/res/media/notifications/Iridium.ogg
new file mode 100644
index 0000000..fabda89
--- /dev/null
+++ b/res/media/notifications/Iridium.ogg
Binary files differ
diff --git a/res/media/notifications/Krypton.ogg b/res/media/notifications/Krypton.ogg
new file mode 100644
index 0000000..44f9175
--- /dev/null
+++ b/res/media/notifications/Krypton.ogg
Binary files differ
diff --git a/res/media/notifications/KzurbSonar.ogg b/res/media/notifications/KzurbSonar.ogg
new file mode 100644
index 0000000..8cd17ae
--- /dev/null
+++ b/res/media/notifications/KzurbSonar.ogg
Binary files differ
diff --git a/res/media/notifications/Laser.ogg b/res/media/notifications/Laser.ogg
new file mode 100644
index 0000000..2448c52
--- /dev/null
+++ b/res/media/notifications/Laser.ogg
Binary files differ
diff --git a/res/media/notifications/Merope.ogg b/res/media/notifications/Merope.ogg
new file mode 100644
index 0000000..fb18c73
--- /dev/null
+++ b/res/media/notifications/Merope.ogg
Binary files differ
diff --git a/res/media/notifications/Mira.ogg b/res/media/notifications/Mira.ogg
new file mode 100644
index 0000000..c66dae1
--- /dev/null
+++ b/res/media/notifications/Mira.ogg
Binary files differ
diff --git a/res/media/notifications/Naughty.ogg b/res/media/notifications/Naughty.ogg
new file mode 100644
index 0000000..77f15a8
--- /dev/null
+++ b/res/media/notifications/Naughty.ogg
Binary files differ
diff --git a/res/media/notifications/OnTheHunt.ogg b/res/media/notifications/OnTheHunt.ogg
new file mode 100644
index 0000000..dd407f6
--- /dev/null
+++ b/res/media/notifications/OnTheHunt.ogg
Binary files differ
diff --git a/res/media/notifications/Palladium.ogg b/res/media/notifications/Palladium.ogg
new file mode 100644
index 0000000..ee68158
--- /dev/null
+++ b/res/media/notifications/Palladium.ogg
Binary files differ
diff --git a/res/media/notifications/Plastic_Pipe.ogg b/res/media/notifications/Plastic_Pipe.ogg
new file mode 100644
index 0000000..16b06c8
--- /dev/null
+++ b/res/media/notifications/Plastic_Pipe.ogg
Binary files differ
diff --git a/res/media/notifications/Polaris.ogg b/res/media/notifications/Polaris.ogg
new file mode 100644
index 0000000..0f63a65
--- /dev/null
+++ b/res/media/notifications/Polaris.ogg
Binary files differ
diff --git a/res/media/notifications/Pollux.ogg b/res/media/notifications/Pollux.ogg
new file mode 100644
index 0000000..2f907fd
--- /dev/null
+++ b/res/media/notifications/Pollux.ogg
Binary files differ
diff --git a/res/media/notifications/Pong.ogg b/res/media/notifications/Pong.ogg
new file mode 100644
index 0000000..330d1e7
--- /dev/null
+++ b/res/media/notifications/Pong.ogg
Binary files differ
diff --git a/res/media/notifications/Procyon.ogg b/res/media/notifications/Procyon.ogg
new file mode 100644
index 0000000..e5ffcdb
--- /dev/null
+++ b/res/media/notifications/Procyon.ogg
Binary files differ
diff --git a/res/media/notifications/Proxima.ogg b/res/media/notifications/Proxima.ogg
new file mode 100644
index 0000000..a9e5a80
--- /dev/null
+++ b/res/media/notifications/Proxima.ogg
Binary files differ
diff --git a/res/media/notifications/Radon.ogg b/res/media/notifications/Radon.ogg
new file mode 100644
index 0000000..550cddd
--- /dev/null
+++ b/res/media/notifications/Radon.ogg
Binary files differ
diff --git a/res/media/notifications/Rang.ogg b/res/media/notifications/Rang.ogg
new file mode 100644
index 0000000..2531b3a
--- /dev/null
+++ b/res/media/notifications/Rang.ogg
Binary files differ
diff --git a/res/media/notifications/Rhea.ogg b/res/media/notifications/Rhea.ogg
new file mode 100644
index 0000000..347c38d
--- /dev/null
+++ b/res/media/notifications/Rhea.ogg
Binary files differ
diff --git a/res/media/notifications/Rubidium.ogg b/res/media/notifications/Rubidium.ogg
new file mode 100644
index 0000000..edc27cd
--- /dev/null
+++ b/res/media/notifications/Rubidium.ogg
Binary files differ
diff --git a/res/media/notifications/Salacia.ogg b/res/media/notifications/Salacia.ogg
new file mode 100644
index 0000000..ea83b5b
--- /dev/null
+++ b/res/media/notifications/Salacia.ogg
Binary files differ
diff --git a/res/media/notifications/Selenium.ogg b/res/media/notifications/Selenium.ogg
new file mode 100644
index 0000000..9d60917
--- /dev/null
+++ b/res/media/notifications/Selenium.ogg
Binary files differ
diff --git a/res/media/notifications/Shaula.ogg b/res/media/notifications/Shaula.ogg
new file mode 100644
index 0000000..1c0aa89
--- /dev/null
+++ b/res/media/notifications/Shaula.ogg
Binary files differ
diff --git a/res/media/notifications/Sirrah.ogg b/res/media/notifications/Sirrah.ogg
new file mode 100644
index 0000000..ee79e49
--- /dev/null
+++ b/res/media/notifications/Sirrah.ogg
Binary files differ
diff --git a/res/media/notifications/Spica.ogg b/res/media/notifications/Spica.ogg
new file mode 100644
index 0000000..a9e91cb
--- /dev/null
+++ b/res/media/notifications/Spica.ogg
Binary files differ
diff --git a/res/media/notifications/Stone.ogg b/res/media/notifications/Stone.ogg
new file mode 100644
index 0000000..4f9f239
--- /dev/null
+++ b/res/media/notifications/Stone.ogg
Binary files differ
diff --git a/res/media/notifications/Strontium.ogg b/res/media/notifications/Strontium.ogg
new file mode 100644
index 0000000..ac0bacb
--- /dev/null
+++ b/res/media/notifications/Strontium.ogg
Binary files differ
diff --git a/res/media/notifications/Syrma.ogg b/res/media/notifications/Syrma.ogg
new file mode 100644
index 0000000..a615441
--- /dev/null
+++ b/res/media/notifications/Syrma.ogg
Binary files differ
diff --git a/res/media/notifications/TaDa.ogg b/res/media/notifications/TaDa.ogg
new file mode 100644
index 0000000..c3dc025
--- /dev/null
+++ b/res/media/notifications/TaDa.ogg
Binary files differ
diff --git a/res/media/notifications/Talitha.ogg b/res/media/notifications/Talitha.ogg
new file mode 100644
index 0000000..75f2fbd
--- /dev/null
+++ b/res/media/notifications/Talitha.ogg
Binary files differ
diff --git a/res/media/notifications/Tethys.ogg b/res/media/notifications/Tethys.ogg
new file mode 100644
index 0000000..fc61f70
--- /dev/null
+++ b/res/media/notifications/Tethys.ogg
Binary files differ
diff --git a/res/media/notifications/Thallium.ogg b/res/media/notifications/Thallium.ogg
new file mode 100644
index 0000000..d4841d4
--- /dev/null
+++ b/res/media/notifications/Thallium.ogg
Binary files differ
diff --git a/res/media/notifications/Titan.ogg b/res/media/notifications/Titan.ogg
new file mode 100644
index 0000000..0e54844
--- /dev/null
+++ b/res/media/notifications/Titan.ogg
Binary files differ
diff --git a/res/media/notifications/Upsilon.ogg b/res/media/notifications/Upsilon.ogg
new file mode 100644
index 0000000..e3ac386
--- /dev/null
+++ b/res/media/notifications/Upsilon.ogg
Binary files differ
diff --git a/res/media/notifications/Vega.ogg b/res/media/notifications/Vega.ogg
new file mode 100644
index 0000000..7cdbf21
--- /dev/null
+++ b/res/media/notifications/Vega.ogg
Binary files differ
diff --git a/res/media/notifications/Voila.ogg b/res/media/notifications/Voila.ogg
new file mode 100644
index 0000000..2c6409d
--- /dev/null
+++ b/res/media/notifications/Voila.ogg
Binary files differ
diff --git a/res/media/notifications/Xenon.ogg b/res/media/notifications/Xenon.ogg
new file mode 100644
index 0000000..255a1a9
--- /dev/null
+++ b/res/media/notifications/Xenon.ogg
Binary files differ
diff --git a/res/media/notifications/Zirconium.ogg b/res/media/notifications/Zirconium.ogg
new file mode 100644
index 0000000..d84b59e
--- /dev/null
+++ b/res/media/notifications/Zirconium.ogg
Binary files differ
diff --git a/res/media/notifications/moonbeam.ogg b/res/media/notifications/moonbeam.ogg
new file mode 100644
index 0000000..59ac985
--- /dev/null
+++ b/res/media/notifications/moonbeam.ogg
Binary files differ
diff --git a/res/media/notifications/pixiedust.ogg b/res/media/notifications/pixiedust.ogg
new file mode 100644
index 0000000..4ed7f52
--- /dev/null
+++ b/res/media/notifications/pixiedust.ogg
Binary files differ
diff --git a/res/media/notifications/pizzicato.ogg b/res/media/notifications/pizzicato.ogg
new file mode 100644
index 0000000..0a4a328
--- /dev/null
+++ b/res/media/notifications/pizzicato.ogg
Binary files differ
diff --git a/res/media/notifications/regulus.ogg b/res/media/notifications/regulus.ogg
new file mode 100644
index 0000000..4f28d9e
--- /dev/null
+++ b/res/media/notifications/regulus.ogg
Binary files differ
diff --git a/res/media/notifications/sirius.ogg b/res/media/notifications/sirius.ogg
new file mode 100644
index 0000000..78c9991
--- /dev/null
+++ b/res/media/notifications/sirius.ogg
Binary files differ
diff --git a/res/media/notifications/tweeters.ogg b/res/media/notifications/tweeters.ogg
new file mode 100644
index 0000000..ecc4c5a
--- /dev/null
+++ b/res/media/notifications/tweeters.ogg
Binary files differ
diff --git a/res/media/ringtones/Andromeda.ogg b/res/media/ringtones/Andromeda.ogg
new file mode 100644
index 0000000..26c230e
--- /dev/null
+++ b/res/media/ringtones/Andromeda.ogg
Binary files differ
diff --git a/res/media/ringtones/Aquila.ogg b/res/media/ringtones/Aquila.ogg
new file mode 100644
index 0000000..9eab4ff
--- /dev/null
+++ b/res/media/ringtones/Aquila.ogg
Binary files differ
diff --git a/res/media/ringtones/ArgoNavis.ogg b/res/media/ringtones/ArgoNavis.ogg
new file mode 100644
index 0000000..d25b5e8
--- /dev/null
+++ b/res/media/ringtones/ArgoNavis.ogg
Binary files differ
diff --git a/res/media/ringtones/Attentive.ogg b/res/media/ringtones/Attentive.ogg
new file mode 100644
index 0000000..dd1521e
--- /dev/null
+++ b/res/media/ringtones/Attentive.ogg
Binary files differ
diff --git a/res/media/ringtones/BOOTES.ogg b/res/media/ringtones/BOOTES.ogg
new file mode 100644
index 0000000..0716a4f
--- /dev/null
+++ b/res/media/ringtones/BOOTES.ogg
Binary files differ
diff --git a/res/media/ringtones/Backroad.ogg b/res/media/ringtones/Backroad.ogg
new file mode 100644
index 0000000..e1fb806
--- /dev/null
+++ b/res/media/ringtones/Backroad.ogg
Binary files differ
diff --git a/res/media/ringtones/BeatPlucker.ogg b/res/media/ringtones/BeatPlucker.ogg
new file mode 100644
index 0000000..f1bcef0
--- /dev/null
+++ b/res/media/ringtones/BeatPlucker.ogg
Binary files differ
diff --git a/res/media/ringtones/BentleyDubs.ogg b/res/media/ringtones/BentleyDubs.ogg
new file mode 100644
index 0000000..44c0631
--- /dev/null
+++ b/res/media/ringtones/BentleyDubs.ogg
Binary files differ
diff --git a/res/media/ringtones/Big_Easy.ogg b/res/media/ringtones/Big_Easy.ogg
new file mode 100644
index 0000000..277dd96
--- /dev/null
+++ b/res/media/ringtones/Big_Easy.ogg
Binary files differ
diff --git a/res/media/ringtones/BirdLoop.ogg b/res/media/ringtones/BirdLoop.ogg
new file mode 100644
index 0000000..b484582
--- /dev/null
+++ b/res/media/ringtones/BirdLoop.ogg
Binary files differ
diff --git a/res/media/ringtones/Bollywood.ogg b/res/media/ringtones/Bollywood.ogg
new file mode 100644
index 0000000..b393dd4
--- /dev/null
+++ b/res/media/ringtones/Bollywood.ogg
Binary files differ
diff --git a/res/media/ringtones/Boxbeat.ogg b/res/media/ringtones/Boxbeat.ogg
new file mode 100644
index 0000000..773f478
--- /dev/null
+++ b/res/media/ringtones/Boxbeat.ogg
Binary files differ
diff --git a/res/media/ringtones/BussaMove.ogg b/res/media/ringtones/BussaMove.ogg
new file mode 100644
index 0000000..7c9f7b5
--- /dev/null
+++ b/res/media/ringtones/BussaMove.ogg
Binary files differ
diff --git a/res/media/ringtones/CASSIOPEIA.ogg b/res/media/ringtones/CASSIOPEIA.ogg
new file mode 100644
index 0000000..c4a7948
--- /dev/null
+++ b/res/media/ringtones/CASSIOPEIA.ogg
Binary files differ
diff --git a/res/media/ringtones/Cairo.ogg b/res/media/ringtones/Cairo.ogg
new file mode 100644
index 0000000..d90d3b4
--- /dev/null
+++ b/res/media/ringtones/Cairo.ogg
Binary files differ
diff --git a/res/media/ringtones/Callisto.ogg b/res/media/ringtones/Callisto.ogg
new file mode 100644
index 0000000..dd9bc5b
--- /dev/null
+++ b/res/media/ringtones/Callisto.ogg
Binary files differ
diff --git a/res/media/ringtones/Calypso_Steel.ogg b/res/media/ringtones/Calypso_Steel.ogg
new file mode 100644
index 0000000..8e07da1
--- /dev/null
+++ b/res/media/ringtones/Calypso_Steel.ogg
Binary files differ
diff --git a/res/media/ringtones/CanisMajor.ogg b/res/media/ringtones/CanisMajor.ogg
new file mode 100644
index 0000000..0e575e0
--- /dev/null
+++ b/res/media/ringtones/CanisMajor.ogg
Binary files differ
diff --git a/res/media/ringtones/CaribbeanIce.ogg b/res/media/ringtones/CaribbeanIce.ogg
new file mode 100644
index 0000000..7525123
--- /dev/null
+++ b/res/media/ringtones/CaribbeanIce.ogg
Binary files differ
diff --git a/res/media/ringtones/Carina.ogg b/res/media/ringtones/Carina.ogg
new file mode 100644
index 0000000..e8a66b4
--- /dev/null
+++ b/res/media/ringtones/Carina.ogg
Binary files differ
diff --git a/res/media/ringtones/Centaurus.ogg b/res/media/ringtones/Centaurus.ogg
new file mode 100644
index 0000000..79a393c
--- /dev/null
+++ b/res/media/ringtones/Centaurus.ogg
Binary files differ
diff --git a/res/media/ringtones/Champagne_Edition.ogg b/res/media/ringtones/Champagne_Edition.ogg
new file mode 100644
index 0000000..0ba8be5
--- /dev/null
+++ b/res/media/ringtones/Champagne_Edition.ogg
Binary files differ
diff --git a/res/media/ringtones/Club_Cubano.ogg b/res/media/ringtones/Club_Cubano.ogg
new file mode 100644
index 0000000..5d09db1
--- /dev/null
+++ b/res/media/ringtones/Club_Cubano.ogg
Binary files differ
diff --git a/res/media/ringtones/CrayonRock.ogg b/res/media/ringtones/CrayonRock.ogg
new file mode 100644
index 0000000..6827aa5
--- /dev/null
+++ b/res/media/ringtones/CrayonRock.ogg
Binary files differ
diff --git a/res/media/ringtones/CrazyDream.ogg b/res/media/ringtones/CrazyDream.ogg
new file mode 100644
index 0000000..5fa47b9
--- /dev/null
+++ b/res/media/ringtones/CrazyDream.ogg
Binary files differ
diff --git a/res/media/ringtones/CurveBall.ogg b/res/media/ringtones/CurveBall.ogg
new file mode 100644
index 0000000..733a004
--- /dev/null
+++ b/res/media/ringtones/CurveBall.ogg
Binary files differ
diff --git a/res/media/ringtones/Cygnus.ogg b/res/media/ringtones/Cygnus.ogg
new file mode 100644
index 0000000..80317ef
--- /dev/null
+++ b/res/media/ringtones/Cygnus.ogg
Binary files differ
diff --git a/res/media/ringtones/DancinFool.ogg b/res/media/ringtones/DancinFool.ogg
new file mode 100644
index 0000000..39e3b8a
--- /dev/null
+++ b/res/media/ringtones/DancinFool.ogg
Binary files differ
diff --git a/res/media/ringtones/Dione.ogg b/res/media/ringtones/Dione.ogg
new file mode 100644
index 0000000..cf7d1cb
--- /dev/null
+++ b/res/media/ringtones/Dione.ogg
Binary files differ
diff --git a/res/media/ringtones/DonMessWivIt.ogg b/res/media/ringtones/DonMessWivIt.ogg
new file mode 100644
index 0000000..5b14ba5
--- /dev/null
+++ b/res/media/ringtones/DonMessWivIt.ogg
Binary files differ
diff --git a/res/media/ringtones/Draco.ogg b/res/media/ringtones/Draco.ogg
new file mode 100644
index 0000000..d09b891
--- /dev/null
+++ b/res/media/ringtones/Draco.ogg
Binary files differ
diff --git a/res/media/ringtones/DreamTheme.ogg b/res/media/ringtones/DreamTheme.ogg
new file mode 100644
index 0000000..e602a38
--- /dev/null
+++ b/res/media/ringtones/DreamTheme.ogg
Binary files differ
diff --git a/res/media/ringtones/Eastern_Sky.ogg b/res/media/ringtones/Eastern_Sky.ogg
new file mode 100644
index 0000000..c0cf74c
--- /dev/null
+++ b/res/media/ringtones/Eastern_Sky.ogg
Binary files differ
diff --git a/res/media/ringtones/Enter_the_Nexus.ogg b/res/media/ringtones/Enter_the_Nexus.ogg
new file mode 100644
index 0000000..ba30454
--- /dev/null
+++ b/res/media/ringtones/Enter_the_Nexus.ogg
Binary files differ
diff --git a/res/media/ringtones/Eridani.ogg b/res/media/ringtones/Eridani.ogg
new file mode 100644
index 0000000..b665a29
--- /dev/null
+++ b/res/media/ringtones/Eridani.ogg
Binary files differ
diff --git a/res/media/ringtones/EtherShake.ogg b/res/media/ringtones/EtherShake.ogg
new file mode 100644
index 0000000..178aa21
--- /dev/null
+++ b/res/media/ringtones/EtherShake.ogg
Binary files differ
diff --git a/res/media/ringtones/FreeFlight.ogg b/res/media/ringtones/FreeFlight.ogg
new file mode 100644
index 0000000..76dfabe
--- /dev/null
+++ b/res/media/ringtones/FreeFlight.ogg
Binary files differ
diff --git a/res/media/ringtones/FriendlyGhost.ogg b/res/media/ringtones/FriendlyGhost.ogg
new file mode 100644
index 0000000..d993880
--- /dev/null
+++ b/res/media/ringtones/FriendlyGhost.ogg
Binary files differ
diff --git a/res/media/ringtones/Funk_Yall.ogg b/res/media/ringtones/Funk_Yall.ogg
new file mode 100644
index 0000000..5b98643
--- /dev/null
+++ b/res/media/ringtones/Funk_Yall.ogg
Binary files differ
diff --git a/res/media/ringtones/GameOverGuitar.ogg b/res/media/ringtones/GameOverGuitar.ogg
new file mode 100644
index 0000000..2adb0a8
--- /dev/null
+++ b/res/media/ringtones/GameOverGuitar.ogg
Binary files differ
diff --git a/res/media/ringtones/Ganymede.ogg b/res/media/ringtones/Ganymede.ogg
new file mode 100644
index 0000000..e7ff9f4
--- /dev/null
+++ b/res/media/ringtones/Ganymede.ogg
Binary files differ
diff --git a/res/media/ringtones/Gimme_Mo_Town.ogg b/res/media/ringtones/Gimme_Mo_Town.ogg
new file mode 100644
index 0000000..a196935
--- /dev/null
+++ b/res/media/ringtones/Gimme_Mo_Town.ogg
Binary files differ
diff --git a/res/media/ringtones/Girtab.ogg b/res/media/ringtones/Girtab.ogg
new file mode 100644
index 0000000..f6b3a35
--- /dev/null
+++ b/res/media/ringtones/Girtab.ogg
Binary files differ
diff --git a/res/media/ringtones/Glacial_Groove.ogg b/res/media/ringtones/Glacial_Groove.ogg
new file mode 100644
index 0000000..a0e83e6
--- /dev/null
+++ b/res/media/ringtones/Glacial_Groove.ogg
Binary files differ
diff --git a/res/media/ringtones/Growl.ogg b/res/media/ringtones/Growl.ogg
new file mode 100644
index 0000000..c54bde0
--- /dev/null
+++ b/res/media/ringtones/Growl.ogg
Binary files differ
diff --git a/res/media/ringtones/HalfwayHome.ogg b/res/media/ringtones/HalfwayHome.ogg
new file mode 100644
index 0000000..4ece7ca
--- /dev/null
+++ b/res/media/ringtones/HalfwayHome.ogg
Binary files differ
diff --git a/res/media/ringtones/Highscore.ogg b/res/media/ringtones/Highscore.ogg
new file mode 100644
index 0000000..fe07c89
--- /dev/null
+++ b/res/media/ringtones/Highscore.ogg
Binary files differ
diff --git a/res/media/ringtones/Hydra.ogg b/res/media/ringtones/Hydra.ogg
new file mode 100644
index 0000000..935c12f
--- /dev/null
+++ b/res/media/ringtones/Hydra.ogg
Binary files differ
diff --git a/res/media/ringtones/InsertCoin.ogg b/res/media/ringtones/InsertCoin.ogg
new file mode 100644
index 0000000..8737da5
--- /dev/null
+++ b/res/media/ringtones/InsertCoin.ogg
Binary files differ
diff --git a/res/media/ringtones/Kuma.ogg b/res/media/ringtones/Kuma.ogg
new file mode 100644
index 0000000..780d5d4
--- /dev/null
+++ b/res/media/ringtones/Kuma.ogg
Binary files differ
diff --git a/res/media/ringtones/LoopyLounge.ogg b/res/media/ringtones/LoopyLounge.ogg
new file mode 100644
index 0000000..6d168cd
--- /dev/null
+++ b/res/media/ringtones/LoopyLounge.ogg
Binary files differ
diff --git a/res/media/ringtones/LoveFlute.ogg b/res/media/ringtones/LoveFlute.ogg
new file mode 100644
index 0000000..16cf413
--- /dev/null
+++ b/res/media/ringtones/LoveFlute.ogg
Binary files differ
diff --git a/res/media/ringtones/Luna.ogg b/res/media/ringtones/Luna.ogg
new file mode 100644
index 0000000..8aeb3a0
--- /dev/null
+++ b/res/media/ringtones/Luna.ogg
Binary files differ
diff --git a/res/media/ringtones/Lyon.ogg b/res/media/ringtones/Lyon.ogg
new file mode 100644
index 0000000..3e4c925
--- /dev/null
+++ b/res/media/ringtones/Lyon.ogg
Binary files differ
diff --git a/res/media/ringtones/Lyra.ogg b/res/media/ringtones/Lyra.ogg
new file mode 100644
index 0000000..696f278
--- /dev/null
+++ b/res/media/ringtones/Lyra.ogg
Binary files differ
diff --git a/res/media/ringtones/Machina.ogg b/res/media/ringtones/Machina.ogg
new file mode 100644
index 0000000..33388e6
--- /dev/null
+++ b/res/media/ringtones/Machina.ogg
Binary files differ
diff --git a/res/media/ringtones/MidEvilJaunt.ogg b/res/media/ringtones/MidEvilJaunt.ogg
new file mode 100644
index 0000000..66d7fad
--- /dev/null
+++ b/res/media/ringtones/MidEvilJaunt.ogg
Binary files differ
diff --git a/res/media/ringtones/Momentum.ogg b/res/media/ringtones/Momentum.ogg
new file mode 100644
index 0000000..29ee832
--- /dev/null
+++ b/res/media/ringtones/Momentum.ogg
Binary files differ
diff --git a/res/media/ringtones/Moto.ogg b/res/media/ringtones/Moto.ogg
new file mode 100644
index 0000000..53a3ad0
--- /dev/null
+++ b/res/media/ringtones/Moto.ogg
Binary files differ
diff --git a/res/media/ringtones/Nairobi.ogg b/res/media/ringtones/Nairobi.ogg
new file mode 100644
index 0000000..21929c9
--- /dev/null
+++ b/res/media/ringtones/Nairobi.ogg
Binary files differ
diff --git a/res/media/ringtones/Nassau.ogg b/res/media/ringtones/Nassau.ogg
new file mode 100644
index 0000000..6615b73
--- /dev/null
+++ b/res/media/ringtones/Nassau.ogg
Binary files differ
diff --git a/res/media/ringtones/NewPlayer.ogg b/res/media/ringtones/NewPlayer.ogg
new file mode 100644
index 0000000..c2df5d8
--- /dev/null
+++ b/res/media/ringtones/NewPlayer.ogg
Binary files differ
diff --git a/res/media/ringtones/No_Limits.ogg b/res/media/ringtones/No_Limits.ogg
new file mode 100644
index 0000000..346f2fe
--- /dev/null
+++ b/res/media/ringtones/No_Limits.ogg
Binary files differ
diff --git a/res/media/ringtones/Noises2.ogg b/res/media/ringtones/Noises2.ogg
new file mode 100644
index 0000000..69a3d72
--- /dev/null
+++ b/res/media/ringtones/Noises2.ogg
Binary files differ
diff --git a/res/media/ringtones/Noises3.ogg b/res/media/ringtones/Noises3.ogg
new file mode 100644
index 0000000..3607c2a
--- /dev/null
+++ b/res/media/ringtones/Noises3.ogg
Binary files differ
diff --git a/res/media/ringtones/Oberon.ogg b/res/media/ringtones/Oberon.ogg
new file mode 100644
index 0000000..145f474
--- /dev/null
+++ b/res/media/ringtones/Oberon.ogg
Binary files differ
diff --git a/res/media/ringtones/OrganDub.ogg b/res/media/ringtones/OrganDub.ogg
new file mode 100644
index 0000000..c0a22f4
--- /dev/null
+++ b/res/media/ringtones/OrganDub.ogg
Binary files differ
diff --git a/res/media/ringtones/Orion.ogg b/res/media/ringtones/Orion.ogg
new file mode 100644
index 0000000..0323e4d
--- /dev/null
+++ b/res/media/ringtones/Orion.ogg
Binary files differ
diff --git a/res/media/ringtones/Paradise_Island.ogg b/res/media/ringtones/Paradise_Island.ogg
new file mode 100644
index 0000000..386bbd3
--- /dev/null
+++ b/res/media/ringtones/Paradise_Island.ogg
Binary files differ
diff --git a/res/media/ringtones/Pegasus.ogg b/res/media/ringtones/Pegasus.ogg
new file mode 100644
index 0000000..d1bf4b0
--- /dev/null
+++ b/res/media/ringtones/Pegasus.ogg
Binary files differ
diff --git a/res/media/ringtones/Perseus.ogg b/res/media/ringtones/Perseus.ogg
new file mode 100644
index 0000000..48348e5
--- /dev/null
+++ b/res/media/ringtones/Perseus.ogg
Binary files differ
diff --git a/res/media/ringtones/Phobos.ogg b/res/media/ringtones/Phobos.ogg
new file mode 100644
index 0000000..5e312d2
--- /dev/null
+++ b/res/media/ringtones/Phobos.ogg
Binary files differ
diff --git a/res/media/ringtones/Playa.ogg b/res/media/ringtones/Playa.ogg
new file mode 100644
index 0000000..747b699
--- /dev/null
+++ b/res/media/ringtones/Playa.ogg
Binary files differ
diff --git a/res/media/ringtones/PyxisMaterial.ogg b/res/media/ringtones/PyxisMaterial.ogg
new file mode 100644
index 0000000..4786b18
--- /dev/null
+++ b/res/media/ringtones/PyxisMaterial.ogg
Binary files differ
diff --git a/res/media/ringtones/Rasalas.ogg b/res/media/ringtones/Rasalas.ogg
new file mode 100644
index 0000000..7e62f17
--- /dev/null
+++ b/res/media/ringtones/Rasalas.ogg
Binary files differ
diff --git a/res/media/ringtones/Revelation.ogg b/res/media/ringtones/Revelation.ogg
new file mode 100644
index 0000000..4a240e9
--- /dev/null
+++ b/res/media/ringtones/Revelation.ogg
Binary files differ
diff --git a/res/media/ringtones/Rigel.ogg b/res/media/ringtones/Rigel.ogg
new file mode 100644
index 0000000..de3d92f
--- /dev/null
+++ b/res/media/ringtones/Rigel.ogg
Binary files differ
diff --git a/res/media/ringtones/Ring_Classic_02.ogg b/res/media/ringtones/Ring_Classic_02.ogg
new file mode 100644
index 0000000..aeb2d5b
--- /dev/null
+++ b/res/media/ringtones/Ring_Classic_02.ogg
Binary files differ
diff --git a/res/media/ringtones/Ring_Digital_02.ogg b/res/media/ringtones/Ring_Digital_02.ogg
new file mode 100644
index 0000000..f823739
--- /dev/null
+++ b/res/media/ringtones/Ring_Digital_02.ogg
Binary files differ
diff --git a/res/media/ringtones/Ring_Synth_02.ogg b/res/media/ringtones/Ring_Synth_02.ogg
new file mode 100644
index 0000000..4fc1920
--- /dev/null
+++ b/res/media/ringtones/Ring_Synth_02.ogg
Binary files differ
diff --git a/res/media/ringtones/Ring_Synth_04.ogg b/res/media/ringtones/Ring_Synth_04.ogg
new file mode 100644
index 0000000..ec2d9ac
--- /dev/null
+++ b/res/media/ringtones/Ring_Synth_04.ogg
Binary files differ
diff --git a/res/media/ringtones/Road_Trip.ogg b/res/media/ringtones/Road_Trip.ogg
new file mode 100644
index 0000000..cd14ef1
--- /dev/null
+++ b/res/media/ringtones/Road_Trip.ogg
Binary files differ
diff --git a/res/media/ringtones/Rockin.ogg b/res/media/ringtones/Rockin.ogg
new file mode 100644
index 0000000..d48554d
--- /dev/null
+++ b/res/media/ringtones/Rockin.ogg
Binary files differ
diff --git a/res/media/ringtones/RomancingTheTone.ogg b/res/media/ringtones/RomancingTheTone.ogg
new file mode 100644
index 0000000..ebe54e5
--- /dev/null
+++ b/res/media/ringtones/RomancingTheTone.ogg
Binary files differ
diff --git a/res/media/ringtones/Safari.ogg b/res/media/ringtones/Safari.ogg
new file mode 100644
index 0000000..fa2d4ed
--- /dev/null
+++ b/res/media/ringtones/Safari.ogg
Binary files differ
diff --git a/res/media/ringtones/Savannah.ogg b/res/media/ringtones/Savannah.ogg
new file mode 100644
index 0000000..779f3dd
--- /dev/null
+++ b/res/media/ringtones/Savannah.ogg
Binary files differ
diff --git a/res/media/ringtones/Scarabaeus.ogg b/res/media/ringtones/Scarabaeus.ogg
new file mode 100644
index 0000000..3dcd0d7
--- /dev/null
+++ b/res/media/ringtones/Scarabaeus.ogg
Binary files differ
diff --git a/res/media/ringtones/Sceptrum.ogg b/res/media/ringtones/Sceptrum.ogg
new file mode 100644
index 0000000..f2d3ed4
--- /dev/null
+++ b/res/media/ringtones/Sceptrum.ogg
Binary files differ
diff --git a/res/media/ringtones/Sedna.ogg b/res/media/ringtones/Sedna.ogg
new file mode 100644
index 0000000..ff889e6
--- /dev/null
+++ b/res/media/ringtones/Sedna.ogg
Binary files differ
diff --git a/res/media/ringtones/Seville.ogg b/res/media/ringtones/Seville.ogg
new file mode 100644
index 0000000..bea926a
--- /dev/null
+++ b/res/media/ringtones/Seville.ogg
Binary files differ
diff --git a/res/media/ringtones/Sheep.mp3 b/res/media/ringtones/Sheep.mp3
new file mode 100644
index 0000000..f3f84a9
--- /dev/null
+++ b/res/media/ringtones/Sheep.mp3
Binary files differ
diff --git a/res/media/ringtones/Shes_All_That.ogg b/res/media/ringtones/Shes_All_That.ogg
new file mode 100644
index 0000000..86afbb3
--- /dev/null
+++ b/res/media/ringtones/Shes_All_That.ogg
Binary files differ
diff --git a/res/media/ringtones/SilkyWay.ogg b/res/media/ringtones/SilkyWay.ogg
new file mode 100644
index 0000000..e5a38ec
--- /dev/null
+++ b/res/media/ringtones/SilkyWay.ogg
Binary files differ
diff --git a/res/media/ringtones/Simple.ogg b/res/media/ringtones/Simple.ogg
new file mode 100644
index 0000000..646c50f
--- /dev/null
+++ b/res/media/ringtones/Simple.ogg
Binary files differ
diff --git a/res/media/ringtones/SitarVsSitar.ogg b/res/media/ringtones/SitarVsSitar.ogg
new file mode 100644
index 0000000..cfe9c80
--- /dev/null
+++ b/res/media/ringtones/SitarVsSitar.ogg
Binary files differ
diff --git a/res/media/ringtones/Solarium.ogg b/res/media/ringtones/Solarium.ogg
new file mode 100644
index 0000000..8c9d307
--- /dev/null
+++ b/res/media/ringtones/Solarium.ogg
Binary files differ
diff --git a/res/media/ringtones/SpringyJalopy.ogg b/res/media/ringtones/SpringyJalopy.ogg
new file mode 100644
index 0000000..b837aff
--- /dev/null
+++ b/res/media/ringtones/SpringyJalopy.ogg
Binary files differ
diff --git a/res/media/ringtones/Steppin_Out.ogg b/res/media/ringtones/Steppin_Out.ogg
new file mode 100644
index 0000000..5ee5fd1
--- /dev/null
+++ b/res/media/ringtones/Steppin_Out.ogg
Binary files differ
diff --git a/res/media/ringtones/Terminated.ogg b/res/media/ringtones/Terminated.ogg
new file mode 100644
index 0000000..b980053
--- /dev/null
+++ b/res/media/ringtones/Terminated.ogg
Binary files differ
diff --git a/res/media/ringtones/Testudo.ogg b/res/media/ringtones/Testudo.ogg
new file mode 100644
index 0000000..0ca8d6b
--- /dev/null
+++ b/res/media/ringtones/Testudo.ogg
Binary files differ
diff --git a/res/media/ringtones/Themos.ogg b/res/media/ringtones/Themos.ogg
new file mode 100644
index 0000000..4ddc71c
--- /dev/null
+++ b/res/media/ringtones/Themos.ogg
Binary files differ
diff --git a/res/media/ringtones/Third_Eye.ogg b/res/media/ringtones/Third_Eye.ogg
new file mode 100644
index 0000000..dd5a9fd
--- /dev/null
+++ b/res/media/ringtones/Third_Eye.ogg
Binary files differ
diff --git a/res/media/ringtones/Thunderfoot.ogg b/res/media/ringtones/Thunderfoot.ogg
new file mode 100644
index 0000000..5f907a8
--- /dev/null
+++ b/res/media/ringtones/Thunderfoot.ogg
Binary files differ
diff --git a/res/media/ringtones/Titania.ogg b/res/media/ringtones/Titania.ogg
new file mode 100644
index 0000000..87a05ee
--- /dev/null
+++ b/res/media/ringtones/Titania.ogg
Binary files differ
diff --git a/res/media/ringtones/Triton.ogg b/res/media/ringtones/Triton.ogg
new file mode 100644
index 0000000..b5893bd
--- /dev/null
+++ b/res/media/ringtones/Triton.ogg
Binary files differ
diff --git a/res/media/ringtones/TwirlAway.ogg b/res/media/ringtones/TwirlAway.ogg
new file mode 100644
index 0000000..eeff7f0
--- /dev/null
+++ b/res/media/ringtones/TwirlAway.ogg
Binary files differ
diff --git a/res/media/ringtones/Umbriel.ogg b/res/media/ringtones/Umbriel.ogg
new file mode 100644
index 0000000..193e566
--- /dev/null
+++ b/res/media/ringtones/Umbriel.ogg
Binary files differ
diff --git a/res/media/ringtones/UrsaMinor.ogg b/res/media/ringtones/UrsaMinor.ogg
new file mode 100644
index 0000000..30d2cd1
--- /dev/null
+++ b/res/media/ringtones/UrsaMinor.ogg
Binary files differ
diff --git a/res/media/ringtones/VeryAlarmed.ogg b/res/media/ringtones/VeryAlarmed.ogg
new file mode 100644
index 0000000..bfb63f4
--- /dev/null
+++ b/res/media/ringtones/VeryAlarmed.ogg
Binary files differ
diff --git a/res/media/ringtones/Vespa.ogg b/res/media/ringtones/Vespa.ogg
new file mode 100644
index 0000000..4423bbb
--- /dev/null
+++ b/res/media/ringtones/Vespa.ogg
Binary files differ
diff --git a/res/media/ringtones/World.ogg b/res/media/ringtones/World.ogg
new file mode 100644
index 0000000..e226166
--- /dev/null
+++ b/res/media/ringtones/World.ogg
Binary files differ
diff --git a/res/media/ringtones/Yukaay.ogg b/res/media/ringtones/Yukaay.ogg
new file mode 100644
index 0000000..a4c8820
--- /dev/null
+++ b/res/media/ringtones/Yukaay.ogg
Binary files differ
diff --git a/res/media/ringtones/Zeta.ogg b/res/media/ringtones/Zeta.ogg
new file mode 100644
index 0000000..ef64d2f
--- /dev/null
+++ b/res/media/ringtones/Zeta.ogg
Binary files differ
diff --git a/res/microg/apks/apps/GoogleCalendarSyncAdapter.apk b/res/microg/apks/apps/GoogleCalendarSyncAdapter.apk
new file mode 100644
index 0000000..6a7fb8f
--- /dev/null
+++ b/res/microg/apks/apps/GoogleCalendarSyncAdapter.apk
Binary files differ
diff --git a/res/microg/apks/apps/GoogleContactsSyncAdapter.apk b/res/microg/apks/apps/GoogleContactsSyncAdapter.apk
new file mode 100644
index 0000000..5ceb421
--- /dev/null
+++ b/res/microg/apks/apps/GoogleContactsSyncAdapter.apk
Binary files differ
diff --git a/res/microg/permissions/apps/permissions-com.google.android.gms.xml b/res/microg/permissions/apps/permissions-com.google.android.gms.xml
new file mode 100644
index 0000000..bcb6fcf
--- /dev/null
+++ b/res/microg/permissions/apps/permissions-com.google.android.gms.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2019 chris42 (based on work of ale5k and nanolx)
+ SPDX-License-Identifer: GPL-3.0-or-later
+ This file contains permissions to be granted by default.
+ Default permissions are granted to special platform components and to apps that are approved to get default grants.
+ The special components are apps that are expected to work out-of-the-box as they provide core use cases.
+ Fixed permissions cannot be controlled by the user and need a special approval.
+ Typically these are to ensure either legally mandated functions or the app is considered a part of the OS.
+ Granting these permissions could prevent issues on some ROMs or on non-clean installations.
+-->
+
+<exceptions>
+ <exception package="com.google.android.gms">
+ <!-- Phone -->
+ <permission name="android.permission.READ_PHONE_STATE" fixed="false"/>
+ <permission name="android.permission.RECEIVE_SMS" fixed="false" whitelisted="true" />
+ <!-- Account -->
+ <permission name="android.permission.READ_CONTACTS" fixed="false"/>
+ <permission name="android.permission.GET_ACCOUNTS" fixed="false"/>
+ <!-- Location -->
+ <permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
+ <permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
+ <!-- Storage -->
+ <permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>
+ <permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"/>
+ </exception>
+</exceptions>
diff --git a/res/microg/permissions/apps/permissions-google-sync.xml b/res/microg/permissions/apps/permissions-google-sync.xml
new file mode 100644
index 0000000..a18f965
--- /dev/null
+++ b/res/microg/permissions/apps/permissions-google-sync.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Source: https://gitlab.com/Nanolx/NanoDroid/-/blob/master/Google/gsync/etc/default-permissions/google-sync-permissions.xml -->
+<exceptions>
+ <exception package="com.google.android.backuptransport">
+ <permission name="android.permission.READ_CONTACTS" fixed="false"></permission>
+ <permission name="android.permission.WRITE_CONTACTS" fixed="false"></permission>
+ <permission name="android.permission.GET_ACCOUNTS" fixed="false"></permission>
+ </exception>
+
+ <exception package="com.google.android.syncadapters.contacts">
+ <permission name="android.permission.READ_CONTACTS" fixed="false"></permission>
+ <permission name="android.permission.WRITE_CONTACTS" fixed="false"></permission>
+ <permission name="android.permission.GET_ACCOUNTS" fixed="false"></permission>
+ <permission name="com.google.android.googleapps.permission.GOOGLE_AUTH.cp" fixed="false"/>
+ </exception>
+
+ <exception package="com.google.android.syncadapters.calendar">
+ <permission name="android.permission.READ_CALENDAR" fixed="false"></permission>
+ <permission name="android.permission.WRITE_CALENDAR" fixed="false"></permission>
+ </exception>
+</exceptions>
diff --git a/res/microg/permissions/priv-apps/com.google.android.maps.xml b/res/microg/permissions/priv-apps/com.google.android.maps.xml
new file mode 100644
index 0000000..75c85b5
--- /dev/null
+++ b/res/microg/permissions/priv-apps/com.google.android.maps.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <library name="com.google.android.maps" file="/system/framework/com.google.android.maps.jar" />
+</permissions>
+
diff --git a/res/microg/permissions/priv-apps/privapp-permissions-org.microG.xml b/res/microg/permissions/priv-apps/privapp-permissions-org.microG.xml
new file mode 100644
index 0000000..8aeb2b2
--- /dev/null
+++ b/res/microg/permissions/priv-apps/privapp-permissions-org.microG.xml
@@ -0,0 +1,62 @@
+<!-- microG Installer -->
+<permissions>
+ <privapp-permissions package="com.google.android.gms">
+ <permission name="android.permission.LOCATION_HARDWARE"/>
+ <permission name="android.permission.MODIFY_PHONE_STATE"/>
+ <permission name="android.permission.NETWORK_SCAN"/>
+ <permission name="android.permission.UPDATE_DEVICE_STATS"/>
+ <permission name="android.permission.WATCH_APPOPS"/>
+ <permission name="android.permission.INSTALL_LOCATION_PROVIDER"/>
+ <permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>
+ <permission name="android.permission.FAKE_PACKAGE_SIGNATURE"/>
+ <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
+ <permission name="android.permission.MANAGE_USB" />
+ <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
+ <permission name="android.permission.INTERACT_ACROSS_USERS" />
+ <permission name="android.permission.INTERACT_ACROSS_PROFILES" />
+ <permission name="android.permission.PROVIDE_REMOTE_CREDENTIALS" />
+ <permission name="android.permission.PROVIDE_DEFAULT_ENABLED_CREDENTIAL_SERVICE" />
+ <!-- %FAKE_PACKAGE_SIGNATURE% -->
+ </privapp-permissions>
+ <!-- For real Play Store; Fake Store will not use all except one (FAKE_PACKAGE_SIGNATURE) of them -->
+ <privapp-permissions package="com.android.vending">
+ <permission name="android.permission.ALLOCATE_AGGRESSIVE" />
+ <permission name="android.permission.BACKUP" />
+ <permission name="android.permission.BATTERY_STATS" />
+ <permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
+ <permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" />
+ <permission name="android.permission.CHANGE_OVERLAY_PACKAGES" />
+ <permission name="android.permission.CLEAR_APP_CACHE" />
+ <permission name="android.permission.CONNECTIVITY_INTERNAL" />
+ <permission name="android.permission.DELETE_PACKAGES" />
+ <permission name="android.permission.DUMP" />
+ <permission name="android.permission.FAKE_PACKAGE_SIGNATURE" />
+ <permission name="android.permission.FORCE_STOP_PACKAGES" />
+ <permission name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
+ <permission name="android.permission.GET_APP_OPS_STATS" />
+ <permission name="android.permission.INSTALL_PACKAGES" />
+ <permission name="android.permission.INTERACT_ACROSS_USERS" />
+ <permission name="android.permission.LOADER_USAGE_STATS" />
+ <permission name="android.permission.MANAGE_CLOUDSEARCH" />
+ <permission name="android.permission.MANAGE_ROLLBACKS" />
+ <permission name="android.permission.MANAGE_USERS" />
+ <permission name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD" />
+ <permission name="android.permission.PACKAGE_USAGE_STATS" />
+ <deny-permission name="android.permission.PACKAGE_VERIFICATION_AGENT" />
+ <deny-permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
+ <permission name="android.permission.READ_RUNTIME_PROFILES" />
+ <permission name="android.permission.REAL_GET_TASKS" />
+ <permission name="android.permission.REBOOT" />
+ <permission name="android.permission.SEND_DEVICE_CUSTOMIZATION_READY" />
+ <permission name="android.permission.SEND_SAFETY_CENTER_UPDATE" />
+ <deny-permission name="android.permission.SEND_SMS_NO_CONFIRMATION" />
+ <permission name="android.permission.SET_PREFERRED_APPLICATIONS" />
+ <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
+ <permission name="android.permission.STATUS_BAR" />
+ <permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
+ <permission name="android.permission.UPDATE_DEVICE_STATS" />
+ <permission name="android.permission.USE_INSTALLER_V2" />
+ <permission name="com.android.permission.USE_INSTALLER_V2" />
+ <permission name="android.permission.WRITE_SECURE_SETTINGS" />
+ </privapp-permissions>
+</permissions>
diff --git a/res/microg/signatures-google/gms/APKSigningBlock b/res/microg/signatures-google/gms/APKSigningBlock
new file mode 100644
index 0000000..eff3cae
--- /dev/null
+++ b/res/microg/signatures-google/gms/APKSigningBlock
Binary files differ
diff --git a/res/microg/signatures-google/gms/APKSigningBlockOffset b/res/microg/signatures-google/gms/APKSigningBlockOffset
new file mode 100644
index 0000000..0ef786b
--- /dev/null
+++ b/res/microg/signatures-google/gms/APKSigningBlockOffset
@@ -0,0 +1 @@
+258801664
diff --git a/res/microg/signatures-google/phonesky/APKSigningBlock b/res/microg/signatures-google/phonesky/APKSigningBlock
new file mode 100644
index 0000000..4cadeb5
--- /dev/null
+++ b/res/microg/signatures-google/phonesky/APKSigningBlock
Binary files differ
diff --git a/res/microg/signatures-google/phonesky/APKSigningBlockOffset b/res/microg/signatures-google/phonesky/APKSigningBlockOffset
new file mode 100644
index 0000000..02663ec
--- /dev/null
+++ b/res/microg/signatures-google/phonesky/APKSigningBlockOffset
@@ -0,0 +1 @@
+91430912
diff --git a/res/microg/system/framework/com.google.android.maps.jar b/res/microg/system/framework/com.google.android.maps.jar
new file mode 100644
index 0000000..3779c77
--- /dev/null
+++ b/res/microg/system/framework/com.google.android.maps.jar
Binary files differ
diff --git a/res/microg/system/lib/arm64/libconscrypt_gmscore_jni.so b/res/microg/system/lib/arm64/libconscrypt_gmscore_jni.so
new file mode 100644
index 0000000..f3753d1
--- /dev/null
+++ b/res/microg/system/lib/arm64/libconscrypt_gmscore_jni.so
Binary files differ
diff --git a/res/microg/system/lib/arm64/libcronet.102.0.5005.125.so b/res/microg/system/lib/arm64/libcronet.102.0.5005.125.so
new file mode 100644
index 0000000..5405ff2
--- /dev/null
+++ b/res/microg/system/lib/arm64/libcronet.102.0.5005.125.so
Binary files differ
diff --git a/res/microg/system/lib/arm64/libmapbox-gl.so b/res/microg/system/lib/arm64/libmapbox-gl.so
new file mode 100644
index 0000000..6f8865d
--- /dev/null
+++ b/res/microg/system/lib/arm64/libmapbox-gl.so
Binary files differ
diff --git a/res/microg/system/lib/armeabi-v7a/libconscrypt_gmscore_jni.so b/res/microg/system/lib/armeabi-v7a/libconscrypt_gmscore_jni.so
new file mode 100644
index 0000000..a81dcee
--- /dev/null
+++ b/res/microg/system/lib/armeabi-v7a/libconscrypt_gmscore_jni.so
Binary files differ
diff --git a/res/microg/system/lib/armeabi-v7a/libcronet.102.0.5005.125.so b/res/microg/system/lib/armeabi-v7a/libcronet.102.0.5005.125.so
new file mode 100644
index 0000000..6f0d0a1
--- /dev/null
+++ b/res/microg/system/lib/armeabi-v7a/libcronet.102.0.5005.125.so
Binary files differ
diff --git a/res/microg/system/lib/armeabi-v7a/libmapbox-gl.so b/res/microg/system/lib/armeabi-v7a/libmapbox-gl.so
new file mode 100644
index 0000000..1fac2c6
--- /dev/null
+++ b/res/microg/system/lib/armeabi-v7a/libmapbox-gl.so
Binary files differ
diff --git a/res/permissions/apps/default-permissions-org.dslul.openboard.inputmethod.latin.xml b/res/permissions/apps/default-permissions-org.dslul.openboard.inputmethod.latin.xml
new file mode 100644
index 0000000..68833ae
--- /dev/null
+++ b/res/permissions/apps/default-permissions-org.dslul.openboard.inputmethod.latin.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<exceptions>
+ <exception package="org.dslul.openboard.inputmethod.latin">
+ <permission name="android.permission.READ_USER_DICTIONARY" fixed="false"/>
+ <permission name="android.permission.RECEIVE_BOOT_COMPLETED" fixed="false"/>
+ <permission name="android.permission.VIBRATE" fixed="false"/>
+ <permission name="android.permission.WRITE_USER_DICTIONARY" fixed="false"/>
+ </exception>
+</exceptions>
diff --git a/res/permissions/priv-apps/privapp-permissions-app.lawnchair.xml b/res/permissions/priv-apps/privapp-permissions-app.lawnchair.xml
new file mode 100644
index 0000000..303d62f
--- /dev/null
+++ b/res/permissions/priv-apps/privapp-permissions-app.lawnchair.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <privapp-permissions package="app.lawnchair">
+ <permission name="android.permission.INTERNET" />
+ <permission name="android.permission.PACKAGE_USAGE_STATS" />
+ <permission name="android.permission.FOREGROUND_SERVICE" />
+ <permission name="com.google.android.apps.nexuslauncher.permission.QSB" />
+ <permission name="com.kieronquinn.app.smartspacer.permission.ACCESS_SMARTSPACER" />
+ <permission name="android.permission.READ_CONTACTS" />
+ <permission name="android.permission.READ_MEDIA_IMAGES" />
+ <permission name="android.permission.READ_MEDIA_VIDEO" />
+ <permission name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
+ <permission name="android.permission.READ_MEDIA_AUDIO" />
+ <permission name="android.permission.READ_HISTORY_BOOKMARKS" />
+ <permission name="android.permission.WRITE_HISTORY_BOOKMARKS" />
+ <permission name="android.permission.INTERACT_ACROSS_USERS" />
+ <permission name="android.permission.INTERACT_ACROSS_USERS_FULL" />
+ <permission name="android.permission.MANAGE_USERS" />
+ <permission name="android.permission.FORCE_STOP_PACKAGES" />
+ <permission name="android.permission.STATUS_BAR_SERVICE" />
+ <permission name="android.permission.SUSPEND_APPS" />
+ <permission name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" />
+ <permission name="android.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS" />
+ <permission name="android.permission.VIBRATE" />
+ <permission name="android.permission.QUERY_ALL_PACKAGES" />
+ <permission name="android.permission.START_TASKS_FROM_RECENTS" />
+ <permission name="android.permission.REMOVE_TASKS" />
+ <permission name="android.permission.WRITE_SECURE_SETTINGS" />
+ <permission name="android.permission.MANAGE_ACTIVITY_TASKS" />
+ <permission name="android.permission.INTERNAL_SYSTEM_WINDOW" />
+ <permission name="android.permission.STATUS_BAR" />
+ <permission name="android.permission.STOP_APP_SWITCHES" />
+ <permission name="android.permission.SET_ORIENTATION" />
+ <permission name="android.permission.READ_FRAME_BUFFER" />
+ <permission name="android.permission.MANAGE_ACCESSIBILITY" />
+ <permission name="android.permission.MONITOR_INPUT" />
+ <permission name="android.permission.ALLOW_SLIPPERY_TOUCHES" />
+ <permission name="android.permission.ACCESS_SHORTCUTS" />
+ <permission name="android.permission.SYSTEM_APPLICATION_OVERLAY" />
+ <permission name="android.permission.ACCESS_HIDDEN_PROFILES_FULL" />
+ <permission name="android.permission.ACCESS_HIDDEN_PROFILES" />
+ <permission name="android.permission.MANAGE_EXTERNAL_STORAGE" />
+ <permission name="android.permission.CALL_PHONE" />
+ <permission name="android.permission.SET_WALLPAPER" />
+ <permission name="android.permission.SET_WALLPAPER_HINTS" />
+ <permission name="android.permission.BIND_APPWIDGET" />
+ <permission name="android.permission.READ_EXTERNAL_STORAGE" />
+ <permission name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <permission name="android.permission.REQUEST_DELETE_PACKAGES" />
+ <permission name="android.permission.READ_DEVICE_CONFIG" />
+ <permission name="android.permission.EXPAND_STATUS_BAR" />
+ <permission name="android.permission.ACCESS_RESTRICTED_SETTINGS" />
+ <permission name="android.permission.ROTATE_SURFACE_FLINGER" />
+ <permission name="android.permission.WAKEUP_SURFACE_FLINGER" />
+ <permission name="android.permission.POST_NOTIFICATIONS" />
+ <permission name="app.lawnchair.permission.READ_SETTINGS" />
+ <permission name="app.lawnchair.permission.WRITE_SETTINGS" />
+ <permission name="android.permission.CAPTURE_BLACKOUT_CONTENT" />
+ <permission name="app.lawnchair.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" />
+ </privapp-permissions>
+</permissions>
diff --git a/res/permissions/priv-apps/privapp-permissions-me.kasesag.driedlamu.asistant.xml b/res/permissions/priv-apps/privapp-permissions-me.kasesag.driedlamu.asistant.xml
new file mode 100644
index 0000000..24419a8
--- /dev/null
+++ b/res/permissions/priv-apps/privapp-permissions-me.kasesag.driedlamu.asistant.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <privapp-permissions package="me.kasesag.driedlamu.asistant">
+ <permission name="android.permission.WRITE_SECURE_SETTINGS" />
+ </privapp-permissions>
+</permissions>
diff --git a/scripts/add_media.sh b/scripts/add_media.sh
new file mode 100755
index 0000000..44bc5bf
--- /dev/null
+++ b/scripts/add_media.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR> <TMP_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+TMP_DIR=$2
+PRODUCT_DIR="${BASE_DIR}/product_a"
+RES_MEDIA_DIR="${TMP_DIR}/res/media"
+
+add_tones() {
+ local subdir=$1
+
+ cp -L -r "${RES_MEDIA_DIR}"/"${subdir}"/* "${PRODUCT_DIR}"/media-moto/"${subdir}"
+
+ for tone in "${RES_MEDIA_DIR}"/"${subdir}"/*; do
+ [ -f "$tone" ] || continue
+ tone_name=$(basename "$tone")
+
+ ./utils/scripts/add_to_fs.sh product_a "$tone_name" media-moto/"${subdir}"
+ done
+}
+
+add_tones "ringtones"
+add_tones "notifications"
+add_tones "ringtones"
diff --git a/scripts/apk_obtain_permissions.sh b/scripts/apk_obtain_permissions.sh
new file mode 100755
index 0000000..c40c3b3
--- /dev/null
+++ b/scripts/apk_obtain_permissions.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <TMP_DIR>"
+ exit 1
+fi
+
+TMP_DIR=$1
+APPS_DIR="$TMP_DIR/res/apks"
+PERMISSIONS_APPS_DIR="$TMP_DIR/res/permissions"
+
+mkdir -p "$TMP_DIR/res/permissions" \
+ "$TMP_DIR/res/permissions/apps" \
+ "$TMP_DIR/res/permissions/priv-apps"
+
+obtain_permissions() {
+ local type_app=$1
+
+ for apk in "${APPS_DIR}"/$type_app/*.apk; do
+ package_name=$(aapt dump badging ${apk} | awk '/package:/{gsub("name=|'"'"'",""); print $2}')
+ permissions=$(aapt dump badging ${apk} | awk '/uses-permission:/{gsub("name=|'"'"'",""); print $2}')
+
+ if [[ $type_app == "apps" ]]; then
+ out_file="${PERMISSIONS_APPS_DIR}/$type_app/default-permissions-${package_name}.xml"
+ echo -e '<?xml version="1.0" encoding="utf-8"?>\n<exceptions>\n\t<exception package="'$package_name'">' > "$out_file"
+ for p in $permissions; do
+ echo -e '\t\t<permission name="'$p'" fixed="false"/>' >> "$out_file"
+ done
+ echo -e '\t</exception>\n</exceptions>' >> "$out_file"
+
+ echo -e "\t[+] $out_file"
+ else
+ out_file="${PERMISSIONS_APPS_DIR}/$type_app/privapp-permissions-${package_name}.xml"
+ echo -e '<?xml version="1.0" encoding="utf-8"?>\n<permissions>\n\t<privapp-permissions package="'$package_name'">' > "$out_file"
+ for p in $permissions; do
+ echo -e '\t\t<permission name="'$p'" />' >> "$out_file"
+ done
+ echo -e '\t</privapp-permissions>\n</permissions>' >> "$out_file"
+
+ echo -e "\t[+] $out_file"
+ fi
+
+ done
+}
+
+echo -e "[*] Obtaining permissions from APKs."
+obtain_permissions "apps"
+obtain_permissions "priv-apps"
diff --git a/scripts/bloatware/bloatware.json b/scripts/bloatware/bloatware.json
new file mode 100644
index 0000000..23dab79
--- /dev/null
+++ b/scripts/bloatware/bloatware.json
@@ -0,0 +1,720 @@
+{
+ "product_a": [
+ {
+ "path": "priv-app/MotoFeedback",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GameMode",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "operator-app/priv-app/PayJoyAccess",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/FamilyLinkParentalControls/",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GooglePartnerSetup",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/AndroidAutoStub",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/AndroidSystemIntelligence",
+ "description": "An app that enables smart and personalized features on your Android phone using machine learning and Private Compute Core",
+ "remove": false
+ },
+ {
+ "path": "priv-app/AndroidSettingsIntelligence",
+ "description": "If you remove it, you will lose the search in the settings",
+ "remove": false
+ },
+ {
+ "path": "priv-app/SettingsIntelligence",
+ "description": "If you remove it, you will lose the search in the settings",
+ "remove": false
+ },
+ {
+ "path": "priv-app/GoogleRestore",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/Turbo",
+ "description": "Breaks battery settings",
+ "remove": false
+ },
+ {
+ "path": "priv-app/Velvet",
+ "description": "Google's Main app (aka. QuickSearchBox)",
+ "remove": true
+ },
+ {
+ "path": "app/YouTube",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Meet",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/YTMusic",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/com.google.mainline.adservices",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/com.google.mainline.telemetry",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Drive",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Gmail2",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Maps",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Chrome64",
+ "description": "Google Chrome web browser",
+ "remove": true
+ },
+ {
+ "path": "app/WebViewGoogle64",
+ "description": "Default Google's webview app.",
+ "remove": false
+ },
+ {
+ "path": "app/CalculatorGoogle",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/DeskClockGoogle",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/GoogleLocationHistory",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Photos",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/Videos",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GoogleOne",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GoogleOneTimeInitializer",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/com.google.android.modulemetadata",
+ "description": "",
+ "remove": false
+ },
+ {
+ "path": "priv-app/AssistantShell",
+ "description": "Google Assistant",
+ "remove": true
+ },
+ {
+ "path": "priv-app/Messages",
+ "description": "Google Messages",
+ "remove": true
+ },
+ {
+ "path": "priv-app/Phonesky",
+ "description": "Google Play store",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GmsCore",
+ "description": "Google Play Services",
+ "remove": true
+ },
+ {
+ "path": "app/CalendarGoogle",
+ "description": "Google Calendar",
+ "remove": true
+ },
+ {
+ "path": "app/GoogleContacts",
+ "description": "Google Calendar",
+ "remove": true
+ },
+ {
+ "path": "priv-app/FilesGoogle",
+ "description": "Google Files",
+ "remove": true
+ },
+ {
+ "path": "priv-app/PersonalSafety",
+ "description": "Google Personal Safety Manager (broken)",
+ "remove": true
+ },
+ {
+ "path": "app/LatinImeGoogle",
+ "description": "GBoard",
+ "remove": true
+ },
+ {
+ "path": "priv-app/Wellbeing",
+ "description": "Digital Wellbeing",
+ "remove": true
+ },
+ {
+ "path": "overlay/GmsConfigOverlayASI.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GmsConfigOverlayCommon.apk",
+ "description": "Removing this causes system's webview to not be present.",
+ "remove": false
+ },
+ {
+ "path": "overlay/GmsConfigOverlayComms.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GmsConfigOverlayGeotz.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GmsConfigOverlayGSA.apk",
+ "description": "GSA - Google Search Assistant. Needed to enable 'DigitalAssistant' app to work.",
+ "remove": false
+ },
+ {
+ "path": "overlay/GmsConfigOverlayPersonalSafety.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GmsConfigOverlayPhotos.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GmsConfigOverlaySearchSelector.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "operator-app/priv-app/DigitalTurbine",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "operator-app/priv-app/OneWeather",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "operator-app/priv-app/OneWeatherAmx",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "app/SpeechServicesByGoogle",
+ "description": "Google TTS",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GoogleDialer",
+ "description": "Google default dialer",
+ "remove": true
+ },
+ {
+ "path": "overlay/MotoSetupWizardOverlay.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/MotoSetupWizardOverlayDS.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GoogleDeviceLockControllerOverlay.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/GoogleExtServicesConfigOverlay.apk",
+ "description": "Seems to preconfigure Google assistant as the preferred package. Removing causes defects.",
+ "remove": false
+ },
+ {
+ "path": "overlay/GooglePermissionControllerOverlay.apk",
+ "description": "Removing causes defects.",
+ "remove": false
+ },
+ {
+ "path": "overlay/GooglePermissionControllerFrameworkOverlay.apk",
+ "description": "Seems to preconfigure Google Wallet as the preferred package. Removing causes defects.",
+ "remove": false
+ },
+ {
+ "path": "overlay/PAKSOverlayTCE.apk",
+ "description": "Overlay for PAKS (package removed from the system).",
+ "remove": true
+ },
+ {
+ "path": "overlay/PAKSOverlayUSC.apk",
+ "description": "Overlay for PAKS (package removed from the system).",
+ "remove": true
+ },
+ {
+ "path": "overlay/LauncherFrameworkRRO.apk",
+ "description": "",
+ "remove": false
+ },
+ {
+ "path": "overlay/MotoLauncherConfigLamuLiteResOverlay.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/MotoLauncherConfigLamuPowerResOverlay.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/MotoLauncherOverlayAMX.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/MotoLauncherOverlayAppLabelTwoLines.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/MotoLauncherResOverlay.apk",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "overlay/VivoAppTrayFolderOverlay.apk",
+ "description": "",
+ "remove": true
+ }
+ ],
+
+ "system_a": [
+ {
+ "path": "system/app/CompanionDeviceManager",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/app/facebook-appmanager",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/app/WallpaperBackup",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/app/BasicDreams",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/app/MotoSignatureApp",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/LiveWallpapersPicker",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/LenovoID",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/facebook-installer",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/facebook-services",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/Taboola",
+ "description": "Moto Live lockscreen",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/PartnerBookmarksProviderMoto",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/MotoGlance",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/TelcelContenedor",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/BRApps2",
+ "description": "Allows unathorized installation of bloatware by moto.",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/ChromeHomePageProviderMoto",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/ClaroContenedor",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/StubMotorolaClaro",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/SysDLL",
+ "description": "Useless app that sends requests to carrier servers to know if the device has to be locked (if the IMEI is banned)",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/IronSource",
+ "description": "IronSource: Israeli software company offering products focused on the app economy.",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/IronSource3UK",
+ "description": "IronSource: Israeli software company offering products focused on the app economy.",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/MotoCamera",
+ "description": "",
+ "remove": false
+ },
+ {
+ "path": "system/priv-app/ManagedProvisioning",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/ONS",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/preloadapp/app/facebook",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/preloadapp/operator-app/app/instagram",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/MotoHelp",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/MotoSpaces",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/MotoOta",
+ "description": "OTA updater from Motorola",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/PlayAutoInstallConfigSigned",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/app/ApeSoundRecorder",
+ "description": "Shipped sound recorder",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/SearchSelector",
+ "description": "Search Selector app (depends on GMS)",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/MotoSetupWizard",
+ "description": "Moto setup wizard application",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/EnterpriseAdapterService",
+ "description": "Thinkshield",
+ "remove": true
+ },
+ {
+ "path": "system/priv-app/MotoThinkUEM",
+ "description": "Thinkshield",
+ "remove": true
+ },
+ {
+ "path": "system/app/TimeWeather",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/app/CarrierDefaultApp",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/HomepageAPAC",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/MDIP",
+ "description": "Amazon appmanager",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/priv-app/Orange",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfig",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigAmxar",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigAmxcl",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigAmxco",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigAmxla",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigAmxmx",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigAmxpe",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigClaro",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigLenovo",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigOraeu",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigPlaypl",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigTimit",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigYandex",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/operator-app/app/MotoLauncherConfigYandexLenovo",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "system/framework/moto-enterprise.jar",
+ "description": "",
+ "remove": false
+ },
+ {
+ "path": "system/framework/moto-core_services.jar",
+ "description": "",
+ "remove": false
+ },
+ {
+ "path": "system/framework/moto-enterprise.jar.fsv_meta",
+ "description": "",
+ "remove": false
+ },
+ {
+ "path": "system/framework/moto-core_services.jar.fsv_meta",
+ "description": "",
+ "remove": false
+ }
+ ],
+
+ "system_ext_a": [
+ {
+ "path": "priv-app/PAKS",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/PaksNotification",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/DemoMode",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/GoogleFeedback",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "operator-app/priv-app/MotoLiveWallpaper3",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/Notifications",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/MotoCare",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/SetupWizard",
+ "description": "Removing this app causes system to become unusable without prior option changes.",
+ "remove": false
+ },
+ {
+ "path": "priv-app/GoogleServicesFramework",
+ "description": "Google GSF",
+ "remove": true
+ },
+ {
+ "path": "priv-app/MotoInstaller",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/MotoSecureVault",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/MotoSecurityHub",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/Devicemanagement",
+ "description": "Device management app",
+ "remove": true
+ },
+ {
+ "path": "app/Main",
+ "description": "",
+ "remove": true
+ },
+ {
+ "path": "priv-app/MotoLauncher",
+ "description": "Replaced with Lawnchair. Requires LauncherFrameworkRRO overlay to be set to 'app.lawnchair'.",
+ "remove": true
+ },
+ {
+ "path": "priv-app/DuraSpeed",
+ "description": "DuraSpeed by Mediatek. Can be disabled by the end-user without uninstalling app.",
+ "remove": false
+ },
+ {
+ "path": "priv-app/CoreSettingsExt",
+ "description": "",
+ "remove": true
+ }
+ ]
+}
diff --git a/scripts/bloatware/main.sh b/scripts/bloatware/main.sh
new file mode 100755
index 0000000..2a76137
--- /dev/null
+++ b/scripts/bloatware/main.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+SCRIPT_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
+CONFIG="${SCRIPT_DIR}/bloatware.json"
+BLOATWARE=()
+
+BLOATWARE+=($(jq -r '.product_a[] | select(.remove == true) | "product_a/\(.path)"' "$CONFIG"))
+BLOATWARE+=($(jq -r '.system_a[] | select(.remove == true) | "system_a/\(.path)"' "$CONFIG"))
+BLOATWARE+=($(jq -r '.system_ext_a[] | select(.remove == true) | "system_ext_a/\(.path)"' "$CONFIG"))
+
+for package in "${BLOATWARE[@]}"; do
+ echo "[-] ${BASE_DIR}/${package}"
+ rm -rf "${BASE_DIR}/${package}"
+done
diff --git a/scripts/configs/main.sh b/scripts/configs/main.sh
new file mode 100755
index 0000000..55ebc46
--- /dev/null
+++ b/scripts/configs/main.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR> <TMP_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+TMP_DIR=$2
+SCRIPT_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
+
+cp -L "$TMP_DIR/res/configs/preferred-apps/preferred-apps-driedlamu.xml" "${BASE_DIR}"/product_a/etc/preferred-apps
+./utils/scripts/add_to_fs.sh product_a "preferred-apps-driedlamu.xml" etc/preferred-apps 1
+
+cp -L -r "$TMP_DIR/res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml" "${BASE_DIR}/product_a/etc/sysconfig"
+./utils/scripts/add_to_fs.sh product_a app.lawnchair-hiddenapi-package-whitelist.xml etc/sysconfig
+
+"${SCRIPT_DIR}"/modify_configs.sh "$BASE_DIR"
+"${SCRIPT_DIR}"/remove_configs.sh "$BASE_DIR"
diff --git a/scripts/configs/modify_configs.sh b/scripts/configs/modify_configs.sh
new file mode 100755
index 0000000..d400346
--- /dev/null
+++ b/scripts/configs/modify_configs.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+
+SYSTEM_DIR="${BASE_DIR}/system_a"
+PRODUCT_DIR="${BASE_DIR}/product_a"
+SYSTEM_EXT_DIR="${BASE_DIR}/system_ext_a"
+
+modify_default_assistant() {
+ local apk_name="GmsConfigOverlayGSA"
+ local apk_location="${PRODUCT_DIR}/overlay"
+ local working_dir="/tmp/driedlamu/modify_apk/${apk_name}/decompile"
+ local assistant_package_name="me.kasesag.driedlamu.assistant"
+
+ ./utils/scripts/modify_apk.sh unpack "$apk_location"/${apk_name}.apk
+ xml ed -L -u "/resources/string[@name='config_defaultAssistant']" -v "${assistant_package_name}" "$working_dir/res/values/strings.xml"
+ ./utils/scripts/modify_apk.sh repack "$apk_location"/${apk_name}.apk "$apk_location"
+}
+
+modify_default_launcher() {
+ local apk_name="LauncherFrameworkRRO"
+ local apk_location="${PRODUCT_DIR}/overlay"
+ local working_dir="/tmp/driedlamu/modify_apk/${apk_name}/decompile"
+ local launcher_package_name="app.lawnchair"
+
+ ./utils/scripts/modify_apk.sh unpack "$apk_location"/${apk_name}.apk
+ sed -i "s/com.motorola.launcher3/${launcher_package_name}/g" "$working_dir/res/values/strings.xml"
+ ./utils/scripts/modify_apk.sh repack "$apk_location"/${apk_name}.apk "$apk_location"
+}
+
+echo "[=] Modifying default assistant to 'me.kasesag.driedlamu.asistant'"
+modify_default_assistant
+
+echo "[=] Modifying default launcher activity to 'app.lawnchair'"
+modify_default_launcher
+
+echo "[=] Writing an empty config to ${SYSTEM_DIR}/system/etc/sysconfig/enable-disable-preload-apps.xml"
+echo -e '<?xml version="1.0" encoding="utf-8"?>\n<config>\n\n</config>' > "${SYSTEM_DIR}/system/etc/sysconfig/enable-disable-preload-apps.xml"
+./utils/scripts/add_to_fs.sh system_a "enable-disable-preload-apps.xml" system/etc/sysconfig
+
+echo "[=] Writing an empty config to ${SYSTEM_DIR}/system/etc/appmanager.conf"
+touch "${SYSTEM_DIR}/system/etc/appmanager.conf"
+./utils/scripts/add_to_fs.sh system_a "appmanager.conf" system/etc
+
+echo "[=] Patching 'system_ext_property_contexts' in ${SYSTEM_EXT_DIR}/etc/selinux/system_ext_property_contexts"
+sed -i -e "/facebook/d" \
+ -e "/spotify/d" \
+ -e "/booking/d" \
+ -e "/inmobi/d" \
+ -e "/zero_touch/d" \
+ "${SYSTEM_EXT_DIR}/etc/selinux/system_ext_property_contexts" \ No newline at end of file
diff --git a/scripts/configs/remove_configs.sh b/scripts/configs/remove_configs.sh
new file mode 100755
index 0000000..6940b2e
--- /dev/null
+++ b/scripts/configs/remove_configs.sh
@@ -0,0 +1,95 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+
+SYSTEM_DIR="${BASE_DIR}/system_a"
+PRODUCT_DIR="${BASE_DIR}/product_a"
+SYSTEM_EXT_DIR="${BASE_DIR}/system_ext_a"
+
+REMOVE_CONFIGS=(
+ "${PRODUCT_DIR}/etc/sysconfig/bugreport-whitelist-com.motorola.help.xml"
+ "${PRODUCT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.gamemode.xml"
+ "${PRODUCT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.help.xml"
+ "${PRODUCT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.timeweatherwidget.xml"
+ "${PRODUCT_DIR}/etc/sysconfig/preinstalled-packages-platform-overlays.xml"
+ "${PRODUCT_DIR}/etc/sysconfig/shortcut-com.motorola.gamemode.xml"
+ "${PRODUCT_DIR}/etc/sysconfig/whitelist_com.dti.motorola.xml"
+ "${PRODUCT_DIR}/etc/preferred-apps/google.xml"
+ "${PRODUCT_DIR}/etc/tn_app_delay.xml"
+ "${PRODUCT_DIR}/etc/perf_config_common.xml"
+
+ "${SYSTEM_EXT_DIR}/etc/init/init.spotifyprops.rc"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/com.motorola.ccc.devicemanagement.powersave.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/com.motorola.ccc.mainplm.powersave.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/com.motorola.ccc.notification.powersave.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/com.motorola.installer.powersave.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/com.motorola.paks.powersave.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-allowlist-com.motorola.paks.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.ccc.devicemanagement.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.ccc.notification.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.demo.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.livewallpaper.xml"
+ # "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.securevault.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/hiddenapi-whitelist-com.motorola.launcher3.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/initial-package-stopped-states-com.motorola.securityhub.xml"
+ "${SYSTEM_EXT_DIR}/etc/sysconfig/whitelist_com.motorola.motocare.xml"
+ "${SYSTEM_EXT_DIR}/etc/nondisable/com.motorola.ccc.devicemanagement.nondisable.xml"
+ "${SYSTEM_EXT_DIR}/etc/nondisable/com.motorola.installer.xml"
+ "${SYSTEM_EXT_DIR}/etc/enable-disable-packages/enable-disable-com.motorola.installer.xml"
+
+ "${SYSTEM_DIR}/system/etc/sysconfig/facebook-hiddenapi-package-allowlist.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/hiddenapi-moto-ota-package-whitelist.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/hiddenapi-whitelist-com.motorola.brapps.xml"
+ "${SYSTEM_DIR}/system/etc/enable-disable-packages/enable-disable-com.motorola.brapps.xml"
+ "${SYSTEM_DIR}/system/etc/enable-disable-packages/enable-disable-com.motorola.enterprise.adapter.service.xml"
+
+ "${SYSTEM_DIR}/system/etc/init/facebook-appmanager.rc"
+ "${SYSTEM_DIR}/system/etc/sysconfig/afw-com.aura.oobe.motorola.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/afw-com.dti.motorola.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/afw-com.inmobi.installer.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/business-edition-disabled-apps.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/com.motorola.brapps.powersave.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/com.motorola.enterprise.adapter.service.powersave.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/hiddenapi-whitelist-cco.sitic.pp.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/hiddenapi-whitelist-com.android.providers.partnerbookmarks.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/hiddenapi-whitelist-com.motorola.android.providers.chromehomepage.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/hiddenapi-whitelist-moto.xml" # MotoOTA package
+ "${SYSTEM_DIR}/system/etc/sysconfig/initial-package-stopped-states-orange.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/meta-hiddenapi-package-allowlist.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/sysconfig-orange.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/whitelist_aura.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/whitelist_com.claroColombia.contenedor.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/whitelist_com.ironsource.appcloud.oobe.hutchison.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/whitelist_com.motorola.spaces.xml"
+ "${SYSTEM_DIR}/system/etc/sysconfig/whitelist_com.telcel.contenedor.xml"
+ "${SYSTEM_DIR}/system/etc/appmanager.conf"
+)
+
+REMOVE_DIRS=(
+ "${PRODUCT_DIR}/media-poland-play"
+ "${PRODUCT_DIR}/etc/sku_RU"
+ "${PRODUCT_DIR}/etc/sku_INDIA"
+ "${PRODUCT_DIR}/etc/sku_EEA"
+ "${PRODUCT_DIR}/etc/motorola"
+ "${PRODUCT_DIR}/etc/MotoDesktopAppConfig"
+
+ # "${SYSTEM_DIR}/system/etc/duraspeed"
+)
+
+echo "[i] Removing system configs..."
+for config in "${REMOVE_CONFIGS[@]}"; do
+ echo -e "\t[-] ${config}"
+ rm -rf "$config"
+done
+
+echo "[i] Removing system directories..."
+for config in "${REMOVE_DIRS[@]}"; do
+ echo -e "\t[-] ${config}"
+ rm -rf "$config"
+done
diff --git a/scripts/download_apks.sh b/scripts/download_apks.sh
new file mode 100755
index 0000000..e494b9e
--- /dev/null
+++ b/scripts/download_apks.sh
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <TMP_DIR>"
+ exit 1
+fi
+
+source .config
+
+TMP_DIR=$1
+APK_RES_DIR="$TMP_DIR/res/apks"
+
+FDROID_PACKAGES=(
+ "org.fossify.math"
+ "org.fossify.clock"
+ "org.fossify.contacts"
+ "org.fossify.filemanager"
+ "org.fossify.gallery"
+ "org.fossify.messages"
+ "org.fossify.phone"
+ "org.fossify.voicerecorder"
+ "org.fossify.musicplayer"
+ "org.fossify.calendar"
+)
+
+normalize_package_name() {
+ local package_name=$1
+ local dots=$(echo "${package_name}" | grep -o "\." | wc -l)
+ echo "${package_name}" | tr "." "\n" | sed -e "1,${dots}d" -e "s/\b\(.\)/\u\1/g"
+}
+
+fdroid_download_package() {
+ local package_name=$1
+ local output_dir=$2
+ local version=$(curl -s "https://f-droid.org/api/v1/packages/${package_name}" | jq -r '.suggestedVersionCode')
+ local normalized_pkg_name=$(normalize_package_name ${package_name})
+
+ wget -q -O "$output_dir/${normalized_pkg_name}.apk" https://f-droid.org/repo/${package_name}_${version}.apk
+ echo -e "\t[+] $package_name"
+}
+
+mkdir -p "$TMP_DIR/res/apks" \
+ "$TMP_DIR/res/apks/apps" \
+ "$TMP_DIR/res/apks/priv-apps" \
+ "$TMP_DIR/res/apks/preload-apps"
+
+if [[ $INSTALL_FDROID == 1 ]]; then
+ echo "[i] Downloading F-Droid"
+ fdroid_download_package "org.fdroid.fdroid.privileged" "$APK_RES_DIR/priv-apps"
+ fdroid_download_package "org.fdroid.fdroid" "$APK_RES_DIR/apps"
+ echo "[i] Done"
+fi
+
+wait
+
+if [[ $INSTALL_RECOMMENDED_FOSS_APPS == 1 ]]; then
+ echo "[i] Downloading recommended apps"
+ fdroid_download_package "org.fossify.phone" "$APK_RES_DIR/priv-apps"
+ for pkg in "${FDROID_PACKAGES[@]}"; do
+ fdroid_download_package "${pkg}" "$APK_RES_DIR/apps" &
+ done
+ wait
+ echo "[i] Done"
+fi \ No newline at end of file
diff --git a/scripts/install_apks.sh b/scripts/install_apks.sh
new file mode 100755
index 0000000..9e22ee3
--- /dev/null
+++ b/scripts/install_apks.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+ echo "Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR> <SRC_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+SRC_DIR=$2
+
+APPS_SRC="${SRC_DIR}/apks/apps"
+PRIV_APPS_SRC="${SRC_DIR}/apks/priv-apps"
+PRELOAD_APP_SRC="${SRC_DIR}/apks/preload-apps"
+OVERLAY_APP_SRC="${SRC_DIR}/apks/overlay"
+
+APPS_DST="${BASE_DIR}/product_a/app"
+PRIV_APPS_DST="${BASE_DIR}/product_a/priv-app"
+PRELOAD_APP_DST="${BASE_DIR}/system_a/system/preloadapp/app"
+OVERLAY_APP_DST="${BASE_DIR}/product_a/overlay"
+
+install_apks() {
+ local src_dir=$1
+ local dst_dir=$2
+ local label=$3
+ local partition=$4
+
+ if [ ! -d "$src_dir" ]; then
+ echo "[~] No apks avialable ${label}"
+ return
+ fi
+
+ local count=0
+ for apk in "${src_dir}"/*.apk; do
+ [ -f "$apk" ] || continue
+
+ app_name=$(basename "$apk" .apk)
+ app_dst="${dst_dir}/${app_name}"
+
+ echo -e "\t[=] Installing ${app_name} to ${label}..."
+ mkdir -p "$app_dst"
+ ./utils/scripts/add_to_fs.sh "$partition" "$app_name" "$label" 1
+
+ cp -L "$apk" "${app_dst}/${app_name}.apk"
+ ./utils/scripts/add_to_fs.sh "$partition" "${app_name}.apk" "$label/$app_name"
+
+ count=$((count + 1))
+ done
+
+ echo "[i] ${count} APK(s) have been installed as '${label}'"
+}
+
+echo "[*] Installing APKs..."
+install_apks "$APPS_SRC" "$APPS_DST" "app" "product_a"
+install_apks "$PRIV_APPS_SRC" "$PRIV_APPS_DST" "priv-app" "product_a"
+install_apks "$OVERLAY_APP_SRC" "$OVERLAY_APP_DST" "overlay" "product_a"
+install_apks "$PRELOAD_APP_SRC" "$PRELOAD_APP_DST" "system/preloadapp/app" "system_a" \ No newline at end of file
diff --git a/scripts/microg.sh b/scripts/microg.sh
new file mode 100755
index 0000000..6b4bed8
--- /dev/null
+++ b/scripts/microg.sh
@@ -0,0 +1,130 @@
+#!/bin/bash
+
+if [ "$#" -lt 2 ]; then
+ echo "Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR> <TMP_DIR>"
+ exit 1
+fi
+
+source .config
+
+BASE_DIR=$1
+TMP_DIR=$2
+
+RES_DIR="$TMP_DIR/res/microg"
+APK_RES_DIR="$TMP_DIR/res/apks"
+WORK_DIR="$TMP_DIR/microg"
+
+SYSTEM_DIR="${BASE_DIR}/system_a"
+PRODUCT_DIR="${BASE_DIR}/product_a"
+
+patch_microg() {
+ echo "[i] Patching microG"
+
+ zip -q -d "${WORK_DIR}"/GmsCore_o.apk META-INF/MANIFEST.MF
+ zip -q -d "${WORK_DIR}"/GmsCore_o.apk META-INF/CERT.SF
+ zip -q -d "${WORK_DIR}"/GmsCore_o.apk META-INF/CERT.RSA
+
+ zip -q -d "${WORK_DIR}"/Phonesky_o.apk META-INF/MANIFEST.MF
+ zip -q -d "${WORK_DIR}"/Phonesky_o.apk META-INF/CERT.SF
+ zip -q -d "${WORK_DIR}"/Phonesky_o.apk META-INF/CERT.RSA
+
+ zipalign 4 "${WORK_DIR}"/Phonesky_o.apk "${WORK_DIR}"/Phonesky_oz.apk
+ zipalign 4 "${WORK_DIR}"/GmsCore_o.apk "${WORK_DIR}"/GmsCore_oz.apk
+
+ apksigcopier patch "${RES_DIR}"/signatures-google/phonesky "${WORK_DIR}"/Phonesky_oz.apk "${APK_RES_DIR}"/priv-apps/Phonesky.apk
+ apksigcopier patch "${RES_DIR}"/signatures-google/gms "${WORK_DIR}"/GmsCore_oz.apk "${APK_RES_DIR}"/priv-apps/GmsCore.apk
+}
+
+download_latest_microg() {
+ echo "[i] Downloading latest microG"
+
+ local gmscore_url=$(curl -s "https://api.github.com/repos/microg/GmsCore/releases/latest" | jq -r '[ .assets[] | select( .browser_download_url | test("com.google.android.gms.(\\d+).apk$")?) ]' | jq -r ".[] | .browser_download_url")
+ local phonesky_url=$(curl -s "https://api.github.com/repos/microg/GmsCore/releases/latest" | jq -r '[ .assets[] | select( .browser_download_url | test("com.android.vending.(\\d+).apk$")) ]' | jq -r ".[] | .browser_download_url")
+ local gsfproxy_url=$(curl -s "https://api.github.com/repos/microg/GsfProxy/releases/latest" | jq -r '[ .assets[] | select( .browser_download_url) ]' | jq -r ".[] | .browser_download_url")
+
+ if [[ $INSTALL_SU == 1 ]]; then
+ wget -q -O "${APK_RES_DIR}"/priv-apps/GmsCore.apk "$gmscore_url"
+ wget -q -O "${APK_RES_DIR}"/priv-apps/Phonesky_o.apk "$phonesky_url"
+ else
+ wget -q -O "${WORK_DIR}"/GmsCore_o.apk "$gmscore_url"
+ wget -q -O "${WORK_DIR}"/Phonesky_o.apk "$phonesky_url"
+ fi
+
+ wget -q -O "${APK_RES_DIR}"/priv-apps/GsfProxy.apk "$gsfproxy_url"
+}
+
+install_lib() {
+ mkdir -p "${PRODUCT_DIR}"/priv-app/GmsCore/lib
+ ./utils/scripts/add_to_fs.sh product_a "lib" priv-app/GmsCore 1
+
+ mkdir -p "${PRODUCT_DIR}"/priv-app/GmsCore/lib/arm64
+ ./utils/scripts/add_to_fs.sh product_a "arm64" priv-app/GmsCore/lib 1
+
+ echo "[*] Installing microG libraries (64-bit)"
+
+ for lib in "${RES_DIR}"/system/lib/arm64/*; do
+ lib_name=$(basename "$lib")
+
+ cp -L "${lib}" "${SYSTEM_DIR}/system/lib64/"
+ cp -L "${lib}" "${PRODUCT_DIR}/priv-app/GmsCore/lib/arm64"
+
+ ./utils/scripts/add_to_fs.sh system_a "${lib_name}" system/lib64
+ ./utils/scripts/add_to_fs.sh product_a "${lib_name}" priv-app/GmsCore/lib/arm64
+
+ echo -e "\t[+] ${lib}"
+ done
+
+ echo "[*] Installing microG libraries (32-bit)"
+
+ for lib in "${RES_DIR}"/system/lib/armeabi-v7a/*; do
+ lib_name=$(basename "$lib")
+
+ cp -L "${lib}" "${SYSTEM_DIR}/system/lib/"
+ ./utils/scripts/add_to_fs.sh system_a "${lib_name}" system/lib
+
+ echo -e "\t[+] ${lib}"
+ done
+}
+
+install_files() {
+ echo "[i] Installing microG files"
+
+ cp -L "${RES_DIR}/permissions/priv-apps/privapp-permissions-org.microG.xml" "${PRODUCT_DIR}/etc/permissions/privapp-permissions-org.microG.xml"
+ ./utils/scripts/add_to_fs.sh product_a "privapp-permissions-org.microG.xml" etc/permissions
+
+ cp -L "${RES_DIR}/permissions/apps/permissions-com.google.android.gms.xml" "${PRODUCT_DIR}/etc/default-permissions/permissions-com.google.android.gms.xml"
+ ./utils/scripts/add_to_fs.sh product_a "permissions-com.google.android.gms.xml" etc/default-permissions
+
+ cp -L "${RES_DIR}/permissions/priv-apps/com.google.android.maps.xml" "${SYSTEM_DIR}/system/etc/permissions/com.google.android.maps.xml"
+ ./utils/scripts/add_to_fs.sh system_a "com.google.android.maps.xml" system/etc/permissions
+
+ cp -L "${RES_DIR}/system/framework/com.google.android.maps.jar" "${SYSTEM_DIR}/system/framework/com.google.android.maps.jar"
+ ./utils/scripts/add_to_fs.sh system_a "com.google.android.maps.jar" system/framework
+}
+
+install_sync() {
+ echo "[i] Installing Google Sync"
+
+ cp -L "${RES_DIR}/permissions/apps/permissions-google-sync.xml" "${SYSTEM_DIR}/system/etc/permissions/permissions-google-sync.xml"
+ ./utils/scripts/add_to_fs.sh system_a "permissions-google-sync.xml" system/etc/permissions
+
+ cp -L "${RES_DIR}/apks/apps/GoogleCalendarSyncAdapter.apk" "${APK_RES_DIR}/apps"
+ cp -L "${RES_DIR}/apks/apps/GoogleContactsSyncAdapter.apk" "${APK_RES_DIR}/apps"
+}
+
+mkdir -p "$WORK_DIR"
+download_latest_microg
+
+if [[ $INSTALL_SU == 0 ]]; then
+ patch_microg
+else
+ echo "[i] Root installation enabled. MicroG will not be patched to accept default signatures."
+ sleep 1
+fi
+
+install_files
+install_lib
+install_sync
+
+echo "[i] microG setup complete!" \ No newline at end of file
diff --git a/scripts/permissions/install_permissions.sh b/scripts/permissions/install_permissions.sh
new file mode 100755
index 0000000..e802cc7
--- /dev/null
+++ b/scripts/permissions/install_permissions.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+ echo "Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR> <SRC_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+SRC_DIR=$2
+PERMISSIONS_APPS_SRC="${SRC_DIR}/permissions/apps"
+PERMISSIONS_PRIV_APPS_SRC="${SRC_DIR}/permissions/priv-apps"
+PERMISSIONS_APPS_DST="${BASE_DIR}/product_a/etc/default-permissions"
+PERMISSIONS_PRIV_APPS_DST="${BASE_DIR}/product_a/etc/permissions"
+
+install_permissions() {
+ local src_dir=$1
+ local dst_dir=$2
+ local label=$3
+
+ for file in "${src_dir}"/*.xml; do
+ file_name=$(basename "$file")
+
+ cp -L "$file" "${dst_dir}/${file_name}"
+ ./utils/scripts/add_to_fs.sh product_a "$file_name" "etc/$label"
+ done
+}
+
+install_permissions "$PERMISSIONS_APPS_SRC" "$PERMISSIONS_APPS_DST" "default-permissions"
+install_permissions "$PERMISSIONS_PRIV_APPS_SRC" "$PERMISSIONS_PRIV_APPS_DST" "permissions"
+
+echo -e '<?xml version="1.0" encoding="utf-8"?>\n<permissions>\n\t\t<privapp-permissions package="org.fdroid.fdroid.privileged">\n\t\t\t\t<permission name="android.permission.DELETE_PACKAGES"/>\n\t\t\t\t<permission name="android.permission.INSTALL_PACKAGES"/>\n\t\t</privapp-permissions>\n</permissions>' > "${PERMISSIONS_PRIV_APPS_DST}/org.fdroid.fdroid.privileged.xml"
+./utils/scripts/add_to_fs.sh product_a org.fdroid.fdroid.privileged.xml etc/permissions
+
+# sed -i '$d' ${BASE_DIR}/system_a/system/etc/permissions/privapp-permissions-platform.xml
+# echo -e '\n\t<privapp-permissions package="org.fdroid.fdroid.privileged">\n\t\t<permission name="android.permission.DELETE_PACKAGES"/>\n\t\t<permission name=" android.permission.INSTALL_PACKAGES"/>\n\t</privapp-permissions>\n' >> ${BASE_DIR}/product_a/etc/permissions/org.fdroid.fdroid.privileged.xml >> ${BASE_DIR}/system_a/system/etc/permissions/privapp-permissions-platform.xml
+# sed -i '$a</permissions>' ${BASE_DIR}/system_a/system/etc/permissions/privapp-permissions-platform.xml \ No newline at end of file
diff --git a/scripts/permissions/main.sh b/scripts/permissions/main.sh
new file mode 100755
index 0000000..4584f64
--- /dev/null
+++ b/scripts/permissions/main.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR> <TMP_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+TMP_DIR=$2
+SCRIPT_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
+
+"${SCRIPT_DIR}"/remove_permissions.sh "$BASE_DIR"
+"${SCRIPT_DIR}"/install_permissions.sh "$BASE_DIR" "$TMP_DIR/res" \ No newline at end of file
diff --git a/scripts/permissions/remove_permissions.sh b/scripts/permissions/remove_permissions.sh
new file mode 100755
index 0000000..053f12a
--- /dev/null
+++ b/scripts/permissions/remove_permissions.sh
@@ -0,0 +1,154 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[-] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR>"
+ exit 1
+fi
+
+BASE_DIR=$1
+SYSTEM_DIR="${BASE_DIR}/system_a"
+PRODUCT_DIR="${BASE_DIR}/product_a"
+SYSTEM_EXT_DIR="${BASE_DIR}/system_ext_a"
+
+REMOVE_GOOGLE_APP_PERMISSIONS=(
+ "com.google.android.apps.restore"
+ "com.google.android.apps.assistant"
+ "com.google.android.apps.actionsservice"
+ "com.google.android.apps.tachyon"
+ "com.google.android.apps.photos"
+)
+
+REMOVE_GOOGLE_PRIVAPP_PERMISSIONS=(
+ "com.google.android.apps.nbu.files"
+ "com.google.android.apps.messaging"
+ "com.google.android.apps.restore"
+ "com.google.android.apps.safetyhub"
+ "com.android.vending"
+ "com.google.android.apps.actionsservice"
+ "com.google.android.apps.assistant"
+ "com.google.android.gms"
+ "com.google.android.gms.supervision"
+ "com.google.android.googlequicksearchbox"
+ "com.android.hotwordenrollment.okgoogle"
+)
+
+REMOVE_CONFIG_PERMISSIONS=(
+ # app permissions
+ "${PRODUCT_DIR}/etc/default-permissions/default-permission-com.motorola.timeweatherwidget.xml"
+
+ "${SYSTEM_EXT_DIR}/etc/default-permissions/default-permission-com.motorola.ccc.notification.xml"
+ "${SYSTEM_EXT_DIR}/etc/default-permissions/default-permission-com.motorola.installer.xml"
+
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permission-com.glance.lockscreenM.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permission-com.motorola.motoota.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permission-com.telcel.contenedor.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-com.aura.oobe.motorola.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-com.claro.contenedor.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-com.dti.motorola.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-com.handmark.expressweather.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-com.ironsource.appcloud.oobe.hutchison.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-com.motorola.gamemode.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-meta.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/default-permissions-sysdll.xml"
+ "${SYSTEM_DIR}/system/etc/default-permissions/pregranted-notification-permission-orange.xml"
+
+ # priv-app permissions
+ "${PRODUCT_DIR}/etc/permissions/privapp-permissions-com.motorola.help.xml"
+ "${PRODUCT_DIR}/etc/permissions/privapp-permissions-google-comms-suite.xml"
+ "${PRODUCT_DIR}/etc/permissions/split-permissions-google.xml"
+ "${PRODUCT_DIR}/etc/permissions/com.motorola.gamemode_cli_games.xml"
+ "${PRODUCT_DIR}/etc/permissions/com.motorola.gamemode.xml"
+ "${PRODUCT_DIR}/etc/permissions/com.motorola.help.xml"
+ "${PRODUCT_DIR}/etc/permissions/com.motorola.timeweatherwidget.xml"
+ # "${PRODUCT_DIR}/etc/permissions/feature-com.motorola.securevault.xml"
+ "${PRODUCT_DIR}/etc/permissions/permission_ignite_com.dti.motorola.xml"
+ "${PRODUCT_DIR}/etc/permissions/privapp-permissions-com.motorola.gamemode.xml"
+ "${PRODUCT_DIR}/etc/permissions/privapp-permissions-com.payjoy.access.xml"
+
+ "${SYSTEM_EXT_DIR}/etc/permissions/afw-com.motorola.livewallpaper.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/feature-com.motorola.securityhub.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.livewallpaper.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.installer.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.paks.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.motocare.xml"
+ # "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.securevault.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.securityhub.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.ccc.devicemanagement.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.ccc.notification.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.demo.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.launcher3.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/com.motorola.launcher3.delete.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/com.motorola.launcher3_feature.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/com.motorola.launcher3.swipe2stream.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/com.motorola.launcher3.twoline.xml"
+ "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-com.motorola.coresettingsext.xml"
+
+ "${SYSTEM_DIR}/system/etc/permissions/co.sitic.pp.powersave.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/feature-com.glance.lockscreenM.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/feature-com.taboola.ody.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/permission_ignite_com.motorola.genie.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/permission_SM_com.claroColombia.contenedor.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/permission_SM_com.telcel.contenedor.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.amazon.appmanager.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.android.providers.partnerbookmarks.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.ape.setupwizard.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.aura.oobe.motorola.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.glance.lockscreenM.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.ironsource.appcloud.oobe.hutchison.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.motorola.android.providers.chromehomepage.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.motorola.brapps.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.motorola.enterprise.adapter.service.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.motorola.enterprise.service.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-co.sitic.pp.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-meta.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-orange.xml"
+
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-orange.xml"
+
+ "${SYSTEM_DIR}/system/etc/permissions/com.motorola.enterpriseinternal.xml"
+ # "${SYSTEM_DIR}/system/etc/permissions/com.motorola.enterprise.xml"
+ # "${SYSTEM_DIR}/system/etc/permissions/com.motorola.motosignature.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/com.motorola.software.guideme.xml"
+ # "${SYSTEM_DIR}/system/etc/permissions/moto-core_services.xml"
+ # "${SYSTEM_DIR}/system/etc/permissions/moto-enterprise-internal.xml"
+ # "${SYSTEM_DIR}/system/etc/permissions/moto-enterprise.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.motorola.motoota.xml"
+ "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-com.motorola.spaces.xml"
+)
+
+xml_remove_app_permission() {
+ local pkg=$1
+ local dst_file=$2
+
+ echo -e "\t[-] App permission: ${pkg}"
+ xml ed -L -d "/exceptions/exception [@package='${pkg}']" "${dst_file}"
+}
+
+xml_remove_privapp_permission() {
+ local pkg=$1
+ local dst_file=$2
+
+ echo -e "\t[-] Privapp permission: ${pkg}"
+ xml ed -L -d "/permissions/privapp-permissions [@package='${pkg}']" "${dst_file}"
+}
+
+echo "[i] Removing Google App permissions..."
+for pkg in "${REMOVE_GOOGLE_APP_PERMISSIONS[@]}"; do
+ xml_remove_app_permission "${pkg}" "${PRODUCT_DIR}/etc/default-permissions/default-permissions-google.xml"
+done
+
+echo "[i] Removing Google Priv-App permissions..."
+for pkg in "${REMOVE_GOOGLE_PRIVAPP_PERMISSIONS[@]}"; do
+ xml_remove_privapp_permission "${pkg}" "${PRODUCT_DIR}/etc/permissions/privapp-permissions-google-product.xml"
+done
+
+echo "[i] Removing config permissions..."
+for config in "${REMOVE_CONFIG_PERMISSIONS[@]}"; do
+ echo -e "\t[-] ${config}"
+ rm -rf "$config"
+done
+
+xml_remove_privapp_permission "com.google.android.apps.setupwizard.searchselector" "${SYSTEM_DIR}/system/etc/permissions/privapp-permissions-google-system.xml"
+xml_remove_privapp_permission "com.google.android.gsf" "${SYSTEM_EXT_DIR}/etc/permissions/privapp-permissions-google-system_ext.xml"
+xml_remove_privapp_permission "com.google.android.apps.searchlite" "${PRODUCT_DIR}/etc/permissions/privapp-permissions-google-product.xml"
diff --git a/scripts/props.sh b/scripts/props.sh
new file mode 100755
index 0000000..fd1bd0c
--- /dev/null
+++ b/scripts/props.sh
@@ -0,0 +1,115 @@
+#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo "[x] Incorrect arguments!"
+ echo " Using: $0 <BASE_DIR>"
+ exit 1
+fi
+
+source .config
+
+BASE_DIR=$1
+BUILD_PROP="${BASE_DIR}/system_a/system/build.prop"
+
+ADD_PROP_LIST=(
+ "persist.camera.HAL3.enabled=1"
+
+ "debug.hwui.render_dirty_regions=false"
+ "debug.sf.skip_dirty_regions=1"
+ "debug.sf.nobootanimation=1"
+ "ro.max.fling_velocity=18000"
+ "ro.min.fling_velocity=12000"
+ "debug.sf.hw=1"
+
+ "ro.telephony.call_ring.delay=0"
+ "ro.media.enc.jpeg.quality=100"
+ "ro.audio.silent=0"
+
+ # Skip SetupWizard (required without GAPPS)
+ "ro.setupwizard.enable_bypass=1"
+ "ro.setupwizard.enterprise_mode=0"
+ "ro.setupwizard.mode=DISABLED"
+ "ro.setupwizard.network_required=false"
+ "ro.setupwizard.wifi_required=false"
+)
+
+EDIT_PROP_LIST=(
+ "persist.sys.zram_wb_enabled=false"
+ "persist.sys.zram_wb_ai_enabled=false"
+ "ro.zygote.preload.enable=1"
+ "ro.moto.general.feature.ota=false"
+ "ro.moto.general.clientid=false"
+ "ro.moto.general.motosecure=false"
+ "ro.moto.general.motofeedback=false"
+ "ro.moto.general.motohelp=false"
+ "ro.moto.general.time_weather=false"
+ "ro.moto.general.feature.ironsource=false"
+)
+
+append_prop() {
+ if ! grep -q "${1}" "$BUILD_PROP"; then
+ echo -e "\t[+] Adding prop '${1}' to '${2}'"
+ sed -i "$ a ${1}" "$BUILD_PROP"
+ else
+ echo -e "\t[i] Prop '${1}' is already present in '${2}'"
+ fi
+}
+
+remove_prop() {
+ if grep -q "^${1}" "${2}"; then
+ echo -e "\t[-] Removing prop '${1}' from '${2}'"
+ sed -i "/^${1}/d" "${2}"
+ else
+ echo -e "\t[i] Prop '${1}' is not present in '${2}'"
+ fi
+}
+
+edit_prop() {
+ prop_name="${1%%=*}"
+ new_value="${1#*=}"
+ if grep -q "${prop_name}=" "${2}"; then
+ current_value=$(grep "^${prop_name}=" "${2}" | cut -d'=' -f2)
+ if [ "$current_value" != "$new_value" ]; then
+ echo "[=] Editing prop '${prop_name}' in '${2}'"
+ sed -i "s/${prop_name}=.*/${prop_name}=${new_value}/" "${2}"
+ else
+ echo "[*] Prop '${prop_name}' already has the desired value (${new_value}) in '${2}'"
+ fi
+ else
+ echo "[i] Prop '${prop_name}' is not present in '${2}'"
+ fi
+}
+
+
+if [[ $ENABLE_INSECURE_ADB == 1 ]]; then
+ ADD_PROP_LIST+=(
+ "persist.adb.notify=0"
+ "persist.service.adb.enable=1"
+ "persist.service.debuggable=1"
+ "persist.sys.usb.config=mtp,adb"
+ "ro.adb.secure=0"
+ "ro.debuggable=1"
+ "ro.force.debuggable=1"
+ "ro.control_privapp_permissions=log"
+ )
+fi
+
+if [[ $DISABLE_MOTO_HELLO_UI == 1 ]]; then
+ EDIT_PROP_LIST+=("ro.moto.general.feature.enable_systemui_hello_ui=false")
+else
+ if [[ $DISABLE_MOTO_HELLO_UI_BLUR == 1 ]]; then
+ ADD_PROP_LIST+=(
+ "ro.sf.blurs_are_expensive=1"
+ "ro.surface_flinger.supports_background_blur=0"
+ "persist.sysui.disableBlur=true"
+ )
+ fi
+fi
+
+for prop in "${EDIT_PROP_LIST[@]}"; do
+ edit_prop "$prop" "${BUILD_PROP}"
+done
+
+for prop in "${ADD_PROP_LIST[@]}"; do
+ append_prop "$prop" "${BUILD_PROP}"
+done
diff --git a/stages/build.sh b/stages/build.sh
new file mode 100755
index 0000000..6e1c02c
--- /dev/null
+++ b/stages/build.sh
@@ -0,0 +1,334 @@
+#!/bin/bash
+
+if [ ! -f .config ]; then
+ echo "[x] Configuration file not found!"
+ echo " Please configure build with 'make config' first."
+ exit 1
+fi
+
+source .config
+
+SUPER_IMAGE="$STOCK_FIRMWARE_PATH/super.img"
+FIRMWARE_OUT_DIR="./firmware"
+UNPACKED_DIR="./unpacked"
+MNT_BASE="$UNPACKED_DIR/mnt"
+TMP_DIR="/tmp/driedlamu"
+MNT_PARTITIONS=(
+ "system_a"
+ "product_a"
+ "system_ext_a"
+)
+
+if [[ -d $TMP_DIR || -d $UNPACKED_DIR ]]; then
+ echo "[x] Build directories detected"
+ echo " Please clean build environment with 'make clean' first."
+ exit 1
+fi
+
+prepare_erofs_utils() {
+ local erofs_utils_repo="https://api.github.com/repos/sekaiacg/erofs-utils/releases/latest"
+ local aarch=$(lscpu | sed -n 's/Architecture:[ \t]*//p')
+ local erofs_utils_url=$(curl -s "$erofs_utils_repo" | jq --arg aarch_jq $aarch -c '[ .assets[] | select( .browser_download_url | test("Linux_" + $aarch_jq + ".zip$")) ]' | jq -r ".[] | .browser_download_url")
+ local download_location="$TMP_DIR/erofs-utils.zip"
+
+ wget -O "$download_location" "$erofs_utils_url"
+ unzip "$download_location" -d "./utils/bin/"
+}
+
+prepare_apatch_utils() {
+ local apatch_repo="https://api.github.com/repos/bmax121/KernelPatch/releases/latest"
+ local apatch_urls=$(curl -s "$apatch_repo" | jq -r '[ .assets[] | select( .browser_download_url | test("kptools-linux|kpimg-android") ) ]' | jq -r ".[] | .browser_download_url")
+
+ for l in $apatch_urls; do
+ wget -P "./utils/bin/" "$l"
+ chmod +x ./utils/bin/kp*
+ done
+}
+
+simg() {
+ local super_image=$1
+ local unpacked_dir=$2
+ local super_dir=$(dirname "$super_image")
+ local super_raw="$super_dir/super_raw.img"
+
+ echo "[i] Converting a sparse image to raw"
+ if [ ! -f "$super_image" ]; then
+ echo "[x] super.img not found"
+ exit 1
+ fi
+
+ # converting from sparse
+ if ! simg2img "$super_image" "$super_raw"; then
+ echo "[x] Failed to convert super image"
+ exit 1
+ fi
+
+ echo "[i] Unpacking super raw image"
+ if ! lpunpack "$super_raw" "$unpacked_dir"; then
+ echo "[x] Failed to unpack super image"
+ exit 1
+ fi
+
+ echo "[i] Super image converting successful"
+}
+
+extract_erofs() {
+ local DIR=$1
+ local MNT_BASE="$2"
+
+ mkdir -p "${MNT_BASE}/${DIR}"
+
+ ./utils/bin/extract.erofs -i "${UNPACKED_DIR}/${DIR}.img" -o "${MNT_BASE}" -x
+ echo "[STAGE 2] ${DIR} EROFS partition extracted"
+}
+
+make_erofs() {
+ local part_name=$1
+ local target_dir=$2
+ local fs_config_dir="unpacked/mnt/config/"
+ local fs_uuid=$(cat ./${fs_config_dir}/${part_name}_fs_options | awk 'NR==2 {print $3}')
+
+ ./utils/bin/mkfs.erofs --quiet -zlz4hc -T 0 -U "$fs_uuid" --mount-point="/${part_name}" --fs-config-file="${fs_config_dir}/${part_name}_fs_config" --file-contexts="${fs_config_dir}/${part_name}_file_contexts" "${target_dir}/${part_name}.img" "unpacked/mnt/${part_name}"
+ echo "[STAGE 3] ${part_name} EROFS partition repacked"
+}
+
+unpack_images() {
+ local FS=$1
+
+ if [ ! -d "$MNT_BASE" ]; then
+ mkdir -p "$MNT_BASE"
+ echo "[+] Directory $MNT_BASE created"
+ else
+ echo "[i] Directory $MNT_BASE already exists"
+ fi
+
+ for dir in "${MNT_PARTITIONS[@]}"; do
+ if [ ! -d "${MNT_BASE}/$dir" ]; then
+ mkdir -p "${MNT_BASE}/$dir"
+ echo "[+] Directory $dir created"
+ else
+ echo "[i] Directory $dir already exists"
+ fi
+
+ if [[ "${FS}" = "erofs" ]]; then
+ extract_erofs "${dir}" "${MNT_BASE}"
+ mkdir -p "unpacked/original"
+ mv "unpacked/${dir}.img" "unpacked/original/${dir}.img"
+ fi
+ done
+}
+
+pack_images() {
+ for i in "${MNT_PARTITIONS[@]}"; do
+ if [ ! -f "unpacked/${i}.img" ]; then
+ make_erofs "$i" "${UNPACKED_DIR}"
+ echo "[+] Image 'unpacked/${i}.img' created"
+ else
+ echo "[?] Image 'unpacked/${i}.img' already exists"
+ fi
+ done
+
+ echo "[i] All images built"
+}
+
+apatch_patch_boot() {
+ local apatch_key=$1
+ local workdir="$TMP_DIR/root"
+ local previous_dir="$(pwd)"
+
+ cd "$workdir"
+
+ "$previous_dir"/utils/bin/kptools-linux unpack boot.img
+ "$previous_dir"/utils/bin/kptools-linux -p --image kernel --skey "$apatch_key" --kpimg "$previous_dir/utils/bin/kpimg-android" --out kernel
+ "$previous_dir"/utils/bin//kptools-linux repack boot.img
+
+ cd "$previous_dir"
+}
+
+vbmeta_add_hashtree() {
+ local partition="$1"
+ local properties=$(avbtool info_image --image ${UNPACKED_DIR}/original/${partition}.img | grep -E "Prop: com.android.build." | sed -e "s/[[:space:]]//g;s/Prop://g;s/->/:/g;s/^/--prop /g")
+ local cmd="avbtool add_hashtree_footer \
+ --image '$UNPACKED_DIR/${partition}.img' \
+ --partition_name $(sed -e "s/_a//g" <<< $partition) \
+ --block_size 4096 \
+ --hash_algorithm sha256 \
+ ${properties[@]} \
+ --key '$CUSTOM_AVB_KEY'"
+
+ echo -e "[i] Adding hashtree footer to $partition"
+
+ eval $cmd
+}
+
+make_vbmeta() {
+ local CUSTOM_AVB_KEY_PATH="${AVB_KEY_PATH/#\~/$HOME}"
+ local CUSTOM_AVB_KEY="$CUSTOM_AVB_KEY_PATH/driedlamu_rsa2048_private.pem"
+ local CUSTOM_AVB_KEY_PUB="$CUSTOM_AVB_KEY_PATH/driedlamu_rsa2048_public.pem"
+
+ local ORIGINAL_AVB_KEY_PATH="$TMP_DIR/vbmeta/keys/"
+
+ mkdir -p $TMP_DIR \
+ $TMP_DIR/vbmeta \
+ $TMP_DIR/vbmeta/keys
+
+ if [[ ! -f "$CUSTOM_AVB_KEY" ]]; then
+ echo "[i] Generating RSA2048 private key"
+
+ openssl genpkey -algorithm RSA \
+ -pkeyopt rsa_keygen_bits:2048 \
+ -outform PEM \
+ -out "$CUSTOM_AVB_KEY"
+ fi
+
+ if [[ ! -f "$CUSTOM_AVB_KEY_PUB" ]]; then
+ echo "[i] Extracting RSA2048 public key with AVBTool"
+
+ avbtool extract_public_key \
+ --key "$CUSTOM_AVB_KEY" \
+ --output "$CUSTOM_AVB_KEY_PUB"
+ fi
+
+ # While all keys are the same, It's not known whether Motorola is going to change
+ # them between partition.
+ dd if="$STOCK_FIRMWARE_PATH/vbmeta.img" of="$ORIGINAL_AVB_KEY_PATH/vbmeta_system_key.pem" bs=1 skip="681" count="520"
+ dd if="$STOCK_FIRMWARE_PATH/vbmeta.img" of="$ORIGINAL_AVB_KEY_PATH/vbmeta_vendor_key.pem" bs=1 skip="1313" count="520"
+ dd if="$STOCK_FIRMWARE_PATH/vbmeta.img" of="$ORIGINAL_AVB_KEY_PATH/vbmeta_unknown_key.pem" bs=1 skip="6080" count="520"
+
+ for i in "${MNT_PARTITIONS[@]}"; do
+ vbmeta_add_hashtree "$i"
+ done
+
+ echo -e "[i] Making vbmeta_system"
+
+ avbtool make_vbmeta_image \
+ --key "$CUSTOM_AVB_KEY" \
+ --algorithm 'SHA256_RSA2048' \
+ --flags 0 --padding_size '4096' \
+ --include_descriptors_from_image $UNPACKED_DIR/system_a.img \
+ --output "$TMP_DIR/vbmeta/vbmeta_system.img"
+
+ echo -e "[i] Making vbmeta"
+
+ avbtool make_vbmeta_image --key "$CUSTOM_AVB_KEY" --algorithm 'SHA256_RSA2048' --flags 0 \
+ --chain_partition vbmeta_system:2:"$CUSTOM_AVB_KEY_PUB" \
+ --chain_partition vbmeta_vendor:4:"$ORIGINAL_AVB_KEY_PATH/vbmeta_vendor_key.pem" \
+ --include_descriptors_from_image "$STOCK_FIRMWARE_PATH/boot.img" \
+ --include_descriptors_from_image "$STOCK_FIRMWARE_PATH/dtbo.img" \
+ --include_descriptors_from_image "$STOCK_FIRMWARE_PATH/init_boot.img" \
+ --include_descriptors_from_image "$STOCK_FIRMWARE_PATH/vendor_boot.img" \
+ --include_descriptors_from_image "$UNPACKED_DIR/odm_dlkm_a.img" \
+ --include_descriptors_from_image "$UNPACKED_DIR/product_a.img" \
+ --include_descriptors_from_image "$UNPACKED_DIR/system_dlkm_a.img" \
+ --include_descriptors_from_image "$UNPACKED_DIR/system_ext_a.img" \
+ --include_descriptors_from_image "$UNPACKED_DIR/vendor_dlkm_a.img" \
+ --output "$TMP_DIR/vbmeta/vbmeta.img"
+
+ echo -e "[i] VBMeta created"
+}
+
+make_super() {
+ local output_path="$1"
+ local size=0
+ local params=""
+
+ mkdir -p "$UNPACKED_DIR/sparse"
+
+ for file in `ls -1 $UNPACKED_DIR/*.img`; do
+ size=$(($size + $(stat -c %s $file)))
+ img2simg "$file" "$UNPACKED_DIR/sparse/$(basename $file)"
+ params+="--partition $(basename $file .img):readonly:$(stat -c %s $file):main_$(echo $(basename $file .img) | tail -c 2) "
+ if [[ $(stat -c %s $file) != 0 ]]; then
+ params+="--image $(basename $file .img)=${UNPACKED_DIR}/sparse/$(basename $file) "
+ fi
+ done
+
+ size=$(($size * 2))
+
+ local cmd="lpmake --metadata-size 65536 --metadata-slots 3 --block-size 4096 --virtual-ab --device super:$size --group main_a:$(($size - 2097152)) --group main_b:$(($size - 2097152)) "
+
+ cmd+="$params"
+ cmd+="--sparse --output $output_path/super.img"
+
+ eval $cmd
+}
+
+echo -e "[i] Prepare"
+
+# mkdir -p $FIRMWARE_OUT_DIR \
+# $TMP_DIR
+
+mkdir -p $TMP_DIR
+
+if [[ ! -f "./utils/bin/mkfs.erofs" && ! -f "./utils/bin/extract.erofs" ]]; then
+ echo -e "[i] Downloading erofs-utils"
+ prepare_erofs_utils
+fi
+
+if [[ $INSTALL_SU == 1 ]]; then
+ if [[ $SU_METHOD == "apatch" ]]; then
+ if [[ ! -f "./utils/bin/kpimg-android" && ! -f "./utils/bin/kptools-linux" ]]; then
+ echo -e "[i] Downloading APatch tools"
+ prepare_apatch_utils
+ fi
+ fi
+fi
+
+echo -e "[i] Stage 1"
+
+simg "${SUPER_IMAGE}" "${UNPACKED_DIR}"
+
+find ./res/* -type d -exec mkdir -p /tmp/driedlamu/{} \;
+find res/* -type f -exec ln -sf "$(pwd)/{}" /tmp/driedlamu/{} \;
+
+echo -e "[i] Stage 2\n"
+unpack_images "erofs"
+
+echo -e "[i] Running scripts"
+echo " "
+echo "[-] - Removed"
+echo "[+] - Added"
+echo "[=] - Modified"
+echo " "
+
+./scripts/bloatware/main.sh "$MNT_BASE"
+./scripts/props.sh "$MNT_BASE"
+./scripts/configs/main.sh "$MNT_BASE" "$TMP_DIR"
+./scripts/download_apks.sh "$TMP_DIR"
+./scripts/apk_obtain_permissions.sh "$TMP_DIR"
+
+if [[ $PRELOAD_MICROG == 1 ]]; then
+ ./scripts/microg.sh "$MNT_BASE" "$TMP_DIR"
+fi
+
+./scripts/install_apks.sh "$MNT_BASE" "$TMP_DIR/res"
+./scripts/permissions/main.sh "$MNT_BASE" "$TMP_DIR"
+
+if [[ $ADD_TONES == 1 ]]; then
+ ./scripts/add_media.sh "$MNT_BASE" "$TMP_DIR"
+fi
+
+echo -e "[i] Stage 3\n"
+pack_images
+
+if [[ $INSTALL_SU == 1 ]]; then
+ echo -e "[i] Installing superuser"
+ mkdir -p "$TMP_DIR/root"
+
+ cp -r "$STOCK_FIRMWARE_PATH/boot.img" "$TMP_DIR/root"
+
+ if [[ $SU_METHOD == "apatch" ]]; then
+ echo -e "[i] Patching with APatch"
+ apatch_patch_boot "$SU_PASSWORD"
+ cp -r "$TMP_DIR/root/new-boot.img" "$UNPACKED_DIR/boot_su.img"
+ fi
+fi
+
+if [[ $ENABLE_VBMETA == 1 ]]; then
+ echo -e "[i] Stage 4 (vbmeta)"
+
+ make_vbmeta
+ make_super "."
+fi
+
+echo -e "DriedLamu firmware was built!"
diff --git a/stages/config.sh b/stages/config.sh
new file mode 100755
index 0000000..e3a364d
--- /dev/null
+++ b/stages/config.sh
@@ -0,0 +1,116 @@
+#!/bin/bash
+
+CONFIG_FILE=".config"
+QCOUNTER=1
+
+rm -rf $CONFIG_FILE
+touch .config
+
+DIALOG_TITLE="DriedLamu Configuration Wizard"
+DIALOG_H=18
+DIALOG_W=60
+
+question() {
+ local question=$1
+ local property_name=$2
+ local answer=$3
+ local note=$4
+
+ if [[ $answer == 1 ]]; then
+ dialog --title "$DIALOG_TITLE" --yesno "${QCOUNTER}: $question\n\n$note" $DIALOG_H $DIALOG_W
+ else
+ dialog --title "$DIALOG_TITLE" --defaultno --yesno "${QCOUNTER}: $question\n\n$note" $DIALOG_H $DIALOG_W
+ fi
+ exitcode=$?;
+
+ case $exitcode in
+ 0) echo -e "${property_name}=1" >> $CONFIG_FILE;;
+ 1) echo -e "${property_name}=0" >> $CONFIG_FILE;;
+ * ) echo Invalid response;
+ exit 1;;
+ esac
+
+ QCOUNTER=$((QCOUNTER+1))
+}
+
+dialog --title "$DIALOG_TITLE" --yesno "Welcome to setup wizard for DriedLamu!\n\nA couple of YES/NO closed questions will be ask before proceeding to building your firmware.\nQuestions will be highly related to your preferences, use-cases of your device.\n\nDo you wish to proceed?" 16 60
+
+if [[ $? == 1 ]]; then
+ exit 1
+fi
+
+exec 3>&1;
+echo "STOCK_FIRMWARE_PATH='$(dialog --title "$DIALOG_TITLE" --inputbox "Provide stock firmware path.\n\nCurrent directory: $(pwd)" $DIALOG_H $DIALOG_W 2>&1 1>&3)'" >> $CONFIG_FILE;
+exec 3>&-;
+
+question "Preinstall microG." \
+ "PRELOAD_MICROG" 1 \
+ "For Non-rooted installs: Installation relies on patching microG apk files by copying signatures accepted by the stock rom.\n\nFor rooted installs: microG is installed with all required libraries without signature spoofing support. Signature spoofing with rooted installs can be achieved with FakeGApps Xposed module."
+
+question "Install F-Droid." \
+ "INSTALL_FDROID" 1 \
+ "F-Droid is the app market that prioritizes FOSS applications. Installation bundles F-Droid privileged extension. "
+
+question "Install recommended essential apps." \
+ "INSTALL_RECOMMENDED_FOSS_APPS" 1 \
+ "Install essential apps from Fossify app package. It includes:\n– Calculator \n– Clock \n– Contacts \n– File Manager \n– Gallery \n– Messages \n– Phone \n– Voice Recorder \n– Music Player \n– Calendar"
+
+question "Add LineageOS sounds and replace Moto ringtone" \
+ "ADD_TONES" 1 \
+ "Replace Moto ringtone with an old fashioned one (Razr V3).\nAlso includes the rest of ringtones, alarm and notification sounds from LineageOS."
+
+question "Enable verified boot (vbmeta)" \
+ "ENABLE_VBMETA" 1 \
+ "Creates vbmeta images."
+
+source .config
+
+if [[ $ENABLE_VBMETA == 1 ]]; then
+ exec 3>&1;
+ echo "AVB_KEY_PATH='$(dialog --title "$DIALOG_TITLE" --inputbox "Provide AVB key location which will be used to sign images.\n\nMake sure keys are safely secured." $DIALOG_H $DIALOG_W 2>&1 1>&3)'" >> $CONFIG_FILE;
+ exec 3>&-;
+
+ source .config
+
+ if [[ -d "`eval echo ${AVB_KEY_PATH//>}`" ]]; then
+ dialog --title "$DIALOG_TITLE" --yesno "PROCEED WITH CAUTION!\n\nChosen key location: $AVB_KEY_PATH\n\n${bold}You are responsible for storing and protecting the private keys. Loss of the private keys will result in not being able to sign images when upgrading the system with the affected keys. Losing keys might result in loss of personal data from your device. \n\n${normal}Is chosen location correct and do you wish to proceed further?" $DIALOG_H $DIALOG_W
+
+ if [[ $? == 1 ]]; then
+ exit 1
+ fi
+ else
+ exit 1
+ fi
+fi
+
+question "Install Root (APatch)" \
+ "INSTALL_SU" 0 \
+ "Install Root by patching boot.img using KernelPatch. If enabled, you will have to provide SuperKey required for APatch authentication later on."
+
+source .config
+
+if [[ $INSTALL_SU == 1 ]]; then
+ echo -e "SU_METHOD='apatch'" >> $CONFIG_FILE
+
+ exec 3>&1;
+ echo "SU_PASSWORD='$(dialog --title "$DIALOG_TITLE" --insecure --passwordbox "Provide APatch key which will be used to authenticate SU requests." $DIALOG_H $DIALOG_W 2>&1 1>&3)'" >> $CONFIG_FILE;
+ exec 3>&-;
+fi
+
+question "Enable insecure ADB access." \
+ "ENABLE_INSECURE_ADB" 0 \
+ "Feature used for development purposes. If you intend to daily drive this device, switch that to off."
+
+question "Disable Motorola's HelloUI" \
+ "DISABLE_MOTO_HELLO_UI" 0 \
+ "Feature considered experimental. May cause small UI defects while making system UI look more like AOSP."
+
+source .config
+
+if [[ $DISABLE_MOTO_HELLO_UI == 0 ]]; then
+ question "Disable Motorola's HelloUI blur-level rendering" \
+ "DISABLE_MOTO_HELLO_UI_BLUR" 0 \
+ "Disables blur-level rendering within Moto's HelloUI. It will make notification center translucent."
+fi
+
+dialog --title "$DIALOG_TITLE" --msgbox "Configuration saved to '.config'\n\nYou can now proceed to building with 'make build'." $DIALOG_H $DIALOG_W
diff --git a/stages/flash.sh b/stages/flash.sh
new file mode 100755
index 0000000..9de4d43
--- /dev/null
+++ b/stages/flash.sh
@@ -0,0 +1,83 @@
+#!/bin/bash
+
+source .config
+
+TMP_DIR="/tmp/driedlamu"
+FIRMWARE_PATH="./unpacked"
+
+case $1 in
+ fresh)
+ SYS_UPGRADE=0
+ echo "[i] Installing DriedLamu."
+ ;;
+ upgrade)
+ SYS_UPGRADE=1
+ echo "[i] Upgrading DriedLamu."
+ ;;
+ *)
+ echo "Please specify a valid type of task you wish to do (fresh, upgrade)."
+ exit 1
+ ;;
+esac
+
+fastboot oem bldr_spoof off
+
+if [[ $INSTALL_SU == 1 ]]; then
+ echo "[i] Root installation enabled."
+
+ if [[ $(fastboot devices | cut -d' ' -f2) == "fastboot" ]]; then
+ fastboot flash boot "${FIRMWARE_PATH}/boot_su.img"
+
+ if [[ -f "${FIRMWARE_PATH}/init_boot_su.img" ]]; then
+ fastboot flash init_boot "${FIRMWARE_PATH}/init_boot_su.img"
+ fi
+ else
+ echo "[i] Already in fastbootd mode. Make sure that patched 'boot.img' was installed."
+ fi
+fi
+
+if [[ $ENABLE_VBMETA == 1 ]]; then
+ echo "[i] Android verified boot enabled."
+
+ if [[ $(fastboot devices | cut -d' ' -f2) == "fastboot" ]]; then
+ fastboot flash boot "${STOCK_FIRMWARE_PATH}/boot.img"
+ fastboot flash init_boot "${STOCK_FIRMWARE_PATH}/init_boot.img"
+
+ fastboot flash vbmeta "${TMP_DIR}/vbmeta/vbmeta.img"
+ fastboot flash vbmeta_system "${TMP_DIR}/vbmeta/vbmeta_system.img"
+ else
+ echo "[i] Already in fastbootd mode. Make sure that 'vbmeta' was flashed."
+ fi
+fi
+
+if [[ $(fastboot devices | cut -d' ' -f2) == "fastboot" ]]; then
+ echo "[i] Device in fastboot mode. Rebooting to fastbootd."
+ sleep 1
+ fastboot reboot fastboot
+fi
+
+fastboot erase system
+fastboot erase system_ext
+fastboot erase product
+
+fastboot flash super ./super.img
+
+# fastboot flash system_a "${FIRMWARE_PATH}/system_a.img"
+# fastboot flash system_ext_a "${FIRMWARE_PATH}/system_ext_a.img"
+# fastboot flash product_a "${FIRMWARE_PATH}/product_a.img"
+
+if [[ $SYS_UPGRADE == 0 ]]; then
+ fastboot -w
+fi
+
+if [[ $ENABLE_VBMETA == 1 ]]; then
+ fastboot reboot-bootloader
+ sleep 3
+ fastboot oem bldr_spoof on
+ fastboot reboot
+else
+ fastboot reboot
+fi
+
+echo "[i] Flashing done!"
+
diff --git a/utils/bin/fectool/fec b/utils/bin/fectool/fec
new file mode 100755
index 0000000..b2421eb
--- /dev/null
+++ b/utils/bin/fectool/fec
Binary files differ
diff --git a/utils/bin/fectool/ld-linux-x86-64.so.2 b/utils/bin/fectool/ld-linux-x86-64.so.2
new file mode 100644
index 0000000..1100d03
--- /dev/null
+++ b/utils/bin/fectool/ld-linux-x86-64.so.2
Binary files differ
diff --git a/utils/bin/fectool/libc++.so b/utils/bin/fectool/libc++.so
new file mode 100644
index 0000000..f1fc652
--- /dev/null
+++ b/utils/bin/fectool/libc++.so
Binary files differ
diff --git a/utils/bin/fectool/libdl.so.2 b/utils/bin/fectool/libdl.so.2
new file mode 100644
index 0000000..81d5f23
--- /dev/null
+++ b/utils/bin/fectool/libdl.so.2
Binary files differ
diff --git a/utils/bin/fectool/libgcc_s.so.1 b/utils/bin/fectool/libgcc_s.so.1
new file mode 100644
index 0000000..0e7b8a5
--- /dev/null
+++ b/utils/bin/fectool/libgcc_s.so.1
Binary files differ
diff --git a/utils/bin/fectool/libm.so.6 b/utils/bin/fectool/libm.so.6
new file mode 100644
index 0000000..6dc6c8e
--- /dev/null
+++ b/utils/bin/fectool/libm.so.6
Binary files differ
diff --git a/utils/bin/fectool/libpthread.so.0 b/utils/bin/fectool/libpthread.so.0
new file mode 100644
index 0000000..145787c
--- /dev/null
+++ b/utils/bin/fectool/libpthread.so.0
Binary files differ
diff --git a/utils/bin/fectool/libresolv.so.2 b/utils/bin/fectool/libresolv.so.2
new file mode 100644
index 0000000..5b0aeed
--- /dev/null
+++ b/utils/bin/fectool/libresolv.so.2
Binary files differ
diff --git a/utils/bin/fectool/librt.so.1 b/utils/bin/fectool/librt.so.1
new file mode 100644
index 0000000..b4db5d7
--- /dev/null
+++ b/utils/bin/fectool/librt.so.1
Binary files differ
diff --git a/utils/jar/apktool.jar b/utils/jar/apktool.jar
new file mode 100644
index 0000000..185c2da
--- /dev/null
+++ b/utils/jar/apktool.jar
Binary files differ
diff --git a/utils/scripts/add_to_fs.sh b/utils/scripts/add_to_fs.sh
new file mode 100755
index 0000000..037c5e6
--- /dev/null
+++ b/utils/scripts/add_to_fs.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+if [ "$#" -lt 3 ]; then
+ echo "Incorrect arguments!"
+ echo " Using: $0 <PARTITION_NAME> <FILE_INPUT> <FILE_LOCATION> [FTYPE (d,f,x)] [SELINUX_DOMAIN]"
+ exit 1
+fi
+
+PARTITION_NAME=$1
+FILE_INPUT=$2
+FILE_LOCATION=$3
+FTYPE=$4
+SELINUX_DOMAIN=$5
+
+
+FS_CONFIG_DIR="unpacked/mnt/config/"
+PERMISSION=0644
+
+if [[ -z ${SELINUX_DOMAIN} ]]; then
+ SELINUX_DOMAIN="system_file"
+fi
+
+echo "/${PARTITION_NAME}/${FILE_LOCATION}/${FILE_INPUT} u:object_r:$SELINUX_DOMAIN:s0" >> ${FS_CONFIG_DIR}/${PARTITION_NAME}_file_contexts
+
+# PART_NAME_fs_config
+if [[ -d $FILE_INPUT || $FTYPE == 1 ]]; then
+ PERMISSION=0755
+fi
+echo "${PARTITION_NAME}/${FILE_LOCATION}/${FILE_INPUT} 0 0 ${PERMISSION}" >> ${FS_CONFIG_DIR}/${PARTITION_NAME}_fs_config
diff --git a/utils/scripts/list_packages.sh b/utils/scripts/list_packages.sh
new file mode 100755
index 0000000..78fe462
--- /dev/null
+++ b/utils/scripts/list_packages.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+MNT_DIR="unpacked/mnt/"
+
+for i in $(find $MNT_DIR -name "*.apk"); do
+ echo -e "$( aapt dump badging $i | awk '/package/{gsub("name=|'"'"'",""); print $2}' ) : $i"
+done
diff --git a/utils/scripts/modify_apk.sh b/utils/scripts/modify_apk.sh
new file mode 100755
index 0000000..e682598
--- /dev/null
+++ b/utils/scripts/modify_apk.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+TMP_DIR="/tmp/driedlamu/modify_apk"
+
+decompile() {
+ local file="$1"
+ local file_name="$(basename "$file" .apk)"
+ local working_dir="$TMP_DIR/$file_name"
+
+ mkdir -p "$working_dir"
+
+ if ! java -Xmx2048m -jar "./utils/jar/apktool.jar" d -q -f "$file" -o "$working_dir/decompile"; then
+ echo "Error: Failed to decompile $file with apktool"
+ exit 1
+ fi
+}
+
+repack() {
+ local file="$1"
+ local file_name="$(basename "$file" .apk)"
+ local output_location="$2"
+ local working_dir="$TMP_DIR/$file_name"
+ local modified_apk="$working_dir/${file_name}_unsigned.apk"
+
+ if ! java -Xmx2048m -jar "./utils/jar/apktool.jar" b -q -f "$working_dir/decompile" -o "$working_dir/${file_name}_unsigned.apk"; then
+ echo "Error: Failed to recompile $file with apktool"
+ exit 1
+ fi
+
+ apksigcopier copy "$file" "$modified_apk" "${output_location}/${file_name}.apk"
+}
+
+mkdir -p $TMP_DIR
+
+apk_cli() {
+ case $1 in
+ unpack)
+ decompile "$2"
+ ;;
+ repack)
+ repack "$2" "$3"
+ ;;
+ *)
+ echo "Please specify a valid type of task you wish to do (unpack, repack)."
+ exit 1
+ ;;
+ esac
+}
+
+apk_cli "$1" "$2" "$3"