Jump to content

A2SD GUI in CM6 Settings


Recommended Posts

Guest anegin
Posted (edited)

Apps2SD GUI

Version: 1.0

Author: anegin

GUI for console application Darktremor Apps2sd integrated to CyanogenMod setttings menu.

Allows to simplify change a2sd settings. And additionally allows to create ext/swap partitions on sdcard.

This app was written for Atomic MOD. That's why it was not distributed as standalone application.

Features:

  1. changing a2sd settings:
    • view information about apps/cache install location, free space at ext and swap partitions
    • move apps/cache to sdcard/internal memory
    • turn on/off swap, set value of swappiness
    • clear dalvik-cache

[*]partitioning sdcard:

  • view information about partitions at sdcard
  • create ext (ext2/ext3) and swap partitions with any size
  • format sdcard (delete sdext and swap partitions)

Almost all operations performs to reboot.

Requirements:

[*]Root - necessarily

[*]Dartktremor Apps2sd (v2.7.5.2 and above) - to enable a2sd functions

[*]Clockwork-recovery - for operations with sdcard

Warning: Use at your own risk!

Checked with some U8230 on next mods: clean CM6.1RC2_0.4, FLBMod 1.7, AIO v0.6, TwRock mod,, demidroll backup, AtomicMod

Download: a2sdgui_cm_settings.zip(Settings.apk will be updated)

Installing: flash zip from recovery

Screenshots:

post-736029-1299518598_thumb.pngpost-736029-1299518608_thumb.pngpost-736029-1299518613_thumb.pngpost-736029-1299518616_thumb.png

Edited by anegin
Guest iKrautDroid
Posted
Apps2SD GUI

Version: 1.0

Author: anegin

GUI for console application Darktremor Apps2sd integrated to CyanogenMod setttings menu.

Allows to simplify change a2sd settings. And additionally allows to create ext/swap partitions on sdcard.

This app was written for Atomic MOD. That's why it was not distributed as standalone application.

Features:

  1. changing a2sd settings:
    • view information about apps/cache install location, free space at ext and swap partitions
    • move apps/cache to sdcard/internal memory
    • turn on/off swap, set value of swappiness
    • clear dalvik-cache

[*]partitioning sdcard:

  • view information about partitions at sdcard
  • create ext (ext2/ext3) and swap partitions with any size
  • format sdcard (delete sdext and swap partitions)

Almost all operations performs to reboot.

Requirements:

[*]Root - necessarily

[*]Dartktremor Apps2sd (v2.7.5.2 and above) - to enable a2sd functions

[*]Clockwork-recovery - for operations with sdcard

Warning: Use at your own risk!

Checked with some U8230 on next mods: clean CM6.1RC2_0.4, FLBMod 1.7, AIO v0.6, TwRock mod,, demidroll backup, AtomicMod

Download: a2sdgui_cm_settings.zip(Settings.apk will be updated)

Installing: flash zip from recovery

Screenshots:

post-736029-1299518598_thumb.pngpost-736029-1299518608_thumb.pngpost-736029-1299518613_thumb.pngpost-736029-1299518616_thumb.png

Cool! But will this work on 2.1?

Guest anegin
Posted
Cool! But will this work on 2.1?

...

Checked with some U8230 on next mods: clean CM6.1RC2_0.4, FLBMod 1.7, AIO v0.6, TwRock mod,, demidroll backup, AtomicMod

...

Guest twrock
Posted (edited)

Wow! This looks really nice. I'll install now. Thanks.

Edit: anegin, this is very nice. This along with your camera fix just might be enough motivation for me to release one more update to my current roms.

Are you considering adding more a2sd settings, such as lowmem settings, to future versions?

This is a very nice addition to our roms.

Edited by twrock
Guest anegin
Posted

twrock, make a list of settings/functions/information and I try to add them in next version.

And it would be nice if you will describe needed interface and structure of menu.

--------------------

Sorry for my bad English.

Guest Simon O
Posted

wow, fantastic app. If you can make this a standalone app too so it'll work without the CM settings it'll be very useful for other devices too.

Guest eckengucker1
Posted (edited)

If you can add different languages I would translate it into german!

Options for removing (remove) A2SD and ZipAlign settings could be useful

Edited by eckengucker1
Guest twrock
Posted (edited)
twrock, make a list of settings/functions/information and I try to add them in next version.

And it would be nice if you will describe needed interface and structure of menu.

--------------------

Sorry for my bad English.

Thanks for considering this.

As an example, here is a basic script for the lowmem-moderate setting:

# Define the memory thresholds at which the above process classes will

# be killed.  These numbers are in pages (4k).

	setprop ro.FOREGROUND_APP_MEM 1536

	setprop ro.VISIBLE_APP_MEM 3072

	setprop ro.SECONDARY_SERVER_MEM 4096

	setprop ro.BACKUP_APP_MEM 4096

	setprop ro.HOME_APP_MEM 4096

	setprop ro.HIDDEN_APP_MEM 7680

	setprop ro.CONTENT_PROVIDER_MEM 8960

	setprop ro.EMPTY_APP_MEM 10240


	echo "1536,3072,4096,7680,8960,10240" > /sys/module/lowmemorykiller/parameters/minfree

BUT, I would suggest you do not let users choose every number in that script. That is too advanced, and there is too much possibility for them to really make a mess of something and make their phone unusable. I suggest you let the user choose between the options that the DT script gives them. That will give them a good range of possibilities, and make your coding work a lot easier.

"a2sd help" in terminal will show you the built-in options (lowmem-moderate, lowmem-optimum, lowmem-strict, lowmem-aggressive, lowmem-extreme, lowmem-ultimate, lowmem-default)

So I suggest that you have a menu item "Low memory killer levels". Then under that item you can have a simple list with a checkbox by each of the items above. ("Moderate", "Optimum", etc.)

One thing to note: I believe that a restart is necessary to return to the "default" levels. But I believe the other levels will be set immediately.

I hope that makes sense. I think this would be a good addition. Thanks.

Edit:

Then also under "Info" you could list the current setting like this:

Lowmem level: Moderate

(1536,3072,4096,7680,8960,10240)

Edited by twrock
Guest arlindo.costa
Posted (edited)

Nice job anegin... this is going to come in very useful! :(

Edited by arlindo.costa
Guest anegin
Posted (edited)

Does anyone have any more ideas for new features?

If you can add different languages I would translate it into german!

Options for removing (remove) A2SD and ZipAlign settings could be useful

"Apps Install Location -> Internal memory" is equals command "a2sd remove".

Of course I can add more languages. What would you need to translate it into german?

Edited by anegin
Guest eckengucker1
Posted

Maybe a file with all stings or simply post every text in your add-on here and I'll translate it

Guest szszsu
Posted

I run cyanogenMod 6.1 on My G1.

If I applie the "tiny gapps" ,then install A2SD GUI will fail.But If just run cyanogenMod 6.1 without gapps ,the A2SD will run well.SO please check how can I do for it?

Guest dark8899
Posted
Does anyone have any more ideas for new features?

"Apps Install Location -> Internal memory" is equals command "a2sd remove".

Of course I can add more languages. What would you need to translate it into german?

I can translate it into Spanish

:(

Guest sporting_exodus
Posted
elgubbo, hmm, your app is much cooler) respect

It it nice, and appears to work fine on the CM6 ROM I am using. It doesn't have the partitioning functionality that yours has though :(

  • 5 months later...
Guest jbetro
Posted

Kudos on the app! Works great, except I did find a bug...Swappiness must be activated and set everytime you boot up your phone. Hopefully you can work it out so it is permanent or autostarts.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.