Related
Thanks to JAC for telling me how to do it, and to Denkai for providing all the necessary parts.
This is a modified ap2sd.sh to auto run the linux-swap partition on boot.
adb remount
adb shell rm /system/bin/a2sd.sh
adb push /pathtofile/a2sd.sh /system/bin
adb reboot
this can be done in terminal too.
The file is attached.
NOTE: I HAVE ONLY TESTED THIS ON JACHERO2.3.2 use at your own risk.
Please reference this thread http://forum.xda-developers.com/showthread.php?t=531988 to see what swap method I'm talking about.
What build is this for?
I am using soulife's rogers with a modified a2sd and this would definitely put my phone in a boot loop.
AWESOME! Thanks ccyrowski!
boogie1077 said:
What build is this for?
I am using soulife's rogers with a modified a2sd and this would definitely put my phone in a boot loop.
Click to expand...
Click to collapse
For JACHero 2.3.2
Where does init.rc go? On system/sd?
is it necessary to use swapper after this.. should we turn swapper off?
ComplexMinded said:
is it necessary to use swapper after this.. should we turn swapper off?
Click to expand...
Click to collapse
don't use swapper.
You have to have three partitions on your sdcard to do this
fat32
ext2 or ext3
linux-swap
it is.. I just wanted to be 100% sure.. just wonderling I also saw a format for linux swap2.. any difference?
I know it has been asked already. But were does init.rc go?
Z҉A҉L҉G҉O̚̕̚ said:
I know it has been asked already. But were does init.rc go?
Click to expand...
Click to collapse
Don't worry about the init.rc
Ok. Thanks for answering.
can someone check for vers. 2.3.3?
for me it's not working
ibu2002 said:
can someone check for vers. 2.3.3?
for me it's not working
Click to expand...
Click to collapse
im about to test it out right now
will report back with updates :-D
bigballa said:
im about to test it out right now
will report back with updates :-D
Click to expand...
Click to collapse
Worked fine for me.
Just actually included it in a ROM I whipped up from JAC 2.3.3 so you can flash the ROM with three partitions (swapper app already removed) and everything loads up for you without you doing anything.
Any requests for additional things to be removed?
i followed your instruction but after the reboot there was no swap.
ibu2002 said:
i followed your instruction but after the reboot there was no swap.
Click to expand...
Click to collapse
Is the third partition on your sdcard "linux swap"?
Open terminal
$ su
# free
If you want ill upload the rom i made for myself with a few customizations. It will do everything for you.
yes the third partition is linux swap and if i use denkai's method it works.
After a reboot the swap settings are lost and #free prints only 0 within swap.
man xda is so slow lately
c:\Android>adb shell free
total used free shared buffers
Mem: 98908 97152 1756 0 32
Swap: 0 0 0
Total: 98908 97152 1756
Click to expand...
Click to collapse
its not working for me
i put the script in the correct area
but its not swapping anything
i know it says its for 2.3.2 but im trying it on 2.3.3 maybe thats why
ibu2002 said:
yes the third partition is linux swap and if i use denkai's method it works.
After a reboot the swap settings are lost and #free prints only 0 within swap.
Click to expand...
Click to collapse
so how do we get the swap to start back up? thats the question
Apps 2 Virtual Disk 0.53b
For those of you that are wondering "What is this guy smoking?" (which I assume is all of you), this is an automatically re-sizing virtual apps 2 SD ext3 partition. It is stored as an image file on your existing Fat32 partition.
I have done my best to make this as idiot proof and bug free as possible but I always appreciate constructive criticism. Please be kind, I haven't had access to a computer while writing this so it was written entirely on my G1. Therefore I expect that it will have a few bugs.
This barrows very heavily from Cyanogen's work so please thank him for making this possible.
Installing
To install the utility just download the file on your phone, open your terminal emulator and run:
Code:
su
sh /sdcard/download/a2vd-0.53b.zip
It does the rest.
Please note, this is NOT a zip file! It is a shell script. XDA won't let you post any file this big unless it's a zip file. (Can we get an Admin on this?) Good thing linux doesn't give a crap about file extensions.
Once you reboot your phone the utility will create the virtual partition, move over your apps, then re-size the partition to have 15 MB of free space. Please note, it will reboot 3 - 4 times during the first boot.
This should run on any rom that executes /system/bin/a2sd during boot.
It has been confirmed to work on Cyanogen 3.5.2 and higher.
Automatic Resizing
The partition will automatically re-size so you don't have to guess how big you need to make it. Now you can take a bite out of crime, in stead of your Fat32 partition. ;-)
If you run low on space just reboot your phone. If the free space on your virtual partition is less than 10 MB or more than 20 MB it will be re-sized to have 15 MB of free space. Please ignore the fact that free space may be listed as 13 or 14 MB, as far as I can tell this is an issue with the OS, the readout becomes more accurate as the partition gets bigger.
Disabling the Partition
If you wish to boot up with the Apps 2 Virtual Disk partition disabled simply open up your terminal emulator and run:
Code:
su
a2sdoff
You can also remove the SD card while the phone is off.
This is useful if you need to transfer files over USB cable.
Automatic backup
If you boot with the partition disabled the utility will backup some system settings so your apps and widgets will all still work when you re-enable the partition. It will also maintain a separate launcher profile for when you boot with the partition disabled. Now you don't have to stare at a desktop full of broken icons every time you need to transfer files to your computer.
Upgrading to a New Rom
Transitioning to a new rom can break some of your apps and widgets. To prevent this follow this procedure:
1. Place your new update.zip file on the root of your SD card.
2. Open terminal emulator and run:
Code:
su
a2sdoff -u
This will reboot your phone, prepare the backups, and take you to recovery.
3. Flash your new rom. (If you exit recovery without flashing you must re-run "a2sdoff -u" before attempting another flash)
4. Boot up your new rom, open terminal emulator and re-install Apps2VD.
Okay, you can start downloading now.
Thank you for your support and enjoy!
As a side note, If you install this on a phone that already has a traditional Apps2SD partition it will NOT copy over your apps. I'm working on it but until then you'll have to either just deal with it or copy them you self.
Edit: Download has been removed due to security concerns. Will re-upload when solved.
Sweet !....so basically it allows app2sd without an ext partition ? so just a fat32 partition is gud enough right ?
this is really intriguing, but i think i'm gonna hold off until some brave souls try it out with some feedback
Daneshm90 said:
Sweet !....so basically it allows app2sd without an ext partition ? so just a fat32 partition is gud enough right ?
Click to expand...
Click to collapse
Exactly! In fact, it requires nothing more than downloading and typing in one command.
narcopolypse said:
Exactly! In fact, it requires nothing more than downloading and typing in one command.
Click to expand...
Click to collapse
Aight im nandroid'd...n ready to test lol...will post results
So what is the plus side of using this? Is this just a tool for people who can't or don't have an ext partition? Do you know how it compares performance wise?
miketaylor00 said:
So what is the plus side of using this? Is this just a tool for people who can't or don't have an ext partition? Do you know how it compares performance wise?
Click to expand...
Click to collapse
Didnt work on xRom....kept bootloopin the first bootscreen
grandomegabosses said:
this is really intriguing, but i think i'm gonna hold off until some brave souls try it out with some feedback
Click to expand...
Click to collapse
I've been running this build for 4 day and previous alpha builds for over a month.
So have all of my friends.
miketaylor00 said:
So what is the plus side of using this? Is this just a tool for people who can't or don't have an ext partition? Do you know how it compares performance wise?
Click to expand...
Click to collapse
Performance is identical. The primary reason I built this is to have an automatically re-sizing apps partition. And the ability to boot disabled without breaking all of my widgets.
narcopolypse said:
I've been running this build for 4 day and previous alpha builds for over a month.
So have all of my friends.
Click to expand...
Click to collapse
hmmm i might try it later tonight or maybe tomorrow. after reading some more, i've gotten a little bit more confidence.
narcopolypse said:
Performance is identical. The primary reason I built this is to have an automatically re-sizing apps partition. And the ability to boot disabled without breaking all of my widgets.
Click to expand...
Click to collapse
It seems suprising to me that an image file on a FAT32 partition would perform the exact same way as an ext partition. I guess I will have to find out for myself
If this really does work and perform well, this could be google's solution to allow non rooted phones the ability to free up memory on their phone.
Either way, thanks for taking the time to do this.
Daneshm90 said:
Didnt work on xRom....kept bootloopin the first bootscreen
Click to expand...
Click to collapse
Yes, it will. And it would probably have a similar problem on later Cyanogen builds. You will have to modify the a2sd file to tell it not to automatically create apps2sd.
Daneshm90 said:
Didnt work on xRom....kept bootloopin the first bootscreen
Click to expand...
Click to collapse
It is supposed to reboot 3 - 4 times during the first boot.
this is really interesting, thank you for this. earlier today i made a modified a2sd script that makes the a2sd look for dev/block/mmcblk0p4 (fourth partition) and since there is none cyanogen's apps2sd will not be created. also in the file is a modified userinit.sh and user.conf that point to dev/block/mmcblk0p2 instead of 0p3 so that if you wanted to use this and only have a fat32 partition and linux-swap partition you could still get the benefits of it. saw this thread and thought this would be a place where these files could be used.
edit: was just thinking, does this overwrite the a2sd script? either way the modded userinit.sh and user.conf can still help.
david1171 said:
this is really interesting, thank you for this. earlier today i made a modified a2sd script that makes the a2sd look for dev/block/mmcblk0p4 (fourth partition) and since there is none cyanogen's apps2sd will not be created. also in the file is a modified userinit.sh and user.conf that point to dev/block/mmcblk0p2 instead of 0p3 so that if you wanted to use this and only have a fat32 partition and linux-swap partition you could still get the benefits of it. saw this thread and thought this would be a place where these files could be used.
edit: was just thinking, does this overwrite the a2sd script? either way the modded userinit.sh and user.conf can still help.
Click to expand...
Click to collapse
Yes this does replace /system/bin/a2sd and it stops checking for 0p2. It is based entirely off Cyanogen's a2sd that is used in every new rom out there and should be compatible with all of them.
Has anyone tested this yet? Which roms does it work on?
How does this work with mounting your phone on your computer? Like when you want to put music on. Can you do it the same way or do you have to shut your phone down and use a SDcard reader? Because I thought the was the main reason for not using fat32 for A2SD.
miketaylor00 said:
It seems suprising to me that an image file on a FAT32 partition would perform the exact same way as an ext partition. I guess I will have to find out for myself
If this really does work and perform well, this could be google's solution to allow non rooted phones the ability to free up memory on their phone.
Either way, thanks for taking the time to do this.
Click to expand...
Click to collapse
probably the wouldn't use it as you should be able to extract files from the img file
narcopolypse said:
It is supposed to reboot 3 - 4 times during the first boot.
Click to expand...
Click to collapse
Lol, no i tried again rebooted like 20 times so i gave up n nandroid'd.
speoples20 said:
How does this work with mounting your phone on your computer? Like when you want to put music on. Can you do it the same way or do you have to shut your phone down and use a SDcard reader? Because I thought the was the main reason for not using fat32 for A2SD.
Click to expand...
Click to collapse
That would be my concern as well. I don't see any way around this, though I'm not a dev by any means.
alritewhadeva said:
probably the wouldn't use it as you should be able to extract files from the img file
Click to expand...
Click to collapse
I'm sure they could make the img file only accesible by the sytem.
posted at the general Android hacking section but seems like Dream Android Development has more active gurus.
http://forum.xda-developers.com/showthread.php?t=598122
Grooby97 said:
posted at the general Android hacking section but seems like Dream Android Development has more active gurus.
http://forum.xda-developers.com/showthread.php?t=598122
Click to expand...
Click to collapse
Only thing is that the phone will crash any time you decide to mount your sdcard... well unless you swapoff manually first...
h.nocturna said:
Only thing is that the phone will crash any time you decide to mount your sdcard... well unless you swapoff manually first...
Click to expand...
Click to collapse
Swap 'file' would go on an unmountable EXT3 partition anyway... :\
sturmeh said:
Swap 'file' would go on an unmountable EXT3 partition anyway... :\
Click to expand...
Click to collapse
Oh duh. What am I thinking? I guess 4hrs of sleep per a night for the last 3weeks is doing me in... Ummm. Maybe we can create a third partition as ext2 instead of swap and put the swap file on there?
h.nocturna said:
Oh duh. What am I thinking? I guess 4hrs of sleep per a night for the last 3weeks is doing me in... Ummm. Maybe we can create a third partition as ext2 instead of swap and put the swap file on there?
Click to expand...
Click to collapse
that thought did cross my mind couple times...might give it a try later...after I figure out which init script I need to modify so it's mounted correctly....
Yes more active guru's but that doesn't mean you can post in the wrong forum. There will be less active guru's if you use this forum for Q&A especially when there is already a Q&A forum. So please keep this separate.
Scratch that. You should really just take all the content you have in your post on the general Android forum and post it here. This belongs in the development forum.
I added a reply to the other thread explaining why it isn't a valid test and therefore that the conclusions are wrong.
Edit: the effort of the test *is* appreciated. Don't be discouraged by getting invalid results on this experiment.
mmmmmmmmm, true or false...would it be easier to whack any swap partition or file onto the main memory? since we dont need it for apps anymore? would that be faster? perhaps a fat32 swap could be used there, or even linux swap?
lbcoder did point out a flaw in my testing. using /dev/urandom did introduce some overheads and thus makes the raw write seem slower. I did another set of test using /dev/zero and have the raw write speed that is on par with the specified class speed.
Hello Community,
i've read a lot of positive feedback to the cannon 202 mod.
i would like to flash in on my non rootet g1, but can't find an faq how to root and flash this rom.
please, have anybody a good faq vor me?
MFG
Rom Bible
http://forum.xda-developers.com/showthread.php?t=668090
1.Root your phone
2.Get a recovery(amon or clockwork)
3.get a sd card(pref Class 4/6)(skip if you have one)
4.Part it(the sd)
5.wipe everything
6.flash cannon rom
7.Profit
Ace42 said:
1.Root your phone
2.Get a recovery(amon or clockwork)
3.get a sd card(pref Class 4/6)(skip if you have one)
4.Part it(the sd)
5.wipe everything
6.flash cannon rom
7.Profit
Click to expand...
Click to collapse
?!?!?!?!?!?!?!?!?!
can't understand any of this words. what ist pref clas 4/6?
what is wipe and what ist a recovery?
Killarusse85 said:
?!?!?!?!?!?!?!?!?!
can't understand any of this words. what ist pref clas 4/6?
what is wipe and what ist a recovery?
Click to expand...
Click to collapse
preferably
You will know the other words after reading the rooting thread(Rom bible Thread)
Killarusse85 said:
?!?!?!?!?!?!?!?!?!
can't understand any of this words. what ist pref clas 4/6?
what is wipe and what ist a recovery?
Click to expand...
Click to collapse
you better keep your G1 the way it is
not saying anything but shouldnt this be in q&a? but first root your phone there are plenty of guides out there once you root your phone youll figure the rest out pretty easily
This thread should be closed immediately. There's an entire thread dedicated to this ROM (of course) and there's an even a link to a detailed flashing guide specific to this ROM. This guy doesn't even know you have to root your phone before flashing custom ROMs...
i know how to root my phone! ive flashed my last g1 to cyanogen mod.
but i dont now if i can flash this rom the same way like the cyanogen.
Killarusse85 said:
i know how to root my phone! ive flashed my last g1 to cyanogen mod.
but i dont now if i can flash this rom the same way like the cyanogen.
Click to expand...
Click to collapse
well it's cyanogenmod based so yeah, it's the same way. I believe that DangerSPL is required for Cannon's so if you haven't, go ahead and flash that.
Killarusse85 said:
i know how to root my phone! ive flashed my last g1 to cyanogen mod.
but i dont now if i can flash this rom the same way like the cyanogen.
Click to expand...
Click to collapse
its the same...you just wipe from rec then bam you flash this...
Killarusse85 said:
i would like to flash in on my non rootet g1
Click to expand...
Click to collapse
Killarusse85 said:
i know how to root my phone! ive flashed my last g1 to cyanogen mod.
Click to expand...
Click to collapse
...
After this thread is closed, do a little reading and you should have no toruble flashing any ROM you want.
when did CE2x need Danger?
Firerat said:
when did CE2x need Danger?
Click to expand...
Click to collapse
With version 2.2.1. After a couple tries, Cannon didn't get the size quite small enough (it wouldn't boot with the stock SPL). After flashing Danger, all is well.
TeeJay3800 said:
With version 2.2.1. After a couple tries, Cannon didn't get the size quite small enough (it wouldn't boot with the stock SPL). After flashing Danger, all is well.
Click to expand...
Click to collapse
meh, just squashfs the kernel modules, it will then fit
anyway, lbcoder has shone a path
http://forum.xda-developers.com/showthread.php?t=704560
114mb data on a G1
Code:
Every 0.1s: adb shell df -h Tue Jun 22 13:21:48 2010
Filesystem Size Used Available Use% Mounted on
tmpfs 47.7M 0 47.7M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 90.0M 87.7M 2.3M 97% /system
[B]/dev/block/mtdblock5 114.8M 82.9M 31.8M 72% /data[/B]
/dev/block/mtdblock4 457.4M 118.2M 314.7M 27% /cache
/dev/block/mmcblk0p2 457.4M 118.2M 314.7M 27% /sd-ext
/dev/block/mmcblk0p2 457.4M 118.2M 314.7M 27% /cache
/dev/block//vold/179:1
7.0G 6.4G 582.7M 92% /sdcard
Firerat said:
meh, just squashfs the kernel modules, it will then fit
anyway, lbcoder has shone a path
http://forum.xda-developers.com/showthread.php?t=704560
114mb data on a G1
Click to expand...
Click to collapse
Repartitioning without changing the SPL...interesting! Maybe it'll catch on.
I've patched CE221 ( including the wifi fix )
I'll upload it to
http://www.4shared.com/dir/kScUiAKH/CE21.html
will be about 15-20min
Firerat said:
I've patched CE221 ( including the wifi fix )
I'll upload it to
http://www.4shared.com/dir/kScUiAKH/CE21.html
will be about 15-20min
Click to expand...
Click to collapse
is that file ce2.2.1 with the spl hack so it fits?
Just trying to clear up what you posted
xile6 said:
is that file ce2.2.1 with the spl hack so it fits?
Just trying to clear up what you posted
Click to expand...
Click to collapse
no , sorry it isn't, just the redirection method, I squashfs'ed the kernel modules to make room
I know Bake Snack said it was as easy as doing it thru ClockworkMod, and selecting 512mb partition, then selecting OM for swap. But for some reason I have a feeling that it's only a EXT2 partition. And I need a EXT4.. Does anyone know how to accomplish this? Anyone have any script's laying around for achieving this??? Any help would be greatly appreciated!! Thanks so much fella's for you time. I gotta hit the sheets now, but i'll check for any replies when I get up.. thank you very much...
Oh BTW: Im running windows 7, incase anyone needs to know
EDIT: Forgive me if this is supposed to be in questions...
EDIT: Also, I do know you have to upgrade to EXT4, and if thats all I gotta do then I need to know how to do that, plezzzzzz.....
well in regular linux world, you format filesystems with mkfs, just typing 'mount' into the command like should yield what file systems are mounted, what fs they are and where they are mounted. So to format your sda1, you would 'mkfs.ext4 /dev/sda1'. whether this works the same way in android its hard to say. good luck!
its actually ext 3, you can check this by running the a2sd check in terminal... pretty sure their is no way for ext 4 as of right now.
i did the a2sd using hero_overs rom and method but im not sure if it worked properly.. can anyone plz tell me how i can confirm that i have apps2sd on my phone? i followed all the steps and on the last step after i tped in 'su' in terminal then typed a2sd it showed that lod.. it said things like a2sd installed or w.e. but in the end it said swap partition not found.. so idk if it worked for me..
y2bangali said:
i did the a2sd using hero_overs rom and method but im not sure if it worked properly.. can anyone plz tell me how i can confirm that i have apps2sd on my phone? i followed all the steps and on the last step after i tped in 'su' in terminal then typed a2sd it showed that lod.. it said things like a2sd installed or w.e. but in the end it said swap partition not found.. so idk if it worked for me..
Click to expand...
Click to collapse
Swap isn't the same as a2sd, it's basically a drive-space extention of ram, not sure if android can use swap like linux can?
As far as telling if it worked, "ls -l /data" (no " ") and you should see something like "app -> /system/sd" on one of the lines.
Sent from my SPH-D700 using XDA App
y2bangali said:
i did the a2sd using hero_overs rom and method but im not sure if it worked properly.. can anyone plz tell me how i can confirm that i have apps2sd on my phone? i followed all the steps and on the last step after i tped in 'su' in terminal then typed a2sd it showed that lod.. it said things like a2sd installed or w.e. but in the end it said swap partition not found.. so idk if it worked for me..
Click to expand...
Click to collapse
When you started the pertitioning process, you chose a 512mb partition size, then you were supposed to choose "OM" for swap size which in turn means that you arent choosing a swap size. So at the end of Terminal Elu's script run, you see'ing " swap partition not found " is normal.... I know that when I installed A2sd, my terminal said the same as yours did. But I do know that it IS working cuz I got Root Explorer and found where my apps are going cuz once you download them from the Market, they dont show up in your apps drawer until you re-boot your phone.....
I just used my g1 to change to ext4 using AR recovery ... I know some dont have router their G1's or mt3g's but it worked for me
Sent from my SPH-D700 using XDA App
atkailash said:
Swap isn't the same as a2sd, it's basically a drive-space extention of ram, not sure if android can use swap like linux can?
As far as telling if it worked, "ls -l /data" (no " ") and you should see something like "app -> /system/sd" on one of the lines.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
lol can u be a bit more specific plz? do i type that in android terminal?
y2bangali said:
lol can u be a bit more specific plz? do i type that in android terminal?
Click to expand...
Click to collapse
Yes, sorry forgot to say that
Sent from my SPH-D700 using XDA App
sniperkill said:
I know Bake Snack said it was as easy as doing it thru ClockworkMod, and selecting 512mb partition, then selecting OM for swap. But for some reason I have a feeling that it's only a EXT2 partition. And I need a EXT4.. Does anyone know how to accomplish this? Anyone have any script's laying around for achieving this??? Any help would be greatly appreciated!! Thanks so much fella's for you time. I gotta hit the sheets now, but i'll check for any replies when I get up.. thank you very much...
Oh BTW: Im running windows 7, incase anyone needs to know
EDIT: Forgive me if this is supposed to be in questions...
EDIT: Also, I do know you have to upgrade to EXT4, and if thats all I gotta do then I need to know how to do that, plezzzzzz.....
Click to expand...
Click to collapse
http://aliwaqas.info/how-to-partition-sd-card-for-apps2sd-a2sd-android-complete-guide/ and you can use EASEUS Partition Master 6.5.2 Home Edition and just folow tutor and its is advised to use ext3