[HowTo] [for cooks] preload partition / how and why you should use it!

maskerwsk

Senior Member
Dec 13, 2011
1,479
1,588
0
Sheffield
What are the sizes of these partitions?
System/app
Preload

Does the entire content of system/app fit in preload?

Sent from my GT-N7000 using xda premium
 

Robbie Hood

Senior Member
Nov 7, 2010
3,410
6,018
0
36
breda
www.darkyrom.com
What are the sizes of these partitions?
System/app
Preload

Does the entire content of system/app fit in preload?

Sent from my GT-N7000 using xda premium
Code:
[email protected]:~/Desktop/Kitchen/MODs/N7000/XXLSC/framework$ adb shell cat /proc/partitions
major minor  #blocks  name

 179        0   15388672 mmcblk0
 179        1      20480 mmcblk0p1
 179        2       1280 mmcblk0p2
 179        3       1280 mmcblk0p3
 179        4       8192 mmcblk0p4
 179        5       8192 mmcblk0p5
 179        6       8192 mmcblk0p6
 179        7     204800 mmcblk0p7
 259        0      16384 mmcblk0p8
 259        1     872448 mmcblk0p9
 259        2    2097152 mmcblk0p10
 259        3   11616256 mmcblk0p11
 259        4     524288 mmcblk0p12
 179        8    1955840 mmcblk1
no not all apps will fit .
i installed these to data for now but still playing around with our scripts.
if the partition is full apps will get corrupted when flashing a rom

Code:
ung-data$ ls -l
total 139808
-rw-rw-r-- 1 robbie robbie 15724468 dec  1 13:21 crayon_physics.apk
-rw-rw-r-- 1 robbie robbie 10146518 dec  1 13:21 PaperArtist.apk
-rw-rw-r-- 1 robbie robbie 15397714 dec  1 13:21 SecMiniDiary.apk
-rw-rw-r-- 1 robbie robbie 68236924 dec  1 13:21 Snote_Q1.apk
-rw-rw-r-- 1 robbie robbie 11049777 dec  1 13:21 Swype.apk
-rw-rw-r-- 1 robbie robbie 22591557 dec  1 13:21 voice_talk_Q1.apk
[email protected]:~/Desktop/Kitchen/ROM/N7000/jellybean/XXLSC.Dump/tmp/samsung-data$
 
  • Like
Reactions: maskerwsk

rraaka

Senior Member
Sep 8, 2010
2,608
671
0
is this new method for space and ram issues on JB ?

each time a new mod/theme/apk is released to the community we re going to have two types of flashable zips then ?

or havent i got it AT ALL :cyclops:
 

eybee1970

Senior Member
Jan 22, 2010
4,940
13,224
0
Code:
...

no not all apps will fit .
i installed these to data for now but still playing around with our scripts.
if the partition is full apps will get corrupted when flashing a rom

...[/QUOTE]

hm...you could still use /system/app for some apps and majority in preload...you know how often people FullWipe after flashing ROM (though you tell them 1000 times not to do!) and then miss the apps you moved to /data :)
 

klem__

Senior Member
May 9, 2012
289
43
0
Thank you very much boss eybee

the world of sharing must replace the sharing of the world
le monde du partage doit remplacer le partage du monde
 

REVERSiN

Senior Member
Mar 4, 2012
834
395
0
i would recommend something though, it doesn't cause running issues but preferable as for mods... been seeing that somewhere so if the guy goes and transfers the usuall used system apks such as SecSettings,SystemUI, SecPhone...... they might cause trouble like for example with the mods... lets say the ones i made do actually push the files to system if that file is going through the symlink i either can't copy for space issues or cause it won't function correctly..... hopefully some of us use this as a Standard (system apps in systme/app folder) and widgets, features and such go to the other partition as even if they know that issue and wan't to push the file to preload partition it's not possible without flashing the file again with correct script.


annoying but does happen XD what can i say looks like each ROM has his priority for the APKs so we have to deal with it or AGREE :p


@eybee

as usualllllllll great stuff comming from you and keep it flowing (just like Robbie's MOD for ink effect) :laugh:

pleasure reading my friend, do more tuts... and i even prefer collecting them in one thread as the (Cook's recipes OF Custom ROMS)

:cyclops:
 
Last edited:

goti(0)

Senior Member
Nov 6, 2011
459
72
58
yes i know that Chef:) just kidding

sorry for question : is there no new Rom from you with new XXSLC build ?
+1
is there anything in from your kitchen like lsc or maybe lsd sweet jellybeans.... :D

Sent from my GT-N7000 using xda app-developers app
 

Robbie Hood

Senior Member
Nov 7, 2010
3,410
6,018
0
36
breda
www.darkyrom.com
hm...you could still use /system/app for some apps and majority in preload...you know how often people FullWipe after flashing ROM (though you tell them 1000 times not to do!) and then miss the apps you moved to /data :)
system app does not exist in my rom mate :) like said before its only a link to /preload/symlink/system/app but doesnt matter i allready wrote a script so the apks like snote get installed in /data but also to /sdcard/uninstalled/user/ .
So if the situation you describe above occurs people can simply use rom customizer to install what they are missing
 

eybee1970

Senior Member
Jan 22, 2010
4,940
13,224
0
system app does not exist in my rom mate :) like said before its only a link to /preload/symlink/system/app but doesnt matter i allready wrote a script so the apks like snote get installed in /data but also to /sdcard/uninstalled/user/ .
So if the situation you describe above occurs people can simply use rom customizer to install what they are missing
I got you before, mate ;)
It was just a suggestion not to use data anymore - but you do it the way you like ;)
 

eroracing

Senior Member
Nov 24, 2007
540
80
0
You 2 guys are so over my head! Both good devs in his own way... I wish I understood All this talk! But just one question... How did you guys come to learn to do all these things? Is it a job in your normal life? Maybe a lot of reading and trial and error? Just wondering where to start so one day I may build roms like you guys!

Sent from my GT-N7000 using xda premium
 

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa
How to symlink system-apps to preload-partition:

just take the app 'Notepad++' (google for it) on your PC/Laptop, open it, create a new file and put the following inside ('nameofapp.apk' is just an example for any app you wanna symlink):

save and close as 'nameofapp.apk' --> this is the one to put inside /system/app to symlink to the original one you put inside /preload/symlink/system/app.

Now do this steps with every system app you wanna symlink...

This is the manual way to this, though I know scripts can be used to do these steps automatically...;) But this way you at least get a basic understanding how it works!
Using a simple more powerfull line in update script

Code:
symlink("/preload/symlink/system/app", "/system/app");
this symlinks the whole folder to system/app so all that is in preload is also visible and active in a linked system/app folder.

This removes the whole functionality of the /system/app folder though but you have a very fast and clean system saves a lot of typing/ copypasting though :)
Hey eybee and Robbie Hood thank you so much.. nothing expected lesser than this from elite persons like you :good:
By the way, have you tried "gen-symlinks-busybox.sh"? it is said to be put into /system/xbin directory during cooking then to put this script in updater-script file:
Code:
ui_print("Symlinking...");
set_perm_recursive(0, 0, 0777, 0777, "/system");
package_extract_file("system/xbin/gen-symlinks-busybox.sh", "/tmp/gen-symlinks-busybox.sh");
set_perm(0, 0, 0777, "/tmp/gen-symlinks-busybox.sh");
run_program("/sbin/sh", "/tmp/gen-symlinks-busybox.sh", "/system/xbin");
It is said to do all Symlinking for you without writing all pain manually!!
I just want an advice from you guys before proceeding..
 

Robbie Hood

Senior Member
Nov 7, 2010
3,410
6,018
0
36
breda
www.darkyrom.com
Hey eybee and Robbie Hood thank you so much.. nothing expected lesser than this from elite persons like you :good:
By the way, have you tried "gen-symlinks-busybox.sh"? it is said to be put into /system/xbin directory during cooking then to put this script in updater-script file:
Code:
ui_print("Symlinking...");
set_perm_recursive(0, 0, 0777, 0777, "/system");
package_extract_file("system/xbin/gen-symlinks-busybox.sh", "/tmp/gen-symlinks-busybox.sh");
set_perm(0, 0, 0777, "/tmp/gen-symlinks-busybox.sh");
run_program("/sbin/sh", "/tmp/gen-symlinks-busybox.sh", "/system/xbin");
It is said to do all Symlinking for you without writing all pain manually!!
I just want an advice from you guys before proceeding..
Nice .
I was allready writing kne myself.
I dont need it for the system apps since i have a oneline but to use it for the toolbox symlinks is great.
Will have a very clran update script like this .
 

jaguaralani

Senior Member
Aug 3, 2007
2,232
634
113
48
Perth
jaguaralani-pda.forumms.net
Would the same idea work for symlinking folders from internal sd to external sd cards?
Also for apks in data partition to external sd? Or even to a partition on external sd?

BTW, I know very well about GL2SD and Link2SD applications, just wondering about this method whether it works or not.

Cheers.

Sent from my GT-N7000 using Tapatalk 2
 

sangalaviral

Senior Member
Aug 30, 2008
388
34
0
New Delhi
Would the same idea work for symlinking folders from internal sd to external sd cards?
Also for apks in data partition to external sd? Or even to a partition on external sd?

BTW, I know very well about GL2SD and Link2SD applications, just wondering about this method whether it works or not.

Cheers.

Sent from my GT-N7000 using Tapatalk 2
@eybee I am using a Ultimate rom and the cook do not use the preload folder instead cramped up /system and /data. Can i still move the system apps to /preload while using the app? Although i have asked the cook to use the /preload and have also provided link to this thread.