Swapper 2 - Galaxy 3 Themes and Apps

Hi guys, this morning I have tryed to install the swap script on kyrillos 9.1 by the old script in the /system/etc/init.id directory, but when I launch the free command on emulator terminal in the swap partition show 0 0 0.
So I think that the script doesn't works, infact I don't find the log of swap anywhere. Also on normal usage of phone, I always have low ram available.
I have found in this page http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache this app https://market.android.com/details?id=lv.n3o.swapper2&hl=en. Does anyone have tryed this app before?
After the installation and configuration, I have tryed to open some apps and keep they in background. So, I launch free command in terminal emulator and I can see the swap partition with the memory used and free, which mean that the swap works.
The phone is also smooth and very responsive, with more ram available.
Now I wonder, why the old script doesn't works?
And this app, swapper 2, is a good app? Is convenient to use?
What is the experts advice?
P.s.: Sorry for my english.

Related

Custom scripts for Archangel root for firmware 2.0.71, 2.1.02, 2.1.03, 2.1.04, 2.1.08

Finally we have a method to obtain root that does not involve installing the SDE and that works on at least three different firmware versions. 2.0.71, 2.1.02, 2.1.03, 2.1.08. For all the details see http://forum.xda-developers.com/showthread.php?t=928767
This program has the possibility to execute a script after root is acquired. See the readme.txt of Archangel v2.
You can create a script in /sdcard/sdcard/extraroot.sh and this will be executed as root
whenever you reboot, so you can use this to do any additional root functions you want.
If you make an error with this script which causes you a problem then you can eject your
sd card and reboot and it then will not execute.
Click to expand...
Click to collapse
NOTE: For windows users. Please use Notepad++ to edit the extraroot.sh and convert the file to unix format. In the menu choose "Format" -> "Convert to UNIX Format". This option is available with version v5.1.4 of Notepad++ it has been reported that it's not available in other versions.
Please post the firmware version, your script and a little description here.
Firmware 2.1.02, 2.1.03, 2.1.04,2.1.08 - Disable Swap
Swap is automatically enabled in these firmware versions.
Code:
swapoff /dev/block/mmcblk0p3
To verify that swap is turned off go to the Terminal Emulator and type free
Code:
/ $ free
total used free shared buffers
Mem: 243824 230972 12852 0 4332
Swap: 0 0 0
Total: 243824 230972 12852
Another way to turn off swap permanently without using the a script is to disable the swap service. This can be done from within the Terminal Emulator with the following commands
Code:
$su
#setprop persist.sys.archos.swapctl.en 0
Then reboot the device.
This only needs to be done once.
Firmware 2.0.71, 2.1.02, 2.1.03, 2.1.04, 2.1.08 - Disable ads
Disable ads. This was posted by archaism1 here http://forum.xda-developers.com/showthread.php?p=10941853#post10941853
Code:
cat <<EOF >/tmp/hosts
127.0.0.1 localhost
127.0.0.1 pagead2.googlesyndication.com pagead.l.google.com googleads.g.doubleclick.net
127.0.0.1 api.admob.com mm.admob.com r.admob.com mob.adwhirl.com cus.adwhirl.com met.adwhirl.com
EOF
mount --bind /tmp/hosts /etc/hosts
I have not tested this myself because I think the devs of applications need the ads to make some money.
Firmware 2.1.02, 2.1.03, 2.1.04, 2.1.08 - Swap on sd-card
Disable swap on internal storage and create a swap file on sd-card. The swap is 256Mb big to change the size just adjust the 256 value in the script.
ATTENTION: it can take a few minutes the first time the script is executed.
Code:
swapoff /dev/block/mmcblk0p3
if [ ! -f /sdcard/sdcard/myswap ]
then
echo "Creating swap file"
dd if=/dev/zero of=/sdcard/sdcard/myswap bs=1M count=256
mkswap /sdcard/sdcard/myswap
fi
swapon /sdcard/sdcard/myswap
And here the result of free
Code:
# free
total used free shared buffers
Mem: 243824 241432 2392 0 6232
Swap: 262136 320 261816
Total: 505960 241752 264208
WARNING: if you use a swapfile, which is described here, you can't use a usb connection to copy files without disabling the swap with the following command.
Code:
$su
#swapoff /sdcard/sdcard/myswap
Credit for this goes to http://forum.archosfans.com/viewtopic.php?f=74&t=42718
Hondaracer posted some scripts I'll include them as attachments
Advanced stuff.
Loading kernel modules.
There was a post in another thread about CifsManager here
chulri was so kind as to build the module. You can download it here.
Unzip the downloaded file and place it in a directory under /sdcard I suggest /sdcard/modules/
Add the following code to the extraroot.sh
Code:
insmod /sdcard/modules/cifs.ko
and reboot.
Now you can install CifsManager and start mapping drives.
Disable swap without using scripts
In Terminal Emulator execute following commands
Code:
$su
#setprop persist.sys.archos.swapctl.en 0
I have to create a file named extraroot.sh and and put it in /sdcard/sdcard ?
Do I need to make it executable ? (chmod +x)
Does it work only with permanent root ?
Thanks
ben.daccache said:
I have to create a file named extraroot.sh and and put it in /sdcard/sdcard ?
Do I need to make it executable ? (chmod +x)
Does it work only with permanent root ?
Thanks
Click to expand...
Click to collapse
You don't need to make it executable it's executed with sh /sdcard/sdcard/extraroot.sh
And you don't need the permanent root option either. It is also executed when you push the button.
Have tried your "Disable ads" script and it works perfect
No ads.
Why disable swap? Is there any reason?
cu
pOpY
PS: is there any way to increase the app storage size without using urkdroid?
popy2006 said:
Have tried your "Disable ads" script and it works perfect
No ads.
Click to expand...
Click to collapse
Good to know.
popy2006 said:
Why disable swap? Is there any reason?
Click to expand...
Click to collapse
There is some concern that swap on internal flash may reduce the lifetime of the flash. i just posted a way to enable swap on the sd-card . This is safer as the sdcard can be replaced the internal flash can not be replaced.
popy2006 said:
Is there any way to increase the app storage size without using urkdroid?
Click to expand...
Click to collapse
I'll look into it but i doubt it.
oh, thats a good reason to disable swap on the internal flash.
But i dont have an sdcard yet
Why then archos enables the swap default?
cu
pOpY
popy2006 said:
oh, thats a good reason to disable swap on the internal flash.
But i dont have an sdcard yet
Why then archos enables the swap default?
Click to expand...
Click to collapse
I have no idea why this was enabled by default. You have to ask Archos.
Swap
Will Swapper for Root or Swapper 2 (for root user) do the same thing for us noob's?
Mod57 said:
Will Swapper for Root or Swapper 2 (for root user) do the same thing for us noob's?
Click to expand...
Click to collapse
From what I can see all the commands to manage swap are present on the archos so both will probably work.
I'll get back to you.
Mod57 said:
Will Swapper for Root or Swapper 2 (for root user) do the same thing for us noob's?
Click to expand...
Click to collapse
Swapper for root is no solution as the swap file is created on the internal flash.
Swapper 2 on the other hand is working fine. But remember to place the swap on the external sd-card /sdcard/sdcard/swapfile.swp
I still placed
Code:
swapoff /dev/block/mmcblk0p3
in the extraroot.sh to be sure the internal swap was off.
Swap
Thank you.
wdl1908 said:
Originally Posted by popy2006
oh, thats a good reason to disable swap on the internal flash.
But i dont have an sdcard yet
Why then archos enables the swap default?
Click to expand...
Click to collapse
I have no idea why this was enabled by default. You have to ask Archos.
Click to expand...
Click to collapse
Probably the realization that they screwed up with only 256MB of RAM.
ARCHOS PRESIDENT: We get lots of complaints about the small RAM... what could we do?
ARCHOS ENGINEER: We can always use some of the internal flash for a swap.
ARCHOS PRESIDENT: Won't that decrease the life of the flash memory?
ARCHOS ENGINEER: Yes, but by then we'll have Gen9 out.
ARCHOS PRESIDENT: Great... go with it...
argie said:
Probably the realization that they screwed up with only 256MB of RAM.
ARCHOS PRESIDENT: We get lots of complaints about the small RAM... what could we do?
ARCHOS ENGINEER: We can always use some of the internal flash for a swap.
ARCHOS PRESIDENT: Won't that decrease the life of the flash memory?
ARCHOS ENGINEER: Yes, but by then we'll have Gen9 out.
ARCHOS PRESIDENT: Great... go with it...
Click to expand...
Click to collapse
LOL Good one.
I'v been doing some testing with swap and i'v seen not a lot of improvement.
Some tests I did.
Disable swap
install the flash plugin.
Go to the site of archosfans with the stock browser
Play the first flash video on the site.
The result is that after the video has started all apps in the background are killed off by the android memory manager and even ADW launcher is killed.
So second test
Enable swap
Go to the site of archosfans with the stock browser
Play the first flash video on the site.
Check with the command free via adb
The result is exactly the same as above and only 10Mb swap is used.
So for me swap is useless under android.
I suspect the android memory manager kicks in before the linux kernel has time to swap out the programs to free memory.
I also suspect that non of the real android apps are swapped out to those 10Mb but only the real linux programs are swapped out. I can't verify it at the moment as the top command thats installed does not show if a program is in swap or not.
Confirmation that it works on 2.1.04 from ShadowZephyr
I'm kinda lost when it comes to the extraroot.sh file. I created a sdcard folder in the sdcard, copy and pasted the script into a .txt file and renamed it to .sh. I'm guessing its wrong since nothing is happening. Could any kind soul shine a light on this?
Do these scripts work with the overclock zimage? Can i just point to the extraboot.sh in the init.rc?
smile_gerard said:
I'm kinda lost when it comes to the extraroot.sh file. I created a sdcard folder in the sdcard, copy and pasted the script into a .txt file and renamed it to .sh. I'm guessing its wrong since nothing is happening. Could any kind soul shine a light on this?
Click to expand...
Click to collapse
What do you mean when you say nothing is happening? What do you expect to happen? You won't see anything on the screen. And the script will only be run when the Archangel script tries to root the device.
liutszho said:
Do these scripts work with the overclock zimage? Can i just point to the extraboot.sh in the init.rc?
Click to expand...
Click to collapse
Why would you want these scripts to run on a fully rooted device. You can do anything you want on your device if it's fully rooted.
These scripts only make sense when used together with the Archangel root app.

Want a faster Eris?, Better than task killers! [Requieres Root]

If you feel like your eris does not run as smooth as before, this might help you.
I finally found out why my eris feel slower now, it is because it doesnt have enough ram, new roms requiere mor ram and lets be honest the eris was made for android 1.5 not for 2.3 so heres the thing, with all these new roms at boot the eris has at least 85-90% of ram memory occupied, which is bad, really bad.
Well first of all a little intro:
Apps are classified in these different "kinds" by android
- FOREGROUND_APP: App currently on screen and running.
- VISIBLE_APP: App running but in the background
- SECONDARY_SERVER: Services
- HIDDEN_APP: App running but hidden in case it is needed for something else at some point
- CONTENT_PROVIDER: This is apps that provide data (content) to the system.
- EMPTY_APP: Apps that you have opened, but are done with them.
Now that you know that, there are 2 ways of getting a faster eris, please read both ways since one is needed for the other one.
1 - For people who just want the eris to get faster and dont care about opening lots of apps
Heres what you need:
- Droid Eris Rooted
- Terminal Emulator
The android system itself has a very nice way to run things, sadly, the default parameters are not enough for us anymore.
The parameter im talking about is the "minfree" which basically specifies the minimum ram the OS should have.
This is better than task killer apps, since it uses Android OS kernel to get mroe memory and not a third party application.
Open up your terminal emulator and type this:
su
cat /sys/module/lowmemorykiller/parameters/minfree
that should show you what your parameters are right now, which should be something like this:
1536,2048,4096,5120,5632,6144
These numbers are pages. To Android, a page is equal to 4 kb. So in the above example, the EMPTY_APP settings (last in the list -- 6144) is 24 MB. 6144 pages = 24576 kb = 24 MB. The formula would be: ((6144 * 4)/ 1024)
Ok so what we need is to change at least that parameter (feel free to tweak the others but basically this is the more useful), we should pout in there something like at least 50 MB, so to change it type this in your terminal:
su
echo "1536,2048,4096,5120,15360,12800" > /sys/module/lowmemorykiller/parameters/minfree
and that should give you a faster eris, or at least a smoother one, you can tweak the other parameters aswell but I would not recommend it so much, because you are messing with the kernel too much, but hey! its your eris you can do whatever the hell you want with it, you have to do this everytime you reboot by the way.
2 - For people who want a faster eris but also want to open lots of apps at the same time
Well to you guys i do recomend tweaking all the parameters, because will have more memory, the difference is that whats been working for me is making a Linux Swap partition on my SD card, as a side note i did try apps like swapper which make a swap file but they didnt work so well from my point of view.
It is easy to do so in a Linux OS with this command:
mkswap /dev/mmcblk0 512
where:
mkswap = command
/dev/mmcblk0 = your device for the linux OS
512 = Swap partition size
If you feel like this is too much for you I wuold recommend doing this from gparted which is a partition manager for Linux and it has a GUI, you can download a live cd of parted magic and open it from there in case you dont have linux.
You can also do this from recovery, i dont konw about clockworks but there is an option to partition your sd card in Amon-Ra's recovery and there you just enter the size for each partition, i do not recommend this because i couldnt read my sd card in my computer after that, but it could have been something else, plus i fixed it formatting it again.
Ok so lets say you have your sd card with a swap partition, what you have to do now is "tell" android that it can use this space as RAM, this is done by the following command
first get root access:
su
then
swapon /dev/block/mmcblk0
and now well tweak another parameter which "tells" android how often it should use swap instead of real RAM, you can do this like this:
su (only if you dont have root access yet)
sysctl -w vm.swapiness=40
you can change 40 for a different number but by trial and error thats the number thats given me best results.
Remember!: You have to do this everytime you reboot!
Hope this is helpful!
Im sorry if it is not explained so well , but its 4 am and I really need to go to bed, lol, if you have doubts just ask!

How to autorun swap Xperia Ray?

I have created a 1 GB a2sd partition in CWM, works perfect! Every app is on sd-card. In the same menu in CWM there was an option to create a swap partition, so I created a 256 MB partition. After reboot I checked in terminal if swap worked. Typed "su" followed by "free", swap showed 0 0 0... But then I found an app in Google Play named "ResetSwap" where I can turn swap partition on/off. When I check in terminal it works great! The "problem" is that every time I reboot I have to manually turn swap on in ResetSwap. Is there a way to make the swap partition autostart after boot??
Thanks in advance!
Sent from my ST18i using xda premium
U need another kernel rather than the official one
Hi there
what u need is to flash a kernel support swap function which the official doesn' t.
swap needs kernel support to work.
AND flash unofficial kernel means U need get ur bootloader unlocked.
If that's what u don't want , then give up.
if not there are instructions on this forum, just follow it.
In my opinion, if u don't play huge game ,ray's 512 ram is just enough for daily surf and simply work.
Hi!
Thank you for answering. My bootloader is unlocked, I'm running Sirkay v.6 @ 1,6 Ghz. Rooted + supercharged. The stock Xperia Home is freezed in Titanium Backup, I only use Launcher Pro. I have got the swap partition to work, only it doesn't start automatically when boot. It has to be done manually. I want it to start automatically. But I have found that there's use for the swap. I have lots of apps that together eats a lot of ram. Generally I have about 50-60 MB of free ram and the system also uses about 120-150 MB of the swap partition! I know the SD-card isn't as fast as the ram, but I don't see any difference when using it. Its an Samsung 32 GB class 10. Before I created the swap partition I got lot of crashes from several apps, I guess it ran out of ram. Maybe some say its not because of low ram that makes them crash, its because Launcher Pro isn't built for ICS. But I'm using the phone all the time, lots of multitasking. Have to charge the battery at least 2 times every day. So I'm pretty sure the swap file is working great, I get no crashes with the swap enabled. But I do get them without, several times every day. But basically, I just wanted to know if its possible to autostart the swap-file.
Best regards!
Sent from my ST18i using xda premium
open notepad or creat newfile with xplorer, name it swapper or what you like. type this command
#/system/bin/sh
swapon /dev/block/mmcblock0p3
save it and put it to /etc/init.d chmod it 777
hope it work for u
It's actually swapon /dev/block/mmcblk0p3 not mmcblock0p3.

[Q] Desperately trying to increase the memory...

Hi there!
First of all excuse my bad English. I learned this language several years ago. But let me have a try to tell you about my problems:
I’m a proud owner of a Samsung Galaxy Ace 5830i. Before using this device I’ve been a real Apple nerd (shame on me) but now I’m proselytized completely.
However I’m facing a difficulty now. I tried to increase my internal memory, but it doesn’t work.
I’m actually running this custom firmware:
http://forum.xda-developers.com/showthread.php?t=2778000&nocache=1
And I‘ve tried all the solutions mentioned here:
http://www.droidthunder.com/increase-internal-memory-android-phone/
All of them are causing error messages – as a sample the Terminal Emulator App is telling me „a2SD“ is not found. And Link2SD seems to be working – but after receiving about 15 messages the device tells me the storage is full.
I’ve installed SuperUser and Clockwork Recovery for sure…
As I know myself as a little dopey, I’m sure it’s my own failure –but I can’t find it. So please help me!
I’m absolutely certain you need further information –so just let me please know what you exactly need.
Stollentrolle said:
Hi there!
First of all excuse my bad English. I learned this language several years ago. But let me have a try to tell you about my problems:
I’m a proud owner of a Samsung Galaxy Ace 5830i. Before using this device I’ve been a real Apple nerd (shame on me) but now I’m proselytized completely.
However I’m facing a difficulty now. I tried to increase my internal memory, but it doesn’t work.
I’m actually running this custom firmware:
http://forum.xda-developers.com/showthread.php?t=2778000&nocache=1
And I‘ve tried all the solutions mentioned here:
http://www.droidthunder.com/increase-internal-memory-android-phone/
All of them are causing error messages – as a sample the Terminal Emulator App is telling me „a2SD“ is not found. And Link2SD seems to be working – but after receiving about 15 messages the device tells me the storage is full.
I’ve installed SuperUser and Clockwork Recovery for sure…
As I know myself as a little dopey, I’m sure it’s my own failure –but I can’t find it. So please help me!
I’m absolutely certain you need further information –so just let me please know what you exactly need.
Click to expand...
Click to collapse
First of all do please explain all of the instruction(s) you did take from step one , rather than directing us to some general external links method .
Your custom rom comes pre-rooted with su app as i gathered and binary update installed , so i didn't get the part about installing stuff and please clarify the process you went through for play store an Gapps installation as com.android.vending-5.2.13-80321300-minAPI9.apk was omitted from system/app of your TWR v2.5 . ( post #270 my comment )
If you got any root explorer installed please give me what you see under /system/etc/init.d folder of your device ( you can also install terminal emulator and give me the following output command is generated >> "ls -l etc/init* " & type "su" to get elevated and then type " df" for now and FYI there are two method for increasing your internal space : 1-link2sd free version from play store and 2'; universal script method which is a bit complicated but does not require app linking method such as link2sd app .
On the side note though , If I am not mistaken TWR v 2.5 is heavily customized , therefore few MB of space will be remained under /System partition . You need to re-partition your external device through clock work mod and install link2sd app from play store to increase internal memory space , or use cronmod script which is a bit complicated . ( upon re-partitioning , all of your external SD card data will be erased , so back up your critical data ) . I need those output i requested to be any assistance to your cause , but this is a general guideline anyway :
Link2sd instructions :
1- Uninstall any new app you have downloaded through your built -in application manager or from play store/my app section ( before that unlinked then through link2sd , if you created link2sd connections ) . Delete any .apk file leftover within your Download folder , accessible through your built-in file manager ( root explorer /es file explorer will do).
2. assuming you are familiar with your custom recovery console ( a.k.a : CWM ) , turn off your phone and push the hardware combo key to get to your CWM :
3. Go to advanced>partition SD card>choose size ( 1024mb)
4. After that( ext4 or ext2 will be created upon entering 1024 Value , depend oc the CWM version and kernel you are using ), then choose 0mb as swap partition and continue .
5. After this is done go to mount and storage and format sd-ext there (back up your sensitive data as you will loose them ).
6, Reboot your device .
7. open up your internet browser and search for " free link2sd app from play store " , if you can't find it directly over play store search function and install the app.
8. Open up the app , you will asked to choose your sd-ext partition format : pick ext4 or ext2 ; if you got any script error , then from top left corner menu , choose recreate mount script and pick ext2 , if ext4 generated mount error .
9. from top right corner menu , choose multi-select > push on the option on toolbar or select your apps > push on three vertical dots from top right again and this time choose link to sd card > all of the app selected by link2sd or hand picked by you will be transferred to /sd-ext partition plus some other technical stuff .
10. now back to the first page and from top left menu , choose storage info : you must see something like :
Internal
SD card
SD Card 2nd part
System
Cache
spaces , from now on , your limited internal will remain at the fixed ratio and your /mnt/sdcard and /data/sdext2/4 will be involved with apk data and library and app cache
Soft rebooted from top left corner menu of link2sd in order to become effective .

Cannot convert user app to system app using Link2SD

I upgraded my LG G2 android software to Lollipop a couple of days ago, and i have just rooted it successfully few hours ago. I am trying to convert Cerberus app to a system app which i actually succeeded when i still had Kitkat. Now that i have Lollipop, i cant seem to convert it anymore. Do any of you have any idea how to solve this within Link2SD app?
The error was "/system : not enough storage space". I tried to uninstall a system app to free up some system space and it did. But when i tried to convert Cerberus app again which has a size smaller than the available system space, failed again with the same error message. I checked the system storage info and surprisingly, there is no more system spaces left. What has just happened? I tried deleting another system apps again and did the same thing but still no go. Seems like something made my available system storage to be used up without any reason. Now i have a messed up software with full system space :S
I have attached a screenshot of Link2SD storage info. By the way, why does it say i only have a max of 2.66GB of system space? How can we increase that?
Thanks in advance for all your help!
Can you install Terminal Emulator from play store, open it, and run the command
Code:
dd
Or if you have got adb set up, you can also use the command
Code:
adb shell dd
And post here the screenshot (or readable output of any kind)? Because from screenshot, its showing that your /system partition is filled up. But running above command should clear scope for any confusion/reading bugs.
For increasing the space, you will have to repartition (since I dont have an LG phone, I cant provide much info on how to do this). And the end result would be something like-> your user-usable memory will decrease and the system usable memory will increase. In other words, you would be shrinking your /data partition and increasing size for /system partition.

Categories

Resources