Install specific versions of AOSP Calendar


Question

I would like to use an older version of AOSP Calendar. Namely a good version before the 2019 update that is described here as follows:



New events cannot be created and existing events cannot be edited or deleted.



There are many branches and tags here, but some of their titles are not clear, and I don't see APK files there. How exactly can I install specific versions?


Answer

The AOSP Calendar is in a repository tool (Google Git) that use Google with a lot of project.


Compile it by yourself


You could download it:


git clone https://android.googlesource.com/platform/packages/apps/Calendar

and you could select the branch/tag that you want.


git fetch origin nameBranch/nameTag && git reset --hard FETCH_HEAD && git checkout nameBranch/nameTag

Of this way, you obtain the code of the Calendar AOSP but as you said, in this repository is not the package of the application, so, you should compile it. As it is part of the Android system is neccesary to compile it with the rest of AOSP, because, it has some dependences.


LOCAL_STATIC_JAVA_LIBRARIES := \
android-common \
libchips \
colorpicker \
android-opt-timezonepicker \
androidx.legacy_legacy-support-v4 \
calendar-common

Once you had it compiled, you don't have problems to install it, because althought it is a part of AOSP it is not a system application.


But, this is not a quickly way to obatin the APK file.


Obtain it of system.img


First, you need to obtain a AOSP or Lineage ROM system image before the 2019 (because, the commit that you don't want is in 2019). For this way, you need to use this tool. Once downloaded and installed:


mkdir system_lineage
simg2img system_lineage.img system_lineage.raw
sudo mount -t ext4 -o loop system_lineage.raw system_lineage
cd system_lineage

And you need to found it in this system directory (I think that it was in system/app/Calendar or something similar)


Try to obtain it in some mirror


It is possible that some mirror have this apk in the server. You could try to obtain it in apkmirror for example.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes