From 7821c02171d77229797e3a57edd0502e942373cc Mon Sep 17 00:00:00 2001 From: Kacper Sagalara Date: Fri, 19 Jun 2026 19:08:11 +0200 Subject: Add missing files. --- .gitignore | 1 + LICENSE | 674 +++++++++++++++++++ Makefile | 46 ++ README.md | 2 +- res/apks/apps/OpenBoard.apk | Bin 0 -> 52721423 bytes res/apks/priv-apps/DriedLamuAssistant.apk | Bin 0 -> 62108 bytes res/apks/priv-apps/Lawnchair.apk | Bin 0 -> 17270215 bytes .../preferred-apps/preferred-apps-driedlamu.xml | 58 ++ .../app.lawnchair-hiddenapi-package-whitelist.xml | 4 + res/media/alarms/Barium.ogg | Bin 0 -> 51499 bytes res/media/alarms/Hassium.ogg | Bin 0 -> 147068 bytes res/media/alarms/NuclearLaunch.ogg | Bin 0 -> 65601 bytes res/media/alarms/Scandium.ogg | Bin 0 -> 47812 bytes res/media/alarms/Timer.ogg | Bin 0 -> 96320 bytes res/media/notifications/Adara.ogg | Bin 0 -> 10414 bytes res/media/notifications/Aldebaran.ogg | Bin 0 -> 7593 bytes res/media/notifications/Altair.ogg | Bin 0 -> 7021 bytes res/media/notifications/Alya.ogg | Bin 0 -> 8927 bytes res/media/notifications/Antares.ogg | Bin 0 -> 10375 bytes res/media/notifications/Antimony.ogg | Bin 0 -> 27849 bytes res/media/notifications/Arcturus.ogg | Bin 0 -> 7933 bytes res/media/notifications/Argon.ogg | Bin 0 -> 15851 bytes res/media/notifications/Ariel.ogg | Bin 0 -> 60950 bytes res/media/notifications/Beat_Box_Android.ogg | Bin 0 -> 34601 bytes res/media/notifications/Bellatrix.ogg | Bin 0 -> 15714 bytes res/media/notifications/Beryllium.ogg | Bin 0 -> 19381 bytes res/media/notifications/Betelgeuse.ogg | Bin 0 -> 16108 bytes res/media/notifications/CaffeineSnake.ogg | Bin 0 -> 19121 bytes res/media/notifications/Canopus.ogg | Bin 0 -> 11948 bytes res/media/notifications/Capella.ogg | Bin 0 -> 13126 bytes res/media/notifications/Carme.ogg | Bin 0 -> 34830 bytes res/media/notifications/Castor.ogg | Bin 0 -> 14648 bytes res/media/notifications/Ceres.ogg | Bin 0 -> 39805 bytes res/media/notifications/CetiAlpha.ogg | Bin 0 -> 26158 bytes res/media/notifications/Cobalt.ogg | Bin 0 -> 18121 bytes res/media/notifications/Cricket.ogg | Bin 0 -> 10936 bytes res/media/notifications/DearDeer.ogg | Bin 0 -> 18659 bytes res/media/notifications/Deneb.ogg | Bin 0 -> 14416 bytes res/media/notifications/Doink.ogg | Bin 0 -> 8911 bytes res/media/notifications/DontPanic.ogg | Bin 0 -> 16985 bytes res/media/notifications/Drip.ogg | Bin 0 -> 13244 bytes res/media/notifications/Elara.ogg | Bin 0 -> 36963 bytes res/media/notifications/Electra.ogg | Bin 0 -> 15199 bytes res/media/notifications/Europa.ogg | Bin 0 -> 26143 bytes res/media/notifications/F1_New_SMS.ogg | Bin 0 -> 11941 bytes res/media/notifications/Fluorine.ogg | Bin 0 -> 18674 bytes res/media/notifications/Fomalhaut.ogg | Bin 0 -> 22003 bytes res/media/notifications/Gallium.ogg | Bin 0 -> 12214 bytes res/media/notifications/Heaven.ogg | Bin 0 -> 38517 bytes res/media/notifications/Helium.ogg | Bin 0 -> 7445 bytes res/media/notifications/Highwire.ogg | Bin 0 -> 18442 bytes res/media/notifications/Hojus.ogg | Bin 0 -> 13986 bytes res/media/notifications/Iapetus.ogg | Bin 0 -> 45046 bytes res/media/notifications/Io.ogg | Bin 0 -> 40129 bytes res/media/notifications/Iridium.ogg | Bin 0 -> 58227 bytes res/media/notifications/Krypton.ogg | Bin 0 -> 11566 bytes res/media/notifications/KzurbSonar.ogg | Bin 0 -> 15619 bytes res/media/notifications/Laser.ogg | Bin 0 -> 11575 bytes res/media/notifications/Merope.ogg | Bin 0 -> 18854 bytes res/media/notifications/Mira.ogg | Bin 0 -> 17711 bytes res/media/notifications/Naughty.ogg | Bin 0 -> 31725 bytes res/media/notifications/OnTheHunt.ogg | Bin 0 -> 20052 bytes res/media/notifications/Palladium.ogg | Bin 0 -> 14645 bytes res/media/notifications/Plastic_Pipe.ogg | Bin 0 -> 6652 bytes res/media/notifications/Polaris.ogg | Bin 0 -> 20531 bytes res/media/notifications/Pollux.ogg | Bin 0 -> 23463 bytes res/media/notifications/Pong.ogg | Bin 0 -> 36542 bytes res/media/notifications/Procyon.ogg | Bin 0 -> 22344 bytes res/media/notifications/Proxima.ogg | Bin 0 -> 13244 bytes res/media/notifications/Radon.ogg | Bin 0 -> 25356 bytes res/media/notifications/Rang.ogg | Bin 0 -> 95315 bytes res/media/notifications/Rhea.ogg | Bin 0 -> 22540 bytes res/media/notifications/Rubidium.ogg | Bin 0 -> 21191 bytes res/media/notifications/Salacia.ogg | Bin 0 -> 40548 bytes res/media/notifications/Selenium.ogg | Bin 0 -> 10893 bytes res/media/notifications/Shaula.ogg | Bin 0 -> 24298 bytes res/media/notifications/Sirrah.ogg | Bin 0 -> 20976 bytes res/media/notifications/Spica.ogg | Bin 0 -> 9069 bytes res/media/notifications/Stone.ogg | Bin 0 -> 56319 bytes res/media/notifications/Strontium.ogg | Bin 0 -> 39203 bytes res/media/notifications/Syrma.ogg | Bin 0 -> 8479 bytes res/media/notifications/TaDa.ogg | Bin 0 -> 43522 bytes res/media/notifications/Talitha.ogg | Bin 0 -> 10435 bytes res/media/notifications/Tethys.ogg | Bin 0 -> 40075 bytes res/media/notifications/Thallium.ogg | Bin 0 -> 18235 bytes res/media/notifications/Titan.ogg | Bin 0 -> 32387 bytes res/media/notifications/Upsilon.ogg | Bin 0 -> 24040 bytes res/media/notifications/Vega.ogg | Bin 0 -> 29310 bytes res/media/notifications/Voila.ogg | Bin 0 -> 16487 bytes res/media/notifications/Xenon.ogg | Bin 0 -> 27860 bytes res/media/notifications/Zirconium.ogg | Bin 0 -> 12697 bytes res/media/notifications/moonbeam.ogg | Bin 0 -> 16243 bytes res/media/notifications/pixiedust.ogg | Bin 0 -> 16905 bytes res/media/notifications/pizzicato.ogg | Bin 0 -> 18884 bytes res/media/notifications/regulus.ogg | Bin 0 -> 27852 bytes res/media/notifications/sirius.ogg | Bin 0 -> 26612 bytes res/media/notifications/tweeters.ogg | Bin 0 -> 10421 bytes res/media/ringtones/Andromeda.ogg | Bin 0 -> 24973 bytes res/media/ringtones/Aquila.ogg | Bin 0 -> 21457 bytes res/media/ringtones/ArgoNavis.ogg | Bin 0 -> 225891 bytes res/media/ringtones/Attentive.ogg | Bin 0 -> 550264 bytes res/media/ringtones/BOOTES.ogg | Bin 0 -> 26310 bytes res/media/ringtones/Backroad.ogg | Bin 0 -> 36049 bytes res/media/ringtones/BeatPlucker.ogg | Bin 0 -> 28433 bytes res/media/ringtones/BentleyDubs.ogg | Bin 0 -> 30759 bytes res/media/ringtones/Big_Easy.ogg | Bin 0 -> 46673 bytes res/media/ringtones/BirdLoop.ogg | Bin 0 -> 41828 bytes res/media/ringtones/Bollywood.ogg | Bin 0 -> 39174 bytes res/media/ringtones/Boxbeat.ogg | Bin 0 -> 712951 bytes res/media/ringtones/BussaMove.ogg | Bin 0 -> 48968 bytes res/media/ringtones/CASSIOPEIA.ogg | Bin 0 -> 31941 bytes res/media/ringtones/Cairo.ogg | Bin 0 -> 37672 bytes res/media/ringtones/Callisto.ogg | Bin 0 -> 405681 bytes res/media/ringtones/Calypso_Steel.ogg | Bin 0 -> 38875 bytes res/media/ringtones/CanisMajor.ogg | Bin 0 -> 31133 bytes res/media/ringtones/CaribbeanIce.ogg | Bin 0 -> 30615 bytes res/media/ringtones/Carina.ogg | Bin 0 -> 15384 bytes res/media/ringtones/Centaurus.ogg | Bin 0 -> 27644 bytes res/media/ringtones/Champagne_Edition.ogg | Bin 0 -> 39921 bytes res/media/ringtones/Club_Cubano.ogg | Bin 0 -> 37179 bytes res/media/ringtones/CrayonRock.ogg | Bin 0 -> 37952 bytes res/media/ringtones/CrazyDream.ogg | Bin 0 -> 206809 bytes res/media/ringtones/CurveBall.ogg | Bin 0 -> 30925 bytes res/media/ringtones/Cygnus.ogg | Bin 0 -> 29807 bytes res/media/ringtones/DancinFool.ogg | Bin 0 -> 61434 bytes res/media/ringtones/Dione.ogg | Bin 0 -> 344043 bytes res/media/ringtones/DonMessWivIt.ogg | Bin 0 -> 50545 bytes res/media/ringtones/Draco.ogg | Bin 0 -> 31778 bytes res/media/ringtones/DreamTheme.ogg | Bin 0 -> 175423 bytes res/media/ringtones/Eastern_Sky.ogg | Bin 0 -> 50578 bytes res/media/ringtones/Enter_the_Nexus.ogg | Bin 0 -> 61699 bytes res/media/ringtones/Eridani.ogg | Bin 0 -> 36585 bytes res/media/ringtones/EtherShake.ogg | Bin 0 -> 31563 bytes res/media/ringtones/FreeFlight.ogg | Bin 0 -> 113055 bytes res/media/ringtones/FriendlyGhost.ogg | Bin 0 -> 46425 bytes res/media/ringtones/Funk_Yall.ogg | Bin 0 -> 39738 bytes res/media/ringtones/GameOverGuitar.ogg | Bin 0 -> 49978 bytes res/media/ringtones/Ganymede.ogg | Bin 0 -> 135334 bytes res/media/ringtones/Gimme_Mo_Town.ogg | Bin 0 -> 38688 bytes res/media/ringtones/Girtab.ogg | Bin 0 -> 44376 bytes res/media/ringtones/Glacial_Groove.ogg | Bin 0 -> 54923 bytes res/media/ringtones/Growl.ogg | Bin 0 -> 41094 bytes res/media/ringtones/HalfwayHome.ogg | Bin 0 -> 68588 bytes res/media/ringtones/Highscore.ogg | Bin 0 -> 217486 bytes res/media/ringtones/Hydra.ogg | Bin 0 -> 22924 bytes res/media/ringtones/InsertCoin.ogg | Bin 0 -> 15146 bytes res/media/ringtones/Kuma.ogg | Bin 0 -> 164867 bytes res/media/ringtones/LoopyLounge.ogg | Bin 0 -> 38307 bytes res/media/ringtones/LoveFlute.ogg | Bin 0 -> 34627 bytes res/media/ringtones/Luna.ogg | Bin 0 -> 114250 bytes res/media/ringtones/Lyon.ogg | Bin 0 -> 111064 bytes res/media/ringtones/Lyra.ogg | Bin 0 -> 42540 bytes res/media/ringtones/Machina.ogg | Bin 0 -> 38054 bytes res/media/ringtones/MidEvilJaunt.ogg | Bin 0 -> 28124 bytes res/media/ringtones/Momentum.ogg | Bin 0 -> 1062393 bytes res/media/ringtones/Moto.ogg | Bin 0 -> 170669 bytes res/media/ringtones/Nairobi.ogg | Bin 0 -> 41355 bytes res/media/ringtones/Nassau.ogg | Bin 0 -> 44104 bytes res/media/ringtones/NewPlayer.ogg | Bin 0 -> 15563 bytes res/media/ringtones/No_Limits.ogg | Bin 0 -> 32933 bytes res/media/ringtones/Noises2.ogg | Bin 0 -> 39025 bytes res/media/ringtones/Noises3.ogg | Bin 0 -> 26662 bytes res/media/ringtones/Oberon.ogg | Bin 0 -> 465727 bytes res/media/ringtones/OrganDub.ogg | Bin 0 -> 32640 bytes res/media/ringtones/Orion.ogg | Bin 0 -> 54419 bytes res/media/ringtones/Paradise_Island.ogg | Bin 0 -> 39199 bytes res/media/ringtones/Pegasus.ogg | Bin 0 -> 86694 bytes res/media/ringtones/Perseus.ogg | Bin 0 -> 236343 bytes res/media/ringtones/Phobos.ogg | Bin 0 -> 115442 bytes res/media/ringtones/Playa.ogg | Bin 0 -> 56616 bytes res/media/ringtones/PyxisMaterial.ogg | Bin 0 -> 629613 bytes res/media/ringtones/Rasalas.ogg | Bin 0 -> 178685 bytes res/media/ringtones/Revelation.ogg | Bin 0 -> 52536 bytes res/media/ringtones/Rigel.ogg | Bin 0 -> 57764 bytes res/media/ringtones/Ring_Classic_02.ogg | Bin 0 -> 59024 bytes res/media/ringtones/Ring_Digital_02.ogg | Bin 0 -> 21007 bytes res/media/ringtones/Ring_Synth_02.ogg | Bin 0 -> 52809 bytes res/media/ringtones/Ring_Synth_04.ogg | Bin 0 -> 43965 bytes res/media/ringtones/Road_Trip.ogg | Bin 0 -> 49108 bytes res/media/ringtones/Rockin.ogg | Bin 0 -> 216000 bytes res/media/ringtones/RomancingTheTone.ogg | Bin 0 -> 31641 bytes res/media/ringtones/Safari.ogg | Bin 0 -> 42220 bytes res/media/ringtones/Savannah.ogg | Bin 0 -> 39138 bytes res/media/ringtones/Scarabaeus.ogg | Bin 0 -> 108945 bytes res/media/ringtones/Sceptrum.ogg | Bin 0 -> 316370 bytes res/media/ringtones/Sedna.ogg | Bin 0 -> 197002 bytes res/media/ringtones/Seville.ogg | Bin 0 -> 44422 bytes res/media/ringtones/Sheep.mp3 | Bin 0 -> 35759 bytes res/media/ringtones/Shes_All_That.ogg | Bin 0 -> 39413 bytes res/media/ringtones/SilkyWay.ogg | Bin 0 -> 44186 bytes res/media/ringtones/Simple.ogg | Bin 0 -> 1134690 bytes res/media/ringtones/SitarVsSitar.ogg | Bin 0 -> 28898 bytes res/media/ringtones/Solarium.ogg | Bin 0 -> 89515 bytes res/media/ringtones/SpringyJalopy.ogg | Bin 0 -> 26144 bytes res/media/ringtones/Steppin_Out.ogg | Bin 0 -> 37847 bytes res/media/ringtones/Terminated.ogg | Bin 0 -> 36620 bytes res/media/ringtones/Testudo.ogg | Bin 0 -> 72078 bytes res/media/ringtones/Themos.ogg | Bin 0 -> 175478 bytes res/media/ringtones/Third_Eye.ogg | Bin 0 -> 36539 bytes res/media/ringtones/Thunderfoot.ogg | Bin 0 -> 46049 bytes res/media/ringtones/Titania.ogg | Bin 0 -> 683708 bytes res/media/ringtones/Triton.ogg | Bin 0 -> 471219 bytes res/media/ringtones/TwirlAway.ogg | Bin 0 -> 26298 bytes res/media/ringtones/Umbriel.ogg | Bin 0 -> 246893 bytes res/media/ringtones/UrsaMinor.ogg | Bin 0 -> 185005 bytes res/media/ringtones/VeryAlarmed.ogg | Bin 0 -> 28691 bytes res/media/ringtones/Vespa.ogg | Bin 0 -> 18043 bytes res/media/ringtones/World.ogg | Bin 0 -> 31136 bytes res/media/ringtones/Yukaay.ogg | Bin 0 -> 603651 bytes res/media/ringtones/Zeta.ogg | Bin 0 -> 77919 bytes res/microg/apks/apps/GoogleCalendarSyncAdapter.apk | Bin 0 -> 2484539 bytes res/microg/apks/apps/GoogleContactsSyncAdapter.apk | Bin 0 -> 1571497 bytes .../apps/permissions-com.google.android.gms.xml | 27 + .../permissions/apps/permissions-google-sync.xml | 21 + .../priv-apps/com.google.android.maps.xml | 5 + .../priv-apps/privapp-permissions-org.microG.xml | 62 ++ res/microg/signatures-google/gms/APKSigningBlock | Bin 0 -> 16384 bytes .../signatures-google/gms/APKSigningBlockOffset | 1 + .../signatures-google/phonesky/APKSigningBlock | Bin 0 -> 12288 bytes .../phonesky/APKSigningBlockOffset | 1 + .../system/framework/com.google.android.maps.jar | Bin 0 -> 142919 bytes .../system/lib/arm64/libconscrypt_gmscore_jni.so | Bin 0 -> 2111792 bytes .../system/lib/arm64/libcronet.102.0.5005.125.so | Bin 0 -> 6034224 bytes res/microg/system/lib/arm64/libmapbox-gl.so | Bin 0 -> 9911176 bytes .../lib/armeabi-v7a/libconscrypt_gmscore_jni.so | Bin 0 -> 1288128 bytes .../lib/armeabi-v7a/libcronet.102.0.5005.125.so | Bin 0 -> 3309728 bytes res/microg/system/lib/armeabi-v7a/libmapbox-gl.so | Bin 0 -> 7384204 bytes ...sions-org.dslul.openboard.inputmethod.latin.xml | 9 + .../privapp-permissions-app.lawnchair.xml | 61 ++ ...p-permissions-me.kasesag.driedlamu.asistant.xml | 6 + scripts/add_media.sh | 29 + scripts/apk_obtain_permissions.sh | 49 ++ scripts/bloatware/bloatware.json | 720 +++++++++++++++++++++ scripts/bloatware/main.sh | 21 + scripts/configs/main.sh | 20 + scripts/configs/modify_configs.sh | 57 ++ scripts/configs/remove_configs.sh | 95 +++ scripts/download_apks.sh | 65 ++ scripts/install_apks.sh | 57 ++ scripts/microg.sh | 130 ++++ scripts/permissions/install_permissions.sh | 37 ++ scripts/permissions/main.sh | 14 + scripts/permissions/remove_permissions.sh | 154 +++++ scripts/props.sh | 115 ++++ stages/build.sh | 334 ++++++++++ stages/config.sh | 116 ++++ stages/flash.sh | 83 +++ utils/bin/fectool/fec | Bin 0 -> 1572304 bytes utils/bin/fectool/ld-linux-x86-64.so.2 | Bin 0 -> 236616 bytes utils/bin/fectool/libc++.so | Bin 0 -> 1306312 bytes utils/bin/fectool/libdl.so.2 | Bin 0 -> 14408 bytes utils/bin/fectool/libgcc_s.so.1 | Bin 0 -> 183024 bytes utils/bin/fectool/libm.so.6 | Bin 0 -> 952616 bytes utils/bin/fectool/libpthread.so.0 | Bin 0 -> 14408 bytes utils/bin/fectool/libresolv.so.2 | Bin 0 -> 68104 bytes utils/bin/fectool/librt.so.1 | Bin 0 -> 14624 bytes utils/jar/apktool.jar | Bin 0 -> 25925346 bytes utils/scripts/add_to_fs.sh | 29 + utils/scripts/list_packages.sh | 7 + utils/scripts/modify_apk.sh | 50 ++ 260 files changed, 3159 insertions(+), 1 deletion(-) create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 res/apks/apps/OpenBoard.apk create mode 100644 res/apks/priv-apps/DriedLamuAssistant.apk create mode 100644 res/apks/priv-apps/Lawnchair.apk create mode 100644 res/configs/preferred-apps/preferred-apps-driedlamu.xml create mode 100644 res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml create mode 100644 res/media/alarms/Barium.ogg create mode 100644 res/media/alarms/Hassium.ogg create mode 100644 res/media/alarms/NuclearLaunch.ogg create mode 100644 res/media/alarms/Scandium.ogg create mode 100644 res/media/alarms/Timer.ogg create mode 100644 res/media/notifications/Adara.ogg create mode 100644 res/media/notifications/Aldebaran.ogg create mode 100644 res/media/notifications/Altair.ogg create mode 100644 res/media/notifications/Alya.ogg create mode 100644 res/media/notifications/Antares.ogg create mode 100644 res/media/notifications/Antimony.ogg create mode 100644 res/media/notifications/Arcturus.ogg create mode 100644 res/media/notifications/Argon.ogg create mode 100644 res/media/notifications/Ariel.ogg create mode 100644 res/media/notifications/Beat_Box_Android.ogg create mode 100644 res/media/notifications/Bellatrix.ogg create mode 100644 res/media/notifications/Beryllium.ogg create mode 100644 res/media/notifications/Betelgeuse.ogg create mode 100644 res/media/notifications/CaffeineSnake.ogg create mode 100644 res/media/notifications/Canopus.ogg create mode 100644 res/media/notifications/Capella.ogg create mode 100644 res/media/notifications/Carme.ogg create mode 100644 res/media/notifications/Castor.ogg create mode 100644 res/media/notifications/Ceres.ogg create mode 100644 res/media/notifications/CetiAlpha.ogg create mode 100644 res/media/notifications/Cobalt.ogg create mode 100644 res/media/notifications/Cricket.ogg create mode 100644 res/media/notifications/DearDeer.ogg create mode 100644 res/media/notifications/Deneb.ogg create mode 100644 res/media/notifications/Doink.ogg create mode 100644 res/media/notifications/DontPanic.ogg create mode 100644 res/media/notifications/Drip.ogg create mode 100644 res/media/notifications/Elara.ogg create mode 100644 res/media/notifications/Electra.ogg create mode 100644 res/media/notifications/Europa.ogg create mode 100644 res/media/notifications/F1_New_SMS.ogg create mode 100644 res/media/notifications/Fluorine.ogg create mode 100644 res/media/notifications/Fomalhaut.ogg create mode 100644 res/media/notifications/Gallium.ogg create mode 100644 res/media/notifications/Heaven.ogg create mode 100644 res/media/notifications/Helium.ogg create mode 100644 res/media/notifications/Highwire.ogg create mode 100644 res/media/notifications/Hojus.ogg create mode 100644 res/media/notifications/Iapetus.ogg create mode 100644 res/media/notifications/Io.ogg create mode 100644 res/media/notifications/Iridium.ogg create mode 100644 res/media/notifications/Krypton.ogg create mode 100644 res/media/notifications/KzurbSonar.ogg create mode 100644 res/media/notifications/Laser.ogg create mode 100644 res/media/notifications/Merope.ogg create mode 100644 res/media/notifications/Mira.ogg create mode 100644 res/media/notifications/Naughty.ogg create mode 100644 res/media/notifications/OnTheHunt.ogg create mode 100644 res/media/notifications/Palladium.ogg create mode 100644 res/media/notifications/Plastic_Pipe.ogg create mode 100644 res/media/notifications/Polaris.ogg create mode 100644 res/media/notifications/Pollux.ogg create mode 100644 res/media/notifications/Pong.ogg create mode 100644 res/media/notifications/Procyon.ogg create mode 100644 res/media/notifications/Proxima.ogg create mode 100644 res/media/notifications/Radon.ogg create mode 100644 res/media/notifications/Rang.ogg create mode 100644 res/media/notifications/Rhea.ogg create mode 100644 res/media/notifications/Rubidium.ogg create mode 100644 res/media/notifications/Salacia.ogg create mode 100644 res/media/notifications/Selenium.ogg create mode 100644 res/media/notifications/Shaula.ogg create mode 100644 res/media/notifications/Sirrah.ogg create mode 100644 res/media/notifications/Spica.ogg create mode 100644 res/media/notifications/Stone.ogg create mode 100644 res/media/notifications/Strontium.ogg create mode 100644 res/media/notifications/Syrma.ogg create mode 100644 res/media/notifications/TaDa.ogg create mode 100644 res/media/notifications/Talitha.ogg create mode 100644 res/media/notifications/Tethys.ogg create mode 100644 res/media/notifications/Thallium.ogg create mode 100644 res/media/notifications/Titan.ogg create mode 100644 res/media/notifications/Upsilon.ogg create mode 100644 res/media/notifications/Vega.ogg create mode 100644 res/media/notifications/Voila.ogg create mode 100644 res/media/notifications/Xenon.ogg create mode 100644 res/media/notifications/Zirconium.ogg create mode 100644 res/media/notifications/moonbeam.ogg create mode 100644 res/media/notifications/pixiedust.ogg create mode 100644 res/media/notifications/pizzicato.ogg create mode 100644 res/media/notifications/regulus.ogg create mode 100644 res/media/notifications/sirius.ogg create mode 100644 res/media/notifications/tweeters.ogg create mode 100644 res/media/ringtones/Andromeda.ogg create mode 100644 res/media/ringtones/Aquila.ogg create mode 100644 res/media/ringtones/ArgoNavis.ogg create mode 100644 res/media/ringtones/Attentive.ogg create mode 100644 res/media/ringtones/BOOTES.ogg create mode 100644 res/media/ringtones/Backroad.ogg create mode 100644 res/media/ringtones/BeatPlucker.ogg create mode 100644 res/media/ringtones/BentleyDubs.ogg create mode 100644 res/media/ringtones/Big_Easy.ogg create mode 100644 res/media/ringtones/BirdLoop.ogg create mode 100644 res/media/ringtones/Bollywood.ogg create mode 100644 res/media/ringtones/Boxbeat.ogg create mode 100644 res/media/ringtones/BussaMove.ogg create mode 100644 res/media/ringtones/CASSIOPEIA.ogg create mode 100644 res/media/ringtones/Cairo.ogg create mode 100644 res/media/ringtones/Callisto.ogg create mode 100644 res/media/ringtones/Calypso_Steel.ogg create mode 100644 res/media/ringtones/CanisMajor.ogg create mode 100644 res/media/ringtones/CaribbeanIce.ogg create mode 100644 res/media/ringtones/Carina.ogg create mode 100644 res/media/ringtones/Centaurus.ogg create mode 100644 res/media/ringtones/Champagne_Edition.ogg create mode 100644 res/media/ringtones/Club_Cubano.ogg create mode 100644 res/media/ringtones/CrayonRock.ogg create mode 100644 res/media/ringtones/CrazyDream.ogg create mode 100644 res/media/ringtones/CurveBall.ogg create mode 100644 res/media/ringtones/Cygnus.ogg create mode 100644 res/media/ringtones/DancinFool.ogg create mode 100644 res/media/ringtones/Dione.ogg create mode 100644 res/media/ringtones/DonMessWivIt.ogg create mode 100644 res/media/ringtones/Draco.ogg create mode 100644 res/media/ringtones/DreamTheme.ogg create mode 100644 res/media/ringtones/Eastern_Sky.ogg create mode 100644 res/media/ringtones/Enter_the_Nexus.ogg create mode 100644 res/media/ringtones/Eridani.ogg create mode 100644 res/media/ringtones/EtherShake.ogg create mode 100644 res/media/ringtones/FreeFlight.ogg create mode 100644 res/media/ringtones/FriendlyGhost.ogg create mode 100644 res/media/ringtones/Funk_Yall.ogg create mode 100644 res/media/ringtones/GameOverGuitar.ogg create mode 100644 res/media/ringtones/Ganymede.ogg create mode 100644 res/media/ringtones/Gimme_Mo_Town.ogg create mode 100644 res/media/ringtones/Girtab.ogg create mode 100644 res/media/ringtones/Glacial_Groove.ogg create mode 100644 res/media/ringtones/Growl.ogg create mode 100644 res/media/ringtones/HalfwayHome.ogg create mode 100644 res/media/ringtones/Highscore.ogg create mode 100644 res/media/ringtones/Hydra.ogg create mode 100644 res/media/ringtones/InsertCoin.ogg create mode 100644 res/media/ringtones/Kuma.ogg create mode 100644 res/media/ringtones/LoopyLounge.ogg create mode 100644 res/media/ringtones/LoveFlute.ogg create mode 100644 res/media/ringtones/Luna.ogg create mode 100644 res/media/ringtones/Lyon.ogg create mode 100644 res/media/ringtones/Lyra.ogg create mode 100644 res/media/ringtones/Machina.ogg create mode 100644 res/media/ringtones/MidEvilJaunt.ogg create mode 100644 res/media/ringtones/Momentum.ogg create mode 100644 res/media/ringtones/Moto.ogg create mode 100644 res/media/ringtones/Nairobi.ogg create mode 100644 res/media/ringtones/Nassau.ogg create mode 100644 res/media/ringtones/NewPlayer.ogg create mode 100644 res/media/ringtones/No_Limits.ogg create mode 100644 res/media/ringtones/Noises2.ogg create mode 100644 res/media/ringtones/Noises3.ogg create mode 100644 res/media/ringtones/Oberon.ogg create mode 100644 res/media/ringtones/OrganDub.ogg create mode 100644 res/media/ringtones/Orion.ogg create mode 100644 res/media/ringtones/Paradise_Island.ogg create mode 100644 res/media/ringtones/Pegasus.ogg create mode 100644 res/media/ringtones/Perseus.ogg create mode 100644 res/media/ringtones/Phobos.ogg create mode 100644 res/media/ringtones/Playa.ogg create mode 100644 res/media/ringtones/PyxisMaterial.ogg create mode 100644 res/media/ringtones/Rasalas.ogg create mode 100644 res/media/ringtones/Revelation.ogg create mode 100644 res/media/ringtones/Rigel.ogg create mode 100644 res/media/ringtones/Ring_Classic_02.ogg create mode 100644 res/media/ringtones/Ring_Digital_02.ogg create mode 100644 res/media/ringtones/Ring_Synth_02.ogg create mode 100644 res/media/ringtones/Ring_Synth_04.ogg create mode 100644 res/media/ringtones/Road_Trip.ogg create mode 100644 res/media/ringtones/Rockin.ogg create mode 100644 res/media/ringtones/RomancingTheTone.ogg create mode 100644 res/media/ringtones/Safari.ogg create mode 100644 res/media/ringtones/Savannah.ogg create mode 100644 res/media/ringtones/Scarabaeus.ogg create mode 100644 res/media/ringtones/Sceptrum.ogg create mode 100644 res/media/ringtones/Sedna.ogg create mode 100644 res/media/ringtones/Seville.ogg create mode 100644 res/media/ringtones/Sheep.mp3 create mode 100644 res/media/ringtones/Shes_All_That.ogg create mode 100644 res/media/ringtones/SilkyWay.ogg create mode 100644 res/media/ringtones/Simple.ogg create mode 100644 res/media/ringtones/SitarVsSitar.ogg create mode 100644 res/media/ringtones/Solarium.ogg create mode 100644 res/media/ringtones/SpringyJalopy.ogg create mode 100644 res/media/ringtones/Steppin_Out.ogg create mode 100644 res/media/ringtones/Terminated.ogg create mode 100644 res/media/ringtones/Testudo.ogg create mode 100644 res/media/ringtones/Themos.ogg create mode 100644 res/media/ringtones/Third_Eye.ogg create mode 100644 res/media/ringtones/Thunderfoot.ogg create mode 100644 res/media/ringtones/Titania.ogg create mode 100644 res/media/ringtones/Triton.ogg create mode 100644 res/media/ringtones/TwirlAway.ogg create mode 100644 res/media/ringtones/Umbriel.ogg create mode 100644 res/media/ringtones/UrsaMinor.ogg create mode 100644 res/media/ringtones/VeryAlarmed.ogg create mode 100644 res/media/ringtones/Vespa.ogg create mode 100644 res/media/ringtones/World.ogg create mode 100644 res/media/ringtones/Yukaay.ogg create mode 100644 res/media/ringtones/Zeta.ogg create mode 100644 res/microg/apks/apps/GoogleCalendarSyncAdapter.apk create mode 100644 res/microg/apks/apps/GoogleContactsSyncAdapter.apk create mode 100644 res/microg/permissions/apps/permissions-com.google.android.gms.xml create mode 100644 res/microg/permissions/apps/permissions-google-sync.xml create mode 100644 res/microg/permissions/priv-apps/com.google.android.maps.xml create mode 100644 res/microg/permissions/priv-apps/privapp-permissions-org.microG.xml create mode 100644 res/microg/signatures-google/gms/APKSigningBlock create mode 100644 res/microg/signatures-google/gms/APKSigningBlockOffset create mode 100644 res/microg/signatures-google/phonesky/APKSigningBlock create mode 100644 res/microg/signatures-google/phonesky/APKSigningBlockOffset create mode 100644 res/microg/system/framework/com.google.android.maps.jar create mode 100644 res/microg/system/lib/arm64/libconscrypt_gmscore_jni.so create mode 100644 res/microg/system/lib/arm64/libcronet.102.0.5005.125.so create mode 100644 res/microg/system/lib/arm64/libmapbox-gl.so create mode 100644 res/microg/system/lib/armeabi-v7a/libconscrypt_gmscore_jni.so create mode 100644 res/microg/system/lib/armeabi-v7a/libcronet.102.0.5005.125.so create mode 100644 res/microg/system/lib/armeabi-v7a/libmapbox-gl.so create mode 100644 res/permissions/apps/default-permissions-org.dslul.openboard.inputmethod.latin.xml create mode 100644 res/permissions/priv-apps/privapp-permissions-app.lawnchair.xml create mode 100644 res/permissions/priv-apps/privapp-permissions-me.kasesag.driedlamu.asistant.xml create mode 100755 scripts/add_media.sh create mode 100755 scripts/apk_obtain_permissions.sh create mode 100644 scripts/bloatware/bloatware.json create mode 100755 scripts/bloatware/main.sh create mode 100755 scripts/configs/main.sh create mode 100755 scripts/configs/modify_configs.sh create mode 100755 scripts/configs/remove_configs.sh create mode 100755 scripts/download_apks.sh create mode 100755 scripts/install_apks.sh create mode 100755 scripts/microg.sh create mode 100755 scripts/permissions/install_permissions.sh create mode 100755 scripts/permissions/main.sh create mode 100755 scripts/permissions/remove_permissions.sh create mode 100755 scripts/props.sh create mode 100755 stages/build.sh create mode 100755 stages/config.sh create mode 100755 stages/flash.sh create mode 100755 utils/bin/fectool/fec create mode 100644 utils/bin/fectool/ld-linux-x86-64.so.2 create mode 100644 utils/bin/fectool/libc++.so create mode 100644 utils/bin/fectool/libdl.so.2 create mode 100644 utils/bin/fectool/libgcc_s.so.1 create mode 100644 utils/bin/fectool/libm.so.6 create mode 100644 utils/bin/fectool/libpthread.so.0 create mode 100644 utils/bin/fectool/libresolv.so.2 create mode 100644 utils/bin/fectool/librt.so.1 create mode 100644 utils/jar/apktool.jar create mode 100755 utils/scripts/add_to_fs.sh create mode 100755 utils/scripts/list_packages.sh create mode 100755 utils/scripts/modify_apk.sh 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. + 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. + + + Copyright (C) + + 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 . + +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: + + Copyright (C) + 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 +. + + 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 +. 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 Binary files /dev/null and b/res/apks/apps/OpenBoard.apk differ diff --git a/res/apks/priv-apps/DriedLamuAssistant.apk b/res/apks/priv-apps/DriedLamuAssistant.apk new file mode 100644 index 0000000..bacd4c6 Binary files /dev/null and b/res/apks/priv-apps/DriedLamuAssistant.apk differ diff --git a/res/apks/priv-apps/Lawnchair.apk b/res/apks/priv-apps/Lawnchair.apk new file mode 100644 index 0000000..effc56d Binary files /dev/null and b/res/apks/priv-apps/Lawnchair.apk 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + diff --git a/res/media/alarms/Barium.ogg b/res/media/alarms/Barium.ogg new file mode 100644 index 0000000..9a92022 Binary files /dev/null and b/res/media/alarms/Barium.ogg differ diff --git a/res/media/alarms/Hassium.ogg b/res/media/alarms/Hassium.ogg new file mode 100644 index 0000000..793c269 Binary files /dev/null and b/res/media/alarms/Hassium.ogg differ diff --git a/res/media/alarms/NuclearLaunch.ogg b/res/media/alarms/NuclearLaunch.ogg new file mode 100644 index 0000000..00a4a83 Binary files /dev/null and b/res/media/alarms/NuclearLaunch.ogg differ diff --git a/res/media/alarms/Scandium.ogg b/res/media/alarms/Scandium.ogg new file mode 100644 index 0000000..86ffbf8 Binary files /dev/null and b/res/media/alarms/Scandium.ogg differ diff --git a/res/media/alarms/Timer.ogg b/res/media/alarms/Timer.ogg new file mode 100644 index 0000000..97519aa Binary files /dev/null and b/res/media/alarms/Timer.ogg differ diff --git a/res/media/notifications/Adara.ogg b/res/media/notifications/Adara.ogg new file mode 100644 index 0000000..e87f379 Binary files /dev/null and b/res/media/notifications/Adara.ogg differ diff --git a/res/media/notifications/Aldebaran.ogg b/res/media/notifications/Aldebaran.ogg new file mode 100644 index 0000000..fe30137 Binary files /dev/null and b/res/media/notifications/Aldebaran.ogg differ diff --git a/res/media/notifications/Altair.ogg b/res/media/notifications/Altair.ogg new file mode 100644 index 0000000..660c800 Binary files /dev/null and b/res/media/notifications/Altair.ogg differ diff --git a/res/media/notifications/Alya.ogg b/res/media/notifications/Alya.ogg new file mode 100644 index 0000000..f07a0d1 Binary files /dev/null and b/res/media/notifications/Alya.ogg differ diff --git a/res/media/notifications/Antares.ogg b/res/media/notifications/Antares.ogg new file mode 100644 index 0000000..f4f94d7 Binary files /dev/null and b/res/media/notifications/Antares.ogg differ diff --git a/res/media/notifications/Antimony.ogg b/res/media/notifications/Antimony.ogg new file mode 100644 index 0000000..6f83fe4 Binary files /dev/null and b/res/media/notifications/Antimony.ogg differ diff --git a/res/media/notifications/Arcturus.ogg b/res/media/notifications/Arcturus.ogg new file mode 100644 index 0000000..8b83285 Binary files /dev/null and b/res/media/notifications/Arcturus.ogg differ diff --git a/res/media/notifications/Argon.ogg b/res/media/notifications/Argon.ogg new file mode 100644 index 0000000..e58b3b6 Binary files /dev/null and b/res/media/notifications/Argon.ogg differ diff --git a/res/media/notifications/Ariel.ogg b/res/media/notifications/Ariel.ogg new file mode 100644 index 0000000..ff17500 Binary files /dev/null and b/res/media/notifications/Ariel.ogg 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 Binary files /dev/null and b/res/media/notifications/Beat_Box_Android.ogg differ diff --git a/res/media/notifications/Bellatrix.ogg b/res/media/notifications/Bellatrix.ogg new file mode 100644 index 0000000..37a1bdc Binary files /dev/null and b/res/media/notifications/Bellatrix.ogg differ diff --git a/res/media/notifications/Beryllium.ogg b/res/media/notifications/Beryllium.ogg new file mode 100644 index 0000000..2c5b4fe Binary files /dev/null and b/res/media/notifications/Beryllium.ogg differ diff --git a/res/media/notifications/Betelgeuse.ogg b/res/media/notifications/Betelgeuse.ogg new file mode 100644 index 0000000..7145a16 Binary files /dev/null and b/res/media/notifications/Betelgeuse.ogg differ diff --git a/res/media/notifications/CaffeineSnake.ogg b/res/media/notifications/CaffeineSnake.ogg new file mode 100644 index 0000000..98cdd14 Binary files /dev/null and b/res/media/notifications/CaffeineSnake.ogg differ diff --git a/res/media/notifications/Canopus.ogg b/res/media/notifications/Canopus.ogg new file mode 100644 index 0000000..0d55925 Binary files /dev/null and b/res/media/notifications/Canopus.ogg differ diff --git a/res/media/notifications/Capella.ogg b/res/media/notifications/Capella.ogg new file mode 100644 index 0000000..88a955d Binary files /dev/null and b/res/media/notifications/Capella.ogg differ diff --git a/res/media/notifications/Carme.ogg b/res/media/notifications/Carme.ogg new file mode 100644 index 0000000..ec6e7cb Binary files /dev/null and b/res/media/notifications/Carme.ogg differ diff --git a/res/media/notifications/Castor.ogg b/res/media/notifications/Castor.ogg new file mode 100644 index 0000000..92de8e7 Binary files /dev/null and b/res/media/notifications/Castor.ogg differ diff --git a/res/media/notifications/Ceres.ogg b/res/media/notifications/Ceres.ogg new file mode 100644 index 0000000..f7386a7 Binary files /dev/null and b/res/media/notifications/Ceres.ogg differ diff --git a/res/media/notifications/CetiAlpha.ogg b/res/media/notifications/CetiAlpha.ogg new file mode 100644 index 0000000..cd09526 Binary files /dev/null and b/res/media/notifications/CetiAlpha.ogg differ diff --git a/res/media/notifications/Cobalt.ogg b/res/media/notifications/Cobalt.ogg new file mode 100644 index 0000000..b6e253a Binary files /dev/null and b/res/media/notifications/Cobalt.ogg differ diff --git a/res/media/notifications/Cricket.ogg b/res/media/notifications/Cricket.ogg new file mode 100644 index 0000000..47b3868 Binary files /dev/null and b/res/media/notifications/Cricket.ogg differ diff --git a/res/media/notifications/DearDeer.ogg b/res/media/notifications/DearDeer.ogg new file mode 100644 index 0000000..f092433 Binary files /dev/null and b/res/media/notifications/DearDeer.ogg differ diff --git a/res/media/notifications/Deneb.ogg b/res/media/notifications/Deneb.ogg new file mode 100644 index 0000000..3b17e28 Binary files /dev/null and b/res/media/notifications/Deneb.ogg differ diff --git a/res/media/notifications/Doink.ogg b/res/media/notifications/Doink.ogg new file mode 100644 index 0000000..b8b7181 Binary files /dev/null and b/res/media/notifications/Doink.ogg differ diff --git a/res/media/notifications/DontPanic.ogg b/res/media/notifications/DontPanic.ogg new file mode 100644 index 0000000..35c9478 Binary files /dev/null and b/res/media/notifications/DontPanic.ogg differ diff --git a/res/media/notifications/Drip.ogg b/res/media/notifications/Drip.ogg new file mode 100644 index 0000000..2981758 Binary files /dev/null and b/res/media/notifications/Drip.ogg differ diff --git a/res/media/notifications/Elara.ogg b/res/media/notifications/Elara.ogg new file mode 100644 index 0000000..e4dcf28 Binary files /dev/null and b/res/media/notifications/Elara.ogg differ diff --git a/res/media/notifications/Electra.ogg b/res/media/notifications/Electra.ogg new file mode 100644 index 0000000..9335d8d Binary files /dev/null and b/res/media/notifications/Electra.ogg differ diff --git a/res/media/notifications/Europa.ogg b/res/media/notifications/Europa.ogg new file mode 100644 index 0000000..ce94e21 Binary files /dev/null and b/res/media/notifications/Europa.ogg 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 Binary files /dev/null and b/res/media/notifications/F1_New_SMS.ogg differ diff --git a/res/media/notifications/Fluorine.ogg b/res/media/notifications/Fluorine.ogg new file mode 100644 index 0000000..fd884f5 Binary files /dev/null and b/res/media/notifications/Fluorine.ogg differ diff --git a/res/media/notifications/Fomalhaut.ogg b/res/media/notifications/Fomalhaut.ogg new file mode 100644 index 0000000..9448c18 Binary files /dev/null and b/res/media/notifications/Fomalhaut.ogg differ diff --git a/res/media/notifications/Gallium.ogg b/res/media/notifications/Gallium.ogg new file mode 100644 index 0000000..3c7e115 Binary files /dev/null and b/res/media/notifications/Gallium.ogg differ diff --git a/res/media/notifications/Heaven.ogg b/res/media/notifications/Heaven.ogg new file mode 100644 index 0000000..368c32d Binary files /dev/null and b/res/media/notifications/Heaven.ogg differ diff --git a/res/media/notifications/Helium.ogg b/res/media/notifications/Helium.ogg new file mode 100644 index 0000000..8c4db67 Binary files /dev/null and b/res/media/notifications/Helium.ogg differ diff --git a/res/media/notifications/Highwire.ogg b/res/media/notifications/Highwire.ogg new file mode 100644 index 0000000..85ffcb9 Binary files /dev/null and b/res/media/notifications/Highwire.ogg differ diff --git a/res/media/notifications/Hojus.ogg b/res/media/notifications/Hojus.ogg new file mode 100644 index 0000000..96a3ed9 Binary files /dev/null and b/res/media/notifications/Hojus.ogg differ diff --git a/res/media/notifications/Iapetus.ogg b/res/media/notifications/Iapetus.ogg new file mode 100644 index 0000000..d7c810d Binary files /dev/null and b/res/media/notifications/Iapetus.ogg differ diff --git a/res/media/notifications/Io.ogg b/res/media/notifications/Io.ogg new file mode 100644 index 0000000..e05a529 Binary files /dev/null and b/res/media/notifications/Io.ogg differ diff --git a/res/media/notifications/Iridium.ogg b/res/media/notifications/Iridium.ogg new file mode 100644 index 0000000..fabda89 Binary files /dev/null and b/res/media/notifications/Iridium.ogg differ diff --git a/res/media/notifications/Krypton.ogg b/res/media/notifications/Krypton.ogg new file mode 100644 index 0000000..44f9175 Binary files /dev/null and b/res/media/notifications/Krypton.ogg differ diff --git a/res/media/notifications/KzurbSonar.ogg b/res/media/notifications/KzurbSonar.ogg new file mode 100644 index 0000000..8cd17ae Binary files /dev/null and b/res/media/notifications/KzurbSonar.ogg differ diff --git a/res/media/notifications/Laser.ogg b/res/media/notifications/Laser.ogg new file mode 100644 index 0000000..2448c52 Binary files /dev/null and b/res/media/notifications/Laser.ogg differ diff --git a/res/media/notifications/Merope.ogg b/res/media/notifications/Merope.ogg new file mode 100644 index 0000000..fb18c73 Binary files /dev/null and b/res/media/notifications/Merope.ogg differ diff --git a/res/media/notifications/Mira.ogg b/res/media/notifications/Mira.ogg new file mode 100644 index 0000000..c66dae1 Binary files /dev/null and b/res/media/notifications/Mira.ogg differ diff --git a/res/media/notifications/Naughty.ogg b/res/media/notifications/Naughty.ogg new file mode 100644 index 0000000..77f15a8 Binary files /dev/null and b/res/media/notifications/Naughty.ogg differ diff --git a/res/media/notifications/OnTheHunt.ogg b/res/media/notifications/OnTheHunt.ogg new file mode 100644 index 0000000..dd407f6 Binary files /dev/null and b/res/media/notifications/OnTheHunt.ogg differ diff --git a/res/media/notifications/Palladium.ogg b/res/media/notifications/Palladium.ogg new file mode 100644 index 0000000..ee68158 Binary files /dev/null and b/res/media/notifications/Palladium.ogg differ diff --git a/res/media/notifications/Plastic_Pipe.ogg b/res/media/notifications/Plastic_Pipe.ogg new file mode 100644 index 0000000..16b06c8 Binary files /dev/null and b/res/media/notifications/Plastic_Pipe.ogg differ diff --git a/res/media/notifications/Polaris.ogg b/res/media/notifications/Polaris.ogg new file mode 100644 index 0000000..0f63a65 Binary files /dev/null and b/res/media/notifications/Polaris.ogg differ diff --git a/res/media/notifications/Pollux.ogg b/res/media/notifications/Pollux.ogg new file mode 100644 index 0000000..2f907fd Binary files /dev/null and b/res/media/notifications/Pollux.ogg differ diff --git a/res/media/notifications/Pong.ogg b/res/media/notifications/Pong.ogg new file mode 100644 index 0000000..330d1e7 Binary files /dev/null and b/res/media/notifications/Pong.ogg differ diff --git a/res/media/notifications/Procyon.ogg b/res/media/notifications/Procyon.ogg new file mode 100644 index 0000000..e5ffcdb Binary files /dev/null and b/res/media/notifications/Procyon.ogg differ diff --git a/res/media/notifications/Proxima.ogg b/res/media/notifications/Proxima.ogg new file mode 100644 index 0000000..a9e5a80 Binary files /dev/null and b/res/media/notifications/Proxima.ogg differ diff --git a/res/media/notifications/Radon.ogg b/res/media/notifications/Radon.ogg new file mode 100644 index 0000000..550cddd Binary files /dev/null and b/res/media/notifications/Radon.ogg differ diff --git a/res/media/notifications/Rang.ogg b/res/media/notifications/Rang.ogg new file mode 100644 index 0000000..2531b3a Binary files /dev/null and b/res/media/notifications/Rang.ogg differ diff --git a/res/media/notifications/Rhea.ogg b/res/media/notifications/Rhea.ogg new file mode 100644 index 0000000..347c38d Binary files /dev/null and b/res/media/notifications/Rhea.ogg differ diff --git a/res/media/notifications/Rubidium.ogg b/res/media/notifications/Rubidium.ogg new file mode 100644 index 0000000..edc27cd Binary files /dev/null and b/res/media/notifications/Rubidium.ogg differ diff --git a/res/media/notifications/Salacia.ogg b/res/media/notifications/Salacia.ogg new file mode 100644 index 0000000..ea83b5b Binary files /dev/null and b/res/media/notifications/Salacia.ogg differ diff --git a/res/media/notifications/Selenium.ogg b/res/media/notifications/Selenium.ogg new file mode 100644 index 0000000..9d60917 Binary files /dev/null and b/res/media/notifications/Selenium.ogg differ diff --git a/res/media/notifications/Shaula.ogg b/res/media/notifications/Shaula.ogg new file mode 100644 index 0000000..1c0aa89 Binary files /dev/null and b/res/media/notifications/Shaula.ogg differ diff --git a/res/media/notifications/Sirrah.ogg b/res/media/notifications/Sirrah.ogg new file mode 100644 index 0000000..ee79e49 Binary files /dev/null and b/res/media/notifications/Sirrah.ogg differ diff --git a/res/media/notifications/Spica.ogg b/res/media/notifications/Spica.ogg new file mode 100644 index 0000000..a9e91cb Binary files /dev/null and b/res/media/notifications/Spica.ogg differ diff --git a/res/media/notifications/Stone.ogg b/res/media/notifications/Stone.ogg new file mode 100644 index 0000000..4f9f239 Binary files /dev/null and b/res/media/notifications/Stone.ogg differ diff --git a/res/media/notifications/Strontium.ogg b/res/media/notifications/Strontium.ogg new file mode 100644 index 0000000..ac0bacb Binary files /dev/null and b/res/media/notifications/Strontium.ogg differ diff --git a/res/media/notifications/Syrma.ogg b/res/media/notifications/Syrma.ogg new file mode 100644 index 0000000..a615441 Binary files /dev/null and b/res/media/notifications/Syrma.ogg differ diff --git a/res/media/notifications/TaDa.ogg b/res/media/notifications/TaDa.ogg new file mode 100644 index 0000000..c3dc025 Binary files /dev/null and b/res/media/notifications/TaDa.ogg differ diff --git a/res/media/notifications/Talitha.ogg b/res/media/notifications/Talitha.ogg new file mode 100644 index 0000000..75f2fbd Binary files /dev/null and b/res/media/notifications/Talitha.ogg differ diff --git a/res/media/notifications/Tethys.ogg b/res/media/notifications/Tethys.ogg new file mode 100644 index 0000000..fc61f70 Binary files /dev/null and b/res/media/notifications/Tethys.ogg differ diff --git a/res/media/notifications/Thallium.ogg b/res/media/notifications/Thallium.ogg new file mode 100644 index 0000000..d4841d4 Binary files /dev/null and b/res/media/notifications/Thallium.ogg differ diff --git a/res/media/notifications/Titan.ogg b/res/media/notifications/Titan.ogg new file mode 100644 index 0000000..0e54844 Binary files /dev/null and b/res/media/notifications/Titan.ogg differ diff --git a/res/media/notifications/Upsilon.ogg b/res/media/notifications/Upsilon.ogg new file mode 100644 index 0000000..e3ac386 Binary files /dev/null and b/res/media/notifications/Upsilon.ogg differ diff --git a/res/media/notifications/Vega.ogg b/res/media/notifications/Vega.ogg new file mode 100644 index 0000000..7cdbf21 Binary files /dev/null and b/res/media/notifications/Vega.ogg differ diff --git a/res/media/notifications/Voila.ogg b/res/media/notifications/Voila.ogg new file mode 100644 index 0000000..2c6409d Binary files /dev/null and b/res/media/notifications/Voila.ogg differ diff --git a/res/media/notifications/Xenon.ogg b/res/media/notifications/Xenon.ogg new file mode 100644 index 0000000..255a1a9 Binary files /dev/null and b/res/media/notifications/Xenon.ogg differ diff --git a/res/media/notifications/Zirconium.ogg b/res/media/notifications/Zirconium.ogg new file mode 100644 index 0000000..d84b59e Binary files /dev/null and b/res/media/notifications/Zirconium.ogg differ diff --git a/res/media/notifications/moonbeam.ogg b/res/media/notifications/moonbeam.ogg new file mode 100644 index 0000000..59ac985 Binary files /dev/null and b/res/media/notifications/moonbeam.ogg differ diff --git a/res/media/notifications/pixiedust.ogg b/res/media/notifications/pixiedust.ogg new file mode 100644 index 0000000..4ed7f52 Binary files /dev/null and b/res/media/notifications/pixiedust.ogg differ diff --git a/res/media/notifications/pizzicato.ogg b/res/media/notifications/pizzicato.ogg new file mode 100644 index 0000000..0a4a328 Binary files /dev/null and b/res/media/notifications/pizzicato.ogg differ diff --git a/res/media/notifications/regulus.ogg b/res/media/notifications/regulus.ogg new file mode 100644 index 0000000..4f28d9e Binary files /dev/null and b/res/media/notifications/regulus.ogg differ diff --git a/res/media/notifications/sirius.ogg b/res/media/notifications/sirius.ogg new file mode 100644 index 0000000..78c9991 Binary files /dev/null and b/res/media/notifications/sirius.ogg differ diff --git a/res/media/notifications/tweeters.ogg b/res/media/notifications/tweeters.ogg new file mode 100644 index 0000000..ecc4c5a Binary files /dev/null and b/res/media/notifications/tweeters.ogg differ diff --git a/res/media/ringtones/Andromeda.ogg b/res/media/ringtones/Andromeda.ogg new file mode 100644 index 0000000..26c230e Binary files /dev/null and b/res/media/ringtones/Andromeda.ogg differ diff --git a/res/media/ringtones/Aquila.ogg b/res/media/ringtones/Aquila.ogg new file mode 100644 index 0000000..9eab4ff Binary files /dev/null and b/res/media/ringtones/Aquila.ogg differ diff --git a/res/media/ringtones/ArgoNavis.ogg b/res/media/ringtones/ArgoNavis.ogg new file mode 100644 index 0000000..d25b5e8 Binary files /dev/null and b/res/media/ringtones/ArgoNavis.ogg differ diff --git a/res/media/ringtones/Attentive.ogg b/res/media/ringtones/Attentive.ogg new file mode 100644 index 0000000..dd1521e Binary files /dev/null and b/res/media/ringtones/Attentive.ogg differ diff --git a/res/media/ringtones/BOOTES.ogg b/res/media/ringtones/BOOTES.ogg new file mode 100644 index 0000000..0716a4f Binary files /dev/null and b/res/media/ringtones/BOOTES.ogg differ diff --git a/res/media/ringtones/Backroad.ogg b/res/media/ringtones/Backroad.ogg new file mode 100644 index 0000000..e1fb806 Binary files /dev/null and b/res/media/ringtones/Backroad.ogg differ diff --git a/res/media/ringtones/BeatPlucker.ogg b/res/media/ringtones/BeatPlucker.ogg new file mode 100644 index 0000000..f1bcef0 Binary files /dev/null and b/res/media/ringtones/BeatPlucker.ogg differ diff --git a/res/media/ringtones/BentleyDubs.ogg b/res/media/ringtones/BentleyDubs.ogg new file mode 100644 index 0000000..44c0631 Binary files /dev/null and b/res/media/ringtones/BentleyDubs.ogg differ diff --git a/res/media/ringtones/Big_Easy.ogg b/res/media/ringtones/Big_Easy.ogg new file mode 100644 index 0000000..277dd96 Binary files /dev/null and b/res/media/ringtones/Big_Easy.ogg differ diff --git a/res/media/ringtones/BirdLoop.ogg b/res/media/ringtones/BirdLoop.ogg new file mode 100644 index 0000000..b484582 Binary files /dev/null and b/res/media/ringtones/BirdLoop.ogg differ diff --git a/res/media/ringtones/Bollywood.ogg b/res/media/ringtones/Bollywood.ogg new file mode 100644 index 0000000..b393dd4 Binary files /dev/null and b/res/media/ringtones/Bollywood.ogg differ diff --git a/res/media/ringtones/Boxbeat.ogg b/res/media/ringtones/Boxbeat.ogg new file mode 100644 index 0000000..773f478 Binary files /dev/null and b/res/media/ringtones/Boxbeat.ogg differ diff --git a/res/media/ringtones/BussaMove.ogg b/res/media/ringtones/BussaMove.ogg new file mode 100644 index 0000000..7c9f7b5 Binary files /dev/null and b/res/media/ringtones/BussaMove.ogg differ diff --git a/res/media/ringtones/CASSIOPEIA.ogg b/res/media/ringtones/CASSIOPEIA.ogg new file mode 100644 index 0000000..c4a7948 Binary files /dev/null and b/res/media/ringtones/CASSIOPEIA.ogg differ diff --git a/res/media/ringtones/Cairo.ogg b/res/media/ringtones/Cairo.ogg new file mode 100644 index 0000000..d90d3b4 Binary files /dev/null and b/res/media/ringtones/Cairo.ogg differ diff --git a/res/media/ringtones/Callisto.ogg b/res/media/ringtones/Callisto.ogg new file mode 100644 index 0000000..dd9bc5b Binary files /dev/null and b/res/media/ringtones/Callisto.ogg differ diff --git a/res/media/ringtones/Calypso_Steel.ogg b/res/media/ringtones/Calypso_Steel.ogg new file mode 100644 index 0000000..8e07da1 Binary files /dev/null and b/res/media/ringtones/Calypso_Steel.ogg differ diff --git a/res/media/ringtones/CanisMajor.ogg b/res/media/ringtones/CanisMajor.ogg new file mode 100644 index 0000000..0e575e0 Binary files /dev/null and b/res/media/ringtones/CanisMajor.ogg differ diff --git a/res/media/ringtones/CaribbeanIce.ogg b/res/media/ringtones/CaribbeanIce.ogg new file mode 100644 index 0000000..7525123 Binary files /dev/null and b/res/media/ringtones/CaribbeanIce.ogg differ diff --git a/res/media/ringtones/Carina.ogg b/res/media/ringtones/Carina.ogg new file mode 100644 index 0000000..e8a66b4 Binary files /dev/null and b/res/media/ringtones/Carina.ogg differ diff --git a/res/media/ringtones/Centaurus.ogg b/res/media/ringtones/Centaurus.ogg new file mode 100644 index 0000000..79a393c Binary files /dev/null and b/res/media/ringtones/Centaurus.ogg differ diff --git a/res/media/ringtones/Champagne_Edition.ogg b/res/media/ringtones/Champagne_Edition.ogg new file mode 100644 index 0000000..0ba8be5 Binary files /dev/null and b/res/media/ringtones/Champagne_Edition.ogg differ diff --git a/res/media/ringtones/Club_Cubano.ogg b/res/media/ringtones/Club_Cubano.ogg new file mode 100644 index 0000000..5d09db1 Binary files /dev/null and b/res/media/ringtones/Club_Cubano.ogg differ diff --git a/res/media/ringtones/CrayonRock.ogg b/res/media/ringtones/CrayonRock.ogg new file mode 100644 index 0000000..6827aa5 Binary files /dev/null and b/res/media/ringtones/CrayonRock.ogg differ diff --git a/res/media/ringtones/CrazyDream.ogg b/res/media/ringtones/CrazyDream.ogg new file mode 100644 index 0000000..5fa47b9 Binary files /dev/null and b/res/media/ringtones/CrazyDream.ogg differ diff --git a/res/media/ringtones/CurveBall.ogg b/res/media/ringtones/CurveBall.ogg new file mode 100644 index 0000000..733a004 Binary files /dev/null and b/res/media/ringtones/CurveBall.ogg differ diff --git a/res/media/ringtones/Cygnus.ogg b/res/media/ringtones/Cygnus.ogg new file mode 100644 index 0000000..80317ef Binary files /dev/null and b/res/media/ringtones/Cygnus.ogg differ diff --git a/res/media/ringtones/DancinFool.ogg b/res/media/ringtones/DancinFool.ogg new file mode 100644 index 0000000..39e3b8a Binary files /dev/null and b/res/media/ringtones/DancinFool.ogg differ diff --git a/res/media/ringtones/Dione.ogg b/res/media/ringtones/Dione.ogg new file mode 100644 index 0000000..cf7d1cb Binary files /dev/null and b/res/media/ringtones/Dione.ogg differ diff --git a/res/media/ringtones/DonMessWivIt.ogg b/res/media/ringtones/DonMessWivIt.ogg new file mode 100644 index 0000000..5b14ba5 Binary files /dev/null and b/res/media/ringtones/DonMessWivIt.ogg differ diff --git a/res/media/ringtones/Draco.ogg b/res/media/ringtones/Draco.ogg new file mode 100644 index 0000000..d09b891 Binary files /dev/null and b/res/media/ringtones/Draco.ogg differ diff --git a/res/media/ringtones/DreamTheme.ogg b/res/media/ringtones/DreamTheme.ogg new file mode 100644 index 0000000..e602a38 Binary files /dev/null and b/res/media/ringtones/DreamTheme.ogg differ diff --git a/res/media/ringtones/Eastern_Sky.ogg b/res/media/ringtones/Eastern_Sky.ogg new file mode 100644 index 0000000..c0cf74c Binary files /dev/null and b/res/media/ringtones/Eastern_Sky.ogg 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 Binary files /dev/null and b/res/media/ringtones/Enter_the_Nexus.ogg differ diff --git a/res/media/ringtones/Eridani.ogg b/res/media/ringtones/Eridani.ogg new file mode 100644 index 0000000..b665a29 Binary files /dev/null and b/res/media/ringtones/Eridani.ogg differ diff --git a/res/media/ringtones/EtherShake.ogg b/res/media/ringtones/EtherShake.ogg new file mode 100644 index 0000000..178aa21 Binary files /dev/null and b/res/media/ringtones/EtherShake.ogg differ diff --git a/res/media/ringtones/FreeFlight.ogg b/res/media/ringtones/FreeFlight.ogg new file mode 100644 index 0000000..76dfabe Binary files /dev/null and b/res/media/ringtones/FreeFlight.ogg differ diff --git a/res/media/ringtones/FriendlyGhost.ogg b/res/media/ringtones/FriendlyGhost.ogg new file mode 100644 index 0000000..d993880 Binary files /dev/null and b/res/media/ringtones/FriendlyGhost.ogg differ diff --git a/res/media/ringtones/Funk_Yall.ogg b/res/media/ringtones/Funk_Yall.ogg new file mode 100644 index 0000000..5b98643 Binary files /dev/null and b/res/media/ringtones/Funk_Yall.ogg differ diff --git a/res/media/ringtones/GameOverGuitar.ogg b/res/media/ringtones/GameOverGuitar.ogg new file mode 100644 index 0000000..2adb0a8 Binary files /dev/null and b/res/media/ringtones/GameOverGuitar.ogg differ diff --git a/res/media/ringtones/Ganymede.ogg b/res/media/ringtones/Ganymede.ogg new file mode 100644 index 0000000..e7ff9f4 Binary files /dev/null and b/res/media/ringtones/Ganymede.ogg 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 Binary files /dev/null and b/res/media/ringtones/Gimme_Mo_Town.ogg differ diff --git a/res/media/ringtones/Girtab.ogg b/res/media/ringtones/Girtab.ogg new file mode 100644 index 0000000..f6b3a35 Binary files /dev/null and b/res/media/ringtones/Girtab.ogg differ diff --git a/res/media/ringtones/Glacial_Groove.ogg b/res/media/ringtones/Glacial_Groove.ogg new file mode 100644 index 0000000..a0e83e6 Binary files /dev/null and b/res/media/ringtones/Glacial_Groove.ogg differ diff --git a/res/media/ringtones/Growl.ogg b/res/media/ringtones/Growl.ogg new file mode 100644 index 0000000..c54bde0 Binary files /dev/null and b/res/media/ringtones/Growl.ogg differ diff --git a/res/media/ringtones/HalfwayHome.ogg b/res/media/ringtones/HalfwayHome.ogg new file mode 100644 index 0000000..4ece7ca Binary files /dev/null and b/res/media/ringtones/HalfwayHome.ogg differ diff --git a/res/media/ringtones/Highscore.ogg b/res/media/ringtones/Highscore.ogg new file mode 100644 index 0000000..fe07c89 Binary files /dev/null and b/res/media/ringtones/Highscore.ogg differ diff --git a/res/media/ringtones/Hydra.ogg b/res/media/ringtones/Hydra.ogg new file mode 100644 index 0000000..935c12f Binary files /dev/null and b/res/media/ringtones/Hydra.ogg differ diff --git a/res/media/ringtones/InsertCoin.ogg b/res/media/ringtones/InsertCoin.ogg new file mode 100644 index 0000000..8737da5 Binary files /dev/null and b/res/media/ringtones/InsertCoin.ogg differ diff --git a/res/media/ringtones/Kuma.ogg b/res/media/ringtones/Kuma.ogg new file mode 100644 index 0000000..780d5d4 Binary files /dev/null and b/res/media/ringtones/Kuma.ogg differ diff --git a/res/media/ringtones/LoopyLounge.ogg b/res/media/ringtones/LoopyLounge.ogg new file mode 100644 index 0000000..6d168cd Binary files /dev/null and b/res/media/ringtones/LoopyLounge.ogg differ diff --git a/res/media/ringtones/LoveFlute.ogg b/res/media/ringtones/LoveFlute.ogg new file mode 100644 index 0000000..16cf413 Binary files /dev/null and b/res/media/ringtones/LoveFlute.ogg differ diff --git a/res/media/ringtones/Luna.ogg b/res/media/ringtones/Luna.ogg new file mode 100644 index 0000000..8aeb3a0 Binary files /dev/null and b/res/media/ringtones/Luna.ogg differ diff --git a/res/media/ringtones/Lyon.ogg b/res/media/ringtones/Lyon.ogg new file mode 100644 index 0000000..3e4c925 Binary files /dev/null and b/res/media/ringtones/Lyon.ogg differ diff --git a/res/media/ringtones/Lyra.ogg b/res/media/ringtones/Lyra.ogg new file mode 100644 index 0000000..696f278 Binary files /dev/null and b/res/media/ringtones/Lyra.ogg differ diff --git a/res/media/ringtones/Machina.ogg b/res/media/ringtones/Machina.ogg new file mode 100644 index 0000000..33388e6 Binary files /dev/null and b/res/media/ringtones/Machina.ogg differ diff --git a/res/media/ringtones/MidEvilJaunt.ogg b/res/media/ringtones/MidEvilJaunt.ogg new file mode 100644 index 0000000..66d7fad Binary files /dev/null and b/res/media/ringtones/MidEvilJaunt.ogg differ diff --git a/res/media/ringtones/Momentum.ogg b/res/media/ringtones/Momentum.ogg new file mode 100644 index 0000000..29ee832 Binary files /dev/null and b/res/media/ringtones/Momentum.ogg differ diff --git a/res/media/ringtones/Moto.ogg b/res/media/ringtones/Moto.ogg new file mode 100644 index 0000000..53a3ad0 Binary files /dev/null and b/res/media/ringtones/Moto.ogg differ diff --git a/res/media/ringtones/Nairobi.ogg b/res/media/ringtones/Nairobi.ogg new file mode 100644 index 0000000..21929c9 Binary files /dev/null and b/res/media/ringtones/Nairobi.ogg differ diff --git a/res/media/ringtones/Nassau.ogg b/res/media/ringtones/Nassau.ogg new file mode 100644 index 0000000..6615b73 Binary files /dev/null and b/res/media/ringtones/Nassau.ogg differ diff --git a/res/media/ringtones/NewPlayer.ogg b/res/media/ringtones/NewPlayer.ogg new file mode 100644 index 0000000..c2df5d8 Binary files /dev/null and b/res/media/ringtones/NewPlayer.ogg differ diff --git a/res/media/ringtones/No_Limits.ogg b/res/media/ringtones/No_Limits.ogg new file mode 100644 index 0000000..346f2fe Binary files /dev/null and b/res/media/ringtones/No_Limits.ogg differ diff --git a/res/media/ringtones/Noises2.ogg b/res/media/ringtones/Noises2.ogg new file mode 100644 index 0000000..69a3d72 Binary files /dev/null and b/res/media/ringtones/Noises2.ogg differ diff --git a/res/media/ringtones/Noises3.ogg b/res/media/ringtones/Noises3.ogg new file mode 100644 index 0000000..3607c2a Binary files /dev/null and b/res/media/ringtones/Noises3.ogg differ diff --git a/res/media/ringtones/Oberon.ogg b/res/media/ringtones/Oberon.ogg new file mode 100644 index 0000000..145f474 Binary files /dev/null and b/res/media/ringtones/Oberon.ogg differ diff --git a/res/media/ringtones/OrganDub.ogg b/res/media/ringtones/OrganDub.ogg new file mode 100644 index 0000000..c0a22f4 Binary files /dev/null and b/res/media/ringtones/OrganDub.ogg differ diff --git a/res/media/ringtones/Orion.ogg b/res/media/ringtones/Orion.ogg new file mode 100644 index 0000000..0323e4d Binary files /dev/null and b/res/media/ringtones/Orion.ogg differ diff --git a/res/media/ringtones/Paradise_Island.ogg b/res/media/ringtones/Paradise_Island.ogg new file mode 100644 index 0000000..386bbd3 Binary files /dev/null and b/res/media/ringtones/Paradise_Island.ogg differ diff --git a/res/media/ringtones/Pegasus.ogg b/res/media/ringtones/Pegasus.ogg new file mode 100644 index 0000000..d1bf4b0 Binary files /dev/null and b/res/media/ringtones/Pegasus.ogg differ diff --git a/res/media/ringtones/Perseus.ogg b/res/media/ringtones/Perseus.ogg new file mode 100644 index 0000000..48348e5 Binary files /dev/null and b/res/media/ringtones/Perseus.ogg differ diff --git a/res/media/ringtones/Phobos.ogg b/res/media/ringtones/Phobos.ogg new file mode 100644 index 0000000..5e312d2 Binary files /dev/null and b/res/media/ringtones/Phobos.ogg differ diff --git a/res/media/ringtones/Playa.ogg b/res/media/ringtones/Playa.ogg new file mode 100644 index 0000000..747b699 Binary files /dev/null and b/res/media/ringtones/Playa.ogg differ diff --git a/res/media/ringtones/PyxisMaterial.ogg b/res/media/ringtones/PyxisMaterial.ogg new file mode 100644 index 0000000..4786b18 Binary files /dev/null and b/res/media/ringtones/PyxisMaterial.ogg differ diff --git a/res/media/ringtones/Rasalas.ogg b/res/media/ringtones/Rasalas.ogg new file mode 100644 index 0000000..7e62f17 Binary files /dev/null and b/res/media/ringtones/Rasalas.ogg differ diff --git a/res/media/ringtones/Revelation.ogg b/res/media/ringtones/Revelation.ogg new file mode 100644 index 0000000..4a240e9 Binary files /dev/null and b/res/media/ringtones/Revelation.ogg differ diff --git a/res/media/ringtones/Rigel.ogg b/res/media/ringtones/Rigel.ogg new file mode 100644 index 0000000..de3d92f Binary files /dev/null and b/res/media/ringtones/Rigel.ogg 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 Binary files /dev/null and b/res/media/ringtones/Ring_Classic_02.ogg 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 Binary files /dev/null and b/res/media/ringtones/Ring_Digital_02.ogg 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 Binary files /dev/null and b/res/media/ringtones/Ring_Synth_02.ogg 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 Binary files /dev/null and b/res/media/ringtones/Ring_Synth_04.ogg differ diff --git a/res/media/ringtones/Road_Trip.ogg b/res/media/ringtones/Road_Trip.ogg new file mode 100644 index 0000000..cd14ef1 Binary files /dev/null and b/res/media/ringtones/Road_Trip.ogg differ diff --git a/res/media/ringtones/Rockin.ogg b/res/media/ringtones/Rockin.ogg new file mode 100644 index 0000000..d48554d Binary files /dev/null and b/res/media/ringtones/Rockin.ogg differ diff --git a/res/media/ringtones/RomancingTheTone.ogg b/res/media/ringtones/RomancingTheTone.ogg new file mode 100644 index 0000000..ebe54e5 Binary files /dev/null and b/res/media/ringtones/RomancingTheTone.ogg differ diff --git a/res/media/ringtones/Safari.ogg b/res/media/ringtones/Safari.ogg new file mode 100644 index 0000000..fa2d4ed Binary files /dev/null and b/res/media/ringtones/Safari.ogg differ diff --git a/res/media/ringtones/Savannah.ogg b/res/media/ringtones/Savannah.ogg new file mode 100644 index 0000000..779f3dd Binary files /dev/null and b/res/media/ringtones/Savannah.ogg differ diff --git a/res/media/ringtones/Scarabaeus.ogg b/res/media/ringtones/Scarabaeus.ogg new file mode 100644 index 0000000..3dcd0d7 Binary files /dev/null and b/res/media/ringtones/Scarabaeus.ogg differ diff --git a/res/media/ringtones/Sceptrum.ogg b/res/media/ringtones/Sceptrum.ogg new file mode 100644 index 0000000..f2d3ed4 Binary files /dev/null and b/res/media/ringtones/Sceptrum.ogg differ diff --git a/res/media/ringtones/Sedna.ogg b/res/media/ringtones/Sedna.ogg new file mode 100644 index 0000000..ff889e6 Binary files /dev/null and b/res/media/ringtones/Sedna.ogg differ diff --git a/res/media/ringtones/Seville.ogg b/res/media/ringtones/Seville.ogg new file mode 100644 index 0000000..bea926a Binary files /dev/null and b/res/media/ringtones/Seville.ogg differ diff --git a/res/media/ringtones/Sheep.mp3 b/res/media/ringtones/Sheep.mp3 new file mode 100644 index 0000000..f3f84a9 Binary files /dev/null and b/res/media/ringtones/Sheep.mp3 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 Binary files /dev/null and b/res/media/ringtones/Shes_All_That.ogg differ diff --git a/res/media/ringtones/SilkyWay.ogg b/res/media/ringtones/SilkyWay.ogg new file mode 100644 index 0000000..e5a38ec Binary files /dev/null and b/res/media/ringtones/SilkyWay.ogg differ diff --git a/res/media/ringtones/Simple.ogg b/res/media/ringtones/Simple.ogg new file mode 100644 index 0000000..646c50f Binary files /dev/null and b/res/media/ringtones/Simple.ogg differ diff --git a/res/media/ringtones/SitarVsSitar.ogg b/res/media/ringtones/SitarVsSitar.ogg new file mode 100644 index 0000000..cfe9c80 Binary files /dev/null and b/res/media/ringtones/SitarVsSitar.ogg differ diff --git a/res/media/ringtones/Solarium.ogg b/res/media/ringtones/Solarium.ogg new file mode 100644 index 0000000..8c9d307 Binary files /dev/null and b/res/media/ringtones/Solarium.ogg differ diff --git a/res/media/ringtones/SpringyJalopy.ogg b/res/media/ringtones/SpringyJalopy.ogg new file mode 100644 index 0000000..b837aff Binary files /dev/null and b/res/media/ringtones/SpringyJalopy.ogg differ diff --git a/res/media/ringtones/Steppin_Out.ogg b/res/media/ringtones/Steppin_Out.ogg new file mode 100644 index 0000000..5ee5fd1 Binary files /dev/null and b/res/media/ringtones/Steppin_Out.ogg differ diff --git a/res/media/ringtones/Terminated.ogg b/res/media/ringtones/Terminated.ogg new file mode 100644 index 0000000..b980053 Binary files /dev/null and b/res/media/ringtones/Terminated.ogg differ diff --git a/res/media/ringtones/Testudo.ogg b/res/media/ringtones/Testudo.ogg new file mode 100644 index 0000000..0ca8d6b Binary files /dev/null and b/res/media/ringtones/Testudo.ogg differ diff --git a/res/media/ringtones/Themos.ogg b/res/media/ringtones/Themos.ogg new file mode 100644 index 0000000..4ddc71c Binary files /dev/null and b/res/media/ringtones/Themos.ogg differ diff --git a/res/media/ringtones/Third_Eye.ogg b/res/media/ringtones/Third_Eye.ogg new file mode 100644 index 0000000..dd5a9fd Binary files /dev/null and b/res/media/ringtones/Third_Eye.ogg differ diff --git a/res/media/ringtones/Thunderfoot.ogg b/res/media/ringtones/Thunderfoot.ogg new file mode 100644 index 0000000..5f907a8 Binary files /dev/null and b/res/media/ringtones/Thunderfoot.ogg differ diff --git a/res/media/ringtones/Titania.ogg b/res/media/ringtones/Titania.ogg new file mode 100644 index 0000000..87a05ee Binary files /dev/null and b/res/media/ringtones/Titania.ogg differ diff --git a/res/media/ringtones/Triton.ogg b/res/media/ringtones/Triton.ogg new file mode 100644 index 0000000..b5893bd Binary files /dev/null and b/res/media/ringtones/Triton.ogg differ diff --git a/res/media/ringtones/TwirlAway.ogg b/res/media/ringtones/TwirlAway.ogg new file mode 100644 index 0000000..eeff7f0 Binary files /dev/null and b/res/media/ringtones/TwirlAway.ogg differ diff --git a/res/media/ringtones/Umbriel.ogg b/res/media/ringtones/Umbriel.ogg new file mode 100644 index 0000000..193e566 Binary files /dev/null and b/res/media/ringtones/Umbriel.ogg differ diff --git a/res/media/ringtones/UrsaMinor.ogg b/res/media/ringtones/UrsaMinor.ogg new file mode 100644 index 0000000..30d2cd1 Binary files /dev/null and b/res/media/ringtones/UrsaMinor.ogg differ diff --git a/res/media/ringtones/VeryAlarmed.ogg b/res/media/ringtones/VeryAlarmed.ogg new file mode 100644 index 0000000..bfb63f4 Binary files /dev/null and b/res/media/ringtones/VeryAlarmed.ogg differ diff --git a/res/media/ringtones/Vespa.ogg b/res/media/ringtones/Vespa.ogg new file mode 100644 index 0000000..4423bbb Binary files /dev/null and b/res/media/ringtones/Vespa.ogg differ diff --git a/res/media/ringtones/World.ogg b/res/media/ringtones/World.ogg new file mode 100644 index 0000000..e226166 Binary files /dev/null and b/res/media/ringtones/World.ogg differ diff --git a/res/media/ringtones/Yukaay.ogg b/res/media/ringtones/Yukaay.ogg new file mode 100644 index 0000000..a4c8820 Binary files /dev/null and b/res/media/ringtones/Yukaay.ogg differ diff --git a/res/media/ringtones/Zeta.ogg b/res/media/ringtones/Zeta.ogg new file mode 100644 index 0000000..ef64d2f Binary files /dev/null and b/res/media/ringtones/Zeta.ogg differ diff --git a/res/microg/apks/apps/GoogleCalendarSyncAdapter.apk b/res/microg/apks/apps/GoogleCalendarSyncAdapter.apk new file mode 100644 index 0000000..6a7fb8f Binary files /dev/null and b/res/microg/apks/apps/GoogleCalendarSyncAdapter.apk differ diff --git a/res/microg/apks/apps/GoogleContactsSyncAdapter.apk b/res/microg/apks/apps/GoogleContactsSyncAdapter.apk new file mode 100644 index 0000000..5ceb421 Binary files /dev/null and b/res/microg/apks/apps/GoogleContactsSyncAdapter.apk 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 @@ + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/microg/signatures-google/gms/APKSigningBlock b/res/microg/signatures-google/gms/APKSigningBlock new file mode 100644 index 0000000..eff3cae Binary files /dev/null and b/res/microg/signatures-google/gms/APKSigningBlock 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 Binary files /dev/null and b/res/microg/signatures-google/phonesky/APKSigningBlock 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 Binary files /dev/null and b/res/microg/system/framework/com.google.android.maps.jar 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 Binary files /dev/null and b/res/microg/system/lib/arm64/libconscrypt_gmscore_jni.so 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 Binary files /dev/null and b/res/microg/system/lib/arm64/libcronet.102.0.5005.125.so 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 Binary files /dev/null and b/res/microg/system/lib/arm64/libmapbox-gl.so 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 Binary files /dev/null and b/res/microg/system/lib/armeabi-v7a/libconscrypt_gmscore_jni.so 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 Binary files /dev/null and b/res/microg/system/lib/armeabi-v7a/libcronet.102.0.5005.125.so 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 Binary files /dev/null and b/res/microg/system/lib/armeabi-v7a/libmapbox-gl.so 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 @@ + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + 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 " + 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 " + 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 '\n\n\t' > "$out_file" + for p in $permissions; do + echo -e '\t\t' >> "$out_file" + done + echo -e '\t\n' >> "$out_file" + + echo -e "\t[+] $out_file" + else + out_file="${PERMISSIONS_APPS_DIR}/$type_app/privapp-permissions-${package_name}.xml" + echo -e '\n\n\t' > "$out_file" + for p in $permissions; do + echo -e '\t\t' >> "$out_file" + done + echo -e '\t\n' >> "$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 " + 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 " + 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 " + 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 '\n\n\n' > "${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 " + 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 " + 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 " + 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 " + 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 " + 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 '\n\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\n' > "${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\n\t\t\n\t\t\n\t\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' ${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 " + 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 " + 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 " + 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 Binary files /dev/null and b/utils/bin/fectool/fec 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 Binary files /dev/null and b/utils/bin/fectool/ld-linux-x86-64.so.2 differ diff --git a/utils/bin/fectool/libc++.so b/utils/bin/fectool/libc++.so new file mode 100644 index 0000000..f1fc652 Binary files /dev/null and b/utils/bin/fectool/libc++.so differ diff --git a/utils/bin/fectool/libdl.so.2 b/utils/bin/fectool/libdl.so.2 new file mode 100644 index 0000000..81d5f23 Binary files /dev/null and b/utils/bin/fectool/libdl.so.2 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 Binary files /dev/null and b/utils/bin/fectool/libgcc_s.so.1 differ diff --git a/utils/bin/fectool/libm.so.6 b/utils/bin/fectool/libm.so.6 new file mode 100644 index 0000000..6dc6c8e Binary files /dev/null and b/utils/bin/fectool/libm.so.6 differ diff --git a/utils/bin/fectool/libpthread.so.0 b/utils/bin/fectool/libpthread.so.0 new file mode 100644 index 0000000..145787c Binary files /dev/null and b/utils/bin/fectool/libpthread.so.0 differ diff --git a/utils/bin/fectool/libresolv.so.2 b/utils/bin/fectool/libresolv.so.2 new file mode 100644 index 0000000..5b0aeed Binary files /dev/null and b/utils/bin/fectool/libresolv.so.2 differ diff --git a/utils/bin/fectool/librt.so.1 b/utils/bin/fectool/librt.so.1 new file mode 100644 index 0000000..b4db5d7 Binary files /dev/null and b/utils/bin/fectool/librt.so.1 differ diff --git a/utils/jar/apktool.jar b/utils/jar/apktool.jar new file mode 100644 index 0000000..185c2da Binary files /dev/null and b/utils/jar/apktool.jar 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 [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" -- cgit v1.2.3