HTC TP2 ROM manipulation - Windows Mobile Software Development

Yesterday, I tried copying the HTCSendorSDK.dll through ActiveSync. I got Access Denied and though that the dll must be in use. Then I used File Browser on the phone to copy the file to another folder. It said that it can't copy a file included in the ROM. I haven't made any other changes and since then Opera and Weather don't connect. Internet Explorer is able to browse the web, vxUtils says I have two valid IPs and I'm able to use HTTP GET and Ip lookups.
Any ideas if me attempting to copy the ROM included file screwed something up?
Any other ideas for troubleshooting?
Thanks
Chris

use something like total commander to copy the file.
you should be able to find a .cab to install total commander, which will allow you to copy or move the file.

fixitchris said:
Yesterday, I tried copying the HTCSendorSDK.dll through ActiveSync. I got Access Denied and though that the dll must be in use. Then I used File Browser on the phone to copy the file to another folder. It said that it can't copy a file included in the ROM. I haven't made any other changes and since then Opera and Weather don't connect. Internet Explorer is able to browse the web, vxUtils says I have two valid IPs and I'm able to use HTTP GET and Ip lookups.
Any ideas if me attempting to copy the ROM included file screwed something up?
Any other ideas for troubleshooting?
Thanks
Chris
Click to expand...
Click to collapse
You can always delete replaced files that were in rom. This will make the system revert to the original file that was overwritten. This always works without issue unless the overwritten file was something that gets changed or updated like certain .ini files, etc...
for overwritting system files, I recommend Resco file explorer. It is hands down the best file/registry explorer/editor. Google beta 2 for a free trial.

Related

Need help extracting gwes

Hey all,
I am trying to change the wait symbol animation on my PPC, and have read up on it, but all the directions say I need to copy the gwes.exe.0409.mui from the windows folder, modify it, and overwrite the old one with the modified. Unfortunately, I can't even copy it out of the windows folder. Seems like no one can get it to work very well.
http://forum.xda-developers.com/archive/index.php/t-270645.html
Does anyone know how I can copy and then overwrite the file?
Come on, I know someone here must know how to do this.
use a program like gsfinder+
Hey Sleuth,
I've tried using GSFinder+ and Resco File Explorer. On both programs, it will let me use the copy command, but when I try to paste it in another folder it says that the file cannot be copied. Any ideas?
Basically, I'm hoping there's an easier way to get at the file than dumping the whole ROM.
Same problem here, any ideas?

Delete File in Windows Mobile 6

Hi, how can I delete a file in \Windows folder? it seems complaining that the file is in ROM, I had tried many way even using other File Explorer or via ActiveSync. None of them work.
How can I delete a file in \Windows folder in my Microsoft Windows Mobile 6?
Maybe Resco Explorer or Total Commander CE will help.
if it's built in the rom, you might be unable to delete that file.
Please be more specific: which file do you wish to delete?
Maybe you'd have to recook the ROM without that file.
Regards,
EquinoXe
Things built into the rom are "READ ONLY MEMORY" therefore cannot be deleted. if the file is only marked as system and readonly though you can change its atributes using total commander. just long click on item to bring up menu and go to properties. there you need to uncheck everything and delete
I had downloaded Total Commander and installed it, the checked file attributes are 'read only' and 'in rom'; so I guess the file shall be consider undeleteable.
Now I had to learn how to recook, any good guide how can I recook the ROM that I have?
similar problem
I downloaded some software and it came up as being faulty software. The file was a zip folder titled : res_ppc-custom.icons
I tried through my windows mobile device center to uninstall it, but it was never actually installed completely in the first place.
I then tried to delete the file a few times. Once directly from my pda, once through the device center and again through my pc windows explorer. All three attempts were unsuccessful.
How can I get rid of this thing?
Thanks in advance
perhaps you may want to check if the file being accessed by other software, easiest way is to soft reset and try to delete it.
That did the trick! Thanks so much
Move files to storage card
OK I want to move some files (not ROM) in Windows and keep getting error. For example Opera.exe is not marked as anything in properties yet I can't seem to delete the file. I did copy it to my storage card without any issue but can't delete the original from Windows directory. Any suggestions since Total Commander won't delete it. Will edit registry to find it on the Storage Card.
Deleting files in Windows folder
mynullvoid said:
Hi, how can I delete a file in \Windows folder? it seems complaining that the file is in ROM, I had tried many way even using other File Explorer or via ActiveSync. None of them work.
How can I delete a file in \Windows folder in my Microsoft Windows Mobile 6?
Click to expand...
Click to collapse
I have the same problem - I have colpilot.wm6ppc.cab in my Windows directory. It's 12.6mb, I don't want it, and it's taking up a lot of storage space. My phone is a T-Mobile MDA and it obviously came with CoPilot as an option, but I think it's really unfair that the cab is right there in the Windows dir and I can't get rid of it....
Any help gratefully received....
Cheers,
Ed.
The cab is cooked in as part of the rom; there's nothing you can do about it, except flash a custom rom (this is one of the main reasons people flash custom roms). Be glad it was installed as a cab and not as a full package-at least cabs are compressed are a single file.
Farmer Ted said:
The cab is cooked in as part of the rom; there's nothing you can do about it, except flash a custom rom (this is one of the main reasons people flash custom roms). Be glad it was installed as a cab and not as a full package-at least cabs are compressed are a single file.
Click to expand...
Click to collapse
I think the issue is not on the files in ROM.
I have the same problem. I've copied a file under Windows folder and after that I'm unable to delete it.
Strangely I'm able to rename it, which should mean that file is not in use, however deletion is not possible.
I've used TotalCommander, the built-in Explorer and also connected the phone via ActiveSync, but still nothing happens and access seems to be denied.
The exact message is "deletion error".
Any idea?
Thanks.
Cheers...
-nOra-
A very common problem with Windows explorer is reported on all Windows help forums. I've seen people complaining about problem with long path files deletion.
Some common problems with Windows Explorer people talk about:
- Doesn't allow to delete files with long path names
- Pops up error while deleting unwanted files or unnecessary files
- Errors like: Access denied, sharing violation, source in use etc.
I've found a very simple but smart solution for all these above mentioned common problems. A very simple but powerful tool to overcome these problems. Everyone who plays with the files must have this tool. Its compatible with all versions of Microsoft Windows.
johnylog.software said:
A very common problem with Windows explorer is reported on all Windows help forums. I've seen people complaining about problem with long path files deletion.
Some common problems with Windows Explorer people talk about:
- Doesn't allow to delete files with long path names
- Pops up error while deleting unwanted files or unnecessary files
- Errors like: Access denied, sharing violation, source in use etc.
I've found a very simple but smart solution for all these above mentioned common problems. A very simple but powerful tool to overcome these problems. Everyone who plays with the files must have this tool. Its compatible with all versions of Microsoft Windows.
Click to expand...
Click to collapse
Could you please tell us the name of this wonderfull tool, and how to have?
djulen said:
Could you please tell us the name of this wonderfull tool, and how to have?
Click to expand...
Click to collapse
Based on how he said it, I have to really wonder if he really does have such a tool...
badbwoydes said:
Based on how he said it, I have to really wonder if he really does have such a tool...
Click to expand...
Click to collapse
Use Total Commander to modify the contents of the \Windows directory.
Yes, but you won't be able to delete a ROM file anyway.
In the \Windows folder, you commonly encounter three kinds of files :
- Pure ROM files (can't be deleted nor renamed nor moved, nor even copied, but can be overwritten, consuming internal storage memory space in the process to store the new copy, that will become used instead) ;
- Files put there by installation CABs or else (can be freely deleted, renamed or moved, provided they're not currently used by a running process) ;
- Files put on top of previously existing ROM files, wearing the same name (deleting, renaming or moving them will thus make the original ROM file undertneath to reappear with its original contents and attributes).
Once you've understood that, you'll be more aware of what's cooking there.
ROM files can't even be copied, but you can use ROMExtractor to copy them elsewhere, in case you want to study them, or use them in your own ROM (useful to get up-to date versions from another HTC device to cook your own ROM).
Since ROMExtractor is a very minimalistic tool (you have to type in all the files names with their path, same for the target copy, all one by one !) manually extracting hundreds (even thousands) of files is a very tedious taks, I made a MortScript to automate the process in order to extract all those DLLs, EXEs, MUIs, etc. files that can't be directly copied from a phone's ROM.
On the other hand, you absolutely can't delete a ROM file to make room. Overwriting it with a file wearing the same name will jut result in actually adding the new file, thus consuming even more room. The new file will just be used instead of the original one (so you can still update or personalize the ROM).
As a direct consequence, the only way to get rid of unwanted ROM files or permanently replacing them with up-to-date ones is to cook a ROM and flash it to the device to replace the old one.
That's way how operating systems can become better and better, and save space at the same time.
And no, Windows Mobile isn't dead : I'm not quite finished with fixing it until it's perfect, so it's not over yet. LOL

How do I overwrite a file "in ROM memory"?

There are a number of TP2 tweaks which require the editing or replacement of files - for example, there is supposedly a way of increasing the loudspeaker volume which involves replacing a file called AudioPara3.csv with an edited version. This file sits in the Windows folder.
I'm using Resco File Explorer on my TP2, with the corresponding shell extensions installed on my desktop Windows, but nothing I do will allow me to edit that file. Trying to overwrite it (by dragging the copy into the appropriate Explorer window on my desktop PC) fails, telling me that I don't have the necessary permissions. If I look at the file properties on my TP2, it's set to read-only. If I try clearing the read-only checkbox this looks as if it's going to work, but actually if I go back into properties again, it's still set to read-only. There's another (disabled) checkbox in the properties labeled "ROM" which is ticked - I assume it's this that is causing the problem.
I've also tried renaming the file - that, again, appears to work but what it actually does is to create a duplicate of the file with the new name while leaving the old file intact.
There must presumably be a way of overwriting this file, otherwise no one would have been able to install the tweak!
I have a similar problem with the weather database file - so I can't add in extra locations.
What am I missing?
Try doing it on the TP2 itself with Resco File Explorer. I do not have any problem so far. Not too sure when you use it on the desktop.
weenween said:
Try doing it on the TP2 itself with Resco File Explorer. I do not have any problem so far. Not too sure when you use it on the desktop.
Click to expand...
Click to collapse
Several options in Resco File Explorer failed, but using the Copy To option worked, for some reason.
Don't think it actually made the speakers any louder, though.
You can also try Total Commander (not like it'll make the speakers louder, but for future reference).
Total Commander will work OR you can rename the original file, then copy the new one in.
I recommend (strongly!) the former since if you screw up you can fix it without a hard reset!
What is wrong with this file?
Hello,
I'd like to ask for some expert help.
I finally managed to edit an EXE file from Windows - just translating Japanese text to English. I used the MEditor suite. After saving, I "dropped" the file onto the SignCode.exe as per instructions.
When I transferred the file to its original location and overwrote the original one, I get:
"Cannot open... A critical component is either missing or cannot start because program memory is unavailable...."
I am sure I didn't change anything else but texts. So what could be wrong?
I am attaching the two files - the original and the edited - for someone to please look at them and let me know if there's anything I can do. This is Sharp's Barcode Reader.exe
Thanks!

Hosts file

I have recently acquired a custom hosts file that I would like to use in place of the built-in one. Of course, the hosts file on the phone is read-only I believe, so it can't just be replaced. I can access it with ES File Explorer, and change the attributes, but no matter what I try, it will not save. I have used the adb "push" command from my computer but I still get an error trying to replace the file. I have tried using ES File Explorer as a remote ftp server also. No luck so far. Short of manually typing the information from the custom hosts file, or copying and pasting chunks at a time, I am at a loss. I don't understand why this can't be done since I have changed the attributes of the file. Please forgive my ignorance if there is an obvious solution for this that I am overlooking. Any help would be appreciated.

Can't move some files, can't create some folders

I don't know how else to describe this issue I'm having:
Essentially sometimes I cannot create new folders, either in an explorer app (ES File Manager, Explorer (free, not Root Explorer), or other file manager) or when connected to my computers via USB. Sometimes I can do both. Similarly, sometimes I cannot move files from one directory to another, both using file manager or when connected to computer over USB. It seems random, I think?
An example of this is I downloaded a PDF file from SharePoint using Chrome. The file is downloaded to the /Downloads directory by default. I wanted to move this to a different directory (/Documents), but the cut+paste operation failed. ES File Manager says the operation can't be completed, Explorer just sits there and doesn't say anything. When trying to do the same thing over USB connection, Windows just sits there saying the device is busy, and it'll sit there indefinitely. But an OGG file I downloaded from Dropbox was free to be moved to and from several directories when I was testing file operations.
Basically it's like my device doesn't want to play nice with files and folders. I tried doing a factory reset, but that didn't seem to help. Do you think completely reformatting the phone (as in fastboot format userdata, and a fresh ROM + kernel install) would help? It seems drastic, but at the same time being unable to move files and folders is very strange and likely hard to pinpoint the culprit.
I'm rooted (using traditional SuperSU root) running Pure Nexus 12/01/2015 ROM and ElementalX 0.07 kernel (Enforcing disabled). I doubt any of those 3 factors are the cause of it, but every detail might help, right?
Update: It looks like a permissions issue. Please see post below.
OK an update to this, I discovered that some folders that I thought I had deleted using ES File Manager are still showing up in USB storage when I'm hooked up to a computer. That is to say that what I see using a file manager versus what I see while connected to a computer are different.
Further to this, I am now getting "Permission denied" by the file managers when I try to copy and paste anything from anywhere to any other place. I have booted into TWRP to run Fix Permissions already. It looks like everything now has rwxrwx---, which means to me 770? It should be 775, no?
Any ideas what might be causing this permissions issue?
daver68 said:
OK an update to this, I discovered that some folders that I thought I had deleted using ES File Manager are still showing up in USB storage when I'm hooked up to a computer. That is to say that what I see using a file manager versus what I see while connected to a computer are different.
Click to expand...
Click to collapse
For this, I read somewhere that the latest ES File app has a recycling bin for when you delete apps. So, that needs to be emptied too.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
For this, I read somewhere that the latest ES File app has a recycling bin for when you delete apps. So, that needs to be emptied too.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
I did indeed clean out the Recycle Bin (and subsequently disabled it), but the problem persists. But thanks for pointing that out!
OK, an interesting discovery:
If I am on my device and using ES File Explorer and if I am in the path /storage/emulated/0/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /sdcard/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /data/media/0/* then I am able to do anything I damn well please.
Now this makes a bit of sense to me, given the permissions for each directory. For example, when viewing the permissions of a file or folder when in /sdcard or /storage/emulated/0, I can only see the permissions as "Readable: Yes, Writeable: Yes", but I cannot change said permissions. However, when I view the permissions for something when under /data/media/0 then not only can I see the explicit permissions "rw-rw-r--" I can also change it if I wanted to.
I suspect this might be more than just the ROM. Perhaps I did not flash the system.img correctly when I first went through the process? Is this possible?

Categories

Resources