Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[method] change play store download location

OP xday123

8th April 2014, 05:26 PM   |  #1  
xday123's Avatar
OP Member
Flag karachi
Thanks Meter: 20
 
37 posts
Join Date:Joined: Jan 2014
Hi guys, today i am here to tell you a method only tested on a galaxy y, but i hope it will work for all. this is a method to change the download location for play store.

WARNING!!!
1. WARRANTY IS NOW VOID.
2. NOT MY PROBLEM IF SOME APP FAIL.
3. PLEASE, PLEASE, PLEASE DO A NANDROID BACKUP BEFORE THIS.


This is a simple code but it needs root for sure. now the necessities are as follows:
1. A complete nandroid backup
2. Root Permissions
3. Any terminal emulator. e.g https://play.google.com/store/apps/d...cticman.jsterm
4. You need to know the default download location and the mount point of sd card( if that is where you want the new download location )

Now let's start.
Just know this that mnt/sdcard will have to be replaced by your sdcard mount point and data/app will have to be replaced by the default download location. i underlined them for easy understanding.

NOT MY PROBLEM IF THIS FAILS AND YOUR PLAY STORE CRASHES. JUST DO A NANDROID RESTORE.

THERE WILL ALREADY BE A $ AT START SO U DON'T HAVE TO PUT IT.

Quote:

$ su
# mkdir /mnt/sdcard/playstore
# cp -r /data/app/* /mnt/sdcard/playstore
# rm -rf /data/app
# ln -s /mnt/sdcard/playstore /data/app

what the code does:
1. Grant super user permissions
2. Make a directory in sdcard named playstore.
3. Copy all items (recursively) from data/app to sdcard/playstore
4.Symlink the new location to fake the original.


Hitting Thanks can help.
and once again PLEASE BACKUP BEFORE THIS AND RESTORE IF NOT SUCCESSFUL.


This is based on the code used by link2sd.
Last edited by xday123; 10th April 2014 at 04:59 PM.
8th April 2014, 10:35 PM   |  #2  
Member
Thanks Meter: 11
 
33 posts
Join Date:Joined: Apr 2014
More
Question
Could you please double check your code fragments?

For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.


The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.


Just my 2
10th April 2014, 04:59 PM   |  #3  
xday123's Avatar
OP Member
Flag karachi
Thanks Meter: 20
 
37 posts
Join Date:Joined: Jan 2014
thanks dude
Quote:
Originally Posted by DThought

Could you please double check your code fragments?

For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.


The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.


Just my 2

looks like i was drunk making so much mistakes . corrected it.
13th April 2014, 09:37 PM   |  #4  
Member
Thanks Meter: 20
 
69 posts
Join Date:Joined: Jun 2012
It's not so simple if you use Link2SD. If you link some apps to sdext partition, some files in /data/app are symlinks which cannont be copied to /mnt/sdcard/playstore as it's FAT32. You have to try to symlink /app/data to folder on sdext partition. Create a folder /data/sdext2/playstore, copy /data/app/* there, delete /data/app and symlink /data/sdext2/playstore as /data/app. Sdext partition uses linux filesystem and all symlinks should work properly. I haven't tested it yet, but will do in a minute.

EDIT:
It doesn't work with Link2SD. Phone hangs on boot. It's probably cause Link2SD app must be directly in internal memory (so in real /data/app, not symlinked). I'll try to symlink /data/data or /data/dalvik-cache to save some internal memory but I doubt it'll work.
Last edited by Cyr4x; 13th April 2014 at 10:02 PM.
Post Reply Subscribe to Thread

Tags
android, play store
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes