GoogleMaps Cache moved to Storage Card - Windows Mobile Software Development

Hi all.
First thanks to all in these forums. If not all, then most of my questions about WMxx has been answered here. Thanks to all the chefs for cooking ROMS and thanks to all you fiddlers out there making our software much more usable.
I have the HTC HD2 (Leo) and i´m using GoogleMaps a lot. At the same time i have a lot of software installed, taking up quite a lot of space on internal storage - resulting in low memory warnings from time to time.
Moved email attachments to storage card, now there´s only those annoying 20-something MB of cache from GoogleMaps.
This problem has been presented lots of times, but no answer has been given, so i looked in to it and found a solution.
I modified two files in the app.
The two files GoogleMaps.exe and gmm_setup.dll in "program files\GoogleMaps" needs to be modified as follows:
Search and replace (using a hexeditor):
"cache\cache-GLM.dat" with "\Storage Card\c.dat"
and
"cache\index-GLM.dat" with "\Storage Card\i.dat"
PLEASE use the exact names!
Move the two files cache-GLM.dat and index-GLM.dat from "Application Data\GoogleMaps\Cache" to the storage card (root). Rename them to c.dat and i.dat respectively.
Delete the cache folder in application data\GoogleMaps (leave the "application data\GoogleMaps" folder intact).
You are now good to go, enjoy.
For the lazy ones, i will upload the two modified files as a RAR-file. The files are version 4.1.1, latest version of GoogleMaps for WM. Extract and replace the ones in "Program Files\GoogleMaps"
There are now three files:
GM_EXE_DLL_InternalStorageGMFoldert.rar:
Puts the large cache in Internal Storage under subfolder GM (please create this folder yourself) and the index in appdata\GoogleMaps\Cache (Please create the cache folder again).
GM_EXE_DLL_StorageCardGMFolder.rar:
Puts the large cache in Storage Card under subfolder GM (please create this folder yourself) and the index in appdata\GoogleMaps\Cache (Please create the cache folder again).
GM_EXE_DLL_StorageCardRoot.rar:
Simply does what the original did, puts the two files in Storage Card, root.
For best result, start GoogleMaps, go to settings and clear image/map cache and restart, it will rebuilt the cache. Let me know of any errors, i have tested Storage Card with and without GM folder, but NOT Internal Storage.

YES!
That's what I'm talking about
Many thanks

thnx man........
my diamond has "internal storage" instead of: "storage card"
can you make the modified two files to "internal storage" name
thanks in advance

thanks, works great! used the cab installation. is there a way to put the cache files in a folder in the storage card. at present, they are stored separately in the storage card root.

Modified to other settings
Yes you can modify the files to whatever you like (including subfolders), BUT that requires the address-pointers, virtual pointers etc. to be correctly set (as you would increase the file size, thereby offsetting the internal pointers within the files).
This is not my strong point. I have been reading a bit on it, but haven't fully understood it yet. Perhaps some friendly soul here at XDA would be of help?

ok, it's no biggie for me anyways. thanks once again for this mod.

why you just don't install google maps on the storage card and delete the google maps cache in the internal storage (application data/google maps) ? then the cache will also be on the storage card's application data folder. no need to do all this ...

UPDATE
Hi
Well perhaps that works for you, have read multiple threads on several forums describing that it does not work - do you have a working installation that puts the actual cache-files on the storage card permanently?
Updated the first post regarding subfolder and "Internal Storage".

It works for me and not only in one device but also on my Touch Pro and Touch HD.
I delete the google maps application data folder, and the shortcut in the Start Menu.
May be, it is this : even if you install google maps in the storage card, the other installation (which is in the ROM - internal memry) remains in the device and when you run google maps, you actually run the old program (installed in the internal memory) which creates the cache in the internal memory.
so - may be - if you delete first the shortcut in the start manu (and the application data folder) , and then install google maps in the srorage card, so the shortcut in the start menu refers to the one installed in the storage card, it may solve your problem.

Great job, man!
I'm just thinking about this issue and got your thread
--
Best regard!
Uoc Nguyen

Related

SdSentry: fighting against storage card corruption

Hello all,
I've written a watchdog that allows to catch a moment when the storage card is corrupted and softreset before the driver flushes FAT and root folder.
More details are here:
http://www.nixie.narod.ru/sdsentry/index-en.htm
I hope this will help you.
Any feedback is welcome.
I'm online with MSN [email protected] (also it is my email)
BTW, it doesn't matter what brand and size of the storage card is.
I have Kingston 1GB, and _it happens.
Thankyou for your work, Nikolay. It is apreciated.
I have had the software installed for a couple of days, and all is well.
Same here Nickolay, I have already posted a reply to your post at Spb Club forum.
I have your piece of code installed for few days and haven't seen the red icon, yet. Hope never will. Tnx .... as your code can save some nerves
I have tried your program but it keeps throwing up a corruption warning saying that there is an empty directory - Program Files on the storage card (which there is - I guess it is empty because I have no apps installed on the card)
Any suggestions?
garymansell said:
Any suggestions?
Click to expand...
Click to collapse
Create a file in that folder...
Does anyone know the workaround with the WM5torage program?.....everytime i launch this app the SD-Sentry red icon appears saying that there is a corruption but when i check the storage card its fine.......thanks in advance
WM5torage disables the storage card for the orbit as long as it is active. During that time it is only accessible by the PC. Other programs like Tomtom do not work, because they can't find their data on the card. So does SDsentry.
Dear programmer,
your program seems to be a fine PlugIn for the XDA-Error with destroyed directorys oon the SD-Card.
Unfortunately your program is working in english devices only as it seems.
In german devices where the storage card is named "Speicherkarte" from the german WM5 your program will creating a new folder named "storage card" where it puts its check-files SdSentry.txt into each existing directory. No SdSentry.txt-file in any Dirs on the storage card.
In the dialogwindow of SdSentry the storage card is names "Speicherkarte".
The real storage card is not recogniced and protected in this way, as I assume.
Or did I something wrong?
Will you program a german version of SdSentry too?
I would be very glad about.
because of the described problem, I wrote a mail to the programer of SdSentry.
A solution was coming back immediately, how to install SdSentry im devices with other WM5-languages than english.
The program has a little bug to find the real storage card and creates instead a directory named "storage card" in the root of the device, that contains two directorys named "My Documents" and "Programme". In each of this three folders SdSentry creates a txt-file "SdSentry.txt" for verifiing the directury-structure for accessibility later.
For getting SdSentry working on german devices (analog other languages), copy following files:
\\storage card\SdSentry.txt to \\Speicherkarte(or however the name of your real storage card is)\SdSentry.txt
\\storage card\My Documents\SdSentry.txt to \\Speicherkarte\My Documents\SdSentry.txt
\\storage card\Programme\SdSentry.txt to \\Speicherkarte\Programme\SdSentry.txt
After copying the three files, you can delete the folder \\storage card with its subdirs "My Documents" and "Programme"
Since I've did this modifications, SdSentry seems to work well on my german-XDA Orbit.
Hoping it avoids more crashs of my SD-Card.
What a fun sitting in the car and loosing Navi, adresses and all tasks for today out of the HTC. May driving back to office and reinstalling the device.
I won't count how much time cause of this this worthless phone I had loosen last weeks.

Is there an app to check which apps were installed on the 'storage card' vs. 'device?

I periodically go into modes in which I need to clean clean clean my computers and gadgets and I was wondering if there was an app or something out there to detect which of my installed programs have been installed on the Storage Card and which have been installed on the Device.
I'd basically like to find what I truly need to install on the Device and reinstall everything else on the Storage Card to save Device disk space.
Thanks in advance for any tips.
Don't quote me on this, but I think DinarSoft MemMaid has something like this. I had it at one time on an old phone of mine. I seem to remember not only having this functionality, but being able to change to and from the other storage (from Main-> Card and Vice verse).
It may have been program specific, but It's definatly worth looking into.
if you goto the following link and go down to "Storage Memory" (maybe a little more then 1/2 down the page), it says that it does have the ability to see "What and Where" things are installed.
http://www.dinarsoft.com/memmaid/details.html
Hope it helps.
I could be wrong but if you open File Explorer and look in the Programs folder on "My device" you'll see all stuff installed on device memory and if you look on your storage card there is also a Programs folder with all the programs installed there. Perhaps I misunderstood your question and this isn't helpful - in that case, sorry!
barbo said:
I could be wrong but if you open File Explorer and look in the Programs folder on "My device" you'll see all stuff installed on device memory and if you look on your storage card there is also a Programs folder with all the programs installed there. Perhaps I misunderstood your question and this isn't helpful - in that case, sorry!
Click to expand...
Click to collapse
Actually this was the original problem. Programs installed on the memory card will not only put files in the Program Files folders on the Storage Card, but can also install some in the Device Program Files folder, the Device Documents and Settings folder and even in the Windows folders.
Someone from PPCGeeks recommended using SKTools to figure this out and behold: not only a way to see where the install folder is, but you can move it to the card from the device and vice-versa if wanted!

TILT 2 Memory/Storage FULL

I downloaded some apps from the Marketplace. I usually get the cabs online and just install all my programs to the storage card and leave the main storage open. But with Marketplace it seems to install them directly onto the device. Is there a way to change that? To make the Marketplace programs install onto the storage card instead? Apparently...all these apps I've installed have caused the memory to get low. It says I have 13MB available and the phone is running slower than usual. Is there a way to safely move these program files over to the storage card or am I just gonna have to remove them and see if I can't find the cabs online?
Or does anybody know a way to open up more storage/memory ...temporary files, files I don't need that came with the Tilt 2. (Note: I already use ClearTemp and CleanRam)
TheScPCrew said:
I downloaded some apps from the Marketplace. I usually get the cabs online and just install all my programs to the storage card and leave the main storage open. But with Marketplace it seems to install them directly onto the device. Is there a way to change that? To make the Marketplace programs install onto the storage card instead? Apparently...all these apps I've installed have caused the memory to get low. It says I have 13MB available and the phone is running slower than usual. Is there a way to safely move these program files over to the storage card or am I just gonna have to remove them and see if I can't find the cabs online?
Or does anybody know a way to open up more storage/memory ...temporary files, files I don't need that came with the Tilt 2. (Note: I already use ClearTemp and CleanRam)
Click to expand...
Click to collapse
There is a Thread on this forum on how to remove some of the ATT Bloat. I was able to free up a bunch of memory 10-20MB.
LINK: http://wiki.xda-developers.com/index.php?pagename=UninstallingTilt2Software
Or you could also Flash a new ROM.. With a TON of stuff installed, I have 209MB Free Storage
I had Good Results with one called e2 ROM - Also Adds the Weather to the TF3D Home Screen
TRY: http://forum.xda-developers.com/showthread.php?t=585403
TheScPCrew said:
I downloaded some apps from the Marketplace. I usually get the cabs online and just install all my programs to the storage card and leave the main storage open. But with Marketplace it seems to install them directly onto the device. Is there a way to change that? To make the Marketplace programs install onto the storage card instead? Apparently...all these apps I've installed have caused the memory to get low. It says I have 13MB available and the phone is running slower than usual. Is there a way to safely move these program files over to the storage card or am I just gonna have to remove them and see if I can't find the cabs online?
Or does anybody know a way to open up more storage/memory ...temporary files, files I don't need that came with the Tilt 2. (Note: I already use ClearTemp and CleanRam)
Click to expand...
Click to collapse
You can move the programs to the storage card with SKTools, or re-install them from cabs. I guess Marketplace forces it to Memory.
You might also check your PIE/Opera cache, it can get rather large.
Thanks so much for the advice. Where can I find the PIE/Opera Cache at? What's the path?
TheScPCrew said:
Thanks so much for the advice. Where can I find the PIE/Opera Cache at? What's the path?
Click to expand...
Click to collapse
I clear in MemMaid or SKTools myself, but you can do it via the programs themselves.
pie: path: \windows\profiles\guest
Or launch, Menu, Options, Browsing History, Temporary Files highlighted, Clear (soft key)
Opera: path: \windows\opera9\cache
Or again launch Opera, Settings, Privacy, Delete Cache.
You can now specify in Marketplace in options to download to storage card

[Q] How does APPS2SD *actually* work?

Hey guys,
Been searching on this for a whle and haven't found the info I'm looking for.
How does the custom APPS2D actually work? By that I mean, what is it really doing? I know it's copying the app(s) to the partitioned ext2/3/4 area of the sdcard, but how does it know *what* part of the app to move as it seems something is always left on the phone.
I'm currently running AdamG's OpenDesire 3.0.5 (nice) and thanks to the script provided by msdl28712 in this thread here http://forum.xda-developers.com/showthread.php?t=748529, I can see that APPS2SD is saving me "188MB". Pretty nice.
But my internal memory is still going down. I started out at about 148MB I think. I'm currently at about 115MB free. Of course, that's fantastic - but it sort of suggests that, even though I've downloaded loads of apps to the sd card, they will always leave some footprint/config/data on the internal memory of various sizes (as I can see it on my info page).
So really, I am still quite limited in the number of apps I can store. Even though I gave myself a nice big 4gb ext4 partition, I'll still hit a limit because of the footprint data left behind on the phone's int memory even after "copying to SD".
Is this right or am I way off?
Although I have no Actual knowledge of what you ask I will say this. The phone needs to be able to function if there is a SD card installed or not and therefore it must have info about the apps installed in the phone memory. I would imagine its very similar to windows and the windows registry. The registry will always be stored on the windows (Phone) storage and the program resources can be anywhere. Therefore when you install an app there will always be a small amount of phone storage required to link to and handle the operations of that program.
All in my opinion.
Some apps, not all, I've found in multiple places on my Eris.
I found it strange that the market wasn't consistently placing them in both places ( actually, that's a good thing, cause it would eat double the space ), but that led me to believe that the developer who wrote whichever particular app that was being stored in 2 location, wrote it to store to additional "backup" location ...
For example, say you download an item from the Android market, and it puts it in the "data\app" folder location. Well, I'd also find another copy in the root of the "cache\" folder ....
The way I found this, was I wondering where the heck all my memory was going, especially since I'd recently installed/uninstalled some various music player apps, but the space wasn't being freed up. I went digging through various folders looking for items, and low and behold, started finding the duplicately stored APK files. I started removing them, and I've monitored that files contents on a regular basis since, which has helped.
- JB
What A2SD? A2SD+, A2SD Froyo?
Found a nice explanation on CM Wiki... can't find it now though...
but there's always short explanation by MIUI Au..if you wanna give it a tryy
http://www.miui-au.com/faq/a2sd/
johnrbrown1968 said:
Some apps, not all, I've found in multiple places on my Eris.
I found it strange that the market wasn't consistently placing them in both places ( actually, that's a good thing, cause it would eat double the space ), but that led me to believe that the developer who wrote whichever particular app that was being stored in 2 location, wrote it to store to additional "backup" location ...
For example, say you download an item from the Android market, and it puts it in the "data\app" folder location. Well, I'd also find another copy in the root of the "cache\" folder ....
The way I found this, was I wondering where the heck all my memory was going, especially since I'd recently installed/uninstalled some various music player apps, but the space wasn't being freed up. I went digging through various folders looking for items, and low and behold, started finding the duplicately stored APK files. I started removing them, and I've monitored that files contents on a regular basis since, which has helped.
- JB
Click to expand...
Click to collapse
First of all you are answering a quite old thread(hint: 8th august)
Second to clarify no, the app is not installed to several locations.. The apk file in the cache is just the one, that the market downloads in order to install it(hint: cache) upon installation the file is placed in the /data/app folder or in case you are using a2sd/a2sd+ it will be placed in /sd-ext/app(the phone still think it is in /data/app, but it wont take up space on the /data partition)
After the installation the downloaded .apk file is sometimes left behind, but as the /cache partition have a fixed size, this won't take up any space for app installs(/data) when the space is needed on the cache partition for another download or something else, the file is eventually deleted.
edit: for people, who want to know the answer to OP, please search I and many others have wrote it over and over again in this very forum.

That was strange...

I connected my phone to Windows 10 laptop and copied over a folder I download from torrent to the laptop and then I was going through the folders I had in my storage and saw that there was one named 'sdcard'. I opened it and saw there was 'UC Browser' related folder (I think it was UC Downloads but don't remember it correctly but sure there was UC in the name). I deleted that folder happily thinking I cleared some useless folder and then I ejected my phone and opened gallery and all photos were grayed. No thumbnails. I restarted my device and BOOM.... ALL MY FILES WERE DELETED. there were only Android and Whatsapp (but no media was present) folders and storage was empty. But all my installed apps are there and they work like normal except the games which had files in SD card (like asphalt xtreme, Angry Birds 2)
Soory for this long boring story but PLEASE PLEASE PLEASE somebody tell how did that happen.
What actually happened?
Were was the fault?
Anyone else faced this issue ever?
Ashish.akc said:
I connected my phone to Windows 10 laptop and copied over a folder I download from torrent to the laptop and then I was going through the folders I had in my storage and saw that there was one named 'sdcard'. I opened it and saw there was 'UC Browser' related folder (I think it was UC Downloads but don't remember it correctly but sure there was UC in the name). I deleted that folder happily thinking I cleared some useless folder and then I ejected my phone and opened gallery and all photos were grayed. No thumbnails. I restarted my device and BOOM.... ALL MY FILES WERE DELETED. there were only Android and Whatsapp (but no media was present) folders and storage was empty. But all my installed apps are there and they work like normal except the games which had files in SD card (like asphalt xtreme, Angry Birds 2)
Soory for this long boring story but PLEASE PLEASE PLEASE somebody tell how did that happen.
What actually happened?
Were was the fault?
Anyone else faced this issue ever?
Click to expand...
Click to collapse
is your phone one plus 3. it doesn't have SD card slot
hem.acharya said:
is your phone one plus 3. it doesn't have SD card slot
Click to expand...
Click to collapse
Yeah I know that but it is oneplus 3. I told that there was a folder named 'sdcard' inside the internal storage
hem.acharya said:
is your phone one plus 3. it doesn't have SD card slot
Click to expand...
Click to collapse
Ashish.akc said:
Yeah I know that but it is oneplus 3. I told that there was a folder named 'sdcard' inside the internal storage
Click to expand...
Click to collapse
Yes and no.
Yes ---> when you boot to TWRP and go to "Install", you will be in a folder named "sdcard". It is the folder where you can transfer files into it from the computer (vise versa), install ROMs, etc.
No ---> OnePlus 3 doesn't have an SD card slot.
Let me know if you need more information.
Also, I've posted a guide to solve a lot of issues with the latest Nougat release. Check it out: https://forum.xda-developers.com/oneplus-3/how-to/guide-flashing-oos-v4-0-1-custom-rom-t3537757
If you connect laptop to 1+3 in TWRP, sdcard it's youre internal memory.
If you connect laptop to 1+3 in system, internal memory it's where you got youre media, documents, etc. Youre sdcard it's from the rom.
Recently, i was on a rom and i have a 0 directory. And in it was my pictures, music, movies. They are moved inside of 0.
That happend to, on my HTC One m8, when Android 6 was new, about a year ago.
Ashish.akc said:
I connected my phone to Windows 10 laptop and copied over a folder I download from torrent to the laptop and then I was going through the folders I had in my storage and saw that there was one named 'sdcard'. I opened it and saw there was 'UC Browser' related folder (I think it was UC Downloads but don't remember it correctly but sure there was UC in the name). I deleted that folder happily thinking I cleared some useless folder and then I ejected my phone and opened gallery and all photos were grayed. No thumbnails. I restarted my device and BOOM.... ALL MY FILES WERE DELETED. there were only Android and Whatsapp (but no media was present) folders and storage was empty. But all my installed apps are there and they work like normal except the games which had files in SD card (like asphalt xtreme, Angry Birds 2)
Soory for this long boring story but PLEASE PLEASE PLEASE somebody tell how did that happen.
What actually happened?
Were was the fault?
Anyone else faced this issue ever?
Click to expand...
Click to collapse
I think to have understood the issue: you've deleted the entire Internal Storage (aka /sdcard or /storage/emulated/0).
There is no other reason.
Luckily, both system and installed apps are stored with their own configurations in /data partition, that's different from the Internal Storage.
To recover files, you can at first try with Android software: GT Recovery.
Otherwise, you've to look for commercial PC programs:
http://alternativeto.net/software/jihosoft-android-phone-recovery
dbabaev21 said:
Yes and no.
Yes ---> when you boot to TWRP and go to "Install", you will be in a folder named "sdcard". It is the folder where you can transfer files into it from the computer (vise versa), install ROMs, etc.
No ---> OnePlus 3 doesn't have an SD card slot.
Let me know if you need more information.
Also, I've posted a guide to solve a lot of issues with the latest Nougat release. Check it out: https://forum.xda-developers.com/oneplus-3/how-to/guide-flashing-oos-v4-0-1-custom-rom-t3537757
Click to expand...
Click to collapse
null0seven said:
If you connect laptop to 1+3 in TWRP, sdcard it's youre internal memory.
If you connect laptop to 1+3 in system, internal memory it's where you got youre media, documents, etc. Youre sdcard it's from the rom.
Recently, i was on a rom and i have a 0 directory. And in it was my pictures, music, movies. They are moved inside of 0.
That happend to, on my HTC One m8, when Android 6 was new, about a year ago.
Click to expand...
Click to collapse
Simone98RC said:
I think to have understood the issue: you've deleted the entire Internal Storage (aka /sdcard or /storage/emulated/0).
There is no other reason.
Luckily, both system and installed apps are stored with their own configurations in /data partition, that's different from the Internal Storage.
To recover files, you can at first try with Android software: GT Recovery.
Otherwise, you've to look for commercial PC programs:
http://alternativeto.net/software/jihosoft-android-phone-recovery
Click to expand...
Click to collapse
I never installed twrp. I have been running it all stock all the time and always used the default file manager.
And let me get more detailed about the folder I deleted: the folder named 'sdcard' was located in root directory that is in the same directory as there are other folders like Android, DCIM, Downloads, Pictures and others. It appeared like any other folder.
I had taken a full backup of the internal storage in last week of November and saw that there was no folder named 'sdcard' there.
Ashish.akc said:
I never installed twrp. I have been running it all stock all the time and always used the default file manager.
And let me get more detailed about the folder I deleted: the folder named 'sdcard' was located in root directory that is in the same directory as there are other folders like Android, DCIM, Downloads, Pictures and others. It appeared like any other folder.
I had taken a full backup of the internal storage in last week of November and saw that there was no folder named 'sdcard' there.
Click to expand...
Click to collapse
I find it much strange (like the name of your thread ).
/sdcard should be seen as a folder only when you are browsing device with root permissions (and in rare contexts).
Because via PC or non-root File Manager, that folder is shown as Internal Storage, so can't be deleted.
Folders like Android, DCIM etc. are subdirectories of /sdcard, so you erased that too.
Regarding TWRP recovery: it backups only /data partition, because of more convenience.
Internal Storage shouldn't be erased after factory reset or firmware changing, then it maybe very big.
Personally I'm in disagree, because user should be free of doing "uncomfortable" choice.

Categories

Resources