MultiROMMgr
MultiROMMgr copied to clipboard
Add support to install Plasma Mobile
The KDE guys just released plasma phone[1]. Looking through their repos it seems like the release structure is the same as the one used by ubuntu[2]. Could you please add another card to install plasma phone through multirommgr? Thanks!
[1] http://plasma-mobile.org [2] http://kubuntu.plasma-mobile.org/kubuntu-phone/
:+1:
yesterday I did a dirty hack on MultiROMMgr, without understanding, how MutliROMMgr works, and was able to download kubuntu-touch ;)
diff --git a/MultiROMMgr/src/main/assets/devices.json b/MultiROMMgr/src/main/assets/devices.json
index d670ea6..5c7ca24 100644
--- a/MultiROMMgr/src/main/assets/devices.json
+++ b/MultiROMMgr/src/main/assets/devices.json
@@ -89,7 +89,7 @@
"names": [ "hammerhead" ],
"ubuntu_touch": {
"enabled": true,
- "base_url": "http://system-image.tasemnice.eu"
+ "base_url": "http://kubuntu.plasma-mobile.org"
},
"official": true,
"devices": [
diff --git a/MultiROMMgr/src/main/java/com/tassadar/multirommgr/Utils.java b/MultiROMMgr/src/main/java/com/tassadar/multirommgr/Utils.java
index 763577e..c12a273 100644
--- a/MultiROMMgr/src/main/java/com/tassadar/multirommgr/Utils.java
+++ b/MultiROMMgr/src/main/java/com/tassadar/multirommgr/Utils.java
@@ -219,6 +219,10 @@ public class Utils {
}
public static boolean downloadFile(String strUrl, OutputStream output, DownloadProgressListener listener, boolean useCache, long offset) throws IOException {
+ if (strUrl.equals("http://kubuntu.plasma-mobile.org/kubuntu-phone/devel-proposed2/hammerhead/index.json")) {
+ Log.e(TAG, "skip this url. I don't know why this url appears ;)");
+ strUrl = "http://kubuntu.plasma-mobile.org/kubuntu-phone/devel-proposed/hammerhead/index.json";
+ }
InputStream in = null;
HttpURLConnection conn = null;
try {
diff --git a/MultiROMMgr/src/main/java/com/tassadar/multirommgr/installfragment/UbuntuManifest.java b/MultiROMMgr/src/main/java/com/tassadar/multirommgr/installfragment/UbuntuManifest.java
index ee3b8b1..1cad32f 100644
--- a/MultiROMMgr/src/main/java/com/tassadar/multirommgr/installfragment/UbuntuManifest.java
+++ b/MultiROMMgr/src/main/java/com/tassadar/multirommgr/installfragment/UbuntuManifest.java
@@ -39,7 +39,8 @@ import java.util.TreeMap;
public class UbuntuManifest {
private static final String TAG = "MROMMgr::UbuntuManifest";
- public static final String DEFAULT_BASE_URL = "https://system-image.ubuntu.com";
+// public static final String DEFAULT_BASE_URL = "https://system-image.ubuntu.com";
+ public static final String DEFAULT_BASE_URL = "http://kubuntu.plasma-mobile.org";
public static final String CHANNELS_PATH = "/channels.json";
public static final String NO_FLAVOUR = "*none*";
:+1: I'll give it a try this afternoon and report back
@sedrubal : Did you get it to install perfectly? if yes, can you post APK somewhere?
@bhush9 : I don't know :P the download and the installation succeeded, but it wasn't booting (was like a timeout). But I don't know if there is also an other problem...
You can test it; grab it here: https://user.fablab.fau.de/~ev80uhys/multirommgr/ You have to do the same steps as you would install Ubuntu Phone (it's also named ubuntu touch after the installation ;) - very hacky)
Alright,
I did spend some time on why this is not working, so in fact your APK is fine but its recovery which is failing. Its because recovery doesn't have PGP keys for the http://kubuntu.plasma-mobile.org/
I've created patch for the recovery at https://github.com/Tasssadar/Team-Win-Recovery-Project/pull/16/files
Patched version of recovery is available on https://share.kde.org/index.php/s/OIgNSGoymLRyahg
So with this you are good to go.
:)
wow great :+1:
Just random note that patched recovery is no-longer necessary.. :-)
@Tasssadar thanks for new releases for nexus. I am wondering if is it possible to integrate this in stock app somehow, so I don't have to install patched version? and can install both ubutnu touch and plasma mobile from same app :-)
I'm trying to install KDE plasma mobile on my nexus 5 but @sedrubal's APK link no longer works. Any idea where I can find that APK in late 2016? Thanks in advance.
@jkyiv I removed the APK some weeks ago, because I think this is not the way to distribute APK files. It was only for testing... 😉 You can apply the patch I postet above or anyone else can make a sane pull request...
Since kubuntu.plasma-mobile.org no longer exists and is replaced by http://neon.plasma-mobile.org/, and does not have any JSON files, how would we be able to patch the manager? I do not know if @sedrubal knows or not, but any idea how I can use these steps to install Plasma from the manager?