Extracting XAP - Windows Phone 8 Q&A, Help & Troubleshooting

Hey Guys,
is there a way to open xap files and edit them?
On WP7 you can rename the xap to zip and open them but now this wont work with UniExtract, 7-zip and WinRar
Is this way not possible in WP8?

DarkD1988 said:
Hey Guys,
is there a way to open xap files and edit them?
On WP7 you can rename the xap to zip and open them but now this wont work with UniExtract, 7-zip and WinRar
Is this way not possible in WP8?
Click to expand...
Click to collapse
This was said many times over and over again, and here it is yet again: XAPs from the store are encrypted and thus can't be opened with archivers... You'd first need to decrypt them, but there's no way of doing that ATM, so you're stuck with either homemade XAPs or those pulled from an unlocked phone (since the phone decrypts them before installation). Other than that little encryption problem, you can still open them with various archivers.

DaviUnic said:
This was said many times over and over again, and here it is yet again: XAPs from the store are encrypted and thus can't be opened with archivers... You'd first need to decrypt them, but there's no way of doing that ATM, so you're stuck with either homemade XAPs or those pulled from an unlocked phone (since the phone decrypts them before installation). Other than that little encryption problem, you can still open them with various archivers.
Click to expand...
Click to collapse
ok thanks, sry for my Question.

No problem, it's just that this was asked and answered so many times already.

Related

How to unpack apk file

Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
alex_time said:
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
Click to expand...
Click to collapse
apks are just zip files. Set them to open with your archive manager or change the extension to .zip. All applications install their settings into /data/data/%PACKAGENAME% where %PACKAGENAME% is the Java-style package name of the app.
Ugh, no need to use the evil "R" word here. You're going to give us nightmares!
Each application stores its configurations/settings in its home directory in /data/data as pointed out by the previous poster. You might want to bone up on 'sqlite3' as most configuration settings tend to be stored in such databases.
alex_time said:
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
Click to expand...
Click to collapse
I'am trying right now to find this confing files, thanks, I'll let you know if it's ok.
Note that depending on what you are trying to do, the config files may or may not be able to adjust the property you're after. No matter what, the program itself must support what you are trying to do (this goes for ALL OS's -- you simply can't change something that is irrelevant and expect it to do what you want) and more often than not, the ability to adjust that property would be presented by the program itself.
That is, of course, not to say that manually adjusting the config files is useless, because there IS a lot you can do directly from the config files.
alex_time said:
I'am trying right now to find this confing files, thanks, I'll let you know if it's ok.
Click to expand...
Click to collapse
Er, delete please
Modify an " .apk " file in " .exe " file
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
ccpgclap said:
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
Click to expand...
Click to collapse
No, they have absolutely nothing in common.
Modify an " .apk " file in " .exe " file
Originally Posted by ccpgclap View Post
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
Originally Posted by RubenGM View Post
No, they have absolutely nothing in common.
Originally Posted by ccpgclap View Post
But I have found this and it doesn't work ....
Download APK2EXE and NSIS install system
Follow these steps to create your executable!
* Extract APK2EXE to a new directory
* Add your APK to the directory
* Doubleclick APK2EXE.NSI and edit the 3 lines containing information about your application.
* Right click the NSI file, and select 'Compile NSIS Script' - this will create your install EXE
* Done!
And it is a .apk to .exe converter !!!
Can anyone tell me why it doesn't work ? Many thanks
because your trying to run a Android application on Windows.
it's like saying I want to make this MAC application run on windows.. it just doesn't work..
I dont care what programs say.. Its not coded for Windows so it wont understand what the program does...
BTW you application you speak of is meant to install APK's FROM windows not TO windows
"Hot on the heels of my installAPK utility to let you install APKs from your Windows desktop, I now have another neat trick... which allows developers to distribute APKs as Windows EXE files instead."
boostnek9 said:
because your trying to run a Android application on Windows.
it's like saying I want to make this MAC application run on windows.. it just doesn't work..
I dont care what programs say.. Its not coded for Windows so it wont understand what the program does...
BTW you application you speak of is meant to install APK's FROM windows not TO windows
"Hot on the heels of my installAPK utility to let you install APKs from your Windows desktop, I now have another neat trick... which allows developers to distribute APKs as Windows EXE files instead."
Click to expand...
Click to collapse
shouldnt be too tough. just make a executable file that installs and configures adb, allows user to select apk or select a folder of apk's, create a .bat file that tells windows command prompt adb push the .apk to the sd card, then adb install /sdcard/nameofapk.apk
simple enough!
Can anyone tell me how to edit the app / extracted APK file to make the phone think it's a completely different app i.e. install it twice...
Not trying to cause trouble, I'm just looking to install an older version of an app as well as the updated version...
RichCowell said:
Can anyone tell me how to edit the app / extracted APK file to make the phone think it's a completely different app i.e. install it twice...
Not trying to cause trouble, I'm just looking to install an older version of an app as well as the updated version...
Click to expand...
Click to collapse
apk manager will let you
Asadullah said:
apk manager will let you
Click to expand...
Click to collapse
Thanks for replying, I've had a go with that and extracted / decompiled, compiled, signed, and that doesn't work, when I try to install the newly created apk it still tries to overwrite it...
I've watched the vid and read the comments but haven't worked it out yet... Can you point me in the right direction about which bit to edit?
i think you need apktool
Cool, I'll look into that... Any pointers on how to do it once I've got apktool?
command line usage, this tool unpak and repak

Cant install backups from Titanium?

Does anyone get the error when trying to restore an app backup:
"For security your phone is set to block installation of applications not sourced in the Android Market?"
What am I doing wrong? I've rebooted many times thinking it would clear it up. Thanks.
Your phone needs to have side loading enabled. Follow the steps here any method will work
Also this post is in the wrong section it should be in the QA section of general.
chasesavestheday said:
Does anyone get the error when trying to restore an app backup:
"For security your phone is set to block installation of applications not sourced in the Android Market?"
What am I doing wrong? I've rebooted many times thinking it would clear it up. Thanks.
Click to expand...
Click to collapse
Did you enable Sideloading?
There's an alternative way that requires no monkeying around with the structure of your phone and a lot less software on your computer.
I backed up my apps with Titanium. It basically zips the .apk's into .tgz formats; mount your usb to the computer and browse to the Titanium directory. Copy the .tgz files to your desktop, and use Winrar (or similar) to extract the .tgz files. (Note: once you extract them, the .apk files don't have the .apk file extension. Rename the extracted files to add the .apk)
Use the Sideload Wonder Machine to reinstall your programs, gotten from here.
http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
Worked very well for me. If anybody's interested in this method, I can do a more detailed tutorial.
jeromekobriger said:
There's an alternative way that requires no monkeying around with the structure of your phone and a lot less software on your computer.
I backed up my apps with Titanium. It basically zips the .apk's into .tgz formats; mount your usb to the computer and browse to the Titanium directory. Copy the .tgz files to your desktop, and use Winrar (or similar) to extract the .tgz files. (Note: once you extract them, the .apk files don't have the .apk file extension. Rename the extracted files to add the .apk)
Use the Sideload Wonder Machine to reinstall your programs, gotten from here.
http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
Worked very well for me. If anybody's interested in this method, I can do a more detailed tutorial.
Click to expand...
Click to collapse
But if you follow the steps to enable sideloading then you won't have to jump through these hoops to restore a backup. Plus your way may or may not restore any data associated with the apps.
You are correct, it did not reinstall the data. I apologize for not mentioning it. The only reason I mention doing it this way is because any of the five steps mentioned in the sideloading post, while easy for quite a few people, are not necessarily newbie friendly. It indeed has the drawback of not copying all the data over, only the app, but it seemed to me that it might be a little less intimidating to some people.

[Q] Re-Compressing Android ROM on OSX

Hi,
I just spent the past 3 hours downloading Rodriguez' MIUI mod on my computer because my connection is so slow. I usually download ROMS straight from my phone.
This time however, about an hour in, I realised that OSX Safari will unzip the ROM as soon as it finishes downloading automatically. I got into Preferences>General and change that setting, but it seems as though it didn't come into effect because I changed the setting whilst the download was in progress.
Anyway, is there any other way I can compress the ROM (which is now a folder) through any terminal commands either on the phone or on the computer?
I've already tried compressing it normally like any other folder with MM's Gingerbread ROM I downloaded yesterday. When I flashed it, I bootlooped so....
Oh and I can't download it again. I'm on the brink of going over my bandwidth allowance.
Thanks!
Well, You can use WinRAR like application for MAC (I Don't use OS X) so cant specify.
Select all the files and compress it to zip! Done!
Donate to me by clicking the Thanks if I helped you!
In theory, it would just be to compress it normally with the use of any archiver program which compresses to a .zip file. Not too familiar with OS X, so I cannot guide you into what program you'll need and how to do.
You need to re-compress the ROM files and sign the ZIP.
Jack_R1 said:
You need to re-compress the ROM files and sign the ZIP.
Click to expand...
Click to collapse
Forge94 said:
I've already tried compressing it normally like any other folder with MM's Gingerbread ROM I downloaded yesterday. When I flashed it, I
bootlooped so....
Click to expand...
Click to collapse
i think the issue is signing... Can someone tell us how to sign a rom on osx?
rassawyer said:
i think the issue is signing... Can someone tell us how to sign a rom on osx?
Click to expand...
Click to collapse
Signapk? But i think signing a rom is not neccesary anymore... Just turn off signature verification in recovery or use 4ext
I have had the same situation. Safari extracted the file automatically.
After waiting for 3 hours until the download completed, because the website is restricting my download speed to 100 kb/s.
I tried zipping and compressing the file both by a Windows system and a Mac. IT DID NOT WORK.
I have to download the file again.

Zip & Xap coruption in windows 8

Zip & Xap coruption in windows 8
I can zip. I can rename to xap and I can send to my phone and it works but when I try and extract I get error this is causeing a lot of headache and is happening on more than one zip file I have tried both versions of 7zip and WinRAR with no avail. searched the internet for days on end I cant figure out why this is happening.
OK, basic bug reporting steps here:
1: summarize the problem. All I got is that it has something to do with zips, xaps, WP8, and Win8.
2: explain what you're trying to do, what the expected result is and what actually happens (the screenshot helps with, but does not replace, this step).
3: give the steps to reproduce the problem. Do it as actual steps, not a run-on sentence with no details. For example, how are you sending the file to your phone?
GoodDayToDie said:
OK, basic bug reporting steps here:
1: summarize the problem. All I got is that it has something to do with zips, xaps, WP8, and Win8.
2: explain what you're trying to do, what the expected result is and what actually happens (the screenshot helps with, but does not replace, this step).
3: give the steps to reproduce the problem. Do it as actual steps, not a run-on sentence with no details. For example, how are you sending the file to your phone?
Click to expand...
Click to collapse
Okay this really has nothing to do with my phone. other than the fact that zip's can be turned in to xap files.
lets say I have a folder with some pictures in it I right click on it and hit add to archive ok now folder is zipped.
then I try to unpack it but I cant because its corrupted.. I can not extract the file or a pic I get this error.
I Have found only one other person having this error on 7-zip forum and he says in only one post he fixed an error he was having with his zip by turning off IDM. I honestly don't see how that's related.
I have lost files due to this error.
If you copy the file off the PC, can you open the archive on another machine?
jackrabbit72380 said:
Okay this really has nothing to do with my phone. other than the fact that zip's can be turned in to xap files.
lets say I have a folder with some pictures in it I right click on it and hit add to archive ok now folder is zipped.
then I try to unpack it but I cant because its corrupted.. I can not extract the file or a pic I get this error.
I Have found only one other person having this error on 7-zip forum and he says in only one post he fixed an error he was having with his zip by turning off IDM. I honestly don't see how that's related.
I have lost files due to this error.
Click to expand...
Click to collapse
OK so.
I take a folder, 7zip it to .zip
renamed .zip to .xap
Extracted file just fine, windows 8 x64 pro.
Soooooooooooooooooooo...update your 7zip?
Not even sure why you're asking this in a phone forum, but did it work to extract the files on another machine? The fact that sending XAPs to the phone wors suggests that the problem is with the decompressor on your PC, not the compressor.

[Q] How to extract a .xap file and view its contents ?

hello...
can anyone guide me how to extract an .xap file and view its contents ?
tried renaming the extension but that didnt work, so need some expert advice to solve this...
THANKS
Until a dev responds with the proper answer, I've found this by searching : http://www.solvusoft.com/en/file-extensions/file-extension-xap/
frosty.furious said:
hello...
can anyone guide me how to extract an .xap file and view its contents ?
tried renaming the extension but that didnt work, so need some expert advice to solve this...
THANKS
Click to expand...
Click to collapse
XAP file is simply a zip file, so open with Windows Explorer or WinZip, WinRar, etc..
Well, unless it's a .XAP from the store. Then it's a Windows PlayReady container full of DRM-encrypted data which *probably* decrypts to ZIP format (but might not).
We can't open those at this time (except by having the phone install them, obviously).
anaheiim said:
XAP file is simply a zip file, so open with Windows Explorer or WinZip, WinRar, etc..
Click to expand...
Click to collapse
i couldnt do that so simply ?
did you try it anytime ?
LOL, yes, with 1200 posts (including possibly *the* most popular one on this whole forum section) and 850 Thanks, I'm quite sure @anaheiim knows of what he speaks.
You, on the other hand, are almost certainly trying to open a .XAP from the store, didn't read *MY* post for some reason, and also didn't do much searching or other forms of research before beginning. As I said, Store XAPs are encrypted with PlayReady DRM, and we don't currently know how to decrypt them.

Categories

Resources