Micromax Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Chainfire Turns Your Bootanimation into a Logging Center

Having a nice boot animation certainly adds a little bit of aesthetic polish to your … more

Android TV Launcher Pushed to Google Play

Over the past decade, the tech universe has seen two drastic and widely contrasting changes with … more

Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Windows Phone 7 - Introduction to the .xap (replaces .cab)

OP Da_G

21st March 2010, 09:41 AM   |  #1  
Da_G's Avatar
OP Moderator Emeritus / Senior Recognized Developer
Flag Riverside, CA
Thanks Meter: 1,533
 
3,298 posts
Join Date:Joined: Aug 2007
Donate to Me
More
So, with WP7, we lose all support for the .cab and associated API as it exists now. Replacing it is the .xab format.

What's a .xap?

A .xap is a simple, every day .zip file, renamed to .xap. Inside, it contains the app and all relevant dependencies. There are a number of possible .xml files that could be included inside the .xap to determine things like required security access level, to tell the system which .dll contains the main() for the application, etc.

I believe the .zip also provides a container for the virtual filesystem available to the app (not sure on that, it may be stored in a separate container, have to analyze more)

At least initially, .xaps will only be available for deployment through the Marketplace.

Regarding preloaded applications by OEM/MO: Requirements are much more strict in this regard now due to frequent end-user complaints about "slow, laggy, etc" Stock ROMs. I know every one of you reading this knows what I mean Preloaded App Requirements (which will be distributed as .xap) as follows:
  • Maximum of 6 preloaded applications on the device, not to exceed 60MB
  • All preloaded apps must pass Marketplace submission process (some extended APIs are available to OEM/MO so the process is slightly relaxed in that regard)
  • The application(s) and all future updates must be free of charge.
  • The apps must launch without dependency on network availability.
  • The apps must persist through a "hard reset".
  • The apps must be updatable and revocable (!!!!) through the Marketplace.
  • The apps must notify the user at first launch of any capabilities to be utilized and get user consent (to access compass, accelerometer, network, etc.)
I've attached a .xap to this post for your examination. It's renamed to .zip for the attachment system to allow it.
Attached Files
File Type: zip Convert.zip - [Click for QR Code] (56.2 KB, 3557 views)
Last edited by Da_G; 21st March 2010 at 11:59 PM. Reason: typos, .xab -> .xap
21st March 2010, 09:54 AM   |  #2  
NRGZ28's Avatar
Retired Senior Mod & Senior RD - (old) King of WinMo
Flag XDA-Developers
Thanks Meter: 10,027
 
10,467 posts
Join Date:Joined: Apr 2007
More
Hehe.. this reminds of the "widgets" for Vista and 7 or the "apk"s for Android. Same stuff it sounds like Thanks for the info master Da_G
21st March 2010, 01:15 PM   |  #3  
l3v5y's Avatar
Retired Senior Moderator
Flag Bristol
Thanks Meter: 38
 
7,390 posts
Join Date:Joined: Sep 2007
Donate to Me
More
Does this mean .cab.pkgs are being changed too?
21st March 2010, 10:46 PM   |  #4  
Da_G's Avatar
OP Moderator Emeritus / Senior Recognized Developer
Flag Riverside, CA
Thanks Meter: 1,533
 
3,298 posts
Join Date:Joined: Aug 2007
Donate to Me
More
The .cab.pkg format remains intact for imageupdate (actually I haven't examined it in depth just yet, but all indications are that they have not changed .cab.pkg format)
20th April 2010, 11:20 PM   |  #5  
Da_G's Avatar
OP Moderator Emeritus / Senior Recognized Developer
Flag Riverside, CA
Thanks Meter: 1,533
 
3,298 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Bump for visibility
21st April 2010, 11:34 AM   |  #6  
Senior Member
Flag Someplace in CT
Thanks Meter: 150
 
1,574 posts
Join Date:Joined: Jun 2006
Donate to Me
More
Interesting...Wonder if there will be a process to convert some cabs to xabs.
21st April 2010, 12:22 PM   |  #7  
Junior Member
Thanks Meter: 2
 
22 posts
Join Date:Joined: Mar 2009
Highly unlikely. xab's are silverlight applications meaning you have to use xaml , c# code and libabries all in one small zipped file. Cab's are Cabinent files that has an inf file that specifes what libabries and files are going to be enclosed in the file. To put it simply a xab is a standalone application that does not require extraction or installation to run and a cab is an application which requires an extraction and for its contents to be placed in specific areas in order for the dependents to find and use them.

Also to clarify. Local storage for xab's are not defined or stored in the xab file. they are defined by the silverlight runtimes which is handled by the os. As of now since there is little information as to how the windows phone internal structure is (apart from us knowing that windows phone will utilised microsoft unified storage.). on windows 7 and windws vista after u install the silverliht runtimes all xab's that request local storage is stored in <SYSTEMDRIVE>\Users\<user>\AppData\LocalLow\Micros oft\Silverlight\is .. Just note silverlight local storage works just like flash local storage. the only exception so far for windows phone is that u will not be able to access a lot of local directories just predefined stuff like music, pictures and documents.
Last edited by msanda_77; 21st April 2010 at 12:31 PM.
25th April 2010, 07:50 PM   |  #8  
Member
Flag Cheltenham
Thanks Meter: 1
 
45 posts
Join Date:Joined: Jun 2009
More
Just before people get into bad habits; they are xap, not xab files. No relationship to cabs whatsoever save as a container format.
25th April 2010, 11:11 PM   |  #9  
Member
Thanks Meter: 0
 
66 posts
Join Date:Joined: Aug 2006
Quote:
Originally Posted by Da_G

Regarding preloaded applications by OEM/MO: Requirements are much more strict in this regard now due to frequent end-user complaints about "slow, laggy, etc" Stock ROMs. I know every one of you reading this knows what I mean Preloaded App Requirements (which will be distributed as .xap) as follows:
[*]Maximum of 6 preloaded applications on the device, not to exceed 60MB

That is just brain damaged. Pre-loaded apps add clutter, but they also cut down on cost. Choose your poison. Pre-loading has little to do with with speed penalties, when done properly. Frankly, if roms have the same ancient architecture under WM7, then Microsoft really needs some technical leadership replaced.
Quote:

[*]All preloaded apps must pass Marketplace submission process (some extended APIs are available to OEM/MO so the process is slightly relaxed in that regard)

Now this is where some quality review comes in. It all depends on how good the standards are, and I dare say they will seem lower and lower as time passes. Hell, they're already admitting that OEMs will have relaxed standards.
Quote:

[*]The application(s) and all future updates must be free of charge.

That's just silly. You'll get a bunch of lite software versions with next to zero shelf life instead of upgradable versions with marginal shelf life.
Quote:

[*]The apps must launch without dependency on network availability.

what does this even mean? Does that mean no internet based app can be installed? All it really means is you have to quit gracefully if the network isn't available.
Quote:

[*]The apps must persist through a "hard reset".

This is a good thing, but primarily a reflection of back when flash memory was in short supply. Haven't run into it in forever.
Quote:

[*]The apps must be updatable and revocable (!!!!) through the Marketplace.

Well, updateable is good...but revocable? Maybe removable would be more consumer friendly. Makes me think of the PS3.
Quote:

[*]The apps must notify the user at first launch of any capabilities to be utilized and get user consent (to access compass, accelerometer, network, etc.)

What I take from all of this is that
a) they want to drive more traffic through the marketplace.
b) they want to drive more traffic through Windows Certification

Good for the average consumer, great for Microsoft. Personally, the only point that has any value to me at all is a central marketplace. The rest of the bullets are ways for Microsoft to drive seperation between their brand name and many software vendor's crappy products.
26th April 2010, 12:34 AM   |  #10  
abumhmmd1's Avatar
Senior Member
Flag RIYADH
Thanks Meter: 211
 
2,065 posts
Join Date:Joined: Nov 2006
Donate to Me
More
ahhhha , sound interesting .

Post Reply Subscribe to Thread

Tags
xap
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes