<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BlackBerry Developer Blog &#187; lmcdunna</title>
	<atom:link href="http://devblog.blackberry.com/author/lmcdunna/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 19:49:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; lmcdunna</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>GDC 2013:  A Console Gaming Experience Anywhere, Anytime</title>
		<link>http://devblog.blackberry.com/2013/04/gdc-console-gaming-experience/</link>
		<comments>http://devblog.blackberry.com/2013/04/gdc-console-gaming-experience/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 15:13:31 +0000</pubDate>
		<dc:creator>lmcdunna</dc:creator>
				<category><![CDATA[Adobe AIR Development]]></category>
		<category><![CDATA[Android Development]]></category>
		<category><![CDATA[BlackBerry World]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Interviews/Thought Leadership]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Platform Services]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[GDC 2013]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14771</guid>
		<description><![CDATA[With a background and passion for Computer Graphics, I’ve been to a slew of GDC conferences and over a dozen ACM SIGGRAPHs. Over the years, it’s interesting to see technologies come and go, and then come back again. The things I like to look for at these events are the technologies that have the potential [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14771&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>With a background and passion for Computer Graphics, I’ve been to a slew of GDC conferences and over a dozen ACM SIGGRAPHs. Over the years, it’s interesting to see technologies come and go, and then come back again.</p>
<p>The things I like to look for at these events are the technologies that have the potential to disrupt the apple cart. These revolutionary movements do more than simply evolve last year’s technology. They beg the question whether whole companies or industries will radically change and shift to address this new force, and whether or not new players will emerge as drivers in this movement. At GDC this year, I could see that such a shift is starting to take place and I’m excited that BlackBerry is actively engaged in this movement. What’s the shift? We’re starting to see mobile devices provide a console gaming experience, anywhere, anytime.</p>
<p>We’ve been playing games on phones for many years, why talk about this now? What’s changed?<br />
<span id="more-14771"></span></p>
<h3><strong>Technology Advancement</strong></h3>
<p>As with many disruptive forces, a number of normal evolutionary changes take place first that, by themselves, are not disruptive. However, when brought together, they can change the game considerably and challenge an entire once-stable industry. The critical technologies all on mobile devices that are beginning to put pressure on the gaming console industry are the following:</p>
<ul>
<li>Multitasking Operating Systems</li>
<li>High Performance GPUs</li>
<li>High Definition Video (HDMI)</li>
<li>Wireless Mobile Game Controllers</li>
<li>Portable Game Software</li>
</ul>
<p>When all these technology advancement come together in a smartphone, you have something very close to a game console in the palm of your hand. Each of these plays a vital role. Let’s explore the contribution of each.</p>
<h3><strong>Multitasking Operating Systems </strong></h3>
<p>A true multitasking operating system is critical for providing smooth performance and interactivity for today’s most demanding games. Not only must the OS manage the game itself, but it must also juggle location information, gyro, accelerometer and other sensors, concurrent voice or VOIP for trash-talking your friends during gameplay, and interact with the cloud and social networks for storing and sharing your results. Neither iOS nor Android has a great multitasking solution here. In contrast however, BlackBerry 10, powered by QNX Neutrino (a leading world class RTOS), is very well positioned to provide all the power necessary for managing the ever-increasing demand of concurrent functionality in the next generation of mobile games.</p>
<h3><strong>High Performance GPUs </strong></h3>
<p>GPUs render the images. Without them, our game visuals would be slow, blocky, and flat. There’s no question how important these processors are. Over the last couple of years, the advancements made by companies like ARM, Imagination, NVidia, and Qualcomm for smartphones have been enormous. It’s getting harder and harder to tell the difference between a game rendered by a GPU on a laptop vs. a game rendered by a smartphone GPU. Perhaps the most obvious difference has been the physical screen size. However, when you add a multitasking OS and a high performance GPU to HD Video (the next critical technology), things start to get really interesting.</p>
<h3><strong>High Definition Video (HDMI) </strong></h3>
<p>One of the things we did in the BlackBerry booth this year at GDC was connect a bunch of our BlackBerry Z10 smartphones (using the standard HDMI port) to large HD monitors. We also did this at our interactive pods in the Unity and Marmalade booths. I can’t tell you how many times people walked up and asked questions like, “Since when did BlackBerry start making game consoles?” When we told them they were looking at a game being rendered and played on the BlackBerry Z10 smartphone they had that mind blown look on their face.</p>
<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/04/gdc-20131.jpg?w=350" /></p>
<p>In the picture above, a young gamer is playing “Shadow Gun” on a BlackBerry Z10. This is a great First Person Shooter game built on the Unity3D game engine. You can just see the Z10 on the table in front of him below the monitor. What you can’t see in this picture is the awesome <a href="http://steelseries.com/products/other/steelseries-free-mobile-wireless-controller" target="_new">SteelSeries Free</a> game controller he’s using to play the game. That piece of critical technology is next on my list.</p>
<h3><strong>Wireless Mobile Game Controllers</strong></h3>
<p>To an awesome multitasking OS, killer GPU, and HDMI out, you add a wireless game controller and you’ve just about got the whole package. Using a controller accomplishes two important things: First, it gets your fingers off the valuable screen real estate freeing up more pixes for game play. The other benefit of the controller is that it adds that real, immersive game feeling you get with console controllers. The controllers we used at GDC are the <a href="http://steelseries.com/products/other/steelseries-free-mobile-wireless-controller" target="_new">SteelSeries Free Mobile Wireless Controllers</a> (shown below). The last time I checked, the controller will set you back about $80USD and you can find one <a href="http://www.amazon.com/SteelSeries-Wireless-Controller-Bluetooth-Tablets/dp/B009AOFNU4/ref=sr_1_1?ie=UTF8&amp;qid=1365305371&amp;sr=8-1&amp;keywords=steelseries+free" target="_new">here</a>. Other controllers, such as the Wii Remote and the <a href="http://www.gametel.se/" target="_new">Gametel</a>, are also usable and there’s more to come.</p>
<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/04/gdc2.jpg?w=300" /> <img alt="" src="http://rimdevblog.files.wordpress.com/2013/04/gdc3.jpg?w=300" /></p>
<p>For you game developers out there, you can get more information about how to instrument your code to work with these controllers including samples and tutorials by checking out Sean Paul Taylor’s devblog: “<a href="http://devblog.blackberry.com/2013/02/blackberry-10-gamepad-support/" target="_new">Adding Gamepad Support to Your BlackBerry 10 Game</a>”. You can also read about Ramprasad Madhavan’s experience at GDC this year and the <a href="http://developer.blackberry.com/develop/games/index.html" target="_new">Unity BlackBerry 10 Open Beta</a> coming soon on his devblog: “<a href="http://devblog.blackberry.com/2013/04/unity-and-blackberry-gaming-at-gdc-2013/" target="_new">Unity and BlackBerry Gaming at GDC 2013</a>”</p>
<h3><strong>Portable Game Engines &amp; Frameworks</strong></h3>
<p>The final critical technology contributing to the end of the game console industry as we know it is portable game engines and frameworks. The easier it is to get your game ported from one platform to another, the harder it is for games to be locked to a single console or device. Companies like Marmalade, ShiVa3D, and <a href="http://unity3d.com/unity/" target="_new">Unity3D/Union</a> all contribute here. As a developer, you want the highest quality game experience you can get with the largest distribution possible. This is exactly what these frameworks offer and each has been tuned to deliver a killer experience on BlackBerry 10.</p>
<h3><strong>Summary</strong></h3>
<p>I confess I own an Xbox 360, Nintendo Wii, and a PlayStation 3. However, I more often find myself connecting my Z10 to my 46” flat screen, the audio-out to my surround system, and kick back on the couch with my SteelSeries Free remote to enjoy a great game of Angry Bots or Critical Wave. There’s no question that smartphones like the BlackBerry Z10 are providing near console game experiences. This is being driven by advancements in 5 areas: real multitasking OS’s, high performance mobile GPUs, HD Video, mobile game controllers, and portable frameworks.</p>
<p>Consoles will need to adapt and add value to remain competitive. Where does that leave game consoles in the future then? Are they becoming extinct? Will smartphones replace game consoles outright? Will consoles evolve into something even better? Or, will they become the mobile extension of their stationary counterparts? As the great Yoda once said, “Always in motion the future is”.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14771/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14771&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/04/gdc-console-gaming-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/649c096f0b8996184db6d0509771ecfb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lmcdunna</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/gdc-20131.jpg?w=350" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/gdc2.jpg?w=300" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/gdc3.jpg?w=300" medium="image" />
	</item>
		<item>
		<title>WebGL: 3D Gaming on the Web Arrives</title>
		<link>http://devblog.blackberry.com/2013/04/webgl-3d-gaming/</link>
		<comments>http://devblog.blackberry.com/2013/04/webgl-3d-gaming/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 14:27:02 +0000</pubDate>
		<dc:creator>lmcdunna</dc:creator>
				<category><![CDATA[Adobe AIR Development]]></category>
		<category><![CDATA[Android Development]]></category>
		<category><![CDATA[BlackBerry World]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Interviews/Thought Leadership]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Platform Services]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[3D Gaming]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14572</guid>
		<description><![CDATA[The Web and 3D have been to the dance many times together before, but they just never really hit it off. Sure, there were some successes which resulted in VRML in the mid 1990’s and Second Life in the early 2000’s. But numerous other attempts by countless startups didn’t make it. The reasons were many, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14572&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The Web and 3D have been to the dance many times together before, but they just never really hit it off. Sure, there were some successes which resulted in <a href="http://en.wikipedia.org/wiki/VRML" target="_new">VRML</a> in the mid 1990’s and <a href="http://en.wikipedia.org/wiki/Second_Life" target="_new">Second Life</a> in the early 2000’s. But numerous other attempts by countless startups didn’t make it. The reasons were many, but mostly there just wasn’t a real solid business case for 3D in the browser. It was complicated to program, expensive to develop models, performance was spotty, and ensuring that all browsers would render the content the same way was certainly not guaranteed.</p>
<p>There was one place, however, where 3D made business sense: gaming (well, native gaming). 3D enjoyed, and still enjoys, a happy existence on PC and Console platforms. The question I always wondered was when will 3D in the browser be of high enough performance and quality across all platforms and browsers to support a solid business case for 3D on the Web? I believe the time has finally come. The confluence of mobile gaming, mobile Web app development, and a solid javascript API called <a href="http://en.wikipedia.org/wiki/WebGL" target="_new">WebGL</a> (a biding to the powerful and ubiquitous <a href="http://en.wikipedia.org/wiki/OpenGL" target="_new">OpenGL</a>), is fueling its arrival. I’m proud to say that BlackBerry has been very active in providing one of the first complete mobile WebGL implementations on the BlackBerry PlayBook, and has also brought this capability to BlackBerry 10.</p>
<p><span id="more-14572"></span></p>
<p>WebGL provides developers with the ability to write immersive, high-performance, console-quality, 2D and 3D games accessible directly on your BlackBerry 10 smartphone. This could be done directly though the browser, or even better, directly by a BlackBerry <a href="http://developer.blackberry.com/html5/" target="_new">HTML5/WebWorks</a> application. By building and packaging your HTML5 application into a bar file (a BlackBerry app file container), it enjoys the same rights and privileges as a native application. These apps look, feel, and behave as native apps, as they don’t run inside a browser context. They don’t need to be online to work, and they can leverage great BlackBerry services like the <a href="http://developer.blackberry.com/html5/documentation/webworks-payment_service.html" target="_new">Payment Services SDK</a> and the <a href="http://developer.blackberry.com/html5/apis/blackberry.bbm.platform.html" target="_new">BBM APIs</a>. BlackBerry WebWorks apps can also be certified as <a href="http://developer.blackberry.com/builtforblackberry/" target="_new">Built for BlackBerry</a> affording them additional advantages.</p>
<p>The game shown below is called “Pearl Boy” and is a great example of what a WebGL application can do. It was developed by <a href="http://www.gootechnologies.com/" target="_new">Goo Technologies</a>, makers of the Goo Engine for GDC this year. It’s a 100% Web application, written using HTML5, Javascript, and of course, WebGL. The graphics and performance on the BlackBerry Z10 look great. Reflections, environment maps, pixel shaders, they’re all there. WebGL is the real deal.</p>
<p style="text-align:center;"><img alt="" src="http://rimdevblog.files.wordpress.com/2013/04/gdc-2013.jpg?w=450" /></p>
<p>If you want to learn more about programming with WebGL on BlackBerry, check out these additional <a href="http://devblog.blackberry.com/?s=webgl&amp;search=" target="_new">WebGL resources on the BlackBerry DevBlog</a>. I also recommend you check out the O’Reilly book, “<a href="http://www.amazon.com/WebGL-Up-Running-Tony-Parisi/dp/144932357X" target="_new">WebGL: Up and Running</a>” by Toni Parisi.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14572/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14572/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14572&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/04/webgl-3d-gaming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/649c096f0b8996184db6d0509771ecfb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lmcdunna</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/04/gdc-2013.jpg?w=450" medium="image" />
	</item>
		<item>
		<title>You Just Can’t Port an App to BlackBerry 10 in 36 hours!…or Can You?</title>
		<link>http://devblog.blackberry.com/2013/02/port-app-to-blackberry-10/</link>
		<comments>http://devblog.blackberry.com/2013/02/port-app-to-blackberry-10/#comments</comments>
		<pubDate>Fri, 22 Feb 2013 14:59:01 +0000</pubDate>
		<dc:creator>lmcdunna</dc:creator>
				<category><![CDATA[Adobe AIR Development]]></category>
		<category><![CDATA[Android Development]]></category>
		<category><![CDATA[BlackBerry World]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Platform Services]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13912</guid>
		<description><![CDATA[I’ve heard this many times. It just can’t be done, they say. Porting an application, a “real” application to a new and unfamiliar platform takes at least 3 to 6 months, numerous developers, designers, lots of QA testing, diligent software engineering practices, et cetera. This makes a lot of sense, right? It’s been the conventional [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13912&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I’ve heard this many times. It just can’t be done, they say. Porting an application, a “real” application to a new and unfamiliar platform takes at least 3 to 6 months, numerous developers, designers, lots of QA testing, diligent software engineering practices, et cetera. This makes a lot of sense, right? It’s been the conventional wisdom for as long as I can remember. How, then, have developers been porting their applications to BlackBerry 10 so quickly? Let’s take a look.</p>
<p>It’s true that learning a new platform can take months. Luckily, those standard rules of learning time don’t apply in certain cases – and that often happens to be true for BlackBerry 10. I’ll explain what I mean later.</p>
<p>First, let me share with you some data from our Port-a-thons. In our “Got Game Port-a-thon”, we had over 4,000 gaming apps ported by developers to BlackBerry 10 from other platforms in 36 hours. A few weeks later, we ran another port-a-thon and had 15,000 apps ported. Only a week later, an additional 19,000 apps were ported in the 36 hour window (<a href="http://devblog.blackberry.com/2013/01/blackberry-10-port-a-thon-recap/" target="_new">recap of port-a-thons here</a>). So, you might be thinking, “How could this happen if it takes 3-6 months to learn a new platform?” The reason is simple: Developers don’t have to learn a new set of skills to get their app running on BlackBerry 10. We received games and apps written in all four of the runtimes BlackBerry 10 supports: Native C and C++, HTML5, Adobe AIR, and Android Java. Here&#8217;s why it was so easy in each of these cases:</p>
<p><span id="more-13912"></span></p>
<h3><strong>Native C and C++ Apps</strong></h3>
<p>Our native platform is Posix-compliant C and C++, and supports a lot of libraries and gaming engines leveraged by game developers including Unity3D, Marmalade, Appcelerator, Shiva3D, NME, OpenGL ES, OpenAL, Cocos2D-X, Box2D, Skia, Lua, and so on. (Learn more about all the <a href="http://developer.blackberry.com/native/reference/bb10/library_support_at_a_glance.html" target="_new">native library support options here</a>.) For many developers, the majority of time spent porting their app to BlackBerry 10 was just setting up their tooling and getting their signing keys.</p>
<p>Now, if your app is full of custom, platform-specific APIs or if your app uses a lot of device specific UI, then of course it will take you longer than a day to port your app. But learning Cascades, the UI framework for native development on BlackBerry 10, doesn’t take very long – especially if you’re familiar with Qt and QML. What we’re finding is that most mobile developers today are designing their apps with portability in mind at the outset. They’re separating out platform specific stuff from the common stuff. Or, they’re leveraging a framework like Marmalade that does a lot of this platform abstraction work for them under their APIs. What’s left is pretty easy to port because you have a solid, standards-compliant platform like BlackBerry 10 on which to develop. Things just work.</p>
<h3><strong>Android Apps</strong></h3>
<p>One misconception I hear a lot is that the BlackBerry Android runtime is an “emulator”. This isn’t the case. Our Android runtime is a pure port of the open source Dalvik VM directly onto QNX. Other mobile vendors ported the same code to Linux, whereas we went straight to QNX – a real-time embedded OS about 1% the size of standard Linux and highly efficient. We don’t touch the byte codes or modify the programs in any way – all we do is re-package them into a different archive format that helps us maintain security for your protection. Either your app runs or it doesn’t. If it doesn’t, our tools will tell you why immediately and you can decide if it’s something you can work around. You can even check out your app using our <a href="https://bdsc.webapps.blackberry.com/android/bpaa/" target="_new">online tool</a>.</p>
<p>We don’t support apps that use proprietary Google APIs, and we don’t support native extensions. Also, for security reasons, BlackBerry 10 does not allow Android Java apps to run in the Enterprise partition; they may only run in the Personal partition (learn more about <a href="http://us.blackberry.com/business/software/blackberry-balance.html?lpos=us:bb:search:Business&amp;lid=us:bb:search:Business:BlackBerry-Balance-Technology#tab-1" target="_new">BlackBerry Balance</a>). Visit our <a href="http://developer.blackberry.com/android" target="_new">Android developer site</a> for more info about the limitations of Android apps on BlackBerry. “Porting” Android apps to BlackBerry 10 is trivial. I regularly do this in less than 60 seconds per app &#8211; no lie. It literally takes me longer to copy someone’s apk from a USB drive than it does to port it.</p>
<h3><strong>HTML5 Apps</strong></h3>
<p>BlackBerry 10 has maintained one of the highest HTML5 conformance scores in the industry for many months (see <a href="http://html5test.com/" target="_new">http://html5test.com/</a>). BlackBerry 10 is not only first in the mobile rankings &#8211; it outscores all desktop browsers like Chrome, Safari, and Firefox, and it also outscores iPhone, iPad, Android, Firefox Mobile, Opera, etc. So, if you have a web app with all that silly Java or Objective-C wrapper business that Android and iOS make you put in there, you just have to strip that out all that nonsense and re-package for BlackBerry. Web apps on BlackBerry are first-class citizens on our platform; they have sensor APIs, payment capabilities and access to device camera, and they don’t need or require an Internet connection to run.</p>
<p>BlackBerry 10 also supports things like WebGL and WebSockets –functionality not found in many other mobile platforms. Check out all the API support for augmenting <a href="http://developer.blackberry.com/html5/apis/" target="_new">HTML5 on BlackBerry here</a>. We also <a href="http://developer.blackberry.com/html5/documentation/using_javascript_libraries_frameworks_in_webworks.html" target="_new">support the leading web frameworks</a> like jQuery, Sencha, dojo, and of course Apache Cordova. For the same reasons that native C and C++ apps “port” very quickly to BlackBerry 10, so do HTML5 apps. The standards support is there. The frameworks are there.</p>
<h3><strong>Adobe AIR Apps</strong></h3>
<p>AIR is AIR; they just work. You can learn more about how to <a href="http://developer.blackberry.com/air" target="_new">get your Adobe AIR apps on BlackBerry 10 here</a>.</p>
<h3><strong>Summary</strong></h3>
<p>Hopefully, the question about whether you can “port” an app in a very short amount of time to BlackBerry 10 should be clear now. Through BlackBerry 10’s adherence to industry standards &#8211; and by developers’ common practice of architecting for cross platform deployment &#8211; mobile apps are, and have been, easily ported to BlackBerry 10. For more information, check out our new developer site: <a href="http://developer.blackberry.com" target="_new">http://developer.blackberry.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13912/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13912/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13912&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/port-app-to-blackberry-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/649c096f0b8996184db6d0509771ecfb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lmcdunna</media:title>
		</media:content>
	</item>
		<item>
		<title>Application Security Part II: What Should App Developers Do?</title>
		<link>http://devblog.blackberry.com/2013/02/application-security-part-2/</link>
		<comments>http://devblog.blackberry.com/2013/02/application-security-part-2/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 12:27:44 +0000</pubDate>
		<dc:creator>lmcdunna</dc:creator>
				<category><![CDATA[Adobe AIR Development]]></category>
		<category><![CDATA[Android Development]]></category>
		<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[app development]]></category>
		<category><![CDATA[Code Safety]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13491</guid>
		<description><![CDATA[In my previous blog post on this topic, “Application Security Part I: Whose Responsibility is it?”, I explored the responsibility of security in the mobile app ecosystem. In this post, let’s take a little deeper look at the problem of security and code safety from a mobile app developer’s point of view and explore what [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13491&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In my previous blog post on this topic, <a href="http://devblog.blackberry.com/2012/12/application-security-part-1/" target="_new">“Application Security Part I: Whose Responsibility is it?”</a>, I explored the responsibility of security in the mobile app ecosystem. In this post, let’s take a little deeper look at the problem of security and code safety from a mobile app developer’s point of view and explore what developers need to think about and how they can avoid potential security problems in their applications.</p>
<p>The majority of security problems in app development are really software quality problems. There’s something wrong with the way the code was written that leaves a door open for someone to exploit. Fortunately, many of these problems can be easily fixed. Some of these can be fixed in the design phase of product development and others in the code phase. We’ll explore a few examples of each type in this post.</p>
<p><span id="more-13491"></span></p>
<h3><strong>The Objective of this Post</strong></h3>
<p>Now, before we jump in, I need to confess that this is a broad and deep subject. My goal here is to present a high-level understanding of code security through discussion and a few examples that will help you understand the kinds of vulnerabilities that can lead to problems. I will also provide references to further reading for those that really want the “Full Monty” on developing secure apps.</p>
<h3><strong>Code Security at Design Time</strong></h3>
<ol>
<li><span style="text-decoration:underline;">Design with security in mind</span>. This is perhaps the most important thing you can do. Think about the following questions before you design your code and have answers for all of them:
<ul>
<li>What Assets does this software need to protect? Credit Card numbers, user data, contact lists, account info, access to paid services, and privileged access to device. To protect sensitive assets, you need to plan how you’re going to deal with the data at design time. If you’re sending sensitive data over a computer network, you should use SSL/TLS protocol to prevent attackers from eavesdropping. Look into OpenSSL for open source libraries and code examples on how to use this protocol. Also, for server-side storage, consider using a 3rd party database such as MySQL. These systems have their own built-in security policies that you can leverage. Also, for secure authentication, leverage trusted services like OAuth and OpenID (See Additional Resources for more info below)</li>
<li>How might an attacker exploit my code? This is often called “Thread Modeling”. Attackers might be eavesdropping on the network ports you use, or providing unexpected inputs that overflow memory buffers and inject attacker-supplied code to be executed. You have to ensure, for example, that you never execute code on behalf of an untrusted user</li>
</ul>
</li>
<li>Follow a Secure Coding Standard &#8211; Select a secure coding standard and make sure your code conforms. A secure coding standard will identify specific issues with a particular programming language that a compiler or analysis tool might fail to diagnose. Secure coding standards also define requirements for producing code level security in your system. Several popular secure coding standards are available from CERT® on their website at <a href="http://www.securecoding.cert.org/" target="_new">www.securecoding.cert.org</a>.</li>
<li>Perform Design Reviews. This is a simple thing teams can do, and it can really pay off in the long run. A few years ago, I managed a couple of engineering teams at Sun and when a new code module was planned. The engineering lead would present the design to a team of Senior Architects with different backgrounds (JVM, networking, platform architecture, etc.). This always uncovered potential problems –and did so early on before they became big problems that were expensive to fix.</li>
<li>Understand Emerging Threats. Pay attention to the type of exploits that are popular, and make sure you’re not helping the bad guys. Designate one person on your team to stay up to date on the current security trends and put her/him in the code review. A great place to start is by visiting the <a href="https://www.cert.org/" target="_new">CERT website</a> frequently and becoming familiar with all the resources they offer. In addition, all major platform and OS providers publish security updates from time to time as issues are uncovered.</li>
<li>Use Static Analysis Tools. Static code analysis can really help locate many kinds of software validation and reliability problems, including many memory problems. Some examples of companies that provide these products include: <a href="http://www.klocwork.com/landing/static-analysis/index-v1.php?gclid=CJjgweHW0LMCFelFMgodXDUA6g" target="_new">Klocwork</a> and <a href="http://www.coverity.com/" target="_new">Coverity</a>, <a href="http://www.parasoft.com/jsp/home.jsp">Parasoft</a>, and <a href="http://vericode.com/" target="_new">Vericode</a>. A more complete list can be found here: <a href="http://www.cert.org/secure-coding/tools.html" target="_new">http://www.cert.org/secure-coding/tools.html</a></li>
</ol>
<p>If you’re doing all these things, you’re actually doing pretty well. You’ve got a solid design, you’re following a secure coding standard, you’ve got someone keeping an eye out for potential security exploits, and you’re conducting design reviews and running static analysis tools on a regular basis. You’ve got the design side covered pretty well. Now let’s look at some specific code issues that can cause problems.</p>
<h3><strong>Code Security at Development Time</strong></h3>
<p>Most of the following examples demonstrate some of common problems found in native C and C++ development. Web developers and Java developers can still benefit as the concepts behind the problems are valid in many languages. In the Additional Resources section below, I provide links to specific Web and Java resources for code security.</p>
<ol>
<li>
<h3><strong>Application Frameworks</strong></h3>
<p>Use application frameworks whenever possible. Frameworks hide a lot of the nasty memory management and secure network connection issues from the developer and reduce the possibility of making simple, but costly, mistakes. Fortunately, the BlackBerry platform supports a lot of great developer frameworks, both from BlackBerry (such as the <a href="https://developer.blackberry.com/devzone/design/bb10/sharing_and_the_invocation_framework.html" target="_new">Invocation and Share Framework</a>, and the <a href="https://developer.blackberry.com/cascades/" target="_new">UI Framework Cascades</a>) and through <a href="https://developer.blackberry.com/devzone/develop/platform_partners/" target="_new">BlackBerry’s Platform Partners</a>.</li>
<li>
<h3><strong>Memory Management</strong></h3>
<p>Aside from the obvious allocation of memory insufficient for the data you’re writing into it, there’s a common issue people new to C and C++ sometimes experience regarding memory management. The problem occurs when you confuse which action you use to release the memory you’ve allocated.</p>
<p>Using Cascades will reduce the likelihood of memory management problems because it hides all the messy details for you within the framework. However, if you must allocate memory yourself for your app, keep the following tip in mind.</p>
<p>There are two main C functions for allocating memory: malloc() and calloc(). Use malloc() when you don’t care about initializing the data in memory. Use calloc() if you want to initialize the memory to 0. The important thing to remember is when using either malloc() or calloc(), you must use the function free() to release the memory and give it back to the system.</p>
<p>In contrast, when using the C++ method new() to create a new object, you must use the corresponding delete() method. Nothing good can happen when you call free() on memory you’ve created using new().</li>
<li>
<h3><strong>Function Safety</strong></h3>
<p>The QNX platform provides a number of preferred C functions that are safer to use than the more commonly known standard functions. A subset of these is shown in the table below. You can find the complete list in the BlackBerry Native SDK online docs (referenced in Additional Resources section below).</p>
<p>As with memory management, using an application framework helps with function safety as well. For instance, the Cascades classes such as QString and QByteArray protect you from many of these problems as well.</p>
<p>As you’ll see in these examples, most of the serious problems occur when buffers you’re reading into or writing out to are not large enough to take the data. These functions below help you from over-writing some of the time. You should always perform bounds checking if you want to be on the safe side.</p>
<table border="2" cellpadding="10">
<tbody>
<tr>
<th>Unsafe Function(s)</th>
<th>Preferred Function(s)</th>
<th>Comments</th>
</tr>
<tr>
<td>
<pre>strcpy() and strncpy()

strcat() and strncat()</pre>
</td>
<td>
<pre>strlcpy() and strlcat()</pre>
</td>
<td>The function strlcpy() copies strings and the function strlcat() concatenates strings. They&#8217;re designed to be safer, more consistent, and less error-prone replacements for strncpy() and strncat().<br />
Unlike those functions, strlcpy() and strlcat() take the full size of the buffer (not just the length) and guarantee to NUL-terminate the result (as long as the size is larger than 0 or, in the case of strlcat(), as long as there&#8217;s at least one byte free in the destination string).<br />
There also exist &#8220;wide&#8221; versions of these functions that are equally dangerous: wcscpy(), but there is no &#8220;l&#8221; safe version to use, only wcsncpy() which does not necessarily NUL-terminate the output. Care must be taken to ensure the output buffer is NUL-terminated.</td>
</tr>
<tr>
<td>
<pre>sprintf() and vsprintf()</pre>
</td>
<td>
<pre>snprintf() and vsnprintf()</pre>
</td>
<td>The snprintf() function is similar to fprintf(), except that snprintf() places the generated output (up to the specified maximum number of characters) into the character array pointed to by buf, instead of writing it to a file. The snprintf() function is similar to sprintf(), but with boundary checking. A null character is placed at the end of the generated character string.</td>
</tr>
<tr>
<td>
<pre>gets()</pre>
</td>
<td>
<pre>fgets(buf, n, fp)</pre>
</td>
<td>The fgets() function reads a string of characters from the stream specified by <i>fp</i>, and stores them in the array specified by <i>buf</i>, limited to size <i>n</i>.</td>
</tr>
<tr>
<td>
<pre>getwd()</pre>
</td>
<td>
<pre>getcwd(buffer, size)</pre>
</td>
<td>The getcwd() function returns the name of the current working directory. buffer is a pointer to a buffer of at least size bytes where the NUL-terminated name of the current working directory will be placed. The maximum size that might be required for buffer is PATH_MAX + 1 bytes</td>
</tr>
</tbody>
</table>
</li>
<li>
<h3><strong>Structures</strong></h3>
<p>Structures in C and C++ are aggregated types that define and contain other data elements within them. The elements of a structure cannot be re-ordered by the compiler. Modern compilers do use a variety of methods to minimize the security risk of stack-buffer overflows such as stack canaries, address-space layout randomization, re-ordering the local variables within a function, among other things. However, since the compiler can’t re-order the elements within your structures, the possibility of a buffer overflow on one of your elements affecting function parameters or local variables remains. Consider the following example:</p>
<pre>struct _JOB {
            char name[64];
                        char title[64];
            DATE startdate;
            DATE enddate;
            WAGE salary;      
        } JOB, *PJOB;</pre>
<p>The buffers name and title can both overrun. Since they’re placed on the stack first, the elements defined after them in the structure and on the stack itself can be affected. For this reason, care should be given when defining the elements in a structure. The next example shows a structure that&#8217;s defensively designed:</p>
<pre>struct _JOB {
            DATE startdate;
            DATE enddate;
            WAGE salary;  
            char name[64];    // Buffers placed at end 
                        char title[64];   // of struct definition

        } JOB, *PJOB;</pre>
<h3><strong>Recommendations for using structures</strong></h3>
<p>When dealing with structures that contain fixed-width buffers or arrays designed to receive data that&#8217;s controlled or influenced by a user:</p>
<ul>
<li>Buffers and arrays in structures should be grouped at the end of the structure</li>
<li>Local variables declared as structures should be declared after local buffers but before any other local variables</li>
<li>Global variables declared as structures should be declared before any global buffers and arrays and after any other global variables</li>
<li>Pointers to structures do not need any special consideration</li>
<li>Where practical, try to minimize the number of local variables cast as structures with buffers and arrays as elements</li>
</ul>
</li>
<li>
<h3><strong>Macros</strong></h3>
<p>Macros are one of my favorite mechanisms in C and C++. I love using them; however, you have to be very careful as they can get you into trouble. Macros are defined through the use of the #define preprocessor directive and when processed, literally expand in your source code prior to compilation. If IDE’s could show you what the processed source code looked like (maybe some do?), then I suspect we’d see fewer problems. Consider the following example that demonstrates the issue:</p>
<pre>#define CUBE (x*x*x)
…
int x = CUBE (5-2)</pre>
<p>In this example, you might expect that you’re going to get the cube of 3 which is 27. However, when the preprocessor expands the macro, normal operator precedence rules apply. So, here’s how that the value of x will be calculated:</p>
<pre>CUBE(5-2) = (5 – 2*5 – 2*5 – 2)
CUBE(5-2) = (5 – 10 -10 -2)
CUBE(5-2) = -17</pre>
<p>Therefore, to protect against this problem, the macro can easily be defined using parentheses as in:</p>
<pre>#define CUBE(x)   (x)*(x)*(x)</pre>
<p>In this example, we’ve seen how operator precedence rules can get you into trouble with macros. There are other problems such as the importance of white space when defining macros, using macros in if statements, and self-referencing macros to name a few. Provided you think about how the macro will expand in your source and you consider how the arguments you pass to macros will be interpreted in that expansion, you should be fine.</li>
<li>
<h3><strong>Integers (signed, unsigned) and Enumerations</strong></h3>
<p>Another common problem that can expose serious threats to your code involves integer overflow or underflow. This can happen when care is not taken with integers. The following code fragment demonstrates how serious this problem can be (recall our discussion about buffer sizes above):</p>
<pre>int buffLen = 0;
printf(“[buf] %d %u\n”, buffLen, buffLen);
buffLen = -1;
printf(“[buf] %d %u\n”, bufflen, bufflen);</pre>
<p>Executing this code gives:</p>
<pre>[buf] 0 0
[buf] -1 4294967295</pre>
<p>In this example, I forced the value of bufLen to be -1 for demonstration purposes. But, it’s easy to imagine a simple arithmetic error in a length calculation to be off by one.</p>
<p>Similar problems arise with the use of Enumerations. Not all compilers use the same kind of “int” for Enumerated types. So, you need to be careful when using Enumerations. Make sure you know how your compiler treats them. If your compiler uses signed integers by default (such as Microsoft Visual C++ and ARMCC), it’s not possible to create an unsigned enumeration as the value will be overflow the signed int (for example, you can’t set the enumerated value to be 0xffffffff).</li>
</ol>
<h3><strong>Summary</strong></h3>
<p>Though we’ve just scratched the surface of this topic, we’ve discussed a number of things developers can do to protect their code from security problems.</p>
<p>We’ve explored good practices developers can adopt at design time, such as:</p>
<ul>
<li>Design with security in mind</li>
<li>Follow a Secure Coding Standard</li>
<li>Perform Design Reviews</li>
<li>Understand Emerging Threats</li>
<li>Use Static Analysis Tools</li>
</ul>
<p>We’ve also looked at some common coding mistakes that can lead to security problems and discussed how the code can be fixed to avoid these problems. We’ve seen how leveraging Application Frameworks (like Cascades) can greatly reduce security problems. As an app developer, you have a responsibility to protect your user’s identity and sensitive data as best you can from attackers seeking to exploit it. The content in this blog post should help you get started with some good practices and links to learn more.</p>
<p>For more information on application security, additional examples, and deeper analysis, please refer to the additional resources below.</p>
<h3><strong>Additional Resources</strong></h3>
<ul>
<li>BlackBerry Native SDK Online Docs. <a href="http://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.security/topic/security_overview.html" target="_new">Security Considerations for Native Application Development</a></li>
<li>QNX Online Docs, <a href="http://www.qnx.com/download/feature.html?programid=20984" target="_new">Neutrino C Library Reference</a></li>
<li>Chad Tetreault, <a href="http://devblog.blackberry.com/2012/10/say-it-aint-soauth/" target="_new">Say It Aint S’OAuth</a>, in BlackBerry Dev</li>
</ul>
<p><strong>Blogs</strong></p>
<ul>
<li>Software Engineering Institute | Carnegie Mellon <a href="http://www.sei.cmu.edu/" target="_new">http://www.sei.cmu.edu/</a></li>
<li>Seacord, Robert. The CERT C Secure Coding Standard, Addison Wesley, 2008</li>
<li>Seacord, Robert. Secure Coding in C and C++, 2nd Edition, Addison Wesley, 2013.</li>
<li>Mark Dowd, John McDonald, Justin Schuh, The Art of Software Security Assessment</li>
</ul>
<h3><strong>Acknowledgements</strong></h3>
<p>I’d like to thank Robert Seacord for taking the time to read an early draft of my blog and provide helpful feedback. Robert is a senior analyst in the CERT Program at the Software Engineering Institute (SEI) in Pittsburgh, PA where he leads the Secure Coding Initiative and is author of a number of books on Secure Programming. I’d also like to thank the BlackBerry Security team for their insightful comments and suggestions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13491/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13491&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/application-security-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/649c096f0b8996184db6d0509771ecfb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lmcdunna</media:title>
		</media:content>
	</item>
		<item>
		<title>Application Security Part I: Whose Responsibility Is It?</title>
		<link>http://devblog.blackberry.com/2012/12/application-security-part-1/</link>
		<comments>http://devblog.blackberry.com/2012/12/application-security-part-1/#comments</comments>
		<pubDate>Thu, 06 Dec 2012 19:05:24 +0000</pubDate>
		<dc:creator>lmcdunna</dc:creator>
				<category><![CDATA[Adobe AIR Development]]></category>
		<category><![CDATA[Android Development]]></category>
		<category><![CDATA[BlackBerry World]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Platform Services]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Assets]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[MDM]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12486</guid>
		<description><![CDATA[This is the first post in a two part series about security. In this post, I tackle the issue of responsibility. In Part II, we’ll explore some things that developers need to know to help them write secure apps. I sat on a panel recently at Sprint’s Open Solutions Conference in San Jose titled “Consumer [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12486&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-12575" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/12/bbjamasia2012_hands-on_labs_img_2856-e1354820632548.jpg?w=600&#038;h=400" height="400" width="600" /></p>
<p>This is the first post in a two part series about security. In this post, I tackle the issue of responsibility. In Part II, we’ll explore some things that developers need to know to help them write secure apps.</p>
<p>I sat on a panel recently at Sprint’s Open Solutions Conference in San Jose titled “<a href="http://developer.sprint.com/dynamicContent/devcon2012/overview/6?sliderId=0&amp;sortOrderId=1" target="_new">Consumer Application Security for Developers</a>”. Sexy topics like application security rarely pack a session hall at any conference and this was no exception. However, the attendance was much higher than I expected (about 30 people) and the discussion was very lively and interactive. It was immediately clear to me that developers &#8211; perhaps as consumers themselves &#8211; are thinking more about security than they had in the past. This is a good thing.</p>
<h3><strong>Whose Problem is Security?</strong></h3>
<p>One of the first questions that came up in the panel was: “Whose problem is security?” Our moderator suggested a number of potential “owners” for this problem and posed the question to his panel. Is it the carrier’s problem? How about the Handset OEM? The OS? Your employer’s IT admin? The app developer? The consumer? As you can see, there are a lot of parties to point fingers at when something goes awry.</p>
<p>I couldn’t help but jump on this one first. The answer is obvious: Security is everyone’s responsibility. Each player in the mobile device value chain is responsible for providing a secure environment over the part they control. At its most fundamental level, security is about protecting valuable assets from those who seek to steal or exploit them. You wouldn’t leave your house in the morning without locking the door, right? Even greater diligence is required in the digital world because the value can be greater, and the thieves are invisible.</p>
<p><span id="more-12486"></span></p>
<h3><strong>Security is everyone’s responsibility</strong></h3>
<p><strong>The Carrier:</strong> The carrier is responsible for providing a network that is secure from being attacked, snooped, or otherwise compromised. As carriers reduce their investments in their own app catalogs, their responsibility with app security lessens but responsibility for cellular and data network integrity remains.</p>
<p><strong>The Device:</strong> The device’s operating system (OS) is at the center of security. The OS’s responsibility is to provide a secure environment for all applications, services, data storage, and network connectivity. The OS is responsible for handling permissions and defending against viruses and malware. Attackers primarily seek to exploit weaknesses in the OS or in its core applications such as web browsers. This is why it’s so important to design security into the OS when it’s being architected and built. Platform providers that offer App Stores have an additional responsibility to ensure that the apps it stocks in its store are safe from malware and abuse like piracy. It should be no surprise to anyone that RIM takes the issues of security very seriously.</p>
<p><strong>The IT Administrator:</strong> The number one responsibility of IT at any high-tech company is protecting the company’s Intellectual Property (IP) –it’s like the crown jewels of the company’s value. In a world where IT administrators directly managed the mobile devices that had access to the company’s jewels, their ability to protect them was pretty clear. However, with today’s BYOD trend, their ability to protect the company’s assets and IP has become less clear. Only RIM has addressed this uncertainty and given control back to IT administrators and CIOs with its <a href="http://us.blackberry.com/business/software/blackberry-mobile-fusion.html#tab-1" target="_new">BlackBerry Mobile Fusion</a> (IT’s MDM Portal) and <a href="http://us.blackberry.com/business/software/blackberry-balance.html#tab-1" target="_new">BlackBerry Balance</a> (the client side partitioning; controlled by a simple gesture). With these products and services, IT administrators can enforce corporate security policies and manage remote devices with confidence.</p>
<p><strong>The App Developer:</strong> App developers have a responsibility too. It’s their job to build an application that can’t be exploited by attackers and protects sensitive information that the user provides. Strong operating systems provide many mechanisms for app developers to ensure their app isn’t the “unlocked window” that gains access to someone’s identity or bank account. App developers need to think about security as an end-to-end problem. This includes making secure network connections, encrypting local data on the device, and ensuring servers with sensitive customer data are adequately protected from attack.</p>
<p><strong>The Consumer:</strong> Consumers need to be mindful as well. Use device passwords (and not “1234”) and, perhaps most important of all, be suspicious of applications asking for permissions to access files, social networks, and your contact list. RIM offers a great product for consumers called <a href="http://us.blackberry.com/apps/blackberry-apps/protect.html" target="_new">BlackBerry Protect</a> that helps keep the information on your device backed up and secure should your device get lost or stolen. BlackBerry Protect also allows you to wipe all the data off your device remotely as well as display an alert message on the home screen should you lose your BlackBerry device.</p>
<h3><strong>Why is BlackBerry 10 so secure?</strong></h3>
<p>BlackBerry 10, RIM’s upcoming mobile computing platform, is built on QNX’s Real-Time Operating System. Sebastien Marineau, VP of OS Platforms at RIM, wrote a great article recently titled “<a href="http://www.techradar.com/news/phone-and-communications/mobile-phones/how-blackberry-10-avoids-androids-security-issues-1103381" target="_new">How BlackBerry 10 avoids Android’s Security Issues</a>”. In the article, Sebastien notes that the QNX RTOS has approximately 100,000 lines of code whereas a standard Linux implementation is around 14 million lines of code. QNX is 1% the size of Linux. When it comes to security, the fewer places where bugs and security exploits can hide, the better! Because QNX is so tight, and because it’s been designed with security in mind from day 1, it’s extremely hard to break in.</p>
<p>In addition, BlackBerry 10 includes BlackBerry Balance: a new, unique, and innovative capability that allows consumers to enjoy the full range of both a personal mobile device and a secure, encrypted work device without compromising on either one. No other mobile device can do this. With one simple gesture, the user can switch the device from “Personal” mode (wide open with all their apps, music, media, etc.) to “Work” mode (fully secure as if on your work’s VPN). Using BlackBerry Mobile Fusion, IT administrators can manage their company’s devices remotely and securely (including Android and iOS devices!).</p>
<p>In this blog post, we explored the responsibility of security &#8212; who owns what piece and why it’s so important. My next post on this topic, titled “Application Security Part II: What Should App Developers Do?” will explore different things developers can do to make sure they’re writing solid, high quality, secure mobile applications.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12486/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12486&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/12/application-security-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/649c096f0b8996184db6d0509771ecfb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lmcdunna</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/12/bbjamasia2012_hands-on_labs_img_2856-e1354820632548.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
	</channel>
</rss>
