3 ms·
> Critically, from that handler, it was then possible to get a reference to the current UI stack via the call to UiApplication.getUiApplication() - Once you had
by saagarjha 7y ago
> Critically, from that handler, it was then possible to get a reference to the current UI stack via the call to UiApplication.getUiApplication() - Once you had that reference, you could do whatever you want with any screens in the current display stack. You could pop screens from the stack, push new screens on the stack, and grab any screen in the stack and dig in and modify any of the UI components on any screen (deleting them, replacing them, etc.).
Give people extensibility and they can do things you'd never imagine: just take a look at the early jailbreaking community, who had neither APIs nor support from Apple but were able to do quite a bit just by being able to inject code into system applications to augment them. (I like to think that a faint echo lives on today in Mail plugins for macOS.) Sadly, we seem to be moving away from this for reasons that are touted to be for security…
- signal11 7y agoSecurity issues arise when extensibility is paired with the absence of a good sandbox and permissions model. DOS is the other example -- it was amazingly extensible to the point multitasking operating environments like DESQview[1] was available for it, but was also very susceptible to malware. In the case of email on any given platform, it should be possible for an application to add functionality to email, but also to ensure (to use the author's example) that it cannot peek into your bank app. I suspect given email's not as popular as it once was, and so email plugins are too much trouble for first-party mail clients, given their attack surface. Platforms like Slack and Teams do offer extensibility though. [1] https://en.wikipedia.org/wiki/DESQview https://en.wikipedia.org/wiki/DESQview
- pjmlp 7y agoSadly as Windows, Office and Android have proven multiple times, extensibility without security knobs comes with an heavy price. Hence Win32 and UWP containers, Android black listing of NDK and SDK APIs, with hardware sandboxes, plugins removal on browsers, moving stuff back into multi-processes with IPC,...
- pjc50 7y agoThe security issue is very real. Ultimately the distinction between a useful capability-adding hack and an exploit is whether the end user wanted it to do what it does. And there's a big supply of what are euphemistically called "potentially unwanted programs" (PUPs) which trick the user into installing keyloggers, etc.
- saagarjha 7y agoYeah, I know. Today's platforms unfortunately make it difficult to do this at all because of things like codesigning.
- simonh 7y agoIt's unfortunate that it's difficult to trick users into installing keyloggers? Sorry if I come across as confrontational, I'm just after clarity, but that's what a plain reading of your reply actually says.
- girvo 7y agoIt’s unfortunate that having true control over the software on your device no longer exists in that form: but it’s good that users aren’t infected with malware. These are not mutually exclusive opinions I don’t think?
- dahfizz 7y agoI think the Android model is perfectly good here. You get the option to load unsigned apps or unlock the bootloader, etc, but those options are all off by default and full of warnings to the user.
- scarface74 7y agoAnd “warnings” like UAC worked really well to keep Windows secure and to keep ransomware and malware from infecting Windows computers. It’s also not working too well to keep Android devices secure.
- thedance 7y agoOriginal BlackBerry os was just bare metal programming on an embedded x86. Before they went with Java there was not even the pretense of protection, you just read other apps’ data if you wanted to.
- wingerlang 7y agoThe development scene for is still alive and kicking, but it definitely have reduced in the amount of "WOW" software being released throughout the years.
- saagarjha 7y agoThe jailbreaking scene? As far as I could tell, it had been reduced to a shadow of its former self, with an ever-larger share of toxic people stirring up drama as the "old guard" left the community.
- wingerlang 7y agoThe glory days are definitely over both in terms of creativity, talent and motivation. But there's been a bump in the past 1/1.5 year so with the more frequent jailbreaks coming out, which is quite nice. Drama, yes there is a lot I guess. But I've been an active developer since 2012 and I think it is easy to not involve yourself in it.