[HOWTO] Change Google Earth disk cache size - Android Software/Hacking General [Developers Only]

Hi everyone, I've seen a couple of requests on how to increase (or change) the max disk cache size. So I made it my mission to try and find out how to change it.
I've spent a couple of hours on it now and finally managed to figure out how to fix it
You'll either need adb or a simple file manager with a text editor. But before you do that kill Google Earth through Manage Applications or using a task manager. Once that's done either pull or edit /data/data/com.google.earth/drivers.ini.
When you've done that add the following to the end of the file before the ending bracket (so within SETTINGS).
Code:
DiskCache/cacheSize = 2000
DiskCache/minCacheSize = 0
DiskCache/cacheSizeOnDiskInMB = 2000
(Change 2000 to whatever size in MB you want).
Now simply push the file or save if you're using a file manager.
Good luck, and let me know if you run into any problems!

Impressed.., and excited...,
I´m trying to edit it but can´t find the google folder on data/data, need to have the device rooted?
Keep searching..

Have aplied Z4root to the Galaxy, installed eFile but can´t see drivers.ini anywhere.
sdcard/data/data there is only a folder called com.ideaworks3d.tackle
The only place where is com.google.earth is in: sdcard/android/data/com.google.earth/
inside this, there I found only cache folder, temp folder, and a hidden .nomedia file.

You will need to look in /data/data, not /sdcard (so yes, you need root and a file manager capable of viewing the root system).

Works!!! I could see the file with "root explorer". Edited and now limit is gone
Awesome. The Galaxy is amazing with GE with the onboard compass and multi-touch gestures response. Caching a zone conected to your wifi allows you to use GE offline on traveling, or climbing mountains. The compass auto-rotates the maps and the acelerometer controls the tilt. There are videos in youtube, I think I´ll upload another one. Thanks very much.

Just a note, if set the cache above 2000, GE resets the cache file and uses only 35KB on my phone, so no work. At 2000 (2GB) it works fine, I have more than 500MB now. In the other hand seems to me that Android version uses less amount of data so 2GB seems enough to cover a big area.

HomerSp said:
Hi everyone, I've seen a couple of requests on how to increase (or change) the max disk cache size. So I made it my mission to try and find out how to change it.
I've spent a couple of hours on it now and finally managed to figure out how to fix it
You'll either need adb or a simple file manager with a text editor. But before you do that kill Google Earth through Manage Applications or using a task manager. Once that's done either pull or edit /data/data/com.google.earth/drivers.ini.
When you've done that add the following to the end of the file before the ending bracket (so within SETTINGS).
Code:
DiskCache/cacheSize = 2000
DiskCache/minCacheSize = 0
DiskCache/cacheSizeOnDiskInMB = 2000
(Change 2000 to whatever size in MB you want).
Now simply push the file or save if you're using a file manager.
Good luck, and let me know if you run into any problems!
Click to expand...
Click to collapse
I realize this is a old topic but does this still work? I would like to increase the cache size on the desktop version of GE version 7.3.1.4507 (64-bit) and newer.
I found the drivers.ini file in Program Files/Google/Google Earth Pro/client/drivers.ini but I am not sure where to enter your code in the drivers.ini file, I will assume the ini file has changed over the years.
Code:
DiskCache/cacheSize = 2000
DiskCache/minCacheSize = 0
DiskCache/cacheSizeOnDiskInMB = 2000
Thanks in advance.

Related

TP2: Cant increase maximum tabs in Opera?

I read through the instructions here on how to increase the allowed tabs in Opera from just the default 2 tabs. Everytime I increase the tabs in the user preferences, I hit save, and reboot the phone.. and voila - back to 2 tabs.
any advice here?
you have to disable push enternet theres a cab for that on here then it will work
tcshort said:
you have to disable push enternet theres a cab for that on here then it will work
Click to expand...
Click to collapse
"push enternet" ??
I'm on a VZ TP2 as well. I finally got it to work after trying it several times. I have no idea why, but it finally "stuck".
SecretAgentMan said:
I'm on a VZ TP2 as well. I finally got it to work after trying it several times. I have no idea why, but it finally "stuck".
Click to expand...
Click to collapse
lucky you!
I had the same problem where the changes wouldn't stick after making the changes via the 'config: opera' page. I think there's an opera.ini file that you can edit that'll force the change. May require a restart of your phone once you edit the file.
There is also another way to do it. This is for the Sprint version, but I'm pretty sure it works for all TP2s. To manually do it follow the following instructions:
First get a program like Total Commander so you can edit files in the Windows folder of your phone. Open TC and navigate to Windows > Opera9 > and then locate the file named opera.ini . Rename the name of the file to opera.txt and then use file explorer the open the file.
Navigate towards the end of the document, and there should be some text that says something like "Max Number of Tabs = 2" Change the 2 to a 5 (5 is the max number of tabs) and save the file.
Then go back in TC and rename the file back to opera.ini and reset your phone. Open up Opera and now you can have 5 tabs

[APP] Instant Upload

This app is to be used to conveniently upload files to your FTP or SFTP server.
The app has a queuing functionality which can be enabled under settings.
Help text (from app):
Instant Up is used to quickly upload any type of file to your server.
FTP settings must be configured before use. To configure, choose Settings in the options menu.
Here is an example, to help you configure.
If you specify file type zip and path myZipFolder, all zip files will be uploaded to myZipFolder.
If you want all file types to be uploaded to the same server directory, specify * in the file type column. This rule will be used for all files not matching any of the other rules.
If no rule exists for the current file type you will be forwarded to an FTP browser to let you select a destination folder.
Start using Instant Up now by, for instance, downloading a file in the web browser and clicking on it in the Downloads section of the browser.
If queueing is enabled in settings, files will not be uploaded instantly, instead you are able to queue up all files that you need to upload. If all files in queue are matching some rule defined, the files will be uploaded to the correct folders depending on the rules. If some file does not match any rule, you will be asked for an upload folder and (NOTE) ALL files in queue will be uploaded to that folder.
Versions
2.2: Free version now supports SFTP as well, and it now has ads. Also fixed a bug of being able to add non-numbers in port field.
2.1.2: Fixed error when trying to upload non-file items
2.1.1
now supports sharing multiple files (e.g. from Gallery)
Fixed bug when trying to share other stuff than files
2.1: now supports sharing (from Gallery app for instance)
2.0.1: support for earlier OS:s (1-6 - 2.1) Prior to this only 2.2 was supported.
2.0: queueing, App2SD, bugfixes
1.0.1: bugfixes
1.0: initial version
QR and links
Since I was not allowed to add links to this forum, you just have to search for Instant Development in the Market.
Feedback
If you see any problems in the app or have any suggestions, please post here. If you like the app please rate and comment it in the market.
I like your sftp app, but could you please add public key authentication?
elmicha said:
I like your sftp app, but could you please add public key authentication?
Click to expand...
Click to collapse
Thanks.
How would you like that to work?
Like in AndFTP or Connectbot. The AndFTP method is a lot simpler than the Connectbot method. I would say that the simpler method is enough:
The user generates a public/private key pair with ssh-keygen or dropbearkey on his server. Then he appends the public key to his ~/.ssh/authorized_keys and copies the private key to the phone. The sftp client can now import that private key and use it.
Probably it would be easier if you would specify a fixed directory and filename where the user should store his private key, e.g. /sdcard/InstantUpload/id_dsa (or id_rsa). If there is a file with that filename, Instant Upload can import the key and store it internally, and then delete the file. That way you don't need a file selection dialog and the user doesn't need to hunt for the file with that dialog.
elmicha said:
Like in AndFTP or Connectbot. The AndFTP method is a lot simpler than the Connectbot method. I would say that the simpler method is enough:
The user generates a public/private key pair with ssh-keygen or dropbearkey on his server. Then he appends the public key to his ~/.ssh/authorized_keys and copies the private key to the phone. The sftp client can now import that private key and use it.
Probably it would be easier if you would specify a fixed directory and filename where the user should store his private key, e.g. /sdcard/InstantUpload/id_dsa (or id_rsa). If there is a file with that filename, Instant Upload can import the key and store it internally, and then delete the file. That way you don't need a file selection dialog and the user doesn't need to hunt for the file with that dialog.
Click to expand...
Click to collapse
Thank you for a very thorough description. I will have a look at it!
Good and thorough work, man. But for what reason? Most of Android file explorers already can interact with FTP.
Corias said:
Good and thorough work, man. But for what reason? Most of Android file explorers already can interact with FTP.
Click to expand...
Click to collapse
Thanks.
The only reason why I started to build this app was that I wanted something that in the fastest way possible let me download any file from the browser and directly upload it to an SFTP server.
I have searched for apps that supported this, but none of them could do this.
With the file explorers you have to do something like the following:
Download file from browser
Close browser
Open File Explorer
Browse to the folder containing the file
Find the file in the folder
Long click the file
Select upload action
Select destination folder
With this app only three steps are required:
Download file from browser
Click on file
Select application (Instant Upload)
New version out. The free version now supports SFTP as well.
Since the market link leads here I assume you did the Spotify Controller app.
I just installed the server on Win7 x64 and...there is a LOT wrong with it.
I actually package software for a living, unless you protest I will probably try to put together a PROPER package for the current version of the server software.
Honestly, using a zip file means everything gets tagged as a download from the internet, which means every batch files prompts (or more usually, just flat out fails when called from a batch files). Using a vbscript to create shortcuts is ok, but the shorcut didn't have the working directory set. It points to the controller.bat in the main directory, which calls controller.bat in the server subdirectory, which is redundant and asking for trouble. The batch files it calls will almost never work on Win7 (even 32 bit) and surprised it works in XP, because it calls %~dp0java but the JRE by default doesn't add itself to the PATH variable so the server fails to start 100% of the time (this can be fixed by finding the path to java.exe and setting the shortcut to call java.exe and then the command line (don't forget to set the working directory to the /server folder or it will vomit). So both those batch files are unnecessary and break easily.
I had to go through the install.bat and change the paths from %~dp0 to hardcoded, again you could probably come up with just about anything OTHER than a batch file and it would work, as opposed to the way it is now which...doesn't...
Also for us US users new to the party the example URI in the installer isn't available in the US so no matter what it's broken, I found a Green Day song (Jesus of Suburbia) that works and appears to be available everywhere.
http://open.spotify.com/track/10lT3pp9QERGOWiIzLx4We
The server is nice, and fast, and for what it is (and the price) works well. Especially for "party mode" of just switching between playlists or "ohhh I really wanna listen to song x right now!"
But the installer as it is...is so broken as to be virtually useless. The only downside to me making a package for this is that everytime you update the software I'd either have to do it again or use something free like, I believe nullsofts installer.
I would highly recommend learning the Nullsoft installer btw, it is free, and can do a LOT better job than batch files. As far as I know (I use a several thousand dollar software suite at work not nullsoft so I'm not too good with nullsoft) it can even do things like execute a command and wait for feedback.
alcaron said:
I would highly recommend learning the Nullsoft installer btw, it is free, and can do a LOT better job than batch files. As far as I know (I use a several thousand dollar software suite at work not nullsoft so I'm not too good with nullsoft) it can even do things like execute a command and wait for feedback.
Click to expand...
Click to collapse
Thank you for your feedback. The packaging thing has been nagging me for a while now.
I know my packaging is poor and I would be very grateful for any help!
I have tried things like Nullsoft before, and I did not do very well.
Is there any chance that you could create a package for Spotify Controller and instruct me on how to keep that package updated when I release future versions?
I'm actually working on a couple scripts right now, because as nice as MSI's are, there isn't a really good free editor, but at least I can maybe give you some scripts that will make it a little more fault tolerant.
This should create your shortcuts.
Code:
Option Explicit
Dim oFSO, oWsh, link, javaLoc, instDir, shstart, shstop, t1, t2
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oWsh = CreateObject("WScript.Shell")
instDir = "C:\Program Files\SpotCon"
t1 = "C:\Program Files (x86)\Java\jre6\bin\java.exe"
t2 = "C:\Program Files\Java\jre6\bin\java.exe"
If oFSO.FileExists(t1) Then
javaLoc = t1
ElseIf oFSO.FileExists(t2) Then
javaLoc = t2
End If
Set shstart = oWsh.CreateShortcut("C:\Users\alcaron\Desktop\Start Server.lnk")
shstart.Arguments = "-jar start.jar jetty.port=1258"
shstart.Description = "Spotify Controller"
shstart.IconLocation = instDir + "\resources\icon.ico,0"
shstart.TargetPath = javaLoc
shstart.WorkingDirectory = "C:\Program Files\SpotCon\server"
shstart.Save
Set shstop = oWsh.CreateShortcut("C:\Users\alcaron\Desktop\Stop Server.lnk")
shstop.Arguments = "/F /fi " + CHR(34) + "IMAGENAME eq java.exe" + Chr(34)
shstop.Description = "Spotify Killer"
shstop.IconLocation = instDir + "\resources\icon_kill.ico,0"
shstop.TargetPath = "C:\Windows\System32\taskkill.exe"
shstop.WorkingDirectory = "C:\Windows\System32"
shstop.Save
The spotifyOpenUri.bat needs to be updated to somehow tell where spotify is installed to. It SHOULD be as simple ad swapping between %programfiles(x86)% and %programfiles%
I hate microsoft for introducing the (x86) directory...whomever did that should be banned from touching computers.
spotify.bat also needs the same modification.
The install.bat is the one that has the most problems. More on that in a second.
Also you can take a zip file capture of your directory and use nullsoft installer to generate an install from that zip file, that gets you around the "tagged as from the internet" issue AND gives you an installer. But it isn't going to give you a shortcut without using a script I don't think.
alcaron said:
The install.bat is the one that has the most problems. More on that in a second.
Click to expand...
Click to collapse
Looking forward to further instructions
alcaron said:
This should create your shortcuts.
Code:
Option Explicit
Dim oFSO, oWsh, link, javaLoc, instDir, shstart, shstop, t1, t2
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oWsh = CreateObject("WScript.Shell")
instDir = "C:\Program Files\SpotCon"
t1 = "C:\Program Files (x86)\Java\jre6\bin\java.exe"
t2 = "C:\Program Files\Java\jre6\bin\java.exe"
If oFSO.FileExists(t1) Then
javaLoc = t1
ElseIf oFSO.FileExists(t2) Then
javaLoc = t2
End If
Set shstart = oWsh.CreateShortcut("C:\Users\alcaron\Desktop\Start Server.lnk")
shstart.Arguments = "-jar start.jar jetty.port=1258"
shstart.Description = "Spotify Controller"
shstart.IconLocation = instDir + "\resources\icon.ico,0"
shstart.TargetPath = javaLoc
shstart.WorkingDirectory = "C:\Program Files\SpotCon\server"
shstart.Save
Set shstop = oWsh.CreateShortcut("C:\Users\alcaron\Desktop\Stop Server.lnk")
shstop.Arguments = "/F /fi " + CHR(34) + "IMAGENAME eq java.exe" + Chr(34)
shstop.Description = "Spotify Killer"
shstop.IconLocation = instDir + "\resources\icon_kill.ico,0"
shstop.TargetPath = "C:\Windows\System32\taskkill.exe"
shstop.WorkingDirectory = "C:\Windows\System32"
shstop.Save
Click to expand...
Click to collapse
I downloaded Nullsoft (http://nsis.sourceforge.net/Main_Page) and tried your code above, but it didn't work at all to compile :-(
Unable to queue up multiple files to sftp from Gallery, only takes 1 file.
Downloaded Instant Upload this evening. Using SFTP to upload from the gallery in my HTC Desire Android phone. Seems to be able to only upload one jpg at a time when I select all. Hope you can get multiple file selections working eventually.
Austin Hook Milk River, Alberta, Canada
AustinHook said:
Downloaded Instant Upload this evening. Using SFTP to upload from the gallery in my HTC Desire Android phone. Seems to be able to only upload one jpg at a time when I select all. Hope you can get multiple file selections working eventually.
Austin Hook Milk River, Alberta, Canada
Click to expand...
Click to collapse
it works,you just have to enable queueing
First-thanks for the app, I'll put my app thoughts in a separate reply.
RE: Packaging apps
I too, in a former existence, was an app packager. It really isn't that hard, at a basic level, but can get some interesting complexities as you progress.
I still use my old Wise Studio to cleanup and customize my own installers/tweaks, etc. It's not great for 7/Vista, but so long as the app is simple it's ok.
There's a free MSI Creator/Editor out there called InstEd - check it out on insted dot com.
Check it out - the "advanced" version is $29.99. I haven't done much with it yet, but for free it's hard to beat.
If you guys want to swap MSI's and VBScripts on this-maybe we should spin up another thread just for the packaging piece.
Oh and I'll vouch for Alcaron's ideas about paths/shortcuts/vbs...you definitely have to be careful about assuming anything. I tend to do a LOT of validation in my scripts and try to fail out gracefully (and log it!), especially if I don't know where the package will be deployed. I log darn near every single line of my scripts - I like to know exactly where it fails.
---------- Post added at 04:28 PM ---------- Previous post was at 04:11 PM ----------
I'm likin' the app so far-makes using my SFTP server much more convenient!
Some ideas for features/mods:
I like the "use queue/add to queue" functionality, but it seems the queue will only process if I then open the app and start the processing. I guess what I'm looking for is a background processing - so I add a file to the queue, and the queue processes in the background so I can then go add more files to it. Along with this idea, maybe a setting (to with enabling queue) where the queue delays starting for a couple minutes.
The rules are a creative approach -I wouldn't have thought of that. Perhaps you can add a "Target Folder" option, with folders that the user pre-defines (similar to how rules are predefined). So when a file is selected for sending with Instant Upload, if you have any Target Folders defined it will popup a list. Otherwise it just goes to the default config.
Just some ideas-bounce them around the users and see what some other people think. They may come up with some interesting twists.
Thanks for the app!
ddback said:
First-thanks for the app, I'll put my app thoughts in a separate reply.
RE: Packaging apps
I too, in a former existence, was an app packager. It really isn't that hard, at a basic level, but can get some interesting complexities as you progress.
I still use my old Wise Studio to cleanup and customize my own installers/tweaks, etc. It's not great for 7/Vista, but so long as the app is simple it's ok.
There's a free MSI Creator/Editor out there called InstEd - check it out on insted dot com.
Check it out - the "advanced" version is $29.99. I haven't done much with it yet, but for free it's hard to beat.
If you guys want to swap MSI's and VBScripts on this-maybe we should spin up another thread just for the packaging piece.
Oh and I'll vouch for Alcaron's ideas about paths/shortcuts/vbs...you definitely have to be careful about assuming anything. I tend to do a LOT of validation in my scripts and try to fail out gracefully (and log it!), especially if I don't know where the package will be deployed. I log darn near every single line of my scripts - I like to know exactly where it fails.
---------- Post added at 04:28 PM ---------- Previous post was at 04:11 PM ----------
I'm likin' the app so far-makes using my SFTP server much more convenient!
Some ideas for features/mods:
I like the "use queue/add to queue" functionality, but it seems the queue will only process if I then open the app and start the processing. I guess what I'm looking for is a background processing - so I add a file to the queue, and the queue processes in the background so I can then go add more files to it. Along with this idea, maybe a setting (to with enabling queue) where the queue delays starting for a couple minutes.
The rules are a creative approach -I wouldn't have thought of that. Perhaps you can add a "Target Folder" option, with folders that the user pre-defines (similar to how rules are predefined). So when a file is selected for sending with Instant Upload, if you have any Target Folders defined it will popup a list. Otherwise it just goes to the default config.
Just some ideas-bounce them around the users and see what some other people think. They may come up with some interesting twists.
Thanks for the app!
Click to expand...
Click to collapse
Interesting with the first part about MSI, is there any chance you could try and make one for the Spotify Controller Server? That would be just awesome!!
Anywho, that discussion should really continue in the Spotify Controller thread, http://forum.xda-developers.com/showthread.php?t=952704 (or a new thread).
About the Instant Upload feature requests. I like the way you are thinking, and I have been thinking in that direction for a while as well. At least with the predefined folders. The background work would mean a bit more work, as I guess I would have to create a service, and I am not sure many people would use such a feature. Do you?

game - Drag Racing all cars & upgrades

[edit 5.13.2011] I removed my upload as the developer contacted me and ... just kidding. Actually, the game is changing to be a little more fun, the game now adds usernames & I don't know if they'll ever change the format of the dat file enough where this would screw up what you've already done, & nofear0705 says something about saves in game not saving with the dat I uploaded (though I don't know what he's talking about). Regardless, I'm going to write it up as a tutorial instead since it'd likely be educational for other games.
If you play Drag Racing and enjoy it I probably wouldn't use this. I love the game but was getting frustrated; and rightly so. Even after getting all the cash and respect points needed it took 30 minutes or so to make all the purchases :/
Anyways, I took the save.dat file and opened it in a hex editor to see where the $ and respect points were stored and then upped my points.
SPOILER ALERT- this will make the game a lot less fun.
requirements:
the Android adb shell from the Android SDK (look around on the forums for how to connect to your device via command line with adb shell
a hex editor. I used XVI32because it was a free Windows app
some hex to decimal / decimal to hex converter. I was using this website
Instructions:
connect your device with a usb cable
go to the folder where you have the adb shell command and type this to pull your current save.dat from the Drag Racing folder:
adb pull /data/data/com.creativemobile.DragRacing/files/save.dat c:\
once it's on your computer copy it so you have a backup
open the original save.dat you pulled in your hex editor
run the Drag Racing game on your phone & see how much money or respect points you currently have. let's say I have $50000
go to your decimal to hex converter and enter your amt of money in to convert it to its hexadecimal value. in our example 50000 in hex is C350. All we have to do is find this location and change it to a new value. Say the hex address where the money value is stored is the 12th hex address in the file (it's around there if I remember) and we want to change this to $999999.
go to your decimal to hexadecimal to convert your 999999 to hex which is F423F. just change those values in the file to your new values and save.
note: the hex editor will show the values in blocks of 2 characters. If you see the current value you want to change in the 11th and 12th hex blocks change it and the 10th blocks if the value you want to change is more characters than your current value. So, since I'm changing my value from C350 and they use the 11th and 12th blocks to F423F I'd need to use the 10th 11th and 12th blocks. You don't want to use too many blocks than what the game developer likely set as an assumed max dollar amount or you'll likely write into blocks where the developer stores other data (eg. cars purchased, upgrades, etc).
once you're done making your changes save the file and do an adb push of your save.dat back to the device
adb push c:\save.dat /data/data/com.creativemobile.DragRacing/files/
you can alway put your original back on if you messed up on the changes.
to change respect points you'd just do the same thing for the hex locations of your current respect points.
Sometimes it helped me to pull the file, race a round and pull another copy and open 2 instances of my hex editor with the first save.dat and one that had a new dollar amount open to easily see which hex addresses changed
By doing this any changes you make will not save in game anymore. So if you want to advance your sol. Also if you think putting back your old save.dat will work it won't. Try it and see.
IT Woks
im using a xperia x10 mini pro and its works many thanks
Way to make a game, not a game anymore...
I also did this a while ago, haven't played the game since then. It's no fun anymore.
But if someone is interested, I copied the save.dat from my phone using DroidExplorer (quick and easy).
After some searching I found the offsets for the money and respect points.
Money offset: 0x1E (3 bytes)
Respect offset: 0x23 (2 bytes)
Could be that the values are 4 bytes long, didn't test it, but it would make sense.
You can easily calculate the value you want. For example, if your hexeditor has this 3 bytes as money value "02 CF 61" you just convert them to decimal to get the money value. So 0x02CF61 is $184161.
can you post the drag racing apk. I formated the g2x and I dont see the game at all
Eroc162 said:
can you post the drag racing apk. I formated the g2x and I dont see the game at all
Click to expand...
Click to collapse
Why would you need the apk? It's in the market.
Please could you help me with this. ADB cant seem to find the data\data etcc file location within the android system .. :/
how to install this save.dat can anyone help me step by step
Here's my problem..
Just playing the game normal recently, phone locked up for some reason. Pulled the battery, rebooted phone. Drag Racing would force close every time it was started. Ok, no biggie as I have MyBackup Pro doing a nightly backup. So I wipe the data for the app, then restore my data from the most recent backup. Ok, still getting force closes. Next I go to the app data folder, copy the save.dat to somewhere else using Root Explorer. Clear the data again, then start the app. Runs fine, but of course is a fresh start. No cars, etc. Now, back to Root Explorer where I take my original (restored from backup) save.dat file and copy it back to the app's data location, overwriting the one there. App loads and runs now with no force closes, all my money, respect, cars are there and I can play the game fine, but it will not save any progress now whenever I exit the game.
Note that at no point did I open the save.dat and edit anything. Only copied and restored the file.
Any ideas or insight...or am I screwed & have to start over now?
@coucher can you connect to your phone with adb shell and navigate to the folder where save.dat is stored?
...in adb shell type:
cd /data/data/com.creativemobile.DragRacing/files/
then type:
ls -al
drwxrwx--x 2 app_52 app_52 4096 May 16 21:51 .
drwxr-x--x 7 app_52 app_52 4096 May 16 22:07 ..
-rwx------ 1 app_52 app_52 150 May 16 15:00 .flurryagent.-4de0351c
-rwxrw-rw- 1 app_52 app_52 3056 May 16 14:59 save.dat
the permissions for the save.dat should be -rwxrw-rw- (at least mine by default are). I'm curious if, somehow in your moving the file, the application doesn't have write permissions.
do they differ from that? or the directory permissions starting with drwxr above?
You'll also want to make sure the game wasn't running when you copy your backed up or modified save.dat file back into the game's data folder. Otherwise the Drag Racing game could not be picking up the file you changed. Confirm the game is stopped in your phone's settings, applications, manage applications & make sure it's stopped, then copy your save.dat over to the phone, go into adb shell & verify directory & file permissions are like the above, run the game a race & see if the money saved.
The changes to save.dat are trivial as long as you think you edited the right hex blocks with the right numbers. In the least make a copy of your save.dat maybe to your sd card & edit a copy of it you pull to your computer. In the end the permissions sound like what might be acting funny for you
jawz101...you're the man!
I couldn't get adb to work right to check the permissions out, but was able to use Root Explorer on the phone to do so. Restored my save.dat file again, checked the permissions, and they were different than yours. Set them to match using Root Explorer, exited, loaded Drag Racing app, noted the money amount I had, ran a quick race to change that amount, exited the app, loaded it back, and it saved the previous result just as it should. Looks like you were spot on that when restoring my back up save.dat that the permissions were getting set to read instead of read/write, so obviously the app couldn't write to the save.dat file to properly save the game status.
Thanks!!!
jawz101 said:
[edit 5.13.2011] I removed my upload as the developer contacted me and ... just kidding. Actually, the game is changing to be a little more fun, the game now adds usernames & I don't know if they'll ever change the format of the dat file enough where this would screw up what you've already done, & nofear0705 says something about saves in game not saving with the dat I uploaded (though I don't know what he's talking about). Regardless, I'm going to write it up as a tutorial instead since it'd likely be educational for other games.
If you play Drag Racing and enjoy it I probably wouldn't use this. I love the game but was getting frustrated; and rightly so. Even after getting all the cash and respect points needed it took 30 minutes or so to make all the purchases :/
Anyways, I took the save.dat file and opened it in a hex editor to see where the $ and respect points were stored and then upped my points.
SPOILER ALERT- this will make the game a lot less fun.
requirements:
the Android adb shell from the Android SDK (look around on the forums for how to connect to your device via command line with adb shell
a hex editor. I used XVI32because it was a free Windows app
some hex to decimal / decimal to hex converter. I was using this website
Instructions:
connect your device with a usb cable
go to the folder where you have the adb shell command and type this to pull your current save.dat from the Drag Racing folder:
adb pull /data/data/com.creativemobile.DragRacing/files/save.dat c:\
once it's on your computer copy it so you have a backup
open the original save.dat you pulled in your hex editor
run the Drag Racing game on your phone & see how much money or respect points you currently have. let's say I have $50000
go to your decimal to hex converter and enter your amt of money in to convert it to its hexadecimal value. in our example 50000 in hex is C350. All we have to do is find this location and change it to a new value. Say the hex address where the money value is stored is the 12th hex address in the file (it's around there if I remember) and we want to change this to $999999.
go to your decimal to hexadecimal to convert your 999999 to hex which is F423F. just change those values in the file to your new values and save.
note: the hex editor will show the values in blocks of 2 characters. If you see the current value you want to change in the 11th and 12th hex blocks change it and the 10th blocks if the value you want to change is more characters than your current value. So, since I'm changing my value from C350 and they use the 11th and 12th blocks to F423F I'd need to use the 10th 11th and 12th blocks. You don't want to use too many blocks than what the game developer likely set as an assumed max dollar amount or you'll likely write into blocks where the developer stores other data (eg. cars purchased, upgrades, etc).
once you're done making your changes save the file and do an adb push of your save.dat back to the device
adb push c:\save.dat /data/data/com.creativemobile.DragRacing/files/
you can alway put your original back on if you messed up on the changes.
to change respect points you'd just do the same thing for the hex locations of your current respect points.
Sometimes it helped me to pull the file, race a round and pull another copy and open 2 instances of my hex editor with the first save.dat and one that had a new dollar amount open to easily see which hex addresses changed
Click to expand...
Click to collapse
Would it be possible to get some detailed instructions? I can't find my money amount anywhere.
For example: I have 442751 bucks and 88 respect points. I type 442751 into the hex converter and it gives me 6C17F. So I go to xvi and and click search and then find and under text string i type 6C17F and click okay. It says string not found. If I type it into hex string it says "hex string not valid". I try doing this for my respect points, 88 becomes 58 in hex and I find 58 in 3 different places. Which one do I change? And how do I change it exactly? I'm kinda new to hex editing.
thanks to you too, Coucher For some reason I thought it had to be a permissions issue. Sometimes working with shared folders in Windows if a file had certain permissions inside a shared folder and you copy it out the permissions get stripped off. It was just a hunch that something like this might've happened when you copied it out to the sd card then put it back in the data folder.
Progress Report:
I may not think about this too much further and if someone wants to pick up where I'm leaving off - great.
With the latest update it looks like the save.dat got a facelift. Places where nothing was stored now looks like it has values of 41's (or A's in decimal) as filler.
Attached a picture (some hex values blurred to protect the innocent)
The changes to make usually looked like a spot-the-difference game.
I'd get the save.dat & open it up in hex editor, run another race to get some money or points and pull it and compare the 2. That being said these values have changed either through upgrades or dollar increases. The user name is in there somewhere too and that's why I deleted chunks of this picture out. Anyways. With the latest upgrades the math has to be different- still haven't thought it out because I'm not extremely bright but I suspect 5879 and 63 areas in this example are the general areas where money and respect points are. Maybe the 3238 is money... i dunno yet. Still thinking about it.
It'd probably be easiest to start with a game that hasn't been run much. my save.dat looks like a nightmare compared to the screenshot below because I've got more stuff since then.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Well, a picture is worth a thousand words so if anyone has ideas feel free to contribute but that's kinda how it's done. The new factor to contend with are if dollar & RP are now not as clear since they possibly are a difference from the new blank value.
I don't want to give instructions out to those who I would get ticked if their saved game got hosed because I said clickety here and type F3ksd8 or something but that might be the thing to do
I can't figure out what they're doing to the numbers to get the values any more.
I tried from a blank profile, bought a $15000 car, raced a race and compared all 3 profiles to have some numbers to work with ($15000, $0, and $192) so I have enough of a pattern to see where the dollar amounts are getting but it doesn't seem like it's as clear anymore.
I'm sorry ya'll but I lost my mojo. They must be reading this forum
If the developer ever lands on this thread a couple of suggestions:
please let us backup our progress online. maybe through an OpenFeint account?
money progress is a bit too realistic. To get all cars & upgrades it'd take at least a year and losing my full time job. Some of us like to play the game but seriously. Selling a car I've invested multiple times the cost of the car in upgrades should not be valued at fractions of the cost. The game should encourage car collecting as much as which car do I need at this moment. I tried just slowly saving up for each car but then your piddling around in only the lower level cars. I really don't have any suggestions on this one but I know for a fact it'd take at least $60 million dollars to purchase all of the current cars with all upgrades. When you look at it that way I'm sure people would give up out of frustration.
Make something else to do with lower level cars. If I'm racing level 6 cars what else do I need to do with a lower level car except sell it or keep it to look at? Something to think about for the way off future.
Ok I'm sorry I haven't been on to correct myself. If you move it within your phone with root explorer or what ever you use. If you follow Jawz directions it will work fine.
jawz101 said:
[edit 5.13.2011] I removed my upload as the developer contacted me and ... just kidding. Actually, the game is changing to be a little more fun, the game now adds usernames & I don't know if they'll ever change the format of the dat file enough where this would screw up what you've already done, & nofear0705 says something about saves in game not saving with the dat I uploaded (though I don't know what he's talking about). Regardless, I'm going to write it up as a tutorial instead since it'd likely be educational for other games.
If you play Drag Racing and enjoy it I probably wouldn't use this. I love the game but was getting frustrated; and rightly so. Even after getting all the cash and respect points needed it took 30 minutes or so to make all the purchases :/
Anyways, I took the save.dat file and opened it in a hex editor to see where the $ and respect points were stored and then upped my points.
SPOILER ALERT- this will make the game a lot less fun.
requirements:
the Android adb shell from the Android SDK (look around on the forums for how to connect to your device via command line with adb shell
a hex editor. I used XVI32because it was a free Windows app
some hex to decimal / decimal to hex converter. I was using this website
Instructions:
connect your device with a usb cable
go to the folder where you have the adb shell command and type this to pull your current save.dat from the Drag Racing folder:
adb pull /data/data/com.creativemobile.DragRacing/files/save.dat c:\
once it's on your computer copy it so you have a backup
open the original save.dat you pulled in your hex editor
run the Drag Racing game on your phone & see how much money or respect points you currently have. let's say I have $50000
go to your decimal to hex converter and enter your amt of money in to convert it to its hexadecimal value. in our example 50000 in hex is C350. All we have to do is find this location and change it to a new value. Say the hex address where the money value is stored is the 12th hex address in the file (it's around there if I remember) and we want to change this to $999999.
go to your decimal to hexadecimal to convert your 999999 to hex which is F423F. just change those values in the file to your new values and save.
note: the hex editor will show the values in blocks of 2 characters. If you see the current value you want to change in the 11th and 12th hex blocks change it and the 10th blocks if the value you want to change is more characters than your current value. So, since I'm changing my value from C350 and they use the 11th and 12th blocks to F423F I'd need to use the 10th 11th and 12th blocks. You don't want to use too many blocks than what the game developer likely set as an assumed max dollar amount or you'll likely write into blocks where the developer stores other data (eg. cars purchased, upgrades, etc).
once you're done making your changes save the file and do an adb push of your save.dat back to the device
adb push c:\save.dat /data/data/com.creativemobile.DragRacing/files/
you can alway put your original back on if you messed up on the changes.
to change respect points you'd just do the same thing for the hex locations of your current respect points.
Sometimes it helped me to pull the file, race a round and pull another copy and open 2 instances of my hex editor with the first save.dat and one that had a new dollar amount open to easily see which hex addresses changed
Click to expand...
Click to collapse
wheres the save.dat file.i have htc incredible.i found this com.creativemobile.DragRacing-1.asec
i have the htc INCREDIBLE.I just lost 18million dollars & all my cars & 46000 RP points cause the game is still buggy.I would like to do this my phone is not rooted can you step by step?would appreciate it.cant find this .dat file.i found this when i hooked my phone up.
com.creativemobile.DragRacing-1.asec
@spanky. I'm pretty sure you're not viewing the right part of the phone. I think the asec folders are on the sdcard, though I'm not sure.
You'll either have to connect your phone via usb cable & use the adb shell commands to navigate to the directory or use a file explorer application on a rooted phone.
if you don't see folders such as /data, /system, /usr you're not at root level of the phone
It'd be found under /data/data/com.creativemobile.DragRacing/files/save.dat
... for a nonrooted phone I'd in the least use Titanium backup or other backup programs that copy your application and game data (save games) to your sd card periodically. that way you can always roll back.
Sorry about the predicament. This game does need to save your profile online

Deleting history gave me 2gig of space!!

Hi people.
Was doing a little game play testing today when I re-downloaded hydro thunder to test it with the 360 controller. The thing is when I did it took like a minute to download and install. With the file size been 400mb I knew they was something up.
So as title says I went to control panel then internet options and deleted temporary files and history and bam 2.1gig extra. I find it silly that when you uninstall apps it keeps over half of the install size in the cache, stupid really.
And on another note when playing games on surface rt, playing with the 360 control removes all lag spikes.
Just did some browsing and maybe something else was involved. When I looked at the folder containing my temporary internet files, the largest was < 1MB. Nothing there looked like any remnants of an app. I will take a look at running the cleanup app, though. While nothing _should_ be left behind, I can easily believe that something would be left behind....
paschott said:
Just did some browsing and maybe something else was involved. When I looked at the folder containing my temporary internet files, the largest was < 1MB. Nothing there looked like any remnants of an app. I will take a look at running the cleanup app, though. While nothing _should_ be left behind, I can easily believe that something would be left behind....
Click to expand...
Click to collapse
Yes I found it odd, do me a favour download something large in size. Uninstall it then reinstall , it will take minutes to reinstall. Something is definitely going on here.
When updating Store apps, you'll often get an old copy of the app left as well, for some reason (as in, sitting in the \Program Files\WindowsApps install location). Disk Cleanup may take care of that, though.
GoodDayToDie said:
When updating Store apps, you'll often get an old copy of the app left as well, for some reason (as in, sitting in the \Program Files\WindowsApps install location). Disk Cleanup may take care of that, though.
Click to expand...
Click to collapse
Ugh - owned and locked by "Trusted Installer" - bane of my existence when it comes to system files and such. Hoping I can get to it on the Surface, but haven't tried yet. I'm always wary of trying to change permissions like this just because of what could break.
It may be owned by TruestedInstaller, but it's writable by Adminstrator. Just alunch an Admin CMD or Powershell prompt, and you can delete stuff to year herat's content. If you want a GUI, here's one way: launch Notepad (fromt eh Admin prompt), then use File -> Open and treat the Open dialog as an Explorer window. Explorer itself will refuse to run as Admin; if you try, it will downgrade its own permissions.
I cannot even get into program files to check, It says i do not have the rite permissions . And i do not even know where to start to allow it?
GoodDayToDie said:
It may be owned by TruestedInstaller, but it's writable by Adminstrator. Just alunch an Admin CMD or Powershell prompt, and you can delete stuff to year herat's content. If you want a GUI, here's one way: launch Notepad (fromt eh Admin prompt), then use File -> Open and treat the Open dialog as an Explorer window. Explorer itself will refuse to run as Admin; if you try, it will downgrade its own permissions.
Click to expand...
Click to collapse
Administrator prompt worked. However, looking through there on my Windows 8 work machine, I didn't see any leftover files (which is good). I haven't tried it on the Surface yet, but will try to do that later. Thanks for the tip.

|ROOT/ADB?| Fully stopping Instant Apps from installing ever again

Hey guys, this is my first thread, and I'm a bit confused on the app. Today I'll tell how did I stop the freaking google 'malware' from installing and updating every single day. This would work on any rooted device that has access to the data partition, maybe it could be reproduced via adb without root.
First off, I searched everywhere looking on how to disable, uninstall, break, or do anything to this forced battery hog. The best answers were using 'pm hide' on the package but this caused a very high battery usage, due to the file dependencies. So I searched where it was installed. Luckily enough, it is an user app, so it means I would find it on /data/app and /data/data. I will use solid explorer, but any file manager with root access and chmod to change permissions should do just fine.
Once we locate the folder (/data/app/com.google.android.instantapps.supervisor-1 in my case) we delete it. Utterly. After that, we will create a file, and name it exactly the same as the folder did. This is a dummy file that the system will believe it is a folder, and will try to install the application inside it. We fill that file with enough random characters for making the system think it can't just delete it (sometimes cleaners point empty files as worthless and wipe them out)
Now we need to make the dummy file unremovable for anyone but us, by using chmod. Solid explorer has a nice interface for that. We long press the file, enter to properties and set the permission to 0 0 0 (attributes tab). This makes play store unable to delete the file to recover the old folder, and when it tries to download the package, it will fail because it won't have a respective folder to be sent to.
After this, we reboot the phone and see that google play services for instant apps has lost roughly 90% of it's size, and when we enter settings>google>google play instant it'll ask for installation. I was bold enough to accept, just for getting an error dialogue when it tried to install itself.
Known issue: The app reinstalls once again after reboot. The cause is that, when android can't install the app in the first folder (the one that ends with a -1), it can create a second one (ending with a -2 instead), like an alternative. This is solved by just doing the same procedure above on the second folder, and you will end up having two dummy files instead of one. A third folder cannot show up, or at least it didn't in my phone.
Notes: You can repeat this with the folder in /data/data and any other data partition level instant app folder, but I wouldn't do it because I already broke all functionality since I deleted the base apk, and the app size is less than 300KB now so I don't think the trouble is worth it.
You must whitelist these files from any memory cleaner, i.e SD maid corpse finder will delete it thinking it's a leftover of an old app
WARNING; I'M NOT RESPONSIBLE FOR ANY MISLEADS, WRONGS, OR PLUTONIUM-UNSTABLE ROMS THAT MAY EXPLODE IN ANY WAY. YOU ARE THE RESPONSIBLE FOR YOUR DEVICE'S SAFETY AS THIS ISN'T EVEN FULLY TESTED IN MY PHONE AND I DON'T KNOW THE ULTIMATE CONSEQUENCES OF DOING THIS. YOU ARE WARNED.
PD: Please make some suggestions about how I made the thread, I did what I think it's my best

Categories

Resources