XAP deletion when installing via browser - Windows Phone 7 Q&A, Help & Troubleshooting

The title kind of tells what Im thinking of here. Are the XAP's deleted automatically from taking space, and if not, where they are and whats the best way to delete them?

I believe, though I'm not sure, that the temp folder used for downloaded files is cleaned out regularly. The temp folder used by the installer is definitely wiped after installation succeeds.

Ok good and thanks for your reply. I started to think about this because I had a download interrupted and when I downloaded the XAP again, it was labelled name.xap[1]. Meaning of course that the previous unfinished file was still there at that point.

Related

AT&T Tilt Cab File Help

I have an AT&T tilt device and have replaced the phone skin on my device by editing the images on the phone. I can manually put the rebuilt files back on the phone without error. Everything works fine. I'v created a cab file install, to change the images in a more automated fashion. This also is working; however, the install is then recorded by the device and with each following install I'm warned of the already existing app. Keep in mind I'm not adding or removing any files just overwriting them. My questions are as follows.
Is there any way to install the files without the device recording the install?
Is there a way to supress the warning messages about the already installed software.
Is there a way to prompt the user to restart the device after an install.
i have never done these things myself (except removing the warning through a reg edit)
but they may be possible through "cab manager" here
I am using cab manager to create the cab files, I guess I was hoping someone with more experance with it could point me in the right direction.

Android app that roots your phone

Hi all I am putting together an android app that will making the rooting process much easier. This thread is discuss issues and suggestions with this app.
I have the app near done, the biggest problem is that I cannot format the sdcard as fat32. Is formatting to fat32 required. Why do we do this? What is the real need to do this?
I have not tested the app out yet, but so far this is how it has been put together. There is a main activity with textboxes that have the urls of the files needed to root (dreaimg.nbh, recovery.img, hardsplupdate.zip, JF_RC33update.zip) and there are buttons for each step in the process to download these necessary files and extract them if needed and put them on the sdcard and renaming them properly. You can change the urls to something else if needed.
so you click the first button it downloads the .nbh and puts it on the sdcard and then prompts the user to turn off, power+camera on, flash. when phone is on then reinstall this app and go to step 2 (because it would of been lost when flashed)
you click the second button it downloads recovery.img and hardsplupdate.zip. renames the files appropriately and puts them on the sd. it runs a script to do the recovery.img flash. It then prompts you to restart into recovery mode and gives the instructions on flashing the hardspl. and tells you to reopen this app when done
you click the third button it downloads the latest JF firmware (lets just say the RC33 flavor) puts it on the sdcard and renames it as update.zip. it prompts you to restart into recovery mode and do the flash.
Anybody see any possible problems with this logic? Also what do people think about maybe packing some of these files in the app instead of having them be downloaded?
Update: app is working http://allshadow.com/forum/viewtopic.php?f=9&t=5229
I am still looking for help to make it better.
I need devs to help make it nicer.
I am also looking for someone who's familiar with the update.zip package, to pack the radio, hardspl, and jf_rc33 all in one update file.
If anybody is interested in helping, PM me
I dont think its that big of a deal to format the card yourself, but why not make an app on the desktop that does some of the work for you, like formatting the card, then downloading and renaming the files needed to get started?
Packing the files into the app is going to make the app big. I like this whole idea though.
when you flash the .nbh it does a wipe on its own so one would need to re-download the app after that unless you can get it to stick somehow, i like the idea, is each button of the app just running a script? like to get the dreaimg.nbh have a script that runs:
"$wget [url to the .nbh file]
$echo 'please reboot your phone into SPL by holding the camera and power button'"
or did you have some other idea?
i like the idea but i am just not sure how easy this would be to code as i am just used to writing scripts that do everything for me.
or you could follow Kllian's advice and make a desktop program that does all this. i could easily write a script for linux that would do it, and a .bat file wouldn't be too hard either. you would just need to have adb and you could have the scipt/batch reboot the phone into recovery to do the flashing of each update.zip
pm me if you have an questions or would like me to write a script to do all this
tubaking182 said:
when you flash the .nbh it does a wipe on its own so one would need to re-download the app after that unless you can get it to stick somehow, i like the idea, is each button of the app just running a script?
Click to expand...
Click to collapse
tubaking brings up a good point.
I have an idea that possibly could resolve the "wiping" issue. What you do is, the initial app would be placed on the desktop (assume RC30). From here you'd downgrade the firmware to RC29.
The problem is though, the app you are scripting will be wiped. SO...
How about saving it on the SD temporarily.
THEN modifying the .nbh file to restore the <rooting app> to desktop (from SD)
Just throwing some stuff out there.
IF you need some help, hit me up.
if anyone knows how to convert a .sh bash script from linux to a .bat batch file for windows then i already have the script written, send me a PM to get it. or we could port it into java, but i don't know how to do that stuff. tomorrow i will upload my script onto 4shared and provide a link here as long as it works. keep in mind that i am on a linux machine and my script will not work in M$ windows. i don't know a damn thing about mac, so i have no idea if this will work or not for them.
my script is nearly completely automated, the only thing you need to do is hit ENTER a few dozen times, i will also write a completely automated one that sleeps rather than waits for you to hit enter, but it will take longer to run most likely since i will have to oversetimate the sleep time.
hopefully i can find a windows machine and learn what commands in the cmd are equal to the commands in my terminal
akapoor said:
tubaking brings up a good point.
I have an idea that possibly could resolve the "wiping" issue. What you do is, the initial app would be placed on the desktop (assume RC30). From here you'd downgrade the firmware to RC29.
The problem is though, the app you are scripting will be wiped. SO...
How about saving it on the SD temporarily.
THEN modifying the .nbh file to restore the <rooting app> to desktop (from SD)
Just throwing some stuff out there.
IF you need some help, hit me up.
Click to expand...
Click to collapse
modifying ,nbh files is no easy task, i tried it once and fortunately for many people GSLeon3 was able to help me fix my tilt. i think the .bat or .sh would be the easiest way to root your phone
Tubaking,
Send over the file you have. Ill work on converting it to a .bat, useable from windows.
Email : akapoor92_at_gmail.com
I should have it soon, but since its like 3:30am here, I'm off to bed. Haha
tubaking182 said:
modifying ,nbh files is no easy task, i tried it once and fortunately for many people GSLeon3 was able to help me fix my tilt. i think the .bat or .sh would be the easiest way to root your phone
Click to expand...
Click to collapse
Uh, you'd not only need to modify the nbh file, but you'd also need to sign it with the Google OTA keys - otherwise the phone will refuse to flash it.
If it were possible to create Google-signed nbh files we'd dispense with all this downgrading nonsense and just create an nbh of the latest JF firmware with root and directly flash that.
The issue is that until you've patched the recovery loader the phone won't flash anything that isn't signed by Google. The reason we can get around this is that there is a leaked signed file with the old firmware version, and that version happens to contain a vulnerability that you can use to get root access. Once you have root access you can reflash the recovery loader with a new one which accepts the test keys. At that point you can dispense with the hacks and begin directly flashing whatever you want.
In any case, rooting a phone is serious enough of a matter that we probably shouldn't be encouraging anybody who can download an app to do it. They should at least have some confidence in reading and following obscure instructions online, because of anything goes wrong later that is what they'll be doing...
Thanks for all your input. I have been trying to hold hand people through the root process and it is a real pain. Biggest issues are people not being able to unzip files correctly, rename files correctly, and the biggest thing is the recovery.img step and typing in the commands.
- .nbh cannot be patched because it is signed.
- yes my app will get wiped because of the .nbh flash. It does tell the user to reinstall this app once done with the .nbh step and then continue
- i prefer an android app, so people can do it without a computer and without having to install the sdk
- the app does not run a script to get the files. it uses some android sdk functions to download files. it does use the unzip linux command to unzip, not sure if this will work because of permissions, i may have to figure out how to do it from the sdk. the app does run a script to do the recovery.img step, during this step we should already have root so no issue there with permissions.
Biggest problem I see is Fat32 format I heard it is not absolutely necessary. Does anyone have any more information about why this needs to be done?
it IS necessary, you need the card formatted in order to do the NBH flash, after that you should be ok. most card come formatted in the box they came in so anyone that said they didn't need to format their card is lying because is was already formatted to fat 32
in the RC29 firmware is there a su command in /system/bin/ or are all commands run as root without having to call /system/bin/su ??
moussam said:
in the RC29 firmware is there a su command in /system/bin/ or are all commands run as root without having to call /system/bin/su ??
Click to expand...
Click to collapse
from what i've read, in the RC29 version andything you type on the home screen gets put through a root shell as well all on it's own
I have a feeling whoever makes this app is going to sell iot for a ridiculous price on the market
My script is written but requires the user to do certain things, later I hope to have it be completely automated after a certain point and it will be free. After I get it written in linux shell I will be converting it to use in windows. Expect my automated root to be available for download by the weekend.
I got the app pretty close to done. I hope to put something up tonight or tomorrow that you guys can test. I am not going to charge for this app, I want to give it for free so everybody can have root and a more rich experience.
The place were I am stuck right now is the unzipping of the DREAIMG.NBH file from its zip file after it is downloaded. I am using java.util.zip I am not sure if the problem is because the file is so big or if I am doing it wrong. does anyone have an android java unzip code snippet?
The app now downloads files for you and unzips them if needed. THere is an issue with the unzipping though, after around 25 MB of unzipping DREAIMG.NBH i get this error...
java.io.IOException at java.util.zip.InflaterInputStream.read(InflaterInputStream.java)
anybody have any suggestions? Is their not enough memory to unzip the files or something?
For now I am not going to let the .nbh file be zipped up. THe app instead will have to download the full uncompressed .nbh file.
So it is ready to be tested, if you want to try it out PM me, I do not want to just post it and have everybody use it until it has been tested more.
Good news the app works on downloading the .nbh file and then flashing you to RC29. It then successfully downloads the recovery.img and hardspl update.zip
I had someone testing it and when they ran the recovery script the mount command gave them mount: operation not permitted. Is this correct? I know without root it is supposed to give you mount: permission denied.
If this is correct the app is working, and I just need someone else to confirm.
Mike
Does anybody else want to help with the coding of this project? If so create an open-source repository and I will add the current source in there.

a question regarding removing programs. please help

after i delete certain apps i downloaded sometimes they leave behind a file that cant be deleted no matter what i do. for example i downloaded PointUI home but didnt like it so i deleted it using add/remove programs in system settings. everything was deleted except for a small file called 2001. it wont delete and ive tried everything. until i find a way to do so it still shows up in add/remove programs. i have 4 such apps that wont go away because of that same problem. i have an htc snap on sprint running windows mobile 6.1 if that helps any. im stumped! any help would be greatly appreciated
try SKTools....
i have sktoolslite but im unsure if itll let me delete them. i had issues deleting those programs and sktoolslite deleted most of those files except for that one file. i look in the windows folder under app manager and the folders for said apps are still there with that one stubborn file in each folder. again. any help would be appreciated
I don't know what those files are, but if you test cabs frequently, then sk tools is a good way to install them (use the cab manager, select install w/ sk tools). It does a better job of removing programs (go to installed programs, do a deep scan and uninstall).
For now, you may fix the problem by using the installed programs tool and removing uninstall info (if the apps appear there). To get rid of the files in \windows, try checking for replaced rom files and restoring to original. You may need to add the proper extensions in settings.
it keeps saying that the file is a system file and if deleted the phone wont work properly. when i try to delete anyway it tells me i cant . access is denied. be certain that the program is not write protected and not currently in use. before that it would say problem deleting file
bump. anyone else experience something similar? if so then how did you deal with it?

[Q] Load Programs?

Ok, new to all this. I have a Sprint HTC Touch Pro 2 CDMA. I flashed to an Energy Rom, looks great. Now... How do I load other software... games and such? I have looked around here, thinking it would be part of the first post, I was wrong. Perhaps this site is too advanced for that? If so, point me to a newbee site and off I shall ride. Thanks in advance for your help. This phone is awesome, and the Energy rom I loaded, looks sweet.
Johnhcfllc said:
Ok, new to all this. I have a Sprint HTC Touch Pro 2 CDMA. I flashed to an Energy Rom, looks great. Now... How do I load other software... games and such? I have looked around here, thinking it would be part of the first post, I was wrong. Perhaps this site is too advanced for that? If so, point me to a newbee site and off I shall ride. Thanks in advance for your help. This phone is awesome, and the Energy rom I loaded, looks sweet.
Click to expand...
Click to collapse
well. there is the microsoft marketplace. or .cab files.
.cab file instructions...
one. download application's .cab file. suggested list of applications can be found here.
two. move the .cab onto your phone's storage card.
three. on your phone, navigate to the .cab file with file explorer, or other like program.
four. open .cab file.
five. choose installation location. device or storage card.
six. select install.
seven. enjoy.
and i havent ever used marketplace before...
i always find the .cab file.
sh4d0w86.
Not to make fun, but it is pretty surprising the you are able to unlock the phone and reflash the OS, but can't install software.
If you search this site, Microsoft Marketplace, or just do a Google for "Windows Mobile freeware", you'll find many thousands of apps. Find the app you want, copy or download the .CAB file to the TP2, and execute it.
For example, Google "Google Mobile Maps", download the Windows Mobile .CAB file, and run it.
Thanks
Well, the instructions to flash a phone are detailed and many. One problem I had was I was dropping the 7zip file onto the phone. Also, I could not unzip the file with the extension of 7z because I did not have the correct unzip manager. Another issue was I was trying to Sync the programs to the phone. Thanks for clearing it up. Is there a logical place to put them on the phone to make them run fast? Thanks in advance.
Johnhcfllc said:
Well, the instructions to flash a phone are detailed and many. One problem I had was I was dropping the 7zip file onto the phone. Also, I could not unzip the file with the extension of 7z because I did not have the correct unzip manager. Another issue was I was trying to Sync the programs to the phone. Thanks for clearing it up. Is there a logical place to put them on the phone to make them run fast? Thanks in advance.
Click to expand...
Click to collapse
Installing to main (internal) memory is much faster than installing to the SD (external) memory. Installing large programs to the SD card is the general rule of thumb for obvious reasons. It's up to you where you prefer to install them.
If you mean where should you put the actual *.cab files, then you could always delete them once they've been installed. You don't need them again unless you're going to flash constantly. It's always good to back them up, so storing them on your PC or the SD card would be preferable.
Thanks a bunch!
well, check out this thread..........
cabs just load on the phone and run like any program, just find the file and click it. exe's need to run from windows (regular computer) and install through activesync.
http://forum.xda-developers.com/showthread.php?t=550973
Excellent Thread!!!!!!!! I too made all those mistake and diddn't know how to load .cab files. This is my first foray into modding phones so this thread was quite informative.

Where is the .zip file I downloaded?

Hello, I have downloaded a zip file through IE. Where I can find it ?
Thank you
There isnt a specific place... each app has its own isolated storage where it keeps their files.
You should be able to open that ZIP file from the browser and it will show you the files within... if they are recognised file types by WP7, it will let you run them.
But that's it, you have no file manager you can goto and fetch that saved file.
PS: well, you have... but I'm unsure if TouchXplorer is still working or not.
Thanks for this, but how can i delete it if I can't find it? I use the TouchXplorer...
I am concerning about the phone memory.
Generally, files downloaded through IE are stored in temporary memory and will be erased after a certain amount of time.
I ran into the same problem today. luckily i hit the windows button so all I have to do is hit the back button to reach the zip file again. Kind of frustrating when you dont have a file explorer and no other way to reach the file you just downloaded

Categories

Resources