send apps to sd card - avoid low storage advise warning

persona78

Senior Member
Apr 12, 2013
2,384
1,203
193
Hi!
This is a light version from the tutorial described below.
It create a full root WITH option to send your apps to sd card automatically!

How?

Because it create a funtional init.d folder in system/etc where you can put your own scripts to start on boot, giving you full control from your ROM/phone and if you have a ext4 partition in sd card ( 3 GB that's enough ), it will send your apps to sd card releasing storage.

LTE device have a default 2GB /data storage for apps and user definitions, phone call, etc. 3G device is worse!!!

So for a LTE device, 3GB from sd partition + 2GB from data partition = 5GB!

To show you why don´t need more, i have at this momente 61 app in /data/app ( in sd ext4 partition ) that fill 750MB - > 61 apps!!!

If you have a LTE device and your /data partiton is resized you can push a litle the size from external partition to 4GB ( that's enough ), im still trying to find a good size for external partition.

Why don´t need a bigger size?
Because there are file that still inside data partition, in /data/data and dalvik-cache, that still filling up data partition... you can´t take them all ...

3G devices need to be rooted with SuperSu zip first ( i don´t know way ) ... im a LTE user.

UPDATE-Kinguser-3.4.0-Modded_V2.zip
https://mega.nz/#!HoZniaSC

Key:
!tmmKUs-lnmAJo0Y4rcvxgZjYgsath0iTDBUYa7-T3YE

And this video shows how ROM works with a external ext4 partition in sd card what means that all apps go to sd card and let internal storage free:
https://youtu.be/7st6838_aAg

Use it only if you need it. Is your option.

I hope this helps you.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<<<<<<<The END of low storage>>>>>

I test it in L11 with B370 kit kat factory ROM. From 0.

!!!!Attencion!!!! 3G device users, read pinned post, you need to install SuperSU.zip first than this KingUser.zip to root OR WILL FAIL!!!!
In the step when you will install kinguser.zip change for this one, see the default tutorial here: https://www.facebook.com/groups/huawei.g6.development/permalink/578005512358705/

You need a primary external ext4 partition in sd card with the size you think you need for apps.
To create a primary ext4 partition in sd card with the size you want, you can use mini partition tool (for windows OS ).
http://www.partitionwizard.com/free-partition-manager.html

Need bootloader Unlocked:
https://www.facebook.com/groups/huawei.g6.development/permalink/504332286392695/

Need a custom recovery, i use TWRP for my L11, U models use more CWM, you can find it in G6SKnife.
Must have Windows OS to use G6SKnife:
https://www.facebook.com/groups/huawei.g6.development/permalink/577809609044962/

Than i modded this Kinguser flash zip that:
-Roots
-create a working init.d folder where you can store your scripts that will be executed on boot
-it will install busybox apk ( it need it to install some system tools )
- Rashr to change recoverys with the phone ( only need to have the images in sd card )
- It will automatically send all apps to your external ext4 partiton in sd card IF you have one!!!!

How to do it!!!!??????

READ IT CARFULL:

If you already have apps in phone do backup, use the phone default app for that.

Copy this zip to sd card:
UPDATE-Kinguser-3.4.0-Modded.zip
https://mega.nz/#!rhRknYDJ

Key:
!tnT9KAYOOcuSNm9eq7AcW_PHc2p-C4wjvssNI4IHAMU

Turn off and go to recovery ( TWRP or CWM ) by pressing at same time vol + and power.
Do a factory reset.
Go to install and search the UPDATE-Kinguser-3.4.0-Modded.zip and install it. The phone will reboot.

( A) After settings go to KingUser and open it to check if is ok than go back, open busybox, give root permissions, it will take some time seraching for old files than install it!!!!
( you will need this tools )

Reboot, and is done.

If you start from flash is the same process.

Now your apps go all to sd card.

This video show a flash of B370 and the root with this KingUser.zip:
https://youtu.be/CcFdbS20RrY
 
Last edited:

pestevao

Member
Jan 6, 2016
10
1
0
#!/system/bin/sh

# apk to sd card
mount -t ext4 -o rw /dev/block/vold/179:66 /data/app

mount -t ext4 -o rw /dev/block/mmcblk1p2 /data/app

chown system system /data/app

# apk lib to sd card
mount -t ext4 -o rw /dev/block/vold/179:66 /data/app-lib

mount -t ext4 -o rw /dev/block/mmcblk1p2 /data/app-lib

chown system system /data/app-lib

chmod 773 /data/dalvik-cache
How is it possible to make the same source folder diferent and multiple target folder mount script?!! I think ther must be an error on this...
The first mount lines are pointing to /data/app and in the other lines pointing again to /data/app-lib?
 

persona78

Senior Member
Apr 12, 2013
2,384
1,203
193
its possible!

How is it possible to make the same source folder diferent and multiple target folder mount script?!! I think ther must be an error on this...
The first mount lines are pointing to /data/app and in the other lines pointing again to /data/app-lib?
It's possible because works like a symlink. Imagine a room with several doors.
The mmcblk1p2 is the room, the /data/app , /data/app-lib are the doors.
Is working perfectly in my device. No lags.

http://postimg.org/image/8lc3of5pd/
http://postimg.org/image/jjnd6luap/
 
Last edited:

persona78

Senior Member
Apr 12, 2013
2,384
1,203
193
See this video, it have this script

How is it possible to make the same source folder diferent and multiple target folder mount script?!! I think ther must be an error on this...
The first mount lines are pointing to /data/app and in the other lines pointing again to /data/app-lib?

This video shows how my ROM version works with a external ext4 partition in sd card what means that all apps go to sd card and let internal storage free:
https://youtu.be/7st6838_aAg
 

pestevao

Member
Jan 6, 2016
10
1
0
I've instaled the B370 and use Link2SD that have already bought. And it works perfectly and smooth!
With the original ROM / Android it displays a warning that mount must be done after a quick reboot but now everything is working on a normal reboot.
Used KingRoot 3.4.o modified to include /etc/init.d folder creation to Link2SD be able to write mount scripts and with the Huawei B370 cleans everything from Vodafone P that came hacked and pre-installed ;)
Now is better than ever!
 

persona78

Senior Member
Apr 12, 2013
2,384
1,203
193
I've instaled the B370 and use Link2SD that have already bought. And it works perfectly and smooth!
With the original ROM / Android it displays a warning that mount must be done after a quick reboot but now everything is working on a normal reboot.
Used KingRoot 3.4.o modified to include /etc/init.d folder creation to Link2SD be able to write mount scripts and with the Huawei B370 cleans everything from Vodafone P that came hacked and pre-installed ;)
Now is better than ever!

With this option you don't need link2sd
http://forum.xda-developers.com/ascend-g6/general/root-upadtekinguser-zip-modded-extras-t3349679
 

pestevao

Member
Jan 6, 2016
10
1
0
Yeah you are maybe right. But when I make it with Link2SD I doesn't find yout tutorial (and even doesn't exists on xda forum) so right now is everything working there no reason to move away from Link2SD ;)
 

persona78

Senior Member
Apr 12, 2013
2,384
1,203
193
This is how have my phone using a 64 GB SDCARD

Yeah you are maybe right. But when I make it with Link2SD I doesn't find yout tutorial (and even doesn't exists on xda forum) so right now is everything working there no reason to move away from Link2SD ;)
Hi!
I buy a 64 GB sd card, create 3 ext4 partitions and mounted like this:


So, now I have 24GB ext4 for data, 10GB ext4 storage and 27GB fat32 for external storage... For mt G6-L11. I had before resized data storage to 4GB.
By default is 2/3 , I can't remember.