yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] deuse:
I am trying this now...I will post back after installing some apps

EDIT= This is great and works a trea ...thanks dude ;)
[G1 Android Development] motoman234:
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.
[G1 Android Development] deuse:
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.
[G1 Android Development] motoman234:
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:confused: 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.
[G1 Android Development] biosehnsucht:
Find yourself a copy of BartPE with Password Renew in it.

Burn, boot, use password renew to reset the password for any account.
[G1 Android Development] sturmeh:
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.
[G1 Android Development] sleepwalkers:
What's the benefit of this over Froyo's SD implementation?
[G1 Android Development] traumatism:
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.
[G1 Android Development] sturmeh:
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.
[G1 Android Development] 999phonebug:
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/
[G1 Android Development] LIKEHELL:
I will have a try , Thanks..
[G1 Android Development] sparksco:
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.
[G1 Android Development] deuse:
I am trying to find a good backup app as doing a Nandroid did not work for me with doing aps2sd this way.
[G1 Android Development] Firerat:
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

$ 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
[G1 Android Development] zimphishmonger:
Could you possibly implement something for this purpose and add your "all in one" script? Please :D
[G1 Android Development] Firerat:
seems I must, even if its not really needed

should have something soon
[G1 Android Development] zimphishmonger:
Thanks man!
[G1 Android Development] robuser007:
Thanks, looking forward to it (like many of us).
[G1 Android Development] Firerat:
if you really wan't to do this

then here

done in 28k

just flash via recovery

( or push and make them chmod 700 )

give it time boot

ps, in no way am I saying that this is a good thing, its just better to use just 28k instead of 6-7 mb !!
[G1 Android Development] deuse:
You have to flash a2sd-2.7-update3r1-signed.zip in recovery.

You most likely knew this but I thought I would say as you said you tried to run it.
[G1 Android Development] Firerat:
omg

its so sloooooow

honestly, its not good
[G1 Android Development] pgr1979:
need to do this, it's the biggest limitation for CM6 for now on my Dream

thanks for your help!
[G1 Android Development] quierotacobell:
Yeah I was experiencing it too, slows it down.
[G1 Android Development] philosophics:
Is this the slow implementation or is it the one from the OP?
[G1 Android Development] Firerat:
Both probably

The one in the op is just very amature

Not sure why an it profesional would post such a thing

And request donations for it!!

Ok , I read a little bit on what you guys think is the problem with froyo a2sd

So I will have a look at fixing that, already have an idea in mind

_should_ be straight forward
[G1 Android Development] philosophics:
Nice! So I should use your implementation and then when you put out the next is when I'll do the

Fastboot erase system -w to fix market in RC1

DON'T COPY THIS CAUSE I'm NOT SURE IF THIS IS THE RIGHT COMMAND. CHECK MY TWITTER FOR CORRECT COMMAND!!!

@philosophics_

And I take no credit...
[G1 Android Development] connoisseur:
Firerat, boot's slow as all hell, but so far apps seem to be running just fine. Maybe this'll hold me over till they throw it in rc2. Don't want to have to reinstall everything especially with the market fc all over the place.
[G1 Android Development] philosophics:
I just tried firerat's implementation and I got me self a boot loop.

So now I'm going to start over, wipe everything and then apply this at the same time I'm flashing cm6. I'll let you know how it goes...

EDIT: Ok so I just wiped everything with

Then I went into recovery and wiped everything there as well.

I then flashed CM6 RC1

Flashed gapps

Flashed firerat's implementation

Rebooted with home+back

Logcat didn't show any errors, device booted successfully.

I went into terminal emulator and typed free

Strangely enough, I have swap enabled... but I didn't do it. Why?

this is what it shows...

mem: 97640 96348 1292 0 744

swap: 62796 38292 24504

total: 160436 134640 25796

I forgot I had a 64mb swap partition till now but that's neither here nor there.

I have a 1024mb ext3 partition as well but don't really know how to read these numbers without a reference...

How do I check to see if ext3 is getting read and written to?
[G1 Android Development] traumatism:
it may be slow but it sure works. cheers for that Fire. i prefer the apps2sd more than froyos version due to always using my phone while transfering files to it too.
[G1 Android Development] philosophics:
Just tried to install an application on external after the a2sd implementaion from firerat.

Unsuccessful install until I went back to automatic/internal installation location.

App installed fine after that but WILL NOT move to sd. So it's on phone memory.

I'm guessing this did not work for me...?
[G1 Android Development] Firerat:
look

this way of doing a2sd is just silly

froyo is a different beast, its a2sd method works just fine ( if you have things you need to run on boot make sure they go to internal memory )

swap and cm6 is very bad, don't run swap, it will crawl ........

lets put it this way

I gave you an a2sd which didn't fail by using 5mb of crap on /system

chances are if you don't clear 5.2mb from system before using the op bs, it will fail

I DO NOT USE EITHER OF THESE

OP'S IS JUST CRAP

Mine is much better BUT ITS STILL CRAP

if you are smart you will use neither of these

the OP has begged me to 'hit him up' on irc, gmail etc ( long before this post )

apparently he is a IT pro ( linked in is full of muppets like him ), has a crappy phone modding website and believes this OP is worthy of a donation......

lol

honestly, stick with the froyo way
[G1 Android Development] Firerat:
http://ph.linkedin.com/in/johnhale
[G1 Android Development] philosophics:
Hey mang, I'm just trying things out. The way I was looking at it is I have an ext3 partition, why not find a way to use it before they get er done?

As for the swap, I hate it as well. Don't know why it was there and honestly, don't know why it was enabled but fact of the matter is, it's gone now.

I test things out to see what finally starts working. This didn't work for me so I am now in the process of doing it over again.

My messages basically said "If you don't read this and continue to try this on your device, prepare to be disappointed..."

But everyone can do what they want to do cause that's what having a choice is all about.

In the little experience I have had with this froyo stuff, fat32 runs slower so that is the ONLY reason I wanted my ext3 back...
[G1 Android Development] :
anyone have a boot img to get this working on the nexus
[G1 Android Development] Firerat:
if you do the OP method , it will fail

if you use mine, it will be crap

OP is clueless, the linked in is bs...
[G1 Android Development] Z҉A҉L҉G҉O̚̕̚:
Wow man. Do you really have to put down the OP like that? He's just trying to help. Maybe he is an IT pro and Android may be outside his zone. And what's wrong with asking for a donation? Man times are tough for some people and he may need the money.

Well enough of my white knighting.
[G1 Android Development] zimphishmonger:
He MAY be an IT Pro, and he MAY not know Android, but there are a TON of people that deserve donations long before this guy. Try one of the many CM devsm who so quickly prepared this build for us.
[G1 Android Development] robuser007:
It's not mine, I would never ask donations for something like this.
[G1 Android Development] Z҉A҉L҉G҉O̚̕̚:
I wouldn't ask for donations for anything (to much pride), especially this, but it's not like [EDIT: JOHN B HALE

NOT

robuser007] has anyone by the genitals and demanding money. Just ignore the donation link. It's not rocket surgery.
[G1 Android Development] deuse:
I must be the lucky one as I have done mine twice and it runs ok :) with the one in the OP.

@Firerate The froyo way of doing it is crap..in fact so crap I put 30MB of free apps then put igo MyWay then 1 game=LOW ON SPACE :(

This way at least I can install everything and use my phone. I do hope you\CM come up with a better way.

Thnaks

Oh and I have 160MB swap\756MB for apps EXT 2 that I have used for ages now :)
[G1 Android Development] rhcp011235:
Hello,

Does this require the use of AutoMTD-Kernel-CM6-FroYo-TEST4.zip?

And, does it work the same??
[G1 Android Development] Firerat:
actually its the guy below who is the it pro

apologies for the confusion
[G1 Android Development] Firerat:
lol

hey mr 'Head of IT at DeeDevelopments' aka mrcellphoneunlocker

you _should_ be able to figure that out all on your own
[G1 Android Development] Firerat:
ahh, I see

the game would want to install a large file to data..

I'll look at better solutions to the one above
[G1 Android Development] deuse:
Thanks dude ;)

It's the same with many apps like iGO, it installs as 8MB but when you first run it it installs more and goes up to 24MB :mad:
[G1 Android Development] Firerat:
yeah, I can see that as being a problem

I want to look closer at how the new FroYo works, specifically at what triggers the 'app mount', as I want to simply mount the fat32 early and get the FroYoA2sd working much sooner than it does currently
[G1 Android Development] Z҉A҉L҉G҉O̚̕̚:
This is the exact problem I have. I can install all 188 of my apps to ext on CM5, but when I try to install them to SD with CM6 only about 15-20 apps get installed. Then I get the Low On Space message :(.
[G1 Android Development] samaral:
Being from the PH his resume stuff looks very... suspicious.

i remember snosoft as an underground research team back in the early 2k's

and i would be very careful not to flash a kernel from someone i do not even trust. :) somebody new from the community and then all of a sudden, boom this unknown releases a fix.

stay safe people.
[G1 Android Development] bert269:
Another reason why I would like to see (the old) APPs2EXT on CM6

Ok, I installed Cm1 RC1 and restored all my apps (Titanium backup) worked fine, until I updated Maps (from the market)

First 'low memory' message.

So, I opened terminal and tried the Froyo method:

su

pm setInstallLocation 2

My defaults are set to automatic in spare parts.

I even did a getInstallLocation and it returned 2 {external} (or something like that)

I went into applications, manage apps and see what happens.....Now I suddenly have a 'move to SD card' option......but look closely what happens when I select that:

1. Look at the size of the app while it's in internal memory: {screen1.png & screen2.png}

2. Oh, and at first I got a fail message: {screen3.png}

I clicked OK and tried it again (I have found that if it's a protected app, it tells you promptly). Then it worked, it moved it to the SD card. But.........

3. Look at the size of the app reported after 'the move to SD card' : {screen4.png}

AND it's not the ONLY app it happened with, I tried it with 6 in total and they all behave alike...weird!

What's going on here??

It almost seems like only a portion of the app is moved to the SD card.....

or is the blocksizes all different between internal memory and the FAT32 (although it is bytes and not blocks).....and confusing.

The apps still work after I move them over the the SD-card.

......or am I just missing something, here - like a cannot count or something?

any explanations?

or am I reading this screen wrong? ( I am a foreigner you know....LOL)

PS. Fireat: I have not tried your 28K solution yet - you have not convinced me enough...LOL
[G1 Android Development] ftruck90:
The libs of the apps are stored on the internal memory everything else is stored on the sd card. so no yours isn't malfunctioning it's acting as google intended apps2sd to work on Froyo. Cyanogen and his team are working on getting the old method implemented into cm6 down the track..
[G1 Android Development] bert269:
Great - looking forward to that

Thanks - I must have missed it again (somewhere) in this "heap of hay"...LOL
[G1 Android Development] robuser007:
I had succes with batch install on external fat32, but my phone went to insane slow.

I really hope that CM or someone else can bring us ext and without protection for paid apps (also on ext,unlike cm5)
[G1 Android Development] phuquocconan:
I tried to flash it but the results was the same ( No such file or directory)
[G1 Android Development] lbcoder:
If the guy had, as he claims, **9 years unix admin experience**, then he would know ENOUGH about android to know that his "solution" is crap.

When I was doing my masters, I worked as a TA, and I'll tell you this: if a FIRST YEAR UNIX student handed in crap like that, he would FAIL. And that's for 18 year old KIDS with ZERO experience.
[G1 Android Development] lbcoder:
Listen everyone... the problem with froyo2sd is this:

EACH application INDIVIDUALLY gets its very own loop-mounted encrypted filesystem on the sdcard. EACH application's encrypted filesystem is mounted ALL THE TIME, regardless of whether or not it is running at the time.

1) If you install 200 applications to the sdcard, you have TWO HUNDRED ENCRYPTED LOOP FILESYSTEMS MOUNTED ALL THE TIME.... think of the memory!

2) Encryption/decryption EATS CPU.... that means SLOW.

Google should really be ashamed of this implementation. First off, PROTECTED applications can't be installed to the sdcard.... so here comes the big questions:

1) IF THEY AREN'T PROTECTED, WHY ENCRYPT THEM?

2) IF THEY ARE ENCRYPTED, WHY NOT PROTECTED APPS?

3) WHY SHOULD EACH APPLICATION BE IN ITS VERY OWN ENCRYPTED FILESYSTEM AND NOT SHOVE THEM ALL IN ONE GROWABLE FILESYSTEM? 4) EVER HEAR OF A SPARSE FILE?
[G1 Android Development] samaral:
hi lbcoder just for an exchange of ideas heres what i think :

1) i saw them once in an implementation of the cryptic mta qmail.

IMO, encrypting them gives them a unique id as was like qmail in every mail being queued.

3) I feel the design is like paravirtualization wherein each application is ran in a 'container-like' environment (see [1]), therefore easier to just 'freeze' the container while you multitask/kill/resume, given that the encrypted loop is actually the ID of the container, it will be easier to trace. Its a better model rather than one whole container with all the apps inside it. It will be harder to suspend the application in that environment since the container is already compromised by other applications sharing it.

references

[1] http://en.wikipedia.org/wiki/Paravirtualization

these are just small observations coming from humble experience since im very fascinated with the OS . please dont hestitate to correct me.
[G1 Android Development] Firerat:
I'm going to write a new a2sd for froyo, it will be crude but it should be good enough until Chris Soyars works his magic ( guess I should check github first, he may have already done it ;) )
[G1 Android Development] t_rob76:
I gotta say your 28k solution has worked very well for me albiet a little slow at times. all 78 of my apps fit on my G1 and widgets dont go away. Cant wait to see what you do next. you have inspired me to begin making my own flashable scripts like enabling swap and renice.
[G1 Android Development] isikh:
thanks firerat
[G1 Android Development] Firerat:
I have posted an as2d script on cm forums

http://forum.cyanogenmod.com/topic/2636-froyo-a2sdext/page__view__findpost__p__24386
[G1 Android Development] deuse:
Thanks dude ;)

I will try this later when I get back...
[G1 Android Development] Mumps:
If its Windows XP, all you have to do is start in Safe Mode (press F8 as soon as the BIOS is finished loading). Then you're logged as Administrator, go to accounts make a new Admin account (or make yours Admin). Voila!
[G1 Android Development] lbcoder:
In mail, you use encryption for two purposes: 1) to ensure that someone you do NOT want reading it DOES not read it, (2) proving that it came from who it says it came from.

You might want to look at just how much qemu code runs through android... and though yes, the virtualized environment does assist in keeping processes separated and from interacting with each other, the FILE that they are stored in does NOT. You are imagining a whole bunch of weird things that are not actually there.
[G1 Android Development] EdKo66:
Nevermind. I read the stuff, and don't understand one bit from it.
[G1 Android Development] Firerat:
if your 'original' cm login was before the end of may 2010, the forums have been 'reset' so just open a new account
[G1 Android Development] EdKo66:
No, I have logged in after that day. My e-mail address is found, but I never recieve the mail with the password reset, not even in the spam-filter of Google. But that is a whole different topic ;)

I hope Cyanon will make the apps2sd work soon
[G1 Android Development] Firerat:
http://xdaforums.com/showthread.php?p=7351117#post7351117

but I'm not going to maintain the file in that post
[G1 Android Development] bylokk:
I still don't quite understand why the OP method of A2SD is considered as a dirty method ... !? (besides the fact that it is quite big)

I haven't tried it yet, but it should do what it has been intended to to, doesn't it ?
[G1 Android Development] Firerat:
try it then
[G1 Android Development] bylokk:
well, I just reverted my phone back to CM5
[G1 Android Development] bylokk:
ok, my nandroid of CM5 didn't work anymore (extremely slow) ... don't ask me why ;)

sooo, I gave CM6RC2 a second try...

as of V1.6 this script didn't work for me (only moved 1 app to SDext), but with V1.61 it finally works :-) thank you firerat
[G1 Android Development] crzyaznkdxd:
So I tried keeping up with this thread but really have no idea what's going on. Flashing the .zip then flashing cm6, then reflashing the .zip will allow me to use my old a2sd .apks/apps that I had installed from my previous ROM?

I tried that and nothing happened.
[G1 Android Development] my_former_self:
Ditto on the nandroid issue.

First off, though, I can't be happier that Firerat got apps2sd working on CM6; my wife's loves her apps :D Thanks, Rat. For the four millionth time, you the man.

On to my issue, though. When I tried to run a nandroid+ext backup on my wife's G1, it gives me an error telling me to run it from console (which still doesn't work). Same with Bart. The only thing I am going to try tomorrow is updating her Amon Ra recovery to 1.7.0 (from 1.6.2). I don't know if that will make a difference, but I hope it does (she won't be happy about losing her Pink Carebear, though!). If that doesn't work, I'm open to suggestions, peeps. I've searched through the threads and Googled around, but I can't get a straight answer.

Otherwise, I may just do a normal nandroid and then tar down the contents of the ext4 partition and keep it as a backup. Then, if I have to restore, I can nandroid restore and then drop to a terminal console and untar the contents of the ext4.tar back into the ext4 partition and the reboot.

Irregardless, I have Titanium Backup on both of our phones (I have a MT3G); it might take longer, but that's my contingency plan :D
[G1 Android Development] :
Okay this is how I did it as nandroid and bart as you know don't work.

Clean install CM6 + Gapps, boot up and skip wizard and sign in from market. Next from terminal emulator run the following from firerats (this is just where I have the script, change as appropriate)

su

sh /sdcard/scripts/fr-patch139.txt sdext a2sd

Once its done its thing reboot and do a Titanium restore, then reboot into recovery, go to console and mount system then run the patch again (sh /sdcard/scripts/fr-patch139.txt)

The phone will take a good 10 minutes to load up as its moving everything, once booted you should see that you have 80+mb free. From there just simply move any apps you want to internal (I suggest any app that you use regular such as sms clients or phone clients etc)

Any problems get back to me and I'll see what I can figure out for you.
[G1 Android Development] Firerat:
well, 1.7.0 would solve it

if your better half is very attached to the pink bear , then you create the missing mount point

in recovery

mount /system
mkdir /system/sd

that will fix it

you could use the lsd option in my all in one patch ( legacy sd )

the problem is the older recoveries try to mount ext partition to /system/sd, but its awol in CM5+

create it and your nandroid worries are over
[G1 Android Development] russbvta:
Well you can download ubuntu and run it as a dual boot or just off the cd. I can do just about everything to my g1 via the ubuntu gui.