Skip to content

Enhance Android build with diagnostics and refactor installer logic - #27

Open
uurcan7 wants to merge 5 commits into
Chainfire:masterfrom
uurcan7:master
Open

Enhance Android build with diagnostics and refactor installer logic#27
uurcan7 wants to merge 5 commits into
Chainfire:masterfrom
uurcan7:master

Conversation

@uurcan7

@uurcan7 uurcan7 commented Sep 5, 2026

Copy link
Copy Markdown

No description provided.

GoldenglowSusie and others added 5 commits March 19, 2026 21:06
Removed copyright notice and added new constants for boot script handling.

by @AntiOblivionis and @LIghtJUNction
Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ual-build

Add manually triggered Android build workflow
Copilot AI lite review requested due to automatic review settings September 5, 2026 09:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

There are functional issues in the installer update gating (script update constant vs. versionCode) and in boot animation PID parsing that can break boot-state detection.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds runtime diagnostics and a user-configurable “exit delay” for LiveBoot’s boot shutdown sequence, refactors installer boot-script logic (including more robust display dimension detection), and introduces a GitHub Actions workflow for manual Android builds.

Changes:

  • Add a new “Exit delay” setting (persisted as suicide_delay_ms) and pass it through to the root runner via launch-script args.
  • Add a diagnostic log facility in Runner to help debug boot/exit conditions and line handling.
  • Refactor Installer script generation (delayed boot scripts) and improve screen-dimension detection; add a manual Android build workflow.
File summaries
File Description
liveBootAni2/src/main/res/values/strings.xml Adds UI strings for the new “Exit delay” setting.
liveBootAni2/src/main/java/eu/chainfire/liveboot/shell/Runner.java Adds diagnostic logging, updated boot completion heuristics, and applies the new exit delay option.
liveBootAni2/src/main/java/eu/chainfire/liveboot/SettingsFragment.java Adds an EditTextPreference with normalization/clamping for the exit delay setting.
liveBootAni2/src/main/java/eu/chainfire/liveboot/Settings.java Adds persisted setting key/value for suicide_delay_ms.
liveBootAni2/src/main/java/eu/chainfire/liveboot/Installer.java Refactors delayed boot script creation, updates install-needed checks, and improves screen dimension detection.
.github/workflows/manual-build.yml Adds a workflow_dispatch-driven build that uploads APK artifacts.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


private static final int LAST_SCRIPT_UPDATE = 188;

private static final int LAST_SCRIPT_UPDATE = 195;
Comment on lines +336 to +349
private Integer getPidFromPsLine(String line) {
if (line == null) return null;
String[] parts = line.trim().split(" +");
for (String part : parts) {
try {
int pid = Integer.valueOf(part, 10);
if (pid > 1) {
return pid;
}
} catch (Exception e) {
}
}
return null;
}
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package eu.chainfire.liveboot;
Comment on lines +223 to +226
if (mDiagStream != null) {
mDiagStream.write(line.getBytes());
mDiagStream.flush();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants