[WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
Patchmanager
patchmanager is the continuation of my work on system tweaks on SailfishOS. It allows managing patches in the whole system. Patching system files can allow UI tweaks, and a lot of other features. Only the imagination of developers is limiting here. With the new update, Pandora enabled lipstick is no longer needed. Don't install lipstick-pandora if you are running 1.0.7.16 or later version. https://pbs.twimg.com/media/BkYUFAFIAAA96vW.jpg Warning: system file patches can break your system, or worse, malicious patches can cause privacy / security issues Use with care, apply patches at your own risk. Warning: patching homescreen QML files can brick or damage your device. Use with care. Recovery is helpful to recover from bricking. There should always be a backup of lipstick code inside /opt/patchmanager/backups. Use the following code to recover broken lipstick files Code:
cd /opt/patchmanager/backups/usr/share/lipstick-jolla-home-qt5/qml/ Video thanks to @fravaccaro http://distilleryimage2.ak.instagram...c9e093e6_8.jpg Gallery video patch I have developed a small patch that provides a better UI for the video player in gallery. See this blog post for more information. (Note that the package in this blog post is not using patchmanager) Unlimited multitasking Want to have more than 9 multitasking windows ? Well, you can ! Applying unlimited-multitask patch from sailfishos-patches-advanced package, you will enjoy several pages of multitask windows. This patch is still being developed, and there are known issues. However, it can be used right now. Don't forget to restart lipstick after applying the patch (there is an option in patchmanager). https://pbs.twimg.com/media/BkKRJv8IEAAbXPO.jpg Control center Replacing the right ambience switcher panel, you can find the control center. It will (at some point), be extensible with widgets, but right now, you can find the switches from jolla-settings app. https://pbs.twimg.com/media/BkSBxfuIcAA4eRi.jpg Vibrate when call established A feature I wanted long time ago is to have a vibration when a phone call is established. A patch is now included in sailfishos-patches-base to perform this. Get it I will use OBS to build my packages, and use OpenRepos to distribute them. You can try OBS packages if you want, but I recommand OpenRepos. (Except for pandora enabled lipstick) If you like my work, please also consider a donation :) recommended builds
Not recommended ones Installation process
Note that before uninstallation, please unapply all patches. Troubleshooting If you brick your device in pandora mode, follow these steps.
Code:
cd /opt/patchmanager/backups/usr/share/lipstick-jolla-home-qt5/qml/ patchmanager
Patches
Patchmanager for developers Patchmanager is hosted in the sailfishos-patches group on Github. Feel free to contribute, and bring more patches. All projects should have a decent README. If they don't, ask me here, on Twitter, or on IRC.
|
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
Thank you, great idea!
Maybe you already did, but in case you did not, I would suggest looking into how webOS community did this: http://www.webos-internals.org/wiki/...ion_Technology There are years of work behind their patch framework and given that webOS is pretty much all about patches, I'd call this infrastructure a state-of-art. EDIT: Here is the code: https://github.com/webos-internals/ausmt |
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
Quote:
|
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
I had the same idea but mine was about patching the QML files embedded inside the binaries before they are handed over to the Qt declarative engine for parsing. I however never got to implementing it.
patching in memory might be a bit slower but it makes it possible to modify embedded QML files easily. - applets in lipstick. - you name it... |
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
So if you do UI tweaks check my most wanted tweaks. :)
http://talk.maemo.org/showthread.php?t=92920 |
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
Quote:
EDIT: or do you want to do that in runtime ? |
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
Quote:
If we have an LD_PRELOAD that can get access to the actual QML data (I don't yet know how) then we can capture the data, modify it and return the modified data to the QML "compiler". It's not resource intensive. I have done something similar in a Qt4 app of mine (replace certain strings during runtime in the embedded QML files). Don't ask me why I did that ;) EDIT: One advantage for patching during runtime is we can tie the patches to a certain OS release easily. |
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
Quote:
This means that we are seriously limited in this side. Another way to do is to patch and override some system packages, like lipstick-qt5. |
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
How about disabling lipstick.service and providing own customized lipstick service that makes systemd to start a wrapper which sets LD_PRELOAD and starts lipstick as privileged?
|
Re: [WIP] App / Tweak: Introducing patchmanager, a system-wide patching system
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Right, patchmanager updated, and lipstick-pandora released. I will try to provide more patches as soon as possible.
WARNING: USE WITH CARE, CAN BRICK OR DAMAGE YOUR DEVICE. |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Added the first lipstick-pandora patch. Check first post. (Use with care)
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Great! I'm gonna try it. So, to remove the patched lipstick you just have to remove lipstick-qt5?
EDIT:Works like a charm. You just did what I wanted since I got the phone! :) Really good job. KUTGW! ;) |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Sorry for abusing double / triple posts
Just to inform that control center pandora patch is available. Check first post :) |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Awesome idea!
Is there a chance to have ambiences left and settings right? Or maybe even better, show the ambiences below the settings panel? I have a feeling that I will need to tinker with it this weekend :D |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
These ideas should be included in the next Jolla update, unlimited multitasking and control center
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Absolutely awesome.
These features, already available out of the box despite patchmanager being just released in its first version, are amongst the most anticipated since first Jolla units have reached customers. I did not even truly imagined that > 9 covers and Control center instead of Ambiance could actually become reality someday. Thanks. |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Okay, with lipstick-pandora enabled the internet connection popup (connect to Internet on the Wlan page in settings) does not work anymore. There just happens nothing. As soon as I disable Pandora it starts to work again. Seems like a bug. Can anyone confirm this behaviour? Unfortunately this way it isn't usable for me yet. Hopefully this can be fixed, as the features of this patches are awesome. :)
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
Any ideas? |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
Does the Patchmanager allow patching the Notification screen (swipe up from bottom edge)? That would be awesome to add stuff in there, RSS feeds, tweets, or even more notifications like weather and so on. In short, N9's legacy. [Edit] Well a problem persists though: all patches do appear in Patchmanager, but I can only apply the Gallery one. Control center and Unlimited multitask can't be enabled (the confirmation dot just blinks once). I tried restarting lipstick just in case it was just a GUI issue, one by one, all at once, and everything, but the patches won't apply. It seems from the thread that nobody else experienced that? |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
New release of patchmanager (0.3.0) brings
New release of pandora-box (0.1.3) brings
Careful before updating: remove all patches. New patchmanager requires a clean device. |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Hi, I have some question here:
Can you tell me that what does lipstick-qt5-tools & ui use for :confused: ? Do I need to Install those 2 packages with lipstick-qt5.:confused: Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
This is great!
Have been waiting these kind of patches since the release now. Why do I seem to remember that n900 and n9 started to get this stuff "faster". Great job! |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
Also another idea. Know the lock screen animation that comes when you lock the screen by swiping down? Could it be utilized in Android lockscreen way? It would of course be in reverse way I guess, but you get the idea? There could be shortcuts added there and one could just slide their finger from top till an Icon to open the app. Releasing finger anywhere else would lock the device. Posted on TJC as well... https://together.jolla.com/question/...ock-the-phone/ |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
Was thinking SwipeManager and then UnrestrictedSystem UI by MohammadAG and other tweaks by him. But quickly checking some topics showed that those also took their time... |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Have just created a pull request on the pandora-box project.
It allows us to see the text on the applications when re-ordering. I like to order mine mostly alphabetical, so having the text visible is a great help when I have no clue what the icon is. https://pbs.twimg.com/media/BkemvLlIgAAfKZ-.jpg:large |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
See here -> http://sfietkonstantin.wordpress.com...video-pausing/ So, to get it working I first uninstalled jolla-gallery-extensions and then in PatchMangaer I had to toggle "Jolla Gallery extension" on and off with a "verify patch application" in between and a "restart lipstick" (PatchManager -> pulldown menu). After a few tries "Control Center" and "Unlimited multitask" became finally clickable and are working fine since then. Regards, J4ZZ |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
I found a bug: after being in an area without reception or flightmode, the mobile data switch greys out and isn't usable anymore. reapplying control center patch fixes it.
great work btw! |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
PM is moving to AUSMT. Thanks nodevel for heads-up.
AUSMT should provide a much safer patching experience, but provides less features right now (as I didn't finished adapting the WebOS stuff to SailfishOS). Missing stuff includes
What is gained now
What will be gained in the future
I'm currently doing the adaptations and will release a first version of patchmanager to OpenRepos very soon. However, pandora-enabled lipstick will never move to there. It's too easy to break everything with it, so I prefer to redirect to this TMO post right now. |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Official announcement: patchmanager 0.4.0 is available in openrepos !
https://openrepos.net/content/sfietk...n/patchmanager It do not ship pandora-lipstick, and will probably never ship it. This version of patchmanager uses AUSMT, and requires a lot of dependencies, so don't use OBS to download it, and prefer OpenRepos :) You can download the pandora-box patches here and the stock patches here (gallery video fix). Note that you must unapply all patches before updating ! |
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Quote:
|
Re: [WIP] App / Tweak: patchmanager and lipstick-pandora, a system-wide patching system + homescreen tweak
Still the connect to the Internet dialog does not show up. At least for me.
Beside that it works like a charm! I love the Harmattan-like feedback on swipes and the unlimited multitask. Fixing that stubborn dialog wouldmake it perfect! |
All times are GMT. The time now is 14:31. |
vBulletin® Version 3.8.8