Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Arktronic
Old
(Last edited by Arktronic; 17th May 2012 at 08:02 PM.)
#1  
Arktronic's Avatar
Recognized Developer - OP
Thanks Meter 47
Posts: 810
Join Date: Dec 2006

 
DONATE TO ME
Default [SDK] LiveLibs ~ auto-updating code in your apps!

LiveLibs is an SDK that you can use in your apps. It allows you to have automatically updating code written in JavaScript. And yes, it'll even pass Marketplace approval. For more info, go here:

LiveLibs.com

Alpha 2 changes:
- Completely changed over from IronRuby to Jurassic (JavaScript) engine
- Improved security (hints and libraries are signed; lib.xml contains more verification data)
Phones: Nokia 6800 Typhoon (SMT5600) ► Hermes (TyTN) ► Raphael (Fuze) ► Samsung Focus Flash + Lumia 710
Tablets: B&N NOOKcolor
Tweet @Arktronic

Want to ping or do DNS and WHOIS lookups on WP7? Get my Network Suite app! Want to have self-updating code in your own WP7 apps? Check out LiveLibs.

"Ну, чумадан, погоди!"
The Following 3 Users Say Thank You to Arktronic For This Useful Post: [ Click to Expand ]
 
Arktronic
Old
(Last edited by Arktronic; 17th May 2012 at 08:03 PM.)
#2  
Arktronic's Avatar
Recognized Developer - OP
Thanks Meter 47
Posts: 810
Join Date: Dec 2006

 
DONATE TO ME
(Reserved)
Phones: Nokia 6800 Typhoon (SMT5600) ► Hermes (TyTN) ► Raphael (Fuze) ► Samsung Focus Flash + Lumia 710
Tablets: B&N NOOKcolor
Tweet @Arktronic

Want to ping or do DNS and WHOIS lookups on WP7? Get my Network Suite app! Want to have self-updating code in your own WP7 apps? Check out LiveLibs.

"Ну, чумадан, погоди!"
 
dkp1977
Old
#3  
dkp1977's Avatar
Senior Member
Thanks Meter 106
Posts: 1,204
Join Date: Oct 2009
Location: Stolberg

 
DONATE TO ME
Even though I do respect all the effort you may have put in this project, I'm still not too sure about it. As we've already seen and learned from Android and even iOS there's always the risk of a misuse of such an updating method as unauthorized code can be injected. I rather wait for updates to pass the official certification ways than let my apps update on their own and not knowing what exactly was downloaded.
Join the WinPhan! movement

Device: Nokia Lumia 920

Foursquare: Mark Tepper
Skype: MTe1977
Windows Live: m.tepper@live.de
Facebook: Mark Tepper
Twitter: BinaerForceOne
XBox Live: dKp1977
 
Arktronic
Old
#4  
Arktronic's Avatar
Recognized Developer - OP
Thanks Meter 47
Posts: 810
Join Date: Dec 2006

 
DONATE TO ME
You are right. With alpha 1 there is a risk of a MitM attack causing apps to download something they shouldn't. However, the framework is already in place to mitigate that - I just haven't had time to implement it fully.

All library ZIP files are signed on the server side with the LiveLibs private key, and the signature is checked by the SDK upon download. Starting with alpha 2, hints will also be signed, which will ensure that erroneous updates are never downloaded.

Also, you don't have to trust the LiveLibs.com site to do the updating. The SDK lets you specify alternate URLs for hints and for libraries.
Phones: Nokia 6800 Typhoon (SMT5600) ► Hermes (TyTN) ► Raphael (Fuze) ► Samsung Focus Flash + Lumia 710
Tablets: B&N NOOKcolor
Tweet @Arktronic

Want to ping or do DNS and WHOIS lookups on WP7? Get my Network Suite app! Want to have self-updating code in your own WP7 apps? Check out LiveLibs.

"Ну, чумадан, погоди!"
 
GoodDayToDie
Old
#5  
Recognized Developer
Thanks Meter 1372
Posts: 3,579
Join Date: Jan 2011
Location: Seattle
Just stumbled across this link from your sig. Very cool idea. However, I want to know: have you tested it on a developer-locked phone? Dev-unlock allows the phone to execute code that doesn't have a Microsoft signature (Marketplace apps receive this on all DLLs) but user-replaced or self-compiled binaries won't have that signature. I don't know exactly how your libs worked, but from the look of things (based on your choice of languages) you're looking at monkey-patching the code in place. That's a cool idea, and may well get through Marketplace ingestion, but as soon as the patching is used, you'll have a file without a valid Marketplace signature, and the app won't run anymore...

At least, that's my guess on what would happen. If you can get around that, it would be incredible. That would provide a way to run homebrew code on dev-locked Windows Phones...
Win8/Windows RT Projects:
EnableFlash script
List of desktop apps for hacked RT devices

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.
 
Arktronic
Old
#6  
Arktronic's Avatar
Recognized Developer - OP
Thanks Meter 47
Posts: 810
Join Date: Dec 2006

 
DONATE TO ME
The way it worked with IronRuby is the Ruby code was interpreted on the fly. With Jurassic, the JavaScript is compiled into anonymous classes (IIRC from docs/forums on Jurassic.codeplex.com) and executed w/o ever creating separate assemblies. In other words, there's no monkey patching - just live emitted code via Reflection.Emit and similar methods. I'm in the process of getting alpha 2 ready for release now, actually.
Phones: Nokia 6800 Typhoon (SMT5600) ► Hermes (TyTN) ► Raphael (Fuze) ► Samsung Focus Flash + Lumia 710
Tablets: B&N NOOKcolor
Tweet @Arktronic

Want to ping or do DNS and WHOIS lookups on WP7? Get my Network Suite app! Want to have self-updating code in your own WP7 apps? Check out LiveLibs.

"Ну, чумадан, погоди!"
 
sensboston
Old
#7  
Recognized Developer
Thanks Meter 321
Posts: 1,250
Join Date: Nov 2009
Location: Boston, MA

 
DONATE TO ME
Hmm, it's sounds quite interesting! However it's not a way to get an interop-unlock. Also (from the marketing side) it has another cons: an official updates via marketplace for some reasons are increasing number of app customers/downloads (so, good idea - if you have ads-based app - to publish updates at least monthly) but silent, "self-update" I afraid will not.
 
Arktronic
Old
#8  
Arktronic's Avatar
Recognized Developer - OP
Thanks Meter 47
Posts: 810
Join Date: Dec 2006

 
DONATE TO ME
There's no reason to stop doing proper Marketplace-based updates. The biggest benefit of LiveLibs is the ability to quickly crush bugs instead of having to wait for Marketplace approval while your users complain and give your app bad ratings because of some simple bug.
Phones: Nokia 6800 Typhoon (SMT5600) ► Hermes (TyTN) ► Raphael (Fuze) ► Samsung Focus Flash + Lumia 710
Tablets: B&N NOOKcolor
Tweet @Arktronic

Want to ping or do DNS and WHOIS lookups on WP7? Get my Network Suite app! Want to have self-updating code in your own WP7 apps? Check out LiveLibs.

"Ну, чумадан, погоди!"
 
sensboston
Old
#9  
Recognized Developer
Thanks Meter 321
Posts: 1,250
Join Date: Nov 2009
Location: Boston, MA

 
DONATE TO ME
Quote:
Originally Posted by Arktronic View Post
There's no reason to stop doing proper Marketplace-based updates. The biggest benefit of LiveLibs is the ability to quickly crush bugs instead of having to wait for Marketplace approval while your users complain and give your app bad ratings because of some simple bug.
Agree. But your code also may have a bugs so it's still not an easy decision: should I add that app's overhead or better to spend more time/money for beta-testing
 
Arktronic
Old
#10  
Arktronic's Avatar
Recognized Developer - OP
Thanks Meter 47
Posts: 810
Join Date: Dec 2006

 
DONATE TO ME
That, my friend, is entirely up to you
Phones: Nokia 6800 Typhoon (SMT5600) ► Hermes (TyTN) ► Raphael (Fuze) ► Samsung Focus Flash + Lumia 710
Tablets: B&N NOOKcolor
Tweet @Arktronic

Want to ping or do DNS and WHOIS lookups on WP7? Get my Network Suite app! Want to have self-updating code in your own WP7 apps? Check out LiveLibs.

"Ну, чумадан, погоди!"

 
Post Reply+
Tags
javascript, livelibs, sdk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more