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

(script) enabling swap by default

OP karthick mostwanted

2nd August 2014, 07:13 PM   |  #1  
karthick mostwanted's Avatar
OP Member
Flag chennai
Thanks Meter: 92
 
80 posts
Join Date:Joined: Mar 2014
Donate to Me
More
Code:
Hi friends

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!
*/


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 Code:
su 
then
PHP Code:
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
Attached Files
File Type: zip swap.zip - [Click for QR Code] (528 Bytes, 145 views)
Last edited by karthick mostwanted; 23rd November 2014 at 06:43 AM.
The Following 5 Users Say Thank You to karthick mostwanted For This Useful Post: [ View ]
2nd August 2014, 07:52 PM   |  #2  
Member
Flag /android/works
Thanks Meter: 130
 
50 posts
Join Date:Joined: May 2014
More
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?"

3rd August 2014, 06:24 AM   |  #3  
karthick mostwanted's Avatar
OP Member
Flag chennai
Thanks Meter: 92
 
80 posts
Join Date:Joined: Mar 2014
Donate to Me
More
Quote:
Originally Posted by #buzz

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?"

it may or may not
The Following User Says Thank You to karthick mostwanted For This Useful Post: [ View ]
9th August 2014, 03:13 PM   |  #4  
Vaibhav Chauhan's Avatar
Senior Member
Flag Dahod, Gujarat
Thanks Meter: 140
 
767 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by karthick mostwanted

Code:
Hi friends

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!
*/


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 Code:
su 
then
PHP Code:
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

what will be the default size of that partition?
10th August 2014, 01:45 PM   |  #5  
karthick mostwanted's Avatar
OP Member
Flag chennai
Thanks Meter: 92
 
80 posts
Join Date:Joined: Mar 2014
Donate to Me
More
Quote:
Originally Posted by Vaibhav Chauhan

what will be the default size of that partition?

what do you mean??
The Following User Says Thank You to karthick mostwanted For This Useful Post: [ View ]
11th August 2014, 07:37 AM   |  #6  
Vaibhav Chauhan's Avatar
Senior Member
Flag Dahod, Gujarat
Thanks Meter: 140
 
767 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by karthick mostwanted

what do you mean??

you said swap size will be 20 and you can change it
so What can i understand about it
20 mb or another?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes