We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2018-04-22 06:52:43 +0200 |
Long-time Android user recently switched to Sailfish, thanks to excellent port to Sony Xperia X Compact. As always, my first thoughts turn to hacking and modding, (nothing illegal, just personalization...). So far, I haven't figured out too much, except that the generous devs here do a great job with apps and patches for us, which I've been making use of, but I can't help but want to know more...
With Android, most UI functions are controlled by app packages, (apk files), which are made up of 2 parts: resources, and smali, (code). Apk files can be decompiled, have contents edited, then recompiled, and pushed back to the file system. Resources are pretty easy to mod, and smali is trickier, (different language), and even Java framework files can be modded, to bypass security, etc, if you really know what you're doing, (or have a guide to follow), but all of it is easily accessible in the file system, (with root).
Maybe I just haven't looked hard enough yet, but I haven't found the equivalent of this is Sailfish yet. I've dug around in the file system a bit, and found a few things that seem like they might be in this realm, but I have a feeling I'm missing something, like maybe these types of files are in a different partition, which has to be mounted, or maybe they are only moddable during app building, and not after, or... ???
So, what is the equivalent structure here, if any, for modifying apps, (particularly system apps)? For example, (what really got me started on this), I was wanting to set the time it takes for the power menu to pop up while long-pressing the power button, to be much shorter, (it's about a full 3 seconds - way too long). In android, I might find it in framework-res.apk/res/values..., or maybe in smali code. Where would it be here?
Thanks
2 | No.2 Revision |
Long-time Android user recently switched to Sailfish, thanks to excellent port to Sony Xperia X Compact. As always, my first thoughts turn to hacking and modding, (nothing illegal, just personalization...). So far, I haven't figured out too much, except that the generous devs here do a great job with apps and patches for us, which I've been making use of, but I can't help but want to know more...
With Android, most UI functions are controlled by app packages, (apk files), which are made up of 2 parts: resources, and smali, (code). Apk files can be decompiled, have contents edited, then recompiled, and pushed back to the file system. Resources are pretty easy to mod, and smali is trickier, (different language), and even Java framework files can be modded, to bypass security, etc, if you really know what you're doing, (or have a guide to follow), but all of it is easily accessible in the file system, (with root).
Maybe I just haven't looked hard enough yet, but I haven't found the equivalent of this is Sailfish yet. I've dug around in the file system a bit, and found a few things that seem like they might be in this realm, but I have a feeling I'm missing something, like maybe these types of files are in a different partition, which has to be mounted, or maybe they are only moddable during app building, and not after, or... ???
So, what is the equivalent structure here, if any, for modifying apps, (particularly system apps)? For example, (what really got me started on this), I was wanting to set the time it takes for the power menu to pop up while long-pressing the power button, to be much shorter, (it's about a full 3 seconds - way too long). In android, I might find it in framework-res.apk/res/values..., or maybe in smali code. Where would it be here?
Thanks