FORUMS

HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading … more

XDA Picks: Best Apps of the Week (June 27 – July 4)

Apps are at the front and center of any smartphone experience, and with over a … more

HTC One M9 Developer Edition Android 5.1 OTA

The Developer Edition of the HTC One M9 is receiving an over-the-air update to Android 5.1. … more

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

(script) enabling swap by default

115 posts
Thanks Meter: 220
 
Post Reply Subscribe to Thread Email Thread
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, 359 views)
Last edited by karthick mostwanted; 23rd November 2014 at 05:43 AM.
The Following 5 Users Say Thank You to karthick mostwanted For This Useful Post: [ View ]
 
 
2nd August 2014, 06:52 PM |#2  
Member
Flag /android/works
Thanks Meter: 352
 
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, 05:24 AM |#3  
karthick mostwanted's Avatar
OP Senior Member
Flag chennai
Thanks Meter: 220
 
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, 02:13 PM |#4  
Vaibhav Chauhan's Avatar
Senior Member
Flag Dahod, Gujarat
Thanks Meter: 142
 
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, 12:45 PM |#5  
karthick mostwanted's Avatar
OP Senior Member
Flag chennai
Thanks Meter: 220
 
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, 06:37 AM |#6  
Vaibhav Chauhan's Avatar
Senior Member
Flag Dahod, Gujarat
Thanks Meter: 142
 
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