Related
I'm new to whole linux\android stuff. Didn't really used lunux, so my knowledge of shell scripting is around 0.
Anyway the stalling issue of galaxy is quit annoying. Fortunately Paul at Modaco has found a fix for that (beleve he had also had script for that to). http://android.modaco.com/content/s...298/got-the-stalling-problem-rooted-try-this/
The faster section\mount of the memory where the apps data should be copied is not so large, so you shouldn't place games or apps that use a lot of space. So you want only copy only a specific set of data.
I managed to create a shell script that will seek unlinked apps data directories in /data/data/ move them to faster storage partition /dbdata/data/ and link it back in /data/data. The apps directories that are exists in a ignore_list.txt will be skipped and not moved to /dbdata/.
!!! Be aware, use it at own risk !!!
Requirements:
Rooted SGS
ADB or terminal on SGS
SU
Busybox
how to:
1. download app_data_hack01.zip
2. copy context of app_data_hack01.zip to /sdcard/sd/Scripts
Remove or add directories that should remain in /data/data using in ignore_list.txt file
Execute using adb:
Code:
adb shell
su
sh /sdcard/sd/scripts/app_data_hack.sh
Using terminal on SGS
Code:
su
sh /sdcard/sd/scripts/app_data_hack.sh
in the terminal: "To proceed type [yes]:" type "yes" or "y" (without the quotes) to proceed..
To recover (move from /dbdata/data back to /data/data) use
Code:
su
sh /sdcard/sd/scripts/app_data_hack_recover.sh
Any feedback is welcome!!
tried it on XXJG3
systems runs much faster now with tons of applications installed
great work and nice instructions
Agree GREAT work, thanks
If I install new apps, they will be stored in the original /data/data right? And if I wanted to move them to /dbdata/data I just add them to the text file and run the script again?
psychedelic'd said:
If I install new apps, they will be stored in the original /data/data right? And if I wanted to move them to /dbdata/data I just add them to the text file and run the script again?
Click to expand...
Click to collapse
You can just run the sript again. You add to ignore text file directories that shouldn't be copied.
It would be great if everyone will post the directory names of apps that shouldn't be stored in /dbdata/ (apps that occupied a lot of space or somithing...)
wow this is good. much more friendly for newbies and linux illiterates like me than those bits and pieces found at modaco.
cheers!
Development
Often we have people post rubbish in the development section because the simply carnt be bothered to go to where their information belongs, e.g. Q&A... however in this case i think a very fine peice of developing has been done and would be seen my many more if used to the development section. Therefore i am asking if a mod could please move this thread, and also well done
Just a thought BTW, instead of everyone messing with this dbdata partition, why done we just increase the size of the partition so we done have to SQUEEZE our big apps in a very small space? Seems much more simple...?
sunwee said:
wow this is good. much more friendly for newbies and linux illiterates like me than those bits and pieces found at modaco.
cheers!
Click to expand...
Click to collapse
Glad it helped and found easy to use!
bratfink said:
Often we have people post rubbish in the development section because the simply carnt be bothered to go to where their information belongs, e.g. Q&A... however in this case i think a very fine peice of developing has been done and would be seen my many more if used to the development section. Therefore i am asking if a mod could please move this thread, and also well done
Just a thought BTW, instead of everyone messing with this dbdata partition, why done we just increase the size of the partition so we done have to SQUEEZE our big apps in a very small space? Seems much more simple...?
Click to expand...
Click to collapse
I wasn't sure where to post as it's not really an development of something new but only a tweak of existing...
As for increasing the partition size, it would be indeed great, but how and if it's possible? Could it be done PIT file using Odin 3?
Yes
Yes from what i know the PIT file contains the partition structure so if this file can be adapted to create a larger /dbdata partition then this should in theory be possible.
bratfink said:
Yes from what i know the PIT file contains the partition structure so if this file can be adapted to create a larger /dbdata partition then this should in theory be possible.
Click to expand...
Click to collapse
That's interesting, but kind off-topic.. Odin seems to be able to interpret pit files, so on web should also be more info available...
I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Go through this.
http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
The cyanogenmod team feels that swap doesn't serve it's purpose on an Android device. To quote them
"This question is hotly debated, but you almost definitely do not need swap or compcache. The only exception to this may be if the device is a first generation device (i.e. HTC Dream or HTC Magic). If you think swap or compcache may make the device faster, feel free to follow the directions below."
Click to expand...
Click to collapse
And the WFS is not a first generation device
If you still want to go ahead with it, that link provides a how-to.
But the problem is that with this ROM my phone does not recognize the swap partition. I would like to post on its own thread, but I can not because I am a new user.
DanHidalgo said:
I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Click to expand...
Click to collapse
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
I will try it this evening. Some people told me that oboe is that I created the Swap Partition with the recovery and I have to create it with the PC.
If I get it working I'll post my results. If not you will see me here again.
Enviado desde mi HTC Wildfire S usando Tapatalk
d33ps1x said:
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
Click to expand...
Click to collapse
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Portugah said:
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Click to expand...
Click to collapse
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
kobredabre said:
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
Click to expand...
Click to collapse
Root explorer is a paid app. Is there any other app I could do that?
Portugah said:
Root explorer is a paid app. Is there any other app I could do that?
Click to expand...
Click to collapse
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
kobredabre said:
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
Click to expand...
Click to collapse
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
kobredabre said:
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
Click to expand...
Click to collapse
I moved the file to the specific folder and I restarted my phone. Opening a2sd the swap button was turned off. I opened the terminal and I typed free, the results are 0-0-0. I didn't work.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Portugah said:
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Click to expand...
Click to collapse
Then the problem can be with kernel on ROM you are using, basic thing is that kernel needs to be abble to support swap for swap to even work... Can't help you much there since you are probably on marvelc version according to you'r country flag, i'm on diferent version. Some1 with same model as yours could help you tough
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Portugah said:
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Click to expand...
Click to collapse
The [2nd] above post is correct. Swap support is enabled in some custom kernels. If you're looking for another ROM, you're going to primarily ask about the kernel included with that ROM. Stock kernels do NOT support swap. You can enable swap [if you have a supporting kernel] via A2SDGUI or terminal... read up and familiarize yourself with linux swap.. since Android is a branch of Linux; same principles apply
Rob
Sent from my HTC_A510c using Tapatalk 2
This says it's possible to enable swap and compcache on CM7.2, but the howto wiki link is dead
To answer you question directly, by default the swap and Compcache schemes are disabled, but if you still feel the need to use them, above link provides you with a how-to.
So, yes, the CyanogenMod 7.2 supports swap and its usage needs to be activated.
Click to expand...
Click to collapse
Any idea how to do this?
For me the same question. I'm investigating since 1 week, tried scripts etc. no chance
Nexus One,
4EXT recovery (needed for correct sd-ext formatting)
CM 7.2
swap partition is there but not used.
What could i do to enable the swap partition?
Regards,
Marc
Hello,
I have the stable release cyanogenmod 7.2.0.
Swap is not working and gives following message:
swapon: /dev/block/mmcblk0p3: Function not implement
I found some notes saying that the problem is the kernel not supporting
swap. Which kernel can I use with cyanogenmod 7.2.0 with swap support?.
Thanks for your help.
Cheers! This is my first thread. Hopeful i'm not reposting similar thread.
I will tell you how to create swap file for our W. Anyway, swap file works like swap partition. It can help your RAM for improve our W performance.
1. Root your phone
2. Install Superuser
3. Install Busybox
4. Install Terminal Emulator
If you are using CM10 from arco, that's mean you don't need to follow first 4 steps.
5. Open Terminal Emulator
6. Change directory to external sd card (external is recomended, because we won't take some spaces on internal sd card)
Code:
[email protected]:~$ su
[email protected]:~# cd /external_sd
7. Create swap file under external_sd directory. I will create 512MB swap file. If you wanna create other size of swap file, just change value of count. 512 is recomended.
Code:
[email protected]:/external_sd# dd if=/dev/zero of=swapfile bs=1M count=512
8. Set the right permissions (a world-readable swap file is a huge local vulnerability)
Code:
[email protected]:/external_sd# chmod 600 swapfile
9. After creating the correctly-sized file, format it to swap:
Code:
[email protected]:/external_sd# mkswap swapfile
10. Activate the swapfile:
Code:
[email protected]:/external_sd# swapon swapfile
11. Check your swap, whether is work or not.
Code:
[email protected]:/external_sd# free -m
Check your swap, if the value exactly like your value on 7th step, then you did it!
Any question? Just ask here.
You did it? Why U No hit thanks button?
This does not create a partition right? Just a swap file.. Like the paging file in windows?
My only concern is does it really help that much? What I mean is a user noticeable difference. Also would it make the lifespan of the SDcard shorter? Higher the class of the card, the better it is???
I have never done swap on my older phones and I really would like to do it if it makes a whole a lot of difference in terms of usage.
Also can you also let us know how to revert back in case one does not like it? Just delete the file?
Thanks for your answer in advance.
[/QUOTE]
thearif said:
This does not create a partition right? Just a swap file.. Like the paging file in windows?
Click to expand...
Click to collapse
No, it does not.
Yes, somewhat similar.
thearif said:
My only concern is does it really help that much? What I mean is a user noticeable difference.
Click to expand...
Click to collapse
Totally depends on your usage pattern.
thearif said:
Also would it make the lifespan of the SDcard shorter?
Click to expand...
Click to collapse
Yes, probably. That's why you shouldn't create a swapfile anywhere but the External SD.
thearif said:
Higher the class of the card, the better it is???
Click to expand...
Click to collapse
Of course.
thearif said:
Also can you also let us know how to revert back in case one does not like it? Just delete the file?
Click to expand...
Click to collapse
Reboot, then delete the file.
Sent from my GT-I8150 using xda app-developers app
Boosting Perfomance?
RezaBeye said:
Boosting Perfomance?
Click to expand...
Click to collapse
Totally depends on your usage pattern.
Sent from my GT-I8150 using xda app-developers app
omegahanggara said:
Cheers! This is my first thread. Hopeful i'm not reposting similar thread.
I will tell you how to create swap file for our W. Anyway, swap file works like swap partition. It can help your RAM for improve our W performance.
1. Root your phone
2. Install Superuser
3. Install Busybox
4. Install Terminal Emulator
If you are using CM10 from arco, that's mean you don't need to follow first 4 steps.
5. Open Terminal Emulator
6. Change directory to external sd card (external is recomended, because we won't take some spaces on internal sd card)
Code:
[email protected]:~$ su
[email protected]:~# cd /external_sd
7. Create swap file under external_sd directory. I will create 512MB swap file. If you wanna create other size of swap file, just change value of count. 512 is recomended.
Code:
[email protected]:/external_sd# dd if=/dev/zero of=swapfile bs=1M count=512
8. Set the right permissions (a world-readable swap file is a huge local vulnerability)
Code:
[email protected]:/external_sd# chmod 600 swapfile
9. After creating the correctly-sized file, format it to swap:
Code:
[email protected]:/external_sd# mkswap swapfile
10. Activate the swapfile:
Code:
[email protected]:/external_sd# swapon swapfile
11. Check your swap, whether is work or not.
Code:
[email protected]:/external_sd# free -m
Check your swap, if the value exactly like your value on 7th step, then you did it!
Any question? Just ask here.
You did it? Why U No hit thanks button?
Click to expand...
Click to collapse
Good evening,
when i put command "[email protected]:/external_sd# mkswap swapfile" phone give following message:
"image is too small"
can i continue??
Tks in advance
moonwonder said:
Good evening,
when i put command "[email protected]:/external_sd# mkswap swapfile" phone give following message:
"image is too small"
can i continue??
Tks in advance
Click to expand...
Click to collapse
Please post here the result of the 'ls -la' command in the directory where you created your swapfile.
Sent from my GT-I8150 using xda app-developers app
R: [HOW TO] Create Swap File For Galaxy W
in attachment.
tks
Sent from my GT-I8150 using xda app-developers app
R: [HOW TO] Create Swap File For Galaxy W
moonwonder said:
in attachment.
tks
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
i'm seeing that file size is 512 byte and not Mbyte...
Sent from my GT-I8150 using xda app-developers app
moonwonder said:
in attachment.
tks
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Have you installed the latest Busybox by Stericson?
R: [HOW TO] Create Swap File For Galaxy W
resolved:
changing count number on 'dd' function. (from 512 to 536870919)
i suppose that my busybox don't support byte size (bs=1M)
tks.
Sent from my GT-I8150 using xda app-developers app
moonwonder said:
resolved:
changing count number on 'dd' function. (from 512 to 536870919)
i suppose that my busybox don't support byte size (bs=1M)
tks.
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
You should instead try changing bs=1M to bs=$((1024*1024))
Reason: Flash memory works in blocks. bs is the amount of data being written at a time. If you write 1 byte at a time, you're writing thousands of times to the same block, which not only makes the process slower, but also shorten the life of your Flash memory (because, appending 1 byte requires a cycle of: read the whole block, add one byte, write back the whole block).
The largest Flash memory block size I can ascertain from specs on the Internet is 128 KiB. Thus, bs=$((1024*1024)) would be suitable (1 MiB is an integer multiple of 128 KiB).
If your dd doesn't support the bs parameter at all, you really should replace it with one that does.
Sent from my GT-I8150 using xda app-developers app
R: [HOW TO] Create Swap File For Galaxy W
thanks!!!
now i understand reason that the time for swap creation was about 3 hours...ahahaha
in attachment my new swap!
Sent from my GT-I8150 using xda app-developers app
moonwonder said:
thanks!!!
now i understand reason that the time for swap creation was about 3 hours...ahahaha
in attachment my new swap!
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
LOL... with bs=$((1024*1024)), I took only about 1.5 minutes:
Code:
[email protected]:/ $ cd sdcard
ro of=tes.fil bs=$((1024*1024)) count=512 <
512+0 records in
512+0 records out
536870912 bytes transferred in 86.185 secs (6229284 bytes/sec)
[email protected]:/sdcard $
Sent from my GT-I8150 using xda app-developers app
I followed a thread to make an ext2 partition (about 1 GB, unfortunately couldn't make it divisible by 256)
then read this thread and another one so i created a swapfile in that partition ( data/sdext2/ ) . now i have a couple of question about the swapfile
1.is that line important & why ??
omegahanggara said:
8. Set the right permissions (a world-readable swap file is a huge local vulnerability)
Code:
[email protected]:/external_sd# chmod 600 swapfile
Click to expand...
Click to collapse
it's not present in pepoluan's code
pepoluan said:
To create a swap RAM:
Code:
su
targ=/mnt/sdcard/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=64
mkswap $targ
Click to expand...
Click to collapse
2. for heavy games, which is more recommended : 256 or 128 MB swapfile, pep said 64 which will b a bummer for me
pepoluan said:
I have experimented *a lot* with swap memory, and I can tell you with absolute confidence:
Swap files larger than 64 MiB *will* result in additional lags. Larger than 128 MiB, your phone will be very slow.
To activate, you don't need to reboot.
Go to the Terminal and enter the command:
cd /mnt/sdcard
ls .*
(replace "sdcard" with the actual location of where you created the swap file, of course)
Click to expand...
Click to collapse
one last thing : is the ls.* code different from the swapon code or they r the same ??
I made an sh file for this and placed it in init.d coz i want it to automatically run when the system boots. However it didn't work.
So for now i just placed it in /system/bin so that i only need to type enable_swap in the terminal.
Any way to make it work in init.d?
Any Answer ???
klacenas said:
I made an sh file for this and placed it in init.d coz i want it to automatically run when the system boots. However it didn't work.
So for now i just placed it in /system/bin so that i only need to type enable_swap in the terminal.
Any way to make it work in init.d?
Click to expand...
Click to collapse
I assume you put the swap file in /sdcard ?
The first partition of the SD Card does not get mounted until all scripts in init.d have finished. I'm experimenting with Stericson's new BusyBox, which includes the 'nohup' command.
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
I assume you put the swap file in /sdcard ?
The first partition of the SD Card does not get mounted until all scripts in init.d have finished. I'm experimenting with Stericson's new BusyBox, which includes the 'nohup' command.
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes I put it in sdcard. Thanks for the explanation. Please share if you succeed.
Edit: if its not possible through init.d, is there another way of automatically executing a script after init.d?
Sorry not really a Linux person, I'm more familiar with autoexec.bat
Sent from my GT-I8150 using xda app-developers app
klacenas said:
Yes I put it in sdcard. Thanks for the explanation. Please share if you succeed.
Edit: if its not possible through init.d, is there another way of automatically executing a script after init.d?
Sorry not really a Linux person, I'm more familiar with autoexec.bat
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Install SManager, add the script as a boot script. Boot scripts run using SManager always run after SD Card mounts.
Sent from my GT-I8150 using xda app-developers app
Firstly what is swap, you should know about it before
you go further
What is Swap:-
Swap space in Linux is used when the amount of
physical memory (RAM) is full. If the system needs
more memory resources and the RAM is full, inactive
pages in memory are moved to the swap space. While
swap space can help machines with a small amount of
RAM, it should not be considered a replacement for
more RAM. Swap space is located on hard drives, which
have a slower access time than physical memory.
Swap space can be a dedicated swap partition, a swap
file, or a combination of swap partitions and swap files.
Normally the swap space should be equal to the Actual
physical Ram
Click to expand...
Click to collapse
.
LEGAL WARNING-Read This before you proceed
I and XDA is not responsible for any damage done to your device..........
Click to expand...
Click to collapse
Requirements for this process:-
* Kernel which supports swap(Deviant,Hells,GNU,Merruk)etc
* Rooted galaxy y
* Busybox (atleast v1.18)
* Terminal Emulator
Click to expand...
Click to collapse
Steps to enable swap:-
1. Open any file explorer(I prefer root explorer) and create a folder and name
it swap
2. Browse to that folder and create a file named swap
3. Open terminal Emulator and type the code busybox
mkswap /sdcard/swap/swap xxxxxx
(xxxxxx is the amount in KB, eg:- 383456 = 378MB),
and this process will take time.)
4. Now we will activate the swap and to activate it type
in terminal busybox swapon /sdcard/swap/swap
5. The last step is to turn on swappiness and to do it
we write echo 100 > /proc/sys/vm/swappiness in
terminal
And now you are done to check the working of swap
type busybox free in terminal emulator.
NOTE-Last two steps are needed to be done after every boot
so it is better to make a script which can be started
from script manager......... and here is a script ready for this Swap.sh
REGARDS
You Can Rate This Thread 5 Stars......I won't ask for thank......if I deserve it..go ahead.....please do not copy the work to any other forum
Click to expand...
Click to collapse
Reserved
Feedback and WARNING by users
thewarlord said:
No confusion dude!!
Watch ur ram in task manager !! Its always in motion (increase & decrease) I think u understand that life of sd card depend on writeing amount !! Ok
If u create a swap in sd card or swap partition !! Its always write on sd card I think u r understanding my feelings!! so, It decrease the sd card life!!
Click to expand...
Click to collapse
New Method Using SWAPPER2.apk
Here the step :
go to settings -> swap place (put correct directory for
example: /sdcard/swap 128 ) bold text depend on your
swap name!
Tick "Safe Unmount" and "Safe Remount", u dont need
to turn off or turn on again before and after sharing sd
IMPORTANT!! :
go to Advanced preferences -> untick "Recreate
swap file" and "Reformat swap" MUST!!
D4rkSh4dow said:
Firstly what is swap, you should know about it before
you go further
.
LEGAL WARNING-Read This before you proceed
Steps to enable swap:-
1. Open any file explorer(I prefer root explorer) and create a folder and name
it swap
2. Browse to that folder and create a file named swap
3. Open terminal Emulator and type the code busybox
mkswap /sdcard/swap/swap xxxxxx
(xxxxxx is the amount in KB, eg:- 383456 = 378MB),
and this process will take time.)
4. Now we will activate the swap and to activate it type
in terminal busybox swapon /sdcard/swap/swap
5. The last step is to turn on swappiness and to do it
we write echo 100 > /proc/sys/vm/swappiness in
terminal
And now you are done to check the working of swap
type busybox free in terminal emulator.
NOTE-Last two steps are needed to be done after every boot
so it is better to make a script which can be started
from script manager......... and here is a script ready for this Swap.sh
REGARDS
Click to expand...
Click to collapse
you can simply use the app swapper for doing this
ok the info is good,but i hope you know about sdcard lifedecrease by using swap.it kills sdcards.
-CALIBAN666- said:
ok the info is good,but i hope you know about sdcard lifedecrease by using swap.it kills sdcards.
Click to expand...
Click to collapse
Sir,hav a look at OP,it says without SD Card paritition.....no use of sd card in this.....
oops my fail,anyway,have you fell a better performance?you didnt need so complex settings,just use System Control from Juwe11.
D4rkSh4dow said:
Sir,hav a look at OP,it says without SD Card paritition.....no use of sd card in this.....
Click to expand...
Click to collapse
no use of sd card ??? then where the file swap is created
internal system patition
-CALIBAN666- said:
internal system patition
Click to expand...
Click to collapse
3. Open terminal Emulator and type the code busybox
mkswap /sdcard/swap/swap xxxxxx
I don't think so
and it is galaxy y section sir we don't have internal memory to install enough apps so where to create a swap folder
apps???????its about ram,dude
sangalaxy said:
no use of sd card ??? then where the file swap is created
Click to expand...
Click to collapse
I meant no need of sd partition........why don't you read the whole post again before posting smthng
-CALIBAN666- said:
apps???????its about ram,dude
Click to expand...
Click to collapse
yes I know sir but you said the swap folder is in internel memory so iwas just pointing out that we only have 190mb data folder and no internel sd partotion
---------- Post added at 01:03 PM ---------- Previous post was at 01:01 PM ----------
D4rkSh4dow said:
I meant no need of sd partition........why don't you read the whole post again before posting smthng
Click to expand...
Click to collapse
yes I know friend but partition or not you have to create a swap folder in sd card which serves as a virtual partition
bro apps are not the same like ram,google for more infos.
Or do a xda search
-CALIBAN666- said:
bro apps are not the same like ram,google for more infos.
Click to expand...
Click to collapse
yes I know sir but iam not saying about the apps ok lets make it clear by using your method we create a folder named swap in the sdcard and it serves as a virtual rom right??
and I was only saying that as caliban666 said continuos read and write in sdcard will decrease its life whether it is a partion or a folder
sangalaxy said:
yes I know sir but iam not saying about the apps ok lets stop this its going outoff topic
Click to expand...
Click to collapse
Yes,u r rite.....btw if u tried it u can post some ss here
I'll add to the OP
D4rkSh4dow said:
Yes,u r rite.....btw if u tried it u can post some ss here
I'll add to the OP
Click to expand...
Click to collapse
sorry about ss friend anyway thanks for the post
i dont know but has anyone read this"tweak"?it creates a swap part on sd,otherwise its not fully working.
-CALIBAN666- said:
i dont know but has anyone read this"tweak"?it creates a swap part on sd,otherwise its not fully working.
Click to expand...
Click to collapse
Did you tried it sir?
no i didnt need to use it,all what i need to know i see,the other thing is swap is buggy for some roms and kernel(my expierence and opinion).
1. Root Lava Iris 402 / 356 by Framaroot
Select the Framaroot 1.6.1.apk in the below link from your opera mini browser – select save – select open and select install.
http://forum.xda-developers.com/showthread.php?t=2130276
Thanks Alephzain
In Framaroot → select Boromir. After success message reboot your phone.
Now you have Root access.
2. Install Busybox
Go to Playstore and Install Busybox by Stephen (Stericson)
Open Busybox give root permission when prompted.
Wait for few minutes to complete smart install analysis, then select install then select smart install without making any changes.
Busybox is needed for executing modifying commands.
3. Increasing Internal Memory for installing more apps
Make 2 partitions in your SD Card as primary partitions using minitool partition wizard in windows / gparted in linux (be careful to change only sd card and not computer partition)
1st as FAT32 (primary) for storing DATA, Music, Videos etc.,. (say 6.5 GB in 8GB SD Card)
2nd as FAT32 or ext4 (as primary) for linking apps with link2sd – balance memory in sd card (note: kernel supports ext partitions)
You can also resize partition. See link below on how to partition
http://forum.xda-developers.com/showthread.php?t=2142844
Thanks bakpinar and sanny5
Install Link2SD from Play store → select Fat16/32
→ if it says mount script created. You can link your apps to 2nd partition through link2sd.
→ If it says mount: no such file or directory –
Install Mount /System (rw / ro) and ES File Explorer from Playstore.
Select Mount R/W in Mount /System app.
Copy the below script in notepad++ in windows (not notepad, google it)
or gedit in linux
or download the file posted by raveesh84 for fat32 partition in 7th post below
or if you want to type using your phone install droideditfree
and save as install-recovery.sh and copy the file to the folder /system/etc/ (after enabling Mount r/w as said above)
--------------------------------------------------------------------------------------------
#!/system/bin/sh
# mount vfat 2nd partition from sd card
sleep 2
mount -t vfat -o rw /dev/block/vold/179:2 /data/sdext2
mount -t vfat -o rw /dev/block/mmcblk0p2 /data/sdext2
---------------------------------------------------------------------------------------------
Note : Replace vfat with ext4 in the above script if you want to use ext4 partition.
Read the above script horizontally in phone.
Thanks to Kierrok
Note: Copying and permission setting will happen only after Mount R/w.
Permission setting for the above file -> Enable Root explorer to ON in es file explorer by going to menu --> tools --> root explorer ON. Then long press the copied file in ES file Explorer -> select more -> select properties -> select change under permissions -> tick all the read, write and execute except write by others.
Reboot phone. Link2sd will work now. Link apps, don't create mount scripts.
Note:
1. Install big apps first and link all 3 files in it, otherwise small apps take space in internal memory & will not allow installation / linking of big apps.
2. If you restart your phone you might get low space error, immediately open link2sd - sort apps by lib size - select top 5 or 6 six apps one by one and link the lib file (link vanished due to restart). Space error will go.
4. Increasing RAM (SWAP)
The phone already has 190Mb internal swap. It is too low.
Install Swapper for Root → put value 756 → select active at boot. Class 10 sd card will work better.
You can also further increase SD Card speed with installing SD Speed Increase → setting kbs based on class of sdcard to maximum
and set on every boot.
Now we have overcome the twin limitations of LAVA IRIS 402 to some extent.
Flashing Stock ROM / Firmware if anything goes wrong or stuck in bootloop / bootlogo
Windows Drivers for MT6572 Can be downloaded from link given below though it is stated as for Micromax A76
http://forum.xda-developers.com/showthread.php?t=2446756 ---> select MTK Drivers in post # 5 by hdmaza. Thanks Hdmaza
Lava Iris 402 Stock ROM / Firmware is now available with MTK6572 SP Flash Tool at
http://support.moulnisky.com/index.php?dir=Lava/Iris402/
Note:
In SP Flash tool (downloaded from above) click scatter select the scatter file in folder and click firmware upgrade for full installation then plug the phone to usb.
Lava iris 356 Stock Rom / firmware is available in following link
http://support.moulnisky.com/index.php?dir=Lava/Iris356/Firmware Versions/
Thanks Moulnisky.
IMEI write tool for MTK 6572 with video tutorial available at
http://forum.gsmhosting.com/vbb/f60...-android-based-phone-imei-write-tool-1708731/
after input of IMEI numbers select the file in database folder downloaded in the above Stock ROM
Thanks Nokian Care
Both are working, tested. Revived phone from Bootloop (tried to install cwm recovery through mtk droid tools 2.4.8 version not supporting mt6572)
Above information have been searched / collected by me from various threads / sites for the benefit of lava iris 402 / 356 users.
Note : Don't install chainfire 3d, it will result in bootloop. Though above have been tweaked by me in my Lava Iris 402 and it is working well, I am not responsible if anything goes wrong.
good method..but have u tried it urself
Sent from my IRIS402 using Tapatalk 2
---------- Post added 13th November 2013 at 12:06 AM ---------- Previous post was 12th November 2013 at 11:59 PM ----------
Can you share "install-recovery.sh" file
Sent from my IRIS402 using Tapatalk 2
In my case
Link2sd is not mounting the second FAT32 Partition..please guide me with some simple and detailed instructions Sir
Sent from my IRIS402 using Tapatalk 2
a unknown error
Sir,
I had done the following process but after copying that script and saving in notepad++ and naming as the same you have told, then copying in folder '/system/etc/' it is showing some unknown 'read only' error in ES File Explorer. Not know what to do next and where i have done the mistake & seeks your guidance.
Please suggest
Thanking you
Adarsh Gupta
adarsh4286 said:
Sir,
I had done the following process but after copying that script and saving in notepad++ and naming as the same you have told, then copying in folder '/system/etc/' it is showing some unknown 'read only' error in ES File Explorer. Not know what to do next and where i have done the mistake & seeks your guidance.
Please suggest
Thanking you
Adarsh Gupta
Click to expand...
Click to collapse
You must Mount R/W first
You can also do it through Root Explorer or Rom Toolbox app.
Can you please share that script file so that I can use it in my one..
Sent from my IRIS402 using Tapatalk 2
Its only 4 lines given above within lines. Install droideditfree from play store, type it and save in said folder. I have working link2sd in phone.
oppili said:
Its only 2 lines given above within lines. Install droideditfree from play store, type it and save in said folder. I have working link2sd in phone.
Click to expand...
Click to collapse
Thanks a lot sir.. i have done linking and swapping.. but i think i am using a fake sd card in the name of Samsung
Sent from my IRIS402 using Tapatalk 2
---------- Post added at 03:30 PM ---------- Previous post was at 03:24 PM ----------
https://www.dropbox.com/s/6qyt5bu0n125xe8/install-recovery.sh
The link to mount script file..paste it to system/etc/ and change permissions as suggested by oppili .. link2sd will come in action after the reboot
Sent from my IRIS402 using Tapatalk 2
Class 10 sdcard would perform better for swap, also increase sd card speed.
Useful apps for lava 402 / 356
-------------------------------
Android firewall - restricting which app to access internet in WiFi or mobile data. (Enable mediaserver and download manager for tube mate and play store to work respectively. Also enable android related things to WiFi and / or DATA, will be useful in case of lock due to wrong patterns)
Greenify - making apps that you are not working on to sleep
Tubemate (from opera app store) - to view or download YouTube videos in lesser data, 320x240 resolution would be good enough.
Thanks for the guide. Worked perfectly on my lava iris 356.
-Sid
lava iris 402 touch not working
guys plz help me out of this...i first installed frama root and rooted my device and then later on wen i installed chainfire 3d app it rebooted and stuck at boot logo so i googled and flashed with sp flash tool with the flash files i got my device booted up correctly but touch is not working and imei invalid msg is shown.. what should i do????
Chainfire 3d is for older android version 2.3 only. It has not been updated to work in jelly bean 4.2, so do not install it. Better reflash the ROM and write imei using IMEI write tool given in 1st post.
Sent from my IRIS402
Lava iris 402 - default write to sd card setting not found
oppili said:
1. Root Lava Iris 402 / 356 by Framaroot
Select the Framroot 1.6.1.apk in the below link from your opera mini browser – select save – select open and select install.
http://forum.xda-developers.com/showthread.php?t=2130276
Thanks Alephzain
In Framaroot → select Boromir. After success message reboot your phone.
Now you have Root access.
2. Install Busybox
Go to Playstore and Install Busybox by Stephen (Stericson)
Open Busybox give root permission when prompted.
Wait for few minutes to complete smart install analysis, then select install then select smart install without making any changes.
Busybox is needed for executing modifying commands.
3. Increasing Internal Memory for installing more apps
Make 2 partitions in your SD Card as primary partitions using minitool partition wizard in windows / gparted in linux (be careful to change only sd card and not computer partition)
1st as FAT32 (primary) for storing DATA, Music, Videos etc.,. (say 6.5 GB in 8GB SD Card)
2nd as FAT32 or ext4 (as primary) for linking apps with link2sd – balance memory in sd card (note: kernel supports ext partitions)
You can also resize partition. See link below on how to partition
http://forum.xda-developers.com/showthread.php?t=2142844
Thanks bakpinar and sanny5
Install Link2SD from Play store → select Fat16/32
→ if it says mount script created. You can link your apps to 2nd partition through link2sd.
→ If it says mount: no such file or directory –
Install Mount /System (rw / ro) from play store → Select Mount R/W
Install ES File Explorer → copy the below script in notepad++ in windows (not notepad, google it) or gedit in linux or if you want to use your phone install droideditfree and save as install-recovery.sh and copy the file to the folder /system/etc/ after enabling mount r/w as said above
--------------------------------------------------------------------------------------------
#!/system/bin/sh
# mount vfat 2nd partition from sd card
sleep 2
mount -t vfat -o rw /dev/block/vold/179:2 /data/sdext2
mount -t vfat -o rw /dev/block/mmcblk0p2 /data/sdext2
---------------------------------------------------------------------------------------------
Note : Replace vfat with ext4 in the above script if you want to use ext4 partition.
Read the above script horizontally in phone.
Thanks to Kierrok
Permission setting for the above file -> after copying long press the above file in ES file Explorer -> select more -> select properties -> select change under permissions -> tick all the read, write and execute except write by others.
Reboot phone. Link2sd will work now.
4. Increasing RAM (SWAP)
The phone already has 190Mb internal swap. It is too low.
Install Swapper for Root → put value 756 → select active at boot. Class 10 sd card will work better.
You can also further increase SD Card speed with installing SD Speed Increase → setting kbs based on class of sdcard to maximum
and set on every boot.
Now we have overcome the twin limitations of LAVA IRIS 402 to some extent.
Flashing Stock ROM / Firmware if anything goes wrong or stuck in bootloop / bootlogo
Windows Drivers for MT6572 Can be downloaded from link given below though it is stated as for Micromax A76
http://forum.xda-developers.com/showthread.php?t=2446756 ---> select MTK Drivers in post # 5 by hdmaza. Thanks Hdmaza
Lava Iris 402 Stock ROM / Firmware is now available with MTK6572 SP Flash Tool at
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index9.html
Note: merge the LAVA_IRIS402_S027_20130830_DCC folder part 1 and 2
In SP Flash tool click scatter select the scatter file in above merged folder and click firmware upgrade for full installation then plug the phone to usb.
Lava iris 356 Stock Rom / firmware is available in following link
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index10.html
Thanks Prem India
IMEI write tool for MTK 6572 with video tutorial available at
http://forum.gsmhosting.com/vbb/f60...-android-based-phone-imei-write-tool-1708731/
after input of IMEI numbers select the file in database folder downloaded in the above Stock ROM
Thanks Nokian Care
Both are working, tested. Revived phone from Bootloop (tried to install cwm recovery through mtk droid tools 2.4.8 version not supporting mt6572)
Above information have been searched / collected by me from various threads / sites for the benefit of lava iris 402 / 356 users.
Note : Though above have been tweaked by me in my Lava Iris 402 and it is working well, I am not responsible if anything goes wrong.
Click to expand...
Click to collapse
Dear sir,
I wish to start with my thanks about your internal memory upgrading blog.
I have purchased new Lava 402 Smart Phone. I am getting message as "the phone storage does not have enough space. please release some storage or change the default write disk in the settings" while using camera. But I checked in my mobile settings, there is no option to change the default memory settings to write in SD Card. Please help to come over from this issue.
I didn't had any problem with camera. It is storing images to SD card only. Has your SD card detected ? Re insert card properly after switch off. If this also not works try installing any other camera app from play store.
Sent from my IRIS402
THANKS
oppili said:
I didn't had any problem with camera. It is storing images to SD card only. Has your SD card detected ? Re insert card properly after switch off. If this also not works try installing any other camera app from play store.
Sent from my IRIS402
Click to expand...
Click to collapse
Thanks oppili,
I have installed new camera app (Zoom Camera)from play store. It works.
But default camera (which is come with IRIS402) stores image/video only internal memory not to sd card.
If any setting inside, please tell me.
Thanks alot.
I have a Lava Iris 402.. Link2SD fails to detect the second partition in both cases (FAT32/ext4). Any solution??
Copy pasted the script in /system/etc. Link2SD still doesnt detect 2nd partition.
Does the script works ?? Didn't work in my case. Any solution ???
oppili said:
1. Root Lava Iris 402 / 356 by Framaroot
Select the Framroot 1.6.1.apk in the below link from your opera mini browser – select save – select open and select install.
http://forum.xda-developers.com/showthread.php?t=2130276
Thanks Alephzain
In Framaroot → select Boromir. After success message reboot your phone.
Now you have Root access.
2. Install Busybox
Go to Playstore and Install Busybox by Stephen (Stericson)
Open Busybox give root permission when prompted.
Wait for few minutes to complete smart install analysis, then select install then select smart install without making any changes.
Busybox is needed for executing modifying commands.
3. Increasing Internal Memory for installing more apps
Make 2 partitions in your SD Card as primary partitions using minitool partition wizard in windows / gparted in linux (be careful to change only sd card and not computer partition)
1st as FAT32 (primary) for storing DATA, Music, Videos etc.,. (say 6.5 GB in 8GB SD Card)
2nd as FAT32 or ext4 (as primary) for linking apps with link2sd – balance memory in sd card (note: kernel supports ext partitions)
You can also resize partition. See link below on how to partition
http://forum.xda-developers.com/showthread.php?t=2142844
Thanks bakpinar and sanny5
Install Link2SD from Play store → select Fat16/32
→ if it says mount script created. You can link your apps to 2nd partition through link2sd.
→ If it says mount: no such file or directory –
Install Mount /System (rw / ro) from play store → Select Mount R/W
Install ES File Explorer → copy the below script in notepad++ in windows (not notepad, google it) or gedit in linux or if you want to use your phone install droideditfree and save as install-recovery.sh and copy the file to the folder /system/etc/ after enabling mount r/w as said above
--------------------------------------------------------------------------------------------
#!/system/bin/sh
# mount vfat 2nd partition from sd card
sleep 2
mount -t vfat -o rw /dev/block/vold/179:2 /data/sdext2
mount -t vfat -o rw /dev/block/mmcblk0p2 /data/sdext2
---------------------------------------------------------------------------------------------
Note : Replace vfat with ext4 in the above script if you want to use ext4 partition.
Read the above script horizontally in phone.
Thanks to Kierrok
Permission setting for the above file -> after copying long press the above file in ES file Explorer -> select more -> select properties -> select change under permissions -> tick all the read, write and execute except write by others.
Reboot phone. Link2sd will work now.
4. Increasing RAM (SWAP)
The phone already has 190Mb internal swap. It is too low.
Install Swapper for Root → put value 756 → select active at boot. Class 10 sd card will work better.
You can also further increase SD Card speed with installing SD Speed Increase → setting kbs based on class of sdcard to maximum
and set on every boot.
Now we have overcome the twin limitations of LAVA IRIS 402 to some extent.
Flashing Stock ROM / Firmware if anything goes wrong or stuck in bootloop / bootlogo
Windows Drivers for MT6572 Can be downloaded from link given below though it is stated as for Micromax A76
http://forum.xda-developers.com/showthread.php?t=2446756 ---> select MTK Drivers in post # 5 by hdmaza. Thanks Hdmaza
Lava Iris 402 Stock ROM / Firmware is now available with MTK6572 SP Flash Tool at
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index9.html
Note: merge the LAVA_IRIS402_S027_20130830_DCC folder part 1 and 2
In SP Flash tool click scatter select the scatter file in above merged folder and click firmware upgrade for full installation then plug the phone to usb.
Lava iris 356 Stock Rom / firmware is available in following link
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index10.html
Thanks Prem India
IMEI write tool for MTK 6572 with video tutorial available at
http://forum.gsmhosting.com/vbb/f60...-android-based-phone-imei-write-tool-1708731/
after input of IMEI numbers select the file in database folder downloaded in the above Stock ROM
Thanks Nokian Care
Both are working, tested. Revived phone from Bootloop (tried to install cwm recovery through mtk droid tools 2.4.8 version not supporting mt6572)
Above information have been searched / collected by me from various threads / sites for the benefit of lava iris 402 / 356 users.
Note : Though above have been tweaked by me in my Lava Iris 402 and it is working well, I am not responsible if anything goes wrong.
Click to expand...
Click to collapse
The above mentioned script didn't work in my case. Did exactly as explained in my IRIS 356 Phone. After the restart phone got stuck at the logo. Must be something must have gone wrong. Had to remove SD card to boot phone properly. Any suggestions???
chinmay_7d said:
I have a Lava Iris 402.. Link2SD fails to detect the second partition in both cases (FAT32/ext4). Any solution??
Copy pasted the script in /system/etc. Link2SD still doesnt detect 2nd partition.
Click to expand...
Click to collapse
Have you set the permission for the copied file as explained ? It should work if it is done.
Sent from my IRIS402
xdamicasa said:
The above mentioned script didn't work in my case. Did exactly as explained in my IRIS 356 Phone. After the restart phone got stuck at the logo. Must be something must have gone wrong. Had to remove SD card to boot phone properly. Any suggestions???
Click to expand...
Click to collapse
If you had done as explained it should work. It takes initially a minute to boot after the script copying, can you wait & check if it is OK.
Sent from my IRIS402
oppili said:
Have you set the permission for the copied file as explained ? It should work if it is done.
Sent from my IRIS402
Click to expand...
Click to collapse
Set the permissions as mentioned in the OP. Ticked all Read, Write & Execute, except Write (Other). Is that correct?