Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to install Plasma Mobile #84

Open
Feirlane opened this issue Jul 28, 2015 · 12 comments
Open

Add support to install Plasma Mobile #84

Feirlane opened this issue Jul 28, 2015 · 12 comments

Comments

@Feirlane
Copy link

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/

@sedrubal
Copy link

👍

@sedrubal
Copy link

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*";

@Feirlane
Copy link
Author

👍 I'll give it a try this afternoon and report back

@bhush9
Copy link

bhush9 commented Aug 7, 2015

@sedrubal : Did you get it to install perfectly? if yes, can you post APK somewhere?

@sedrubal
Copy link

sedrubal commented Aug 7, 2015

@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)

@bhush9
Copy link

bhush9 commented Aug 9, 2015

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.

:)

@sedrubal
Copy link

sedrubal commented Aug 9, 2015

wow great 👍

@bhush9
Copy link

bhush9 commented Feb 11, 2016

Just random note that patched recovery is no-longer necessary.. :-)

@bhush9
Copy link

bhush9 commented Feb 11, 2016

@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 :-)

@jkyiv
Copy link

jkyiv commented Dec 14, 2016

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.

@sedrubal
Copy link

@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...

@cool00geek
Copy link

cool00geek commented Jan 3, 2017

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?

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

No branches or pull requests

5 participants