(script) enabling swap by default

Search This thread

Karthick Chandran

Senior Member
Mar 23, 2014
1,660
3,947
Chennai
Code:
[SIZE="2"]Hi friends[/SIZE]

[COLOR="Red"]I created this tutorial especially for noobs who would like to enable swap in their mobile

#include
/*
* I am not responsible for bricked devices, dead SD cards or
* thermonuclear war.
* do some research if you have any concerns.
* YOU are choosing to make these modifications.
* yes, i copied this disclaimer from FXP because it is cool and i am lazy!
*/[/COLOR]



INSTRUCTION:
1.extract and copy file swap to etc/init.d IMPORTANT: etc/init.d is outside system dont copy the file swap to system/etc/init.d
for example:
copy swap to ------> etc/init.d
dont copy swap to ------> system/etc/init.d
2.reboot phone reboot takes sometime because of enabling swap
3. to check swap is working open terminal type
PHP:
su
then
PHP:
free

if u want to change the swap size open swap file with text editor and change 20 to something

set permission as read and write for the script which we talking about

[CREDITS]: #karthick_most wanted@fireion_developers ;) :p
 

Attachments

  • swap.zip
    528 bytes · Views: 457
Last edited:

#buzz

Senior Member
May 23, 2014
80
373
/android/works
Good Work

This is surely an appreciable piece of work but I have only one question:

"The kernel should have swap support to enable swap by default. Am I correct?"

:good:
 

Vaibhav Chauhan

Senior Member
Feb 17, 2014
765
146
30
Dahod, Gujarat
Code:
[SIZE="2"]Hi friends[/SIZE]

[COLOR="Red"]I created this tutorial especially for noobs who would like to enable swap in their mobile

#include
/*
* I am not responsible for bricked devices, dead SD cards or
* thermonuclear war.
* do some research if you have any concerns.
* YOU are choosing to make these modifications.
* yes, i copied this disclaimer from FXP because it is cool and i am lazy!
*/[/COLOR]



INSTRUCTION:
1.extract and copy file swap to etc/init.d IMPORTANT: etc/init.d is outside system dont copy the file swap to system/etc/init.d
for example:
copy swap to ------> etc/init.d
dont copy swap to ------> system/etc/init.d
2.reboot phone reboot takes sometime because of enabling swap
3. to check swap is working open terminal type
PHP:
su
then
PHP:
free

if u want to change the swap size open swap file with text editor and change 20 to something

[CREDITS]: #karthick_most wanted@fireion_developers ;) :p

what will be the default size of that partition?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Code:
    [SIZE="2"]Hi friends[/SIZE]
    
    [COLOR="Red"]I created this tutorial especially for noobs who would like to enable swap in their mobile
    
    #include
    /*
    * I am not responsible for bricked devices, dead SD cards or
    * thermonuclear war.
    * do some research if you have any concerns.
    * YOU are choosing to make these modifications.
    * yes, i copied this disclaimer from FXP because it is cool and i am lazy!
    */[/COLOR]



    INSTRUCTION:
    1.extract and copy file swap to etc/init.d IMPORTANT: etc/init.d is outside system dont copy the file swap to system/etc/init.d
    for example:
    copy swap to ------> etc/init.d
    dont copy swap to ------> system/etc/init.d
    2.reboot phone reboot takes sometime because of enabling swap
    3. to check swap is working open terminal type
    PHP:
    su
    then
    PHP:
    free

    if u want to change the swap size open swap file with text editor and change 20 to something

    set permission as read and write for the script which we talking about

    [CREDITS]: #karthick_most wanted@fireion_developers ;) :p
    1
    This is surely an appreciable piece of work but I have only one question:

    "The kernel should have swap support to enable swap by default. Am I correct?"

    :good:
    it may or may not :)
    1
    what will be the default size of that partition?
    what do you mean??