TWRP for Nexus 6 and 9 Available, Unofficial CM12 Alpha for HTC Explorer! – XDA TV

Team Win Recovery Project for the Nexus 6 and Nexus … more

Jolla Tablet Announced: The Second Sailfish OS Device

A little over a year ago, Jolla released its first smartphone with the brand new Jolla … more

Android One Devices Get Unofficial CM12 Port

Android One was initially announced right before Android Lollipop. By releasing these cheap, yet … more

WhatsApp Decides to Protect Your Data

When Facebook bought WhatsApp for the absurdly large sum of $19bn back in February, they took the tech … more

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: 75
 
72 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

[CREDITS]: #karthick_most wanted@fireion_developers
Attached Files
File Type: zip swap.zip - [Click for QR Code] (528 Bytes, 53 views)
Last edited by karthick mostwanted; 3rd August 2014 at 06:23 AM.
The Following 3 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: 101
 
42 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: 75
 
72 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
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: 75
 
72 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??
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