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

[research]Another way to extend /data

OP prettywolf

15th March 2014, 06:57 AM   |  #1  
OP Junior Member
Thanks Meter: 0
1 posts
Join Date:Joined: Mar 2012
In almost mobile ,the /data is too small.Can we use extend tf card instead data to get more space?
I try do something:
use a 8GB tf card,format to ext4.
My device is a tv box,is a android OS device.
It mount tf to /mnt/sda/sda1.
I copy /data all file to it: cp /data/* /mnt/sda/sda1 -rf
Set a flag to check the tf is mount when android start.
touch /mnt/sda/sda1/tf

write a script:/system/etc/install-recovery.sh,This file is run when system start.

while [ ! -f /mnt/sda/sda1/tf ]
sleep 1
mount -o bind /mnt/sda/sda1 /data

Android started,it show /data is 8GB.
But when I install app,reboot device ,i can't see the app,but /data/app have the corresponding apk file,/data/data have the corresponding data file,
and /data/dalvik-cache have corresponding dex file.
What problem happend?
android will search installed app when it starting.
Maybe is search before install-recovery.sh running?
which is the search app? is service installd?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes