[Q] need help moving app + app data to external partition sd card - General Questions and Answers

hi all, i recently joined this forum to learn more. this is my first post and i am not an expert and still nub
i am sorry if my question is nubby but i didnt find the question anywhere else on forums so please help.
i recently rooted my android phone just to transfer app and app data to sd card as i read that we can do that after root.
so i rooted android phone and partitioned the sd card with a fat32 and a ext2 filesystem to store personal and app data respectively. i found tutorals on internet to do this and found a app called link2sd links and transfers all apps to sd card easily. i am using that app but i cant buy its paid version from google play. so i am not able to link the internal data to sd card as it requires the plus version. so i thought i would manually copy that internal data and paste it on the sd card and here are the problems i face :
1. i copied the internal data on the fat32 partition but it was of no use and the app again download data on internal memory
2. i thought to copy data to ext2 partition but i cant view that partition or explore it from es file explorer and root explorer both
so i wanna ask is there any way i can manually link that internal data to sd card without using link2sd plus, and how can i view that ext2 partition in my android phone.
thank you all in advance and please help.any help wud be really appreciated

I can give you a way to install any app to your sdcard directly
first of all you should have all these in your pc
java-7-jdk
usb driver for your phone
android sdk
adb
now go to the direction where you install android sdk
now open SDK Manager.exe
uncheck the mark from all except android SDK platform-tools
click install then accept all
on your phone mark usb debugging
then open the command where you had installed SDK (click shift whit the mouse button right -- open command window here)
connect your phone
then type adb devices -- to check that your phone is connected -- it will give you this
List of devices attached
************ device
then type
adb shell pm set-install-location 2
that's it
if you want to reinstall on the phone storage type
adb shell pm set-install-location 0

be free said:
I can give you a way to install any app to your sdcard directly
first of all you should have all these in your pc
java-7-jdk
usb driver for your phone
android sdk
adb
now go to the direction where you install android sdk
now open SDK Manager.exe
uncheck the mark from all except android SDK platform-tools
click install then accept all
on your phone mark usb debugging
then open the command where you had installed SDK (click shift whit the mouse button right -- open command window here)
connect your phone
then type adb devices -- to check that your phone is connected -- it will give you this
List of devices attached
************ device
then type
adb shell pm set-install-location 2
that's it
if you want to reinstall on the phone storage type
adb shell pm set-install-location 0
Click to expand...
Click to collapse
Ah, thanks a lot mate for your help. I may try it bt is there any simpler way like a app like link2sd which does nt require purchase or just transfering the data from root folder . Also can any1 tell how can i explore ext2 partition?

[/COLOR]
sweetlemon said:
Ah, thanks a lot mate for your help. I may try it bt is there any simpler way like a app like link2sd which does nt require purchase or just transfering the data from root folder . Also can any1 tell how can i explore ext2 partition?
Click to expand...
Click to collapse
try this .exe program
mobilego
http://download.wondershare.com/mobilego_full818.exe
or use this if the option move to sdcard isn't appear on apps info http://www.mediafire.com/download/a46l27yiupgw1vm/GeeksAR.com.App2SD-Patch-ENG.zip
use this to read ext2
https://docs.google.com/file/d/0B4UdboVnxTSkWmhmTkNhcFZ4UzQ/edit?pli=1

Related

How to install apps DIRECTLY to SD card without putting them in phone memory

I know that there are several threads explaing how to move you apps from phone memory to SD card but this is not what I need.
I want to know if there is a way of installing an application directly to my SD card. I want to install an application that is bigger than my hole phone memory so I can't put it first on phone and move it afterwards.
I have a HTC Hero with 2.1 on it, with root and superuser.
Until now I user Link2SD ( something similar with apps to SD) but it can't be user now.
//sry if there is another thread explaining how to do this but I couldn't find it.
If you know the directory on the sdcard to install the app into its easy with ADB.
example for mine with sd-ext partition for extra programs
adb remount
adb push stuff.apk /sd-ext/app
replace "stuff.apk" with the actual file obviously.
and it should auto install
In the Link2SD forum http://forum.xda-developers.com/showthread.php?t=919326
It seems to use /data/sdext2 instead of /sd-ext/app
hope that helps
But I think it still uses a place in the memory (same as installing in the memory then moving it to the SD card)!!
Just an idea...
I have not tried this, but how about,
1) Create a large folder on the sd card big enough to hold all existing apps and your new app.
2) Copy all app files from installation folder in phone memory to sd folder.
3) Rename phone folder (just so it is not found)
4) Create symlink for this folder to sd folder.
5) Install your app.
6) Move new app to SD.
7) Copy any residual files from the installation into the original folder (I don't believe that any apps install 100% on SD).
8) Delete symlink,
9) Rename phone folder back to original name.
Obviously, renaming and symlinking will have to be done using ADB in recovery mode, and may need an ext partition.
Messy, maybe dangerous, and may not even work.
How badly do you want to install this big app?
Just came across this thread while looking for the same solution, and thought I'd share what I came up with what I did:
Code:
adb shell pm setInstallLocation 3
adb install -e Package.apk
adb shell pm setInstallLocation 0
The "pm" commands change the default installation target to SD-Ext. I'm not sure they're needed.
The -e switch to "adb install" isn't in the adb docs, but when I ran "pm" on my device directly, that's the switch to use with pm install to install to SD-Ext. I assume adb is just passing the switches to "adb install" through to "pm install".
This was done on a HTC Dream running "Froyo by Laszlo", a CyanogenMod Froyo build with Native App2EXT [Magpie], so your mileage may vary.

Need help backing up data with ADB on my captivate (broken screen)

[resolved]
I have a broken (completely black) screen on my captivate Im trying to back up all my files from the INTERNAL memory. I can't see the screen so obviously I can't mount the phone to view the files on my PC. I have gotten 'pull /system/ /local/' to work however when I try something like 'pull /data/ /local/' it says "pull: building file list... 0 files pulled. 0 files skipped."
Basically, how do I use ADB to get all of my files to my computer? Help is certainly appreciated. After this I will probably reset the phone and then maybe sell it as is. Not too sure.
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
diablo009 said:
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
Click to expand...
Click to collapse
I do not have any type of backups apps or anything like that on the phone.
I have an external sd card however Im not sure how thats different than using adb to copy the files from the internal memory to my computer. I am fine with using pull but maybe im using the wrong directory name for my personal files?
Have you tried qtadb or droidexplorer. Would be easier imo.
newter55 said:
Have you tried qtadb or droidexplorer. Would be easier imo.
Click to expand...
Click to collapse
That requires a rooted phone right? My phone is currently not rooted and I don't know if I would want to. How come I cant just use the adb pull command on the folder with my data in it?
edit - i might have found a command that works, i will update when finished.
ok this worked for me: 'adb pull / d:\backup\'
thanks everyone for your help.
Yeah. Assumed you were rooted sorry. Just thought that way you could see everything and point and click.
So I have a similar situation to this only I have a phone that isnt rooted and usb debugging isnt enabled. However I know the phone boots on, and I can also get into recovery mode where I am able to ADB to get a basic shell, and see the device but that is about it. I feel that if I could enable usb debugging thru recovery mode I might be able to mount the /sdcard and then pull files from there. anyone got any ideas if I could get a reboot with usb debugging enabled from recovery or maybe just a command that I could use in shell via recovery?? Please Please lol. I have a strong feeling i might have hit a wall.
http://forum.xda-developers.com/showthread.php?t=1164598

[GUIDE] Photo Recovery from Internal Memory

Hey guys, I've found a way to recover files from the INTERNAL Memory of the Samsung Galaxy S4.
A lot of people have said that it's not possible, but I'm here to prove them wrong.
You have to have rooted your phone before carrying out these steps. Don't post here asking for help rooting, there's plenty of other threads that can help you with that.
I hold zero liability in the event that you make a nice brick out of your phone. If you do not feel comfortable working with these commands, then please don't follow them.
You're going to need an SD Card that's at least the size of the internal memory on the phone. A smaller one would work, but keep in mind not all the files are going to be recovered.
If the SD Card is brand spanking new, you can skip step number 1.
Format the SDCard with a layer of 0's. This is done so that none of the old data will interfere with your recovery. This step is optional.
Root the Device
Install Terminal Emulator
Insert the SDCard
In Terminal Emulator run the command to gain super user privileges
Code:
su
Grant Terminal Emulator super user privileges
Run this command,
Code:
dd if=/dev/block/mmcblk0p29 of=/storage/extSdCard/raw.dd
Wait. Leave your phone plugged into an AC Adapter, and go grab a can of pop. This command will take a looong time. Couple hours to a day.
Once the command is finished running, shutdown your phone.
Remove the SDCard, and connect it to a computer
Download TestDisk
Open PhotoRec
Select the SDCard and press enter
Use the first option of "Unknown"
Then press "Other"
Select the Directory to backup the files to
Profit
'
How it works:
By dd'ing the internal memory to a file on the SDCard, you're doing a raw copy of the data.
Once the data is copied onto the SDCard, PhotoRec will scan the SDCard for deleted data, doing so will scan the raw file for photos. Not just photos, all files can be recovered using this method.
This method works on all rootable phones, provided you can figure out where the dev block for the internal memory is.
Hope you guys get your files recovered. I know I did
Or just install a file recovery app from play store on a rooted phone and follow app instructions...
Worked a charm for me. lol
jamieridler said:
Or just install a file recovery app from play store on a rooted phone and follow app instructions...
Worked a charm for me. lol
Click to expand...
Click to collapse
Any app you recommend in particular?
Bingley said:
Any app you recommend in particular?
Click to expand...
Click to collapse
Tbh I just downloaded the first app I came across that was free and had half decent reviews, can't remember what one, it was a little while ago, but there are loads of them in the store.
jamieridler said:
Or just install a file recovery app from play store on a rooted phone and follow app instructions...
Worked a charm for me. lol
Click to expand...
Click to collapse
A lot of those apps are for the external SD Card, only support the FAT filesystem, and not as robust as PhotoRec from TestDisk.
Newer devices(Such as the S4) have an ext3 filesystem I believe, and a few paid apps claim to offer support for it.
... Not to mention TestDisk is Open Source :angel:
zzarzzur said:
A lot of those apps are for the external SD Card, only support the FAT filesystem, and not as robust as PhotoRec from TestDisk.
Newer devices(Such as the S4) have an ext3 filesystem I believe, and a few paid apps claim to offer support for it.
... Not to mention TestDisk is Open Source :angel:
Click to expand...
Click to collapse
Although some might well be limited to FAT filesystem, some are not, its up to the user to check before downloading and installing. After that rather simple search and install, I managed to recover every img file on my phone, current and deleted, and back it all up to external memory, all with a free app, which offers img file recovery for free and any other file type of your choice for a small, one off, cost, if you needed it. I recovered almost 1gb of img files in under 10 minutes.
Am I correct in assuming your method copies the entire contents of the internal memory, or a portion of it, to an SD card before starting the search for deleted files? I'm just an amateur with little knowledge trying to figure out how your method works. Sorry don't mean to bash your method of doing it either, just commenting on this as your post suggest no one has ever been able to do this before and your method is the one and only way it can be done.
But if the device is factory reset, will you be able to get files? If i sell my device i don't want anyone sneaking on my photos.
problems
zzarzzur said:
Hey guys, I've found a way to recover files from the INTERNAL Memory of the Samsung Galaxy S4.
A lot of people have said that it's not possible, but I'm here to prove them wrong.
You have to have rooted your phone before carrying out these steps. Don't post here asking for help rooting, there's plenty of other threads that can help you with that.
I hold zero liability in the event that you make a nice brick out of your phone. If you do not feel comfortable working with these commands, then please don't follow them.
You're going to need an SD Card that's at least the size of the internal memory on the phone. A smaller one would work, but keep in mind not all the files are going to be recovered.
If the SD Card is brand spanking new, you can skip step number 1.
Format the SDCard with a layer of 0's. This is done so that none of the old data will interfere with your recovery. This step is optional.
Root the Device
Install Terminal Emulator
Insert the SDCard
In Terminal Emulator run the command to gain super user privileges
Code:
su
Grant Terminal Emulator super user privileges
Run this command,
Code:
dd if=/dev/block/mmcblk0p29 of=/storage/extSdCard/raw.dd
Wait. Leave your phone plugged into an AC Adapter, and go grab a can of pop. This command will take a looong time. Couple hours to a day.
Once the command is finished running, shutdown your phone.
Remove the SDCard, and connect it to a computer
Download TestDisk
Open PhotoRec
Select the SDCard and press enter
Use the first option of "Unknown"
Then press "Other"
Select the Directory to backup the files to
Profit
'
How it works:
By dd'ing the internal memory to a file on the SDCard, you're doing a raw copy of the data.
Once the data is copied onto the SDCard, PhotoRec will scan the SDCard for deleted data, doing so will scan the raw file for photos. Not just photos, all files can be recovered using this method.
This method works on all rootable phones, provided you can figure out where the dev block for the internal memory is.
Hope you guys get your files recovered. I know I did
Click to expand...
Click to collapse
So i've followed your guidelines to a 'T' with a brand new 64g (huge, i know) Sd card, but the command line responds with, "writer error: file to large". Any advice as to how to proceed?
Really appreciate your efforts on this issue, btw!

[Q] Sony Xperia L - increase internal storage

Hi, I have Sony Xperia L (C2105) with Android 4.2.2 and it is rooted. My phone should have 8 GB of internal memory. Only 5.57 GB is usable but it would not matter. 4 GB of 5.57 GB is separated and marked as "sdcard0". So I can't install applications there but I can only move data of applications there. Remaining 1.57 GB is used as internal storage and all aplications are installed to this small storage. My memory card is marked as "sdcard1". Is there any way to increase internal storage or merge internal storage and sdcard0 to one big internal storage?
Donald750 said:
Hi, I have Sony Xperia L (C2105) with Android 4.2.2 and it is rooted. My phone should have 8 GB of internal memory. Only 5.57 GB is usable but it would not matter. 4 GB of 5.57 GB is separated and marked as "sdcard0". So I can't install applications there but I can only move data of applications there. Remaining 1.57 GB is used as internal storage and all aplications are installed to this small storage. My memory card is marked as "sdcard1". Is there any way to increase internal storage or merge internal storage and sdcard0 to one big internal storage?
Click to expand...
Click to collapse
If someone could make this Guide for Xperia L!!!
http://forum.xda-developers.com/showthread.php?t=2712253
Till then you could use FolderMount if you have root access and mount obb and app data folders to external storage!
I think i got em
david pro said:
If someone could make this Guide for Xperia L!!!
http://forum.xda-developers.com/showthread.php?t=2712253
Till then you could use FolderMount if you have root access and mount obb and app data folders to external storage!
Click to expand...
Click to collapse
check this out, guys
http://forum.xda-developers.com/xperia-s/s-development/tutorial-increase-data-partition-t2821058
david pro said:
If someone could make this Guide for Xperia L!!!
http://forum.xda-developers.com/showthread.php?t=2712253
Till then you could use FolderMount if you have root access and mount obb and app data folders to external storage!
Click to expand...
Click to collapse
Please look into this post I made a few weeks ago...the thread's name it's posted in doesn't help in finfing it I must admit.
So here it is for our Xperia L:
Open a command window: CMD, then get into shell:
adb shell
Once in shell, type:
umount /storage
parted /dev/block/mmcblk0
print
This prints out the partition information of your phone's memory chip
You will see the partition numbers in the first column, partition names in the last one,
in between you have the start/end memory index and the partition size
------start---end---size
...
31---1795---3506---1711---userdata
32---3506---7818---4312---sdcard​In the above output, consider the values indicated in italic as not to be changed !
Now calculate (open a spreadsheed if you like) the new value for the end of the userdata partition,
and use the same value for the start of the sdcard partition
On your sheet it should look something like this if you added 2048 to the userdata size
------start---end---size
31---1795---5554---3759---userdata
32---5554---7818---2264---sdcard​
Remove userdata and sdcard partitions:
rm 31
rm 32
Create the new userdata and sdcard partitions:
mkpartfs logical ext2 1795 5554
name 31 userdata
mkpartfs logical fat32 5554 7818
name 32 sdcard
Exit parted to go to the adb shell again:
quit
userdata partition (31) needs to have ext4 file system
The following will do the ext2->ext4 conversion:
cd /storage/sdcard1/fs-utils
tune2fs -j /dev/block/mmcblk0p31
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p31
e2fsck -fpDC0 /dev/block/mmcblk0p31
Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install
I'm waiting for this phone which bought few days ago. Do we need to have firmware file for doing that? Could you please explain for dumbs the "
Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install" thing??
My knowledge on this is reduced to flashtool and some root stuff. Thanks in advance
SoulFury said:
I'm waiting for this phone which bought few days ago. Do we need to have firmware file for doing that? Could you please explain for dumbs the "
Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install" thing??
My knowledge on this is reduced to flashtool and some root stuff. Thanks in advance
Click to expand...
Click to collapse
That means: If you have made a backup, use the backup. If not, flash some software (and wipe cache/data == clean install)
So I connect phone to pc, do the thing using ADB, then flash it with stock firmware(for example) wiping cache,huh? Seems easy. Many thanks
I'm trying it but adb won't let me do umount /storage, it sais "invalid argument" :S
SoulFury said:
So I connect phone to pc, do the thing using ADB, then flash it with stock firmware(for example) wiping cache,huh? Seems easy. Many thanks
Click to expand...
Click to collapse
Hey man I just realized that after repartitioning you should better not flash stock firmware as I heard many cases in which the phone was bricked afterwards (with CM there is no problem)
Sent from my C2105 using XDA Free mobile app
I've read about it too, but it seems to happen randomly :S. But my first problem is the "umount" thing
Up this guys, I really would like to do this thing
Kahana82 said:
Open a command window: CMD, then get into shell:
adb shell
Once in shell, type:
umount /storage
parted /dev/block/mmcblk0
print
Click to expand...
Click to collapse
Did you do that first step?
Sent from my C2105 using XDA Free mobile app
GreyLDroid said:
Did you do that first step?
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Did you try that with adb connected tot the phone within CWM recovery mode (not from your Android OS) ?
I've tried different ways
First of all, I have the phone with "usb debug" enabled, with my sdcard out and normally connected. If I do "adb devices" it launches daemon and show me my device connected
But when I enter the shell, if I do the same thing, devices is not showed, but I can access and do "ls" and navigate through the directories.
I can't either adb pull /dev/block/mmcblk0 mmcblk0.img, it sais that "remote object is not a file or directory", but it is.
I'm running Windows 7 SP1 with last version of Android Studio(SDK) and manually added my phone to android_winusb.inf
any idea? Thanks in advance
SoulFury said:
I've tried different ways
First of all, I have the phone with "usb debug" enabled, with my sdcard out and normally connected. If I do "adb devices" it launches daemon and show me my device connected
But when I enter the shell, if I do the same thing, devices is not showed, but I can access and do "ls" and navigate through the directories.
I can't either adb pull /dev/block/mmcblk0 mmcblk0.img, it sais that "remote object is not a file or directory", but it is.
I'm running Windows 7 SP1 with last version of Android Studio(SDK) and manually added my phone to android_winusb.inf
any idea? Thanks in advance
Click to expand...
Click to collapse
Try to navigate to the directory and then just use adb pull mmcblk0.img (without the path)
Sent from my C2105 using XDA Free mobile app
Well, something is going wrong. If I do adb devices at first, it shows my phon, but when I do adb shell, althoug I apparently have acces to my phone directories, adb devices is empty :S
SoulFury said:
Well, something is going wrong. If I do adb devices at first, it shows my phon, but when I do adb shell, althoug I apparently have acces to my phone directories, adb devices is empty :S
Click to expand...
Click to collapse
ah come on guys dont touch this if you are kinda that rookie... want to hardbrick your device?
i will explain you:
you do : adb devices
you do that ON PC
pc looks for devices and show you
then you do : adb shell
you will switch from PC to PHONE comand prompt
then you do again: adb devices
you do that ON PHONE ...
and on your phone there isnt another phone conected
Sent from my C2105 using XDA Free mobile app
Ooooook thanks. First of all, only starting to be a rookie you'll become master XDDD. Until now, I've only flashed,rooted and modded some firmware on all of my xperias since x10 mini pro, and I hope I'll learn more and more.
Next, still having the thing about the umounting of storage.I've tried with sdcard out. Even pull command(out of the shell xD) doen'ts work with dev/block/mmcblk0
SoulFury said:
Ooooook thanks. First of all, only starting to be a rookie you'll become master XDDD. Until now, I've only flashed,rooted and modded some firmware on all of my xperias since x10 mini pro, and I hope I'll learn more and more.
Next, still having the thing about the umounting of storage.I've tried with sdcard out. Even pull command(out of the shell xD) doen'ts work with dev/block/mmcblk0
Click to expand...
Click to collapse
adb devices
adb pull /dev/block/mmcblk0 c:/users/bla/mmcblk0.img
you have to do that ON PC command prompt.... dont switch to shell
Sent from my C2105 using XDA Free mobile app
That's exatcly what I do and I get always "remote object '/dev/block/mmcblk0' not a file or directory"(and I've verified that it exist)

nexus 5 wont detect internal storage

i just flashed candy5 rom i dont know if it has anything to do with that
in settings under "storage" it shows the internal storage but i cant download anything from the bowser it says USB storage not found.
You can start by looking here.
http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749
upndwn4par said:
You can start by looking here.
http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749
Click to expand...
Click to collapse
ok but i cant access terminal emulator
and my computer cant pick my internal storage aswelll
ok i managed to flash terminal emulator zip
and run the command and it work
but in TWRP it shows all my other stuff
and on the phone it shows only the downloaded files
are there two partitions or something? i need access to my files ASAP help
and my computer doesnt detect internal storage ???

Categories

Resources