10 KiB
🚀 CoreState v2.0 - CI/CD Pipeline Setup Complete!
Author: Wiktor (overspend1) Repository: https://github.com/overspend1/corestate
✅ What's Been Added
1. Author Attribution
All project files now properly credit Wiktor (overspend1) as the author:
- ✅ LICENSE - MIT License with copyright
- ✅ module/module.prop - Author field (already present)
- ✅ module/native/AUTHOR.h - Header file with author info
- ✅ CoreStateApplication.kt - Android app entry point with author comments
- ✅ README.md - Already credits Wiktor/overspend1
2. Complete CI/CD Pipeline
New comprehensive workflow: .github/workflows/complete-build-release.yml
🎯 CI/CD Pipeline Features
📱 Android APK Build
What it builds:
- Debug APK - For testing and development
- Release APK - Production-ready build
Features:
- ✅ JDK 17 setup
- ✅ Gradle caching for faster builds
- ✅ Version tagging from git commits/tags
- ✅ SHA256 checksum generation
- ✅ Automated artifact upload
- ✅ 30-day artifact retention
Output:
CoreState-v2.0.0-{commit}-debug.apk
CoreState-v2.0.0-{commit}-release.apk
checksums.txt
📦 KernelSU Module Build
What it builds:
- arm64-v8a - For 64-bit ARM devices (most modern phones)
- x86_64 - For x86_64 emulators/devices
Build Process:
- Downloads Android NDK r26b
- Cross-compiles native components for each architecture
- Creates proper KernelSU module structure
- Generates flashable ZIP files
- Includes installer scripts and metadata
Module Structure:
CoreState-Module-v2.0.0-arm64-v8a.zip
├── META-INF/
│ └── com/google/android/
│ ├── update-binary (installer script)
│ └── updater-script
├── module.prop (module metadata)
├── service.sh (boot service)
├── system/
│ └── lib64/ (native libraries)
└── README.md (installation guide)
Features:
- ✅ Android NDK cross-compilation
- ✅ CMake + Ninja build system
- ✅ Proper KernelSU installer scripts
- ✅ Service scripts for boot initialization
- ✅ SHA256 checksums
- ✅ Comprehensive module README
Output:
CoreState-Module-v2.0.0-arm64-v8a.zip
CoreState-Module-v2.0.0-x86_64.zip
module-checksums-{arch}.txt
📋 Build Summary & Release
Generated artifacts:
- Build summary with metadata
- Installation instructions
- SHA256 checksums for verification
- Automated release notes
GitHub Release (on tags):
When you push a git tag like v2.0.0, the workflow automatically:
- Builds all artifacts
- Creates a GitHub Release
- Attaches all APKs and module ZIPs
- Generates release notes
- Includes checksums
🔄 Workflow Triggers
The CI/CD pipeline runs on:
-
Push to branches:
maindevelopclaude/**(any claude branch)
-
Pull requests to:
main
-
Git tags:
v*(e.g.,v2.0.0,v2.0.1, etc.)- Triggers full build + GitHub Release
-
Manual trigger:
- Via GitHub Actions UI
- Choose debug or release build type
🎬 How to Use
Automatic Build (Push)
Simply push your code:
git push origin main
The workflow will automatically:
- Build both debug and release APKs
- Build KernelSU modules for all architectures
- Upload all artifacts
- Generate build summary
Create a Release (Tags)
To create an official release:
# Tag the release
git tag -a v2.0.0 -m "CoreState v2.0.0 - Complete Release"
# Push the tag
git push origin v2.0.0
This will:
- ✅ Build all artifacts
- ✅ Create GitHub Release at:
https://github.com/overspend1/corestate/releases/tag/v2.0.0 - ✅ Attach all APKs and module ZIPs
- ✅ Generate release notes
- ✅ Include checksums
Manual Build (GitHub Actions)
- Go to:
https://github.com/overspend1/corestate/actions - Select "Complete Build & Release" workflow
- Click "Run workflow"
- Choose branch and build type
- Click "Run workflow" button
📥 Downloading Artifacts
From GitHub Actions
- Go to:
https://github.com/overspend1/corestate/actions - Click on a completed workflow run
- Scroll to "Artifacts" section
- Download:
corestate-android-debug-apkcorestate-android-release-apkcorestate-module-arm64-v8acorestate-module-x86_64build-summary
From GitHub Releases
- Go to:
https://github.com/overspend1/corestate/releases - Click on the latest release
- Download files from "Assets" section
- Verify checksums using provided
checksums.txt
🔐 Verifying Checksums
After downloading artifacts:
# For APK
sha256sum -c checksums.txt
# For Module
sha256sum -c module-checksums-arm64-v8a.txt
📦 Installation Instructions
Android APK
- Download the APK (debug for testing, release for production)
- Transfer to your Android device
- Enable "Install from unknown sources" in Settings
- Tap the APK to install
- Grant required permissions
KernelSU Module
- Ensure you have KernelSU installed on your device
- Download the module ZIP for your architecture:
- arm64-v8a - Most modern Android phones
- x86_64 - Emulators and x86 devices
- Open KernelSU Manager app
- Tap the "+" button
- Select "Install from storage"
- Choose the downloaded ZIP file
- Wait for installation to complete
- Reboot your device
- Module will be active after reboot
🛠️ Build Details
Android APK Build
Environment:
- Ubuntu Latest
- JDK 17 (Temurin)
- Gradle with 4GB heap
- Gradle caching enabled
Build Commands:
# Debug
./gradlew :apps:android:androidApp:assembleDebug
# Release
./gradlew :apps:android:androidApp:assembleRelease
Build Time: ~5-10 minutes
KernelSU Module Build
Environment:
- Ubuntu Latest
- Android NDK r26b
- CMake + Ninja
- Cross-compilation toolchains
Build Commands:
# Configure
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=$NDK_HOME/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-26 \
-DCMAKE_BUILD_TYPE=Release \
-GNinja
# Build
ninja -j$(nproc)
# Package
zip -r CoreState-Module-v2.0.0-arm64-v8a.zip .
Build Time: ~3-5 minutes per architecture
📊 Artifact Information
APK Details
| File | Size | Platform | Purpose |
|---|---|---|---|
| CoreState-*-debug.apk | ~15-20 MB | Android 8.0+ | Development/Testing |
| CoreState-*-release.apk | ~12-18 MB | Android 8.0+ | Production Use |
Module Details
| File | Size | Architecture | Compatibility |
|---|---|---|---|
| CoreState-Module-*-arm64-v8a.zip | ~5-10 MB | ARM64 | Most Android phones |
| CoreState-Module-*-x86_64.zip | ~5-10 MB | x86_64 | Emulators/x86 devices |
🔍 Troubleshooting
Build Fails
Check the workflow logs:
- Go to GitHub Actions
- Click on the failed workflow run
- Expand the failed job
- Review error messages
Common issues:
- Gradle build errors - Check
build.gradle.ktssyntax - NDK compilation errors - Verify CMakeLists.txt
- Module packaging errors - Check module structure
APK Won't Install
- Enable "Install from unknown sources"
- Check Android version (8.0+ required)
- Verify APK checksum matches
- Try debug build first
Module Won't Flash
- Ensure KernelSU is properly installed
- Check device architecture matches module
- Verify ZIP file integrity with checksum
- Try flashing via KernelSU Manager app
📈 Build Status
Current workflow status can be viewed at:
https://github.com/overspend1/corestate/actions
Build badges:
🤝 Contributing
When contributing, the CI/CD pipeline will automatically:
- Build your changes on push
- Run on pull requests to main
- Verify builds pass before merge
- Generate artifacts for testing
📝 Workflow Structure
Jobs:
├── build-android-apk (debug & release)
│ ├── Setup JDK 17
│ ├── Cache Gradle
│ ├── Build APK
│ ├── Generate checksums
│ └── Upload artifacts
│
├── build-kernelsu-module (arm64 & x86_64)
│ ├── Install NDK
│ ├── Cross-compile native code
│ ├── Package flashable ZIP
│ ├── Generate checksums
│ └── Upload artifacts
│
├── create-release-summary
│ ├── Download all artifacts
│ ├── Generate build summary
│ └── Upload summary
│
├── create-github-release (on tags only)
│ ├── Download artifacts
│ ├── Generate release notes
│ └── Create GitHub Release
│
└── build-status
└── Report overall status
🎉 Success!
Your CoreState v2.0 project now has a complete, production-ready CI/CD pipeline that:
✅ Builds Android APK (debug & release) ✅ Builds KernelSU Module (multi-arch) ✅ Generates checksums for security ✅ Creates flashable module ZIPs ✅ Automates GitHub Releases ✅ Includes proper author attribution
All builds are credited to: Wiktor (overspend1)
🚀 Next Steps
- Push a commit to trigger the workflow
- Check GitHub Actions to see builds in progress
- Download artifacts from completed workflows
- Create a tag (e.g.,
v2.0.0) to create an official release - Test the builds on your device
📞 Support
- Issues: https://github.com/overspend1/corestate/issues
- Documentation: See
IMPLEMENTATION_COMPLETE.md - CI/CD Logs: https://github.com/overspend1/corestate/actions
Built with ❤️ by Wiktor (overspend1)
CoreState v2.0 - The World's First Android-Managed Enterprise Backup System