Skip to content

Commit

Permalink
WIP: add droidian support
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed May 31, 2021
1 parent ea73926 commit 04bf500
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .idea/modules/app/AndroidBootManager.app.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=/usr/lib/jvm/zulu-8-amd64
java.home=/usr/lib/jvm/java-11-openjdk-amd64
jvm.arguments=
offline.mode=false
override.workspace.settings=true
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/Scripts
10 changes: 10 additions & 0 deletions app/src/main/java/org/androidbootmanager/app/roms/ROMsList.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ public List<ROM> getROMs() {
r.strings.put(c.getString(R.string.enter_rom_folder), "rom" + b);
r.gen = (imodel, menuName, folderName) -> imodel.setCmdline(Objects.requireNonNull(imodel.getROM().getValue()).fullPath + " '" + folderName + "' '" + menuName + "' " + Objects.requireNonNull(imodel.getParts().getValue()).get(0) + " " + imodel.getParts().getValue().get(1) + " /data/data/org.androidbootmanager.app/cache/halium-boot.img");
break;
case "add_droidian.sh":
r.viewname = c.getString(R.string.rom_type_add_droidian);
r.requiredFiles.put("droidian-gsi.zip", c.getString(R.string.select_droidian_gsi));
r.requiredFiles.put("droidian-adapt.zip", c.getString(R.string.select_droidian_adapt));
r.requiredFiles.put("droidian-devtools.zip", c.getString(R.string.select_droidian_devtools));
r.parts.add(c.getString(R.string.select_part, c.getString(R.string.data_part)));
r.strings.put(c.getString(R.string.enter_rom_name), "Droidian");
r.strings.put(c.getString(R.string.enter_rom_folder), "rom" + b);
r.gen = (imodel, menuName, folderName) -> imodel.setCmdline(Objects.requireNonNull(imodel.getROM().getValue()).fullPath + " '" + folderName + "' '" + menuName + "' " + Objects.requireNonNull(imodel.getParts().getValue()).get(0) + " /data/data/org.androidbootmanager.app/cache/droidian-gsi.zip /data/data/org.androidbootmanager.app/cache/droidian-devtools.zip /data/data/org.androidbootmanager.app/cache/droidian-adapt.zip");
break;
case "add_sailfish.sh":
r.viewname = c.getString(R.string.rom_type_add_sailfish);
r.requiredFiles.put("hybris-boot.img", c.getString(R.string.select_hybris_boot));
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,8 @@
<string name="select_part">Please select an unused partition on your SD card configured with the following type: %1$s. Please make sure it really is the correct one, you can cancel and label it if unsure. If you didn\'t create one yet, do that first.</string>
<!-- How an partition is used -->
<string name="usage">Usage</string>
<string name="select_droidian_gsi">Select Droidian GSI</string>
<string name="select_droidian_adapt">Select Droidian Adaption</string>
<string name="select_droidian_devtools">Select Droidian DevTools</string>
<string name="rom_type_add_droidian">Droidian GSI with Adaption and DevTools</string>
</resources>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:8.4.2"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 04bf500

Please sign in to comment.