[UTIL] Full Auto A2SD - A2VD - G1 Android Development

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.

Related

[ROM] Unwatermarked, Official, Hero

As promised..
You need to obtain the new SPL and Radio first PRIOR to installing this ROM. Follow this post.
Installation:
1. Download http://www.droiddeveloper.com/hrbuilds/app_s.zip
2. extract "app_s" into your sdcard's ext2 partition.
3. Download http://www.droiddeveloper.com/hrbuilds/hero-signed.zip
4. Place on regular sd card.
5. Reboot into recovery, wipe and flash.
6. Enjoy.
Only thing that shouldn't work at the moment is bluetooth and some minor features.. besides that you have a fully functional hero rom.
enjoy guys..
Phuck the leakers, and there supporters.
EDIT: as far as the bluetooth problem goes, i haven't played with a fix just yet.. i've spent this free time since i've quit to catch up on homework guys.
this is not me coming back.... this is just to clear my conscience, and a big "Phuck YOU" to the leakers
EDIT2: it's using ext2 instead of ext3 because, again, i haven't worked on the rom since i've quit..
for those of you that don't know how to place app_s into sd card do this:
Code:
adb push app_s /system/sd/app_s
enjoy.
EDIT3: /system/app wouldn't fit.. and if i did /data/app_s like before, it wouldn't give you any space in /data this is why i did it this way.
and yes.. this has Rosie.
Enable Superuser.apk & Enhance ROSIE UI FOR HERO ROM
Bluetooth debuging on Hero
Clean up rosie!!
HTC Hero Speedup v2.0
HTC Hero Rosie UI toggle
How you put App_s into the ext2 partition
THE HERO HAS RISSEN! But really,thanks.
EDIT:how do I put the app_s onto a ext2 partion via windows? I lost my linux live cd.
wich one do we download 1 or 3 ?
and thanks alot haykuro much love dawg thanks again
I dont use Apps2SD so can i just add the app_s back to the data folder and resign?
F!! Why does it have to be on an ext2? I cant get the permissions yo ork on my sdcard! Is there a way to avoid this?
And ps. Good god thank you!
If you dont, then wait for someone else to say how. This isn't a tech. It's apps2sd method or none right now.
@justanothercrowd no, this requires apps2sd because its so large.
@ynghova187 and dutman yes
So how would I go about on doing step 3? Srry I just unrooted my phone because it was randomly shutting off, and now I see this, and I want to root. lol.
Darkrift said:
@justanothercrowd no, this requires apps2sd because its so large.
@ynghova187 and dutman yes
Click to expand...
Click to collapse
For someone whos never used apps2sd, is there a quick tutorial for this?
I've searched, but theres nothing that i found about putting a "app_s" folder onto the partition...
Sorry for the n00b question, im usually pretty good with this type of stuff, but i'm at a loss
Darkrift said:
@justanothercrowd no, this requires apps2sd because its so large.
Click to expand...
Click to collapse
Which method(s) should work? I've seen at least 5 so far, including an application or two.
will my apps2sd application automatically move this apps folder to partion2?
dutman said:
So how would I go about on doing step 3? Srry I just unrooted my phone because it was randomly shutting off, and now I see this, and I want to root. lol.
Click to expand...
Click to collapse
Step 3 is simply downloading a file. Is that really what you need help with?
if i dont have apps to sd what links can i download any help i never used apps to sd
This would be the perfect time for the few of us that still haven't been using apps2sd
nice that this has rosie.
Which tut would is the most widely used and most compatible method
startekee said:
How you put App_s into the ext2 partition
Click to expand...
Click to collapse
same question i am using windows... and i used paragon to partition my card before... but windows does not show ext2... is there a way around this??
ext2...
adb push app_s /system/sd
?
where do i put that into, im sorta new to this and i have the ion rom right now.. also do we need the special spl?
No, I need help with Step 2. Sorry that was a typo. And do you have an answer for me Mr. mikedmeyer?
281 said:
adb push app_s /system/sd
?
where do i put that into, im sorta new to this and i have the ion rom right now.. also do we need the special spl?
Click to expand...
Click to collapse
I can't help you with ADB, but if you are running a linux distribution, load GPartEd and you can format your card (if you havent already) and place it on the ext2 partition.

CM6 and apps2ext (not froyo's apps2sd,fat32)

update (FIRERAT's implentation): http://forum.cyanogenmod.com/topic/2636-froyo-a2sdext/page__p__24386#entry24386
Ive seen this method around. And i was wondering....would it be possible to bypass the ADB steps for someone like me that doesnt have ADB access?
motoman234 said:
Ive seen this method around. And i was wondering....would it be possible to bypass the ADB steps for someone like me that doesnt have ADB access?
Click to expand...
Click to collapse
It's actually very easy:
Install Droid explorer (xda)
C:\Program Files\Droid Explorer\SDK\tools (Run... cmd)
I am trying this now...I will post back after installing some apps
EDIT= This is great and works a trea ...thanks dude
robuser007 said:
It's actually very easy:
Install Droid explorer (xda)
C:\Program Files\Droid Explorer\SDK\tools (Run... cmd)
Click to expand...
Click to collapse
Well thats my problem, my computer is super old and messed up. I cant get administrator access to downloads the proper files for adb. All i can do is download zip files to transfer for my phone lol.
motoman234 said:
Well thats my problem, my computer is super old and messed up. I cant get administrator access to downloads the proper files for adb. All i can do is download zip files to transfer for my phone lol.
Click to expand...
Click to collapse
Juts make another account and make it Admin. Then use the new account.
If your windows is that bad then I would either use a backup(if you did one) or a fresh install.
deuse said:
Juts make another account and make it Admin. Then use the new account.
If your windows is that bad then I would either use a backup(if you did one) or a fresh install.
Click to expand...
Click to collapse
Well to create a new account i would have to have admin access. Like a year or so ago this computer was givin to me for that reason lol. Theres a admin account on my computer but i cant get into it. Never could I wish there was a work around. Ive been messing with android for a long time and not once i have EVER used ADB lol. I would love to, theres so much stuff that i cant do because of this terrible computer.
motoman234 said:
Well to create a new account i would have to have admin access. Like a year or so ago this computer was givin to me for that reason lol. Theres a admin account on my computer but i cant get into it. Never could I wish there was a work around. Ive been messing with android for a long time and not once i have EVER used ADB lol. I would love to, theres so much stuff that i cant do because of this terrible computer.
Click to expand...
Click to collapse
Find yourself a copy of BartPE with Password Renew in it.
Burn, boot, use password renew to reset the password for any account.
I'm trying this, except when I get to "adb shell a2sd install" it says a2sd: not found.
:\
I had to go to /system/bin before i could run a2sd via ./a2sd, after which it worked.
What's the benefit of this over Froyo's SD implementation?
sleepwalkers said:
What's the benefit of this over Froyo's SD implementation?
Click to expand...
Click to collapse
it allows you to use the ext partition from previous versions of CM. Froyo's version now uses a fat32 partition on the sd card, therefore will not read the ext partition and the fact that your apps are on there.
sleepwalkers said:
What's the benefit of this over Froyo's SD implementation?
Click to expand...
Click to collapse
It's not as good, but coming from <= CM5 you may want to port along your apps.
Also Froyo's SD implementation is supported on an per app basis, but can be forced via CM. Note that dalvik cache is only moved to SD when using legacy a2sd.
sturmeh said:
It's not as good, but coming from <= CM5 you may want to port along your apps.
Also Froyo's SD implementation is supported on an per app basis, but can be forced via CM. Note that dalvik cache is only moved to SD when using legacy a2sd.
Click to expand...
Click to collapse
Not true.
See this thread for a more detailed discussion about the pros and cons between froyo2sd and app2sd.
http://forum.cyanogenmod.com/topic/2018-apps2sd-brainstorming/
I will have a try , Thanks..
LIKEHELL said:
I will have a try , Thanks..
Click to expand...
Click to collapse
froyo implementation isn't as good as apps2ext. The froyo method uses the fat32 partition but only if the dev of the app allows it to be moved to the sdcard. plus the apps don't all load on boot because the phone has to mount (prepare)the fat32 partition of the sdcard. This is the reason that many apps are not launching at boot like SetCpu and other root access apps, because the system boots before the sdcard is prepared. This is also the reason why many widgets and apps are missing from the app drawer for a lot of people as well. Cyanogenmod really needs to look at this and think about changing back to the old cm5 way of doing things.
I am trying to find a good backup app as doing a Nandroid did not work for me with doing aps2sd this way.
OMG
honestly , do you really need to add 5.1mb of crap to /system to get what should be a simple script running?
and what is /data/a2sd/Vending.apk for?
Awful, just awful
Code:
$ find
./a2sd-2.7-update3r1-signed.zip
./system
./system/lib
./system/lib/libext2_e2p.so
./system/lib/libext2_profile.so
./system/lib/libext2_com_err.so
./system/lib/libext2fs.so
./system/lib/libext2_blkid.so
./system/lib/libext2_uuid.so
./system/bin
./system/bin/fixa2sd
./system/bin/setupa2sd
./system/bin/apps2sd
./system/bin/boota2sd
./system/bin/chka2sd
./system/bin/reboot.a2sd
./system/bin/e2fsck_recvy
./system/bin/e2fsck
./system/bin/zipalign
./system/bin/aligna2sd
./system/bin/launcha2sd
./system/bin/bash
./system/bin/a2sd
./system/bin/starta2sd
./system/bin/busybox.a2sd
./system/etc
./system/etc/init.d
./system/etc/init.d/04apps2sd
./system/etc/init.d/00a2sdreset
./system/xbin
./system/xbin/apps2sd
./system/xbin/e2fsck
./system/xbin/a2sd
./data
./data/a2sd
./data/a2sd/Vending.apk
Firerat said:
OMG
honestly , do you really need to add 5.1mb of crap to /system to get what should be a simple script running?
and what is /data/a2sd/Vending.apk for?
Click to expand...
Click to collapse
Could you possibly implement something for this purpose and add your "all in one" script? Please
zimphishmonger said:
Could you possibly implement something for this purpose and add your "all in one" script? Please
Click to expand...
Click to collapse
seems I must, even if its not really needed
should have something soon
Firerat said:
seems I must, even if its not really needed
should have something soon
Click to expand...
Click to collapse
Thanks man!

[MOD]CM7 System R/W (Overlay) WORKING

Thanks to the nice people in the legend section
we have a pseudo s-off
NEED EXT3 PARTITION!!!!
using my kernel and another update .zip
NEED PEOPLE TO TEST!
Try with metamorph other apps that use s-off
KERNEL
http://www.mediafire.com/?k4061yiil9zoqv0
UPDATE.ZIP WITH INIT.D SCIPTS & AUFS.KO
http://www.mediafire.com/?d66q953fdgd5nzj
Run adb shell aufs --enable then reboot
terminal should also work: su aufs --enable
see http://forum.xda-developers.com/showthread.php?t=773278
drowningchild said:
Thanks to the nice people in the legend section
we have a pseudo s-off
NEED EXT3 PARTITION!!!!
Click to expand...
Click to collapse
Have you tested this with S2E apps2sd application?
What does this do
Sent from my Liberty
andrew.cambridge said:
What does this do
Sent from my Liberty
Click to expand...
Click to collapse
if you are asking this you shouldnt be trying it
bkmo said:
Have you tested this with S2E apps2sd application?
Click to expand...
Click to collapse
As taken from the thread in legend dev.
Shell script that does the overlay is made so it can use any (first) ext2/3 partition on your sdcard. That means you can use your a2sd partition for overlay too. If a2sd is not active but you still have ext2/3 partition on your sdcard, it will be mounted and used for overlay. If you don't have ext2/3 partition on your sdcard, then internal data partition will be used instead. In this case you will have to be careful not to fill it up entirely
a2sd script should run before the overlay script (only if you use a2sd)
i dont know how s2e works i only use built in apps2sd
as long as you have enough free ext3(no ext4) it should work it only uses what youve edited
eg u morph framework.res it only overlays that file
I didn't try it, I was just asking.
Sent from my Liberty
Read/Write instead of Read/Only
a pseudo S-off as the aria is S-on
read the thread linked for further explanation
S-OFF means that the NAND portion of the device is unlocked and can be written to. The default setting for HTC’s devices is S-ON, which means that neither can you access certain areas of the system nor can you guarantee a permanent root.
sorry...you beat me to it. :0
this is the closest we'll get to s-off unless it actually happens
its a fake s-off that has system files that youve edited load from the sd ext3 partition
updated 1st post as i forgot commands you NEED to run
haven't test it yet. Theoretically this can do pseudo modification of system files, but what will happen when I delete a system file? pseudo deleted, or restore to the original?
ladios said:
haven't test it yet. Theoretically this can do pseudo modification of system files, but what will happen when I delete a system file? pseudo deleted, or restore to the original?
Click to expand...
Click to collapse
tested with metamorph and it just reverts to whatever is on internal
and it works with s2e fine, just make sure you have a big enough partition
drowningchild said:
Thanks to the nice people in the legend section
we have a pseudo s-off
Click to expand...
Click to collapse
This is great! I'm not sure I need it at this point but I might give it a try tomorrow just to see what happens. Thanks, man.
I know what this does but could you jog my memory on what an ext3 partition is? Partitioning your SD card?
Signatures are fancy.
Moh_Jay said:
I know what this does but could you jog my memory on what an ext3 partition is? Partitioning your SD card?
Signatures are fancy.
Click to expand...
Click to collapse
yes, you CAN resize the partitions usung for example gparted(from pc) as i use, instead of formatting it
Okay so is there a certain set of instructions I need to follow when formatting? And all I have to do is 1. have a formatted SD card and your kernel 2. Flash update.zip 3. Put phone into adb and do adb shell aufs --enable on the command prompt?
Signatures are fancy.
not really
yes you should be able to do aufs --enable on the terminal emulator on your phone
you need the newest version of my kernel as it adds support for aufs
Okay thank you will try tomorrow
Signatures are fancy.
Sweet
Sent from my Liberty using XDA App
What's keeping the Aria from getting a full S-Off like some other phones I've seen? HTC's security pretty tough?
SectorNine50 said:
What's keeping the Aria from getting a full S-Off like some other phones I've seen? HTC's security pretty tough?
Click to expand...
Click to collapse
It was done long ago. ATTN1 has had S-OFF on his phone for a while. Check out alpharev.nl . They just have yet to release it for some reason.

[TOOL] G2X Cleanup Batch *** WARNING *** WILL FORMAT INTERNAL SD

If you are going to flash and ICS ROM after this tool please make sure to first install a GB then ICS otherwise your SD card will not be accessible. I am trying to find a fix but it has been illusive. This statement will be removed once a fix has been found and OP updated.
Now with CWM Touch!
This method uses NVFLASH to recreate all partitions and formats them, thereby getting rid of the file allocation pointers and hence renders data inaccessible without effort.
Note: I have never seen a file come back to life or its data affect other files without effort on the users part or a temporary glitch once the partitions and pointers have been overwritten. Please post a reply with evidence if you have seen it.
Benefits:
The contents of the zip file can be used to super clean G2X before a new ROM flash. This tool recreates all the partitions in the phone so wipes the pointers to all files (everything). The method it employes has existed from before. The files here will stop short of pushing a ROM, so that you can push your favorite ROM.
Prerequisites:
G2X (Will not work on O2X due to different partition table)
Desire to have a clean install of your favorite ROM
Backup your data
*** WARNING ***​
This tool will wipe both phone internal memory and internal SD card. External SD card content is safe.
Don't say you haven't been warned!
What to do:
Download the attached Zip file.
Take out the battery (assuming you have backed up your data on external SD card, computer or elsewhere), connect the device via USB while holding VOL+ and VOL- together. Don't let go of the volume buttons until the device is recognized.
(I typically leave Device Manager open to see when it shows up in the list under "USB Controllers").
Launch flash.bat, sit back and wait until the process finishes (generally a good idea to open a command prompt, CD to the directory and then run the file).
Unplug, put battery in, reboot into CWM recovery (pushed by this tool) by holding VOL- first, then pressing and holding POWER).
Flash your favorite ROM.
Enjoy!
I made this package because I could not get the bluetooth to work with G2x GB 2.3.3 (and below). The issue was a disconnect problem where both the phone and headset would still think they were connected but in audio would not be routed for a call or media. After this procedure my phone has not had an issue for almost 3 weeks now. I have tried it with two ROMs and 3 different headsets without any issues.
I guess I will not toss this phone after all .
Putting it out there in the hope that it may help others solve some of their issues as well. I suspect bad data stays in places not touched by other methods.
Your comments are most welcome.
[Update]
Klathmon has made an newer version with CWM 5.0.2.8. RP by Klathmon can be found here:
http://forum.xda-developers.com/showpost.php?p=24768294&postcount=66
I have tested the windows version but linux one is untested. Use at your own risk.
[Update]
Now with CWM Touch!
Thanks to everyone who has contributed on this thread with a drive to positive change! You work/comments/suggestions are very much appreciated.
References:
http://forum.xda-developers.com/showthread.php?t=1248644. This link was the inspiration for the current work.
Link to CWM Touch development thread. I took the image posted there: http://rootzwiki.com/topic/22984-recovery-touch-enabled-cwm-5813/
[EDIT] The zip file should be fixed now. Darn work machine does something to the upload.
was just about to flash the new hellfire rom and saw this tool! will try it out and see how things go
edit: yeah corrupt zip on my end too.
The zip file seems to be corrupt. Could you re-upload plz
worked great on my end, no problems.
khanggle said:
worked great on my end, no problems.
Click to expand...
Click to collapse
The real test is how stable your ROM would stay with this method to wipe than any of the other methods.
I guess only time will tell .
wow this method really blaze hellfire much thanks to your( you) & (rom dev)
Ohh I like this. Thank you for sharing .
This thing is faster than nullifier, and I especially like how you don't need to be in CWM to use it. It just seems like doing it in "update mode" would allow better manipulation of the phone's internals.
so this tool DOES format and nullify in addition to recreating the partitions?
deleting and recreating partitions does not remove data. only by writing over existing data can you get rid of it (like nullifier does)
dodgefan67 said:
so this tool DOES format and nullify in addition to recreating the partitions?
deleting and recreating partitions does not remove data. only by writing over existing data can you get rid of it (like nullifier does)
Click to expand...
Click to collapse
He states in OP that it doesn't write anything, therefor doesn't "nullify". It formats and partitions.
dodgefan67 said:
so this tool DOES format and nullify in addition to recreating the partitions?
deleting and recreating partitions does not remove data. only by writing over existing data can you get rid of it (like nullifier does)
Click to expand...
Click to collapse
Actually you are right. Deleting, recreating and formatting partitions does not get did of the 1s and 0s, so in that sense the data is still there. However the pointers are gone, and hence even though the data is still there it can't be accessed without effort.
What do you think the nand has on it when the device is shipped... I can assure you its not ask zeroes!
Sent from my LG-P999 using XDA
mansa_noob said:
Actually you are right. Deleting, recreating and formatting partitions does not get did of the 1s and 0s, so in that sense the data is still there. However the pointers are gone, and hence even though the data is still there it can't be accessed without effort.
What do you think the nand has on it when the device is shipped... I can assure you its not ask zeroes!
Sent from my LG-P999 using XDA
Click to expand...
Click to collapse
Well no, it has a next to worthless version of android Also, the point he was trying to get across is that it would be better for you to present the script for what it is and not try to compare it to other scripts that do something entirely different. You do kind of imply that you accomplish the same thing as the Nullifier script and more, when in fact you simply do something different.
Some may and probably will prefer your script, at least for specific purposes, while others will prefer the Nullifier script.
MWBehr said:
Well no, it has a next to worthless version of android Also, the point he was trying to get across is that it would be better for you to present the script for what it is and not try to compare it to other scripts that do something entirely different. You do kind of imply that you accomplish the same thing as the Nullifier script and more, when in fact you simply do something different.
Some may and probably will prefer your script, at least for specific purposes, while others will prefer the Nullifier script.
Click to expand...
Click to collapse
Done. OP updated to reflect. Thanks for clarifying that. It was not my intention to state that this tool does anything any other does, or does not.
I think we are all trying to do the same thing... get rid of the issues when swapping ROMs like _____. I can't seem to think of a good analogy here .
thanks for clarifying the OP, that makes much more sense
and no i wasnt trying to say you were reinenting the wheel, just trying to understand what your tool is actually doing
and also i do understand that it would take effort to get data off any type of storage device once the partition has been erased. i deal with wiping hard drives in a data center all the time. we use a DOD wipe tool that writes 1s and 0s over a drive a minimum of three full times to eradicate the data
but with this tool doing it outside of CWM, it sounds like it may do a better job of it
but i must ask, why do you need to push CWM? what if i have a newer version of it already on my phone?
dodgefan67 said:
but i must ask, why do you need to push CWM? what if i have a newer version of it already on my phone?
Click to expand...
Click to collapse
There is no need to push CWM 5.02. As I said in the OP it is a mod of the script found in the reference. In that script it was pushing default recovery. Since the recovery partition is being overwritten as well you will loose existing one and you need a recovery to be able to push a new ROM. Hence the need to push recovery (instead of using super one click).
As long as the recovery is not bigger than the partition that holds it we should be able to push a newer version. However I can't leave it empty or people will look for me with a shotgun (myself included ).
dodgefan67 said:
but i must ask, why do you need to push CWM? what if i have a newer version of it already on my phone?
Click to expand...
Click to collapse
I was thinking the same thing but seems easy enough .. add the cwm img to the dir and edit the .cfg file. Hopefully that should get the new CWM flashed
So would it be benefitial or pointless to nullify to clear the data then run this script for a... super clean?
Sent from my LG-P999 using XDA
mansa_noob said:
There is no need to push CWM 5.02. As I said in the OP it is a mod of the script found in the reference. In that script it was pushing default recovery. Since the recovery partition is being overwritten as well you will loose existing one and you need a recovery to be able to push a new ROM. Hence the need to push recovery (instead of using super one click).
As long as the recovery is not bigger than the partition that holds it we should be able to push a newer version. However I can't leave it empty or people will look for me with a shotgun (myself included ).
Click to expand...
Click to collapse
ahhhhhh now i understand. my eyes have been opened LOL
---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------
PL0X_Kleiner said:
So would it be benefitial or pointless to nullify to clear the data then run this script for a... super clean?
Sent from my LG-P999 using XDA
Click to expand...
Click to collapse
i think it would be pointless unless you are super paranoid
dodgefan67 said:
ahhhhhh now i understand. my eyes have been opened LOL
---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------
i think it would be pointless unless you are super paranoid
Click to expand...
Click to collapse
Nobody is twisting any arms here... Use it if you want to, don't if you don't want to.
I saw benefit so posted so that others may benefit as well.
Sent from my LG-P999 using XDA
Ok so question, why are you killing all the data on your internal SD card? Why not just the individual partitions that the phone uses? Your destroying data that don't need to be destroyed before flashing a rom...
Sent from my LG-P999 using xda premium
It does not have to be destroyed. I just haven't had a chance to test without recreating emmc yet.
Next step. Likely tomorrow. Would like to test before release.
Sent from my LG-P999 using XDA
[edit] BTW, I do want to restate that there is some data that needs to be destroyed which is not being taken care of by other methods. I don't believe it is in the emmc, but rather it resides in one of the other partitions. Most methods out there are only working in the /data, /system and /cache domain.
My original problem (bluetooth disconnect) which happens to be a problem for some in the community even now was only completely fixed by this method.

[MOD][K2_CL][K2_U][K2_UL]Bind InternalSD With Phone Storage

Also, by the way guys, I posted this mod because I could never get the vold.fstab mod to work on ICS. so if you are on JB I would totally recommend the vold.fstab swap mod over this one.
BOOST MOBILE ONLY K2_CL
https://db.tt/nRbob3sP
I've found and mod a file by simonsimons34 that you add to /system/etc/init.d that will bind(merge) your phone storage with internal sd
If you kernel supports it
This is what I used to add init.d
https://play.google.com/store/apps/details?id=com.init.d_installer
Download this file and put it in your init.d folder and set permissions to rwx r-x r-x.
This bind(merge) your internal sd and phone storage.
K2_U & K2_UL ONLY
https://db.tt/vLu7IK5k
download this file and place it in your
init.d folder AND TAKE THE 'K2_UK2_UL' OFF THE END OF THE NAME
it should look like this
99binddata
And set permissions to rwx r-x r-x
And reboot.
Is bussybox required?
I have only these kernel and root no bussybox and s-off
http://forum.xda-developers.com/showthread.php?p=41684667#post41684667
Woooo, sounds awesome !
Anyone tried it ? Screen captures ?
I don't think you need busybox, you can use chmod in a adb shell, but I might be wrong.
Yes you need busy box
And screen shot only shows calculating.....
I think some form of edited vold.fstab is needed to actually show the bind.
I think?
Kajry said:
Is bussybox required?
I have only these kernel and root no bussybox and s-off
http://forum.xda-developers.com/showthread.php?p=41684667#post41684667
Click to expand...
Click to collapse
This is what I used to add init.d
https://play.google.com/store/apps/details?id=com.init.d_installer
russellvone said:
Yes you need busy box
And screen shot only shows calculating.....
I think some form of edited vold.fstab is needed to actually show the bind.
I think?
Click to expand...
Click to collapse
Actually, I think there's a big error here... the bind options doesn't merge two devices (of different filesystem, most of all).
What the bind option does, is to allow the mount of a device in more than one location, so what you'll have using this script is to see your internal sd partition mounted as data partition, which could be very dangerous! Casue you'll have a fat32 filsystem mounted in a place where android expects an ext filesystem.
there are ways to merge filesystems (like unionfs), but I don't think there's an android implementation... and are quite unstables at current stage of development
you shouldn't risk to brick your phone, at most you could end by wiping your system partition and reinstall your rom if your phone shouldn't boot anymore though I'd be very surprised if this would work o.o
don't mess things too much!
madpausa said:
Actually, I think there's a big error here... the bind options doesn't merge two devices (of different filesystem, most of all).
What the bind option does, is to allow the mount of a device in more than one location, so what you'll have using this script is to see your internal sd partition mounted as data partition, which could be very dangerous! Casue you'll have a fat32 filsystem mounted in a place where android expects an ext filesystem.
there are ways to merge filesystems (like unionfs), but I don't think there's an android implementation... and are quite unstables at current stage of development
you shouldn't risk to brick your phone, at most you could end by wiping your system partition and reinstall your rom if your phone shouldn't boot anymore though I'd be very surprised if this would work o.o
don't mess things too much!
Click to expand...
Click to collapse
Also, this is information is good, thank you for your post.
I always try and verify mods and/or scripts before posting.
That means, I am running this script right now and have been since last night and I don't have any issues at all. I would never post something that I haven't tried for myself.
And to prove is working, if anybody has an app that they have tried downloading but had the 'not enough space' error, post it here and I will download it.
russellvone said:
I always try and verify mods and/or scripts before posting.
That means, I am running this script right now and have been since last night and I don't have any issues at all. I would never post something that I haven't tried for myself.
And to prove is working, if anybody has an app that they have tried downloading but had the 'not enough space' error, post it here and I will download it.
Click to expand...
Click to collapse
I'm sorry, I didn't meant to offend you.
What I said is that this will hardly merge two filesystems.
If you have a total of about 8gb of internal storage, then I'm wrong
But, most likely, you'll only have your sdcard mounted as data partition, which might give some problems.
I'm downloading modern combat 4 right now, and if it installs correctly that means this is working. It is 1.92 gb in size and you can see from the screen sit that I only have 1.14 gb of space and 886mb available shown but I have this script running so..... We'll see.
Ps I'm not taking offence at all, it's healthy to object something if its not proven.
:thumbup:
russellvone said:
I'm downloading modern combat 4 right now, and if it installs correctly that means this is working. It is 1.92 gb in size and you can see from the screen sit that I only have 1.14 gb of space and 886mb available shown but I have this script running so..... We'll see.
Ps I'm not taking offence at all, it's healthy to object something if its not proven.
:thumbup:
Click to expand...
Click to collapse
I just realized, I made a big mistake... I always thought that we had 4gb of dedicated data storage and most of it was eaten by sense stuff... Looking at the partition table right now, I see we only have 1gb of data storage o.o
Which means this script is actually useful, cause will make use the 4gb of internal sdcard, instead of our 1 gb of data!!!!
Seems like is working!
Question about boost mobile version
russellvone said:
K2_U & K2_UL ONLY
https://db.tt/vLu7IK5k
download this file and place it in your
init.d folder AND TAKE THE 'K2_UK2_UL' OFF THE END OF THE NAME
it should look like this
99binddata
And set permissions to rwx r-x r-x
And reboot.
Click to expand...
Click to collapse
But your phone is Boost. So do you know if anything like that works with boost k2_cl version? Thanks in advance
My phone is K2_CL
the first post (OP) has the boost file
^^did it work? Did you download and install the game okay?
Burginthorn said:
^^did it work? Did you download and install the game okay?
Click to expand...
Click to collapse
Look at post #12
It downloaded and installed, and plays smooth as ever.
So the extra data doesn't show up in settings correct?
Sent from my Nexus 7 using Tapatalk 4
No just shows calculating......
russellvone said:
K2_U & K2_UL ONLY
https://db.tt/vLu7IK5k
download this file and place it in your
init.d folder AND TAKE THE 'K2_UK2_UL' OFF THE END OF THE NAME
it should look like this
99binddata
And set permissions to rwx r-x r-x
And reboot.
Click to expand...
Click to collapse
Hi ive got a UK HTC One SV LTE unlocked and i believe it is the k2ul version, is this mod compatible with the phone or is it boost only?? will it work with stock kernel or will i have to have a custom kernel to get this to work? and is this mod different to this thread http://forum.xda-developers.com/showthread.php?p=46524538#post46524538 ?? this thread says bind and that one is a swap one?? im confused

Categories

Resources