yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] inportb:
@TheDude:

Understandably, Ext3 with journaling is not very good for Flash memory because of the wear issue. However, those who use A2SD and need journaling might need Ext3 after all, at the cost of SD life.

How about this: can you detect if a journal is present and mount as Ext3 only if it is, or Ext2 otherwise? This way, those who want journaling could just format their partitions as Ext3.

btw, nice work with the AuFS!
[G1 Android Development] TheDudeOfLife:
It already mounts auto, I can just remove the conversion part of the script.
[G1 Android Development] inportb:
Hmm... seeing how ext3 is like ext2 with extra goodies, and ext2 is the basic stuff, I think it might be good to have ext2 by default and have a conversion script to ext3 and back. A benefit of this approach is that by default there is no extra wear. The drawback of course is that by default there is no protection.

But idk, since I don't use A2SD. My USB keys are ext2 rather than ext3, and I make sure to sync all data before unplugging them. However, this seems to be impossible on the phone. Hm... let's wait for the A2SD users to respond, then ;p
[G1 Android Development] defconoi:
yea I would only do it optional, I searched all over with google on the topic especially on linux,redhat,ubuntu forums and it seems like it is known to kill the lifecycle of a sd card dramatically, ext2 for now is the best since it doesnt have journaling, If anything id do nodirtime, noatime, or relatime for ext2. Ext3 will not cause any performance increase, because it writes to the sdcard more. JAFFS and YAFFS are other alternatives, also I would look into cramfs and squashfs to get more space. Anyways, please dont use ext3. Only as an option for compatibility from cyanogens until further research

Reference:

http://talk.maemo.org/showthread.php?p=145267

"In the Fedora linux list, we had a long thread about ext3 on Sd cards. Consensus was that it is bad to do this because it will use up the finite number of writes on the card. They recommend VFAT because it does not make as many separate writes when files are accessed. ext2 is expensive because it tracks so many attributes,especially atime.. ext3 is more costly because of journaling.

In this list, I've not seen much discussion on this, but plenty of people write 'my SD card died.' Maybe that's just a coincidence"

In an ext3 filesystem you can get bad sectors in a couple of hours doing some intensive writing to flash memory.

For flash memory there is jffs2, it does (data) journalling and supports

compression. And it can even work over conventional block devices via mtd block

emulation, I think. Basically jffs2 is one large fs-sized journal as I

understand it.
[G1 Android Development] inportb:
Oh yeah, JAFFS2 and YAFFS are definitely great filesystems; the only problem I see is that even Ubuntu (read: part-time Linux) users might have trouble manipulating them (but since the partition only needs to be created once... why not?), and Paragon users can dump Paragon now :D

I believe NILFS2 just hit kernel 2.6.30. It's supposed to be pretty good for Flash life. I'm not sure if we're that far on Android yet, heh.

Isn't the internal memory JFFS2? Now, TheDude mentioned that his distro autodetects the filesystem. Does this extend to JFFS2? For kicks, I might try making one of those partitions (when the distro is released, of course).

btw, I'm excited about 1.3; htc camera is ftw!
[G1 Android Development] defconoi:
Most users dont have a class 6 sdhc so I'd make it as simple as possible to convert and for it to be optional, maybe my card was going bad but right after it was converted to ext3 I got constant writes to the sd card which could have killed it or maybe it was a faulty card... who knows. If ext3 can be used with noatime/norelatime and we can cut down on the read/writes im sure there wouldnt be a problem. How much performance gain is there anyways?

If the performance is dramatically increased then its probably worth it if we can cut down on the writes.
[G1 Android Development] TheDudeOfLife:
ext3 is already mounting using noatime/norealtime

rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/loop0 on /system/modules type cramfs (ro)
/dev/block/loop1 on /system/xbin type cramfs (ro)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block//vold/179:1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8)
/dev/block/mmcblk0p2 on /system/sd type ext3 (rw,noatime,nodiratime,errors=continue,data=ordered)
/dev/block/mtdblock5 on /system/intmem type yaffs2 (rw,nodev,noatime,nodiratime)
aufs on /data type aufs (rw,si=6e05b257)
[G1 Android Development] skiptomylou11:
Suh-weet! Looking forward to 1.3...
[G1 Android Development] defconoi:
ya dude, release 1.3 in its current form, and add it optional in 1.3a if it may cause issues with people with sdhc class 1 and 2 cards. I am not sure if they can handle ext3 with journaling...
[G1 Android Development] Bavilo:
Has the insufficient storage issue been fixed in 1.3?

It didn't happen to me until I did a wipe and installed 1.2a again. I had to format my sd card, flash to 1.2, for it to work again. But flashing to 1.2a again caused the problem once more.

Not sure whats going on there..

Also, for some reason, my hardware keyboard is locked to QWERTY even though in thre settings it says its set as QWERTZ. Even the language for the keyboard only gives me an option for english.

Mind taking a look at these 2 problems?

Thanks dude!
[G1 Android Development] defconoi:
Add adblock plus port to DudeOfLife ROM

Hey dude take a look at adblock plus for android and see if you can implement it in your build, it would save us from allot of annoying ads and speed up the browser, the only thing is the code needs to be updated for cupcake which shouldnt be too hard

http://vogue-android.blogspot.com/2009/01/adblock-for-webkitandroid.html
[G1 Android Development] beagz:
Doesn't Lucid's script eliminate the multiple writes?
[G1 Android Development] BSDADON:
Why? AdFree Android works fine
[G1 Android Development] Gimpeh:
I'm running 1.3b3 and its saweet. I've been testing it and it runs without hitches, optimized odex and all. Its fast and smooth. You all won't be disappointed.
[G1 Android Development] menzo44:
you tube

Is anyone else having trouble with the you tube app? The app opens for me but I can't watch any videos. It gives me an error message every time, "video cannot be played at this time". I am running 1.2a
[G1 Android Development] Bavilo:
Have you had any Insufficient Storage problems with 1.3b3? Just want to make sure that that has been taken care of :(
[G1 Android Development] Gimpeh:
None as of yet.
[G1 Android Development] newbie2006:
cant wait for 1.3

Dude, thanks for the great roms man, this rocks, just trying to change back to default volume, as the LOUDER makes it sound distorted and I cant change the call volume down, otherwise this is solid and stable.

sig:

Why I Switched to the g1 - http://www.youtube.com/watch?v=1w9wyjVcIPA

4 gig Class 6 SD

1.2b TheDudes

Tmobile G1 Black
[G1 Android Development] ivanmmj:
Actually, are you planning to include the V4 of the volume fix. It's supposed to make it louder without making it distorted. I love your ROM and I can't wait until 1.3!
[G1 Android Development] skiptomylou11:
How's the camera? And, is the Dude gonna be releasing it today?
[G1 Android Development] Gimpeh:
I've never really used the camera a whole lot but it appears to work without a hitch.
[G1 Android Development] TheDudeOfLife:
Yes.

I guess I should package this bad boy up and send it out.

Got some weirdo ringer problems that I'll work out shortly.
[G1 Android Development] BSDADON:
So no ext3 or yes ext3? After seeing someones issue with it killing a SD card I really don't want to take that risk
[G1 Android Development] TheDudeOfLife:
It mounts auto. I commented out the portion of the script that runes tune2fs

# Uncomment line below to convert to ext3
# tune2fs -c0 -i0 -j /dev/block/mmcblk0p2;

That's how you convert to ext3...you don't have to with my build, but I'll let that debate be amongst yourselves. If we all had class 6 sd cards with auto wear leveling...it'd be one thing.

I agree with cyanogen about this being overtalked and lacking any proof, but I don't wanna be the guy responsible for frying sd cards.
[G1 Android Development] BSDADON:
Thanks for the clarification. Waiting patiently for 1.3:)
[G1 Android Development] TheDudeOfLife:
I'm still not sure how I feel about this 'odex' optimizing after the fact. The apk's don't have the dex files removed....so you're not really gaining anything. Can someone tell me otherwise? When I try to remove the dex files I get all kinds of errors and can't boot.
[G1 Android Development] tranquilchaos:
Why is it that even with 573mb of internal storage space free, the phone still lags and runs relatively slow? I'm using thedudes most current version. I don't understand. I completely reformatted my sdcard, everything was setup correctly, etc. Is this just a common problem with it? Is there an earlier version that tends to run much quicker. If so, which and how do I access it?
[G1 Android Development] shaneaus:
When I updated to your latest build it seemed my phone was screaming along faster than it ever had before.

Then I saw the odex thread and ran the script. I noticed almost no difference in the speed of my apps.... Until I rebooted (I think I re-installed one of the apps) and all of my apps began force closing. I have tried everything to get it to run as fast as before (without wiping my ext2 partition) with no success. I finally wiped my ext2 partition and I'm re-installing everything.

I, personally, will not odex my apps.
[G1 Android Development] bhilgeman:
Search the market for overclockwidget

This new version of the widget allows you to set different parameters of the cpu clock speed, 1 for when the phone is awake and another for when it's asleep to save battery. It also auto opens when you turn on the phone.

Although they call it overclocking it really isn't because the cpu is a 528MHz cpu.

I set mine to run 528 all the time when I'm using it, and the lowest cpu setting when I push the end button to make it sleep. It made a HUGE difference in the performance..
[G1 Android Development] johnp888:
i've used dexopt-wrapper on some apps hoping it would speed things up, but i have not noticed any speed improvements in the apps or the os.
[G1 Android Development] inportb:
How do you have 573mb of internal storage if you're on a G1? If you're really talking about external storage, keep in mind that the SD card can be substantially slower than internal storage.
[G1 Android Development] soulife:
retort

What I did was aim the script at /system/app while phones os was loaded, then reboot into recovery and deleted the .dex files pertaining to them in recovery (not sure if recovery was necessary, I actually don't think it was) and reboot. I lost 10mb from /data and gained 10 in /system. Don't notice much of a increase. I've ran with and without optimization for a week and the speed increase is there, just minimal. The dex files never regenerated in dalvik-cache. No hang on boot, or any errors. Runnin dude 1.2b "slightly" modified.
[G1 Android Development] TheDudeOfLife:
1. I don't know 573mb internal storage doesn't tell me much 'busybox df -h' does

2. no

3. no

4. you can't, and see 3.

1.3 is in testing...you guys will get it today.
[G1 Android Development] osho741:
I ran the scripts for creation of both /system/data dex file creation I noticed the apps do load slightly faster than without the odex files. I was able to remove the the data/app odex files without any errors but did not try to remove the system/data odex files. I know somone said that if you apply a theme after the system dex files are created the phone bootloops, so they had to remove the system dex files and copy them into the theme folder and then apply the theme for it to boot correctly
[G1 Android Development] beagz:
osho: you are correct about copying them and loading them with the theme.

dude: are you saying for .odex to work properly that you need to remove the internal .dex file from the .apk itself? (I will try it and report back)
[G1 Android Development] menzo44:
anyone else having trouble watching youtube video's. I get an error everytime that says cannot play video at this time. I'm running 1.2a
[G1 Android Development] inportb:
Well Dude, if you need any more last-minute testing... here I am =D
[G1 Android Development] beagz:
Ok, I removed the internal classes.dex files from music, launcher, and browser since I use those the most. No problems using the repacked method.

1) load base OS

2) load theme

3) run odex script on system/app

4) copy *.odex files to hard drive on computer

5) repackage theme with editied .apk files and .odex files

6) resign, load onto phone, apply theme and TADA!

seems like it works fine.

maybe you should leave a non-odex version if themes mess it up and then let the themers/porters add the .odex stuff. Otherwise I don't know how it will react if the classes.dex files are removed on a normal boot.

OK I am doing the guinea pig shuffle. I have removed all internal classes.dex files from the /system/app/app.apk s. I will post results later.
[G1 Android Development] TheDudeOfLife:
You guys don't really get what i'm saying, but it's cool.

this odex optimization that you guys are doing, just moves the odex to the same folder...it doesn't optimize the apk like on the ion.

ergo....the script is flawed and i won't do it / support it till i see proof otherwise.
[G1 Android Development] osho741:
I think he's asking if there is any benefit to using odex files if the .apks already have dex files in them. But I thought the idea of odex was to create bigger files for the apps to store information so the phone can run programs with some of the information already loaded so the phone takes less time to boot the application

Edit: blah sorry you replied while I was typing that out, sorry didn't mean to waste your time, had no idea the odex script was flawed :(
[G1 Android Development] beagz:
Ok I removed all internal classes.dex files from the system apps. I had no problems booting the phone with 1.2a and a ported theme. Everything is working. Is that what you stated needs to be done?
[G1 Android Development] TheDudeOfLife:
yeah but when i did that my phone started looping because of stale odex files after i rebooted. I'll try again today. which script did you use?

I noticed the issues when I put the modified apk/odex files in the update.zip beagz, can you contact me on aim or pm me your gtalk address?
[G1 Android Development] beagz:
Script :

for i in /system/app/*.apk
do
odex=`echo $i | sed -e 's/.apk/.odex/g'`
echo "dexopt-wrapper $i $odex"
dexopt-wrapper $i $odex
done

aegilman @ gmail.com
[G1 Android Development] shaneaus:
I believe that is what happened to me.
[G1 Android Development] KaL-EL3038:
problems installing apps!!

Hey was up well I just updated to the full 1.2 b but now when I try to install apps all it says installation error....insufficient storage available but I don't have any apps installed I jst installed the update but that's it so what should I do??? What's wrong??? And I look at my phone storage memory and it says 41 mb available so I know I have more than enough space to install a 556 kb app....so what's going on??? Can some one help??
[G1 Android Development] dmm0816:
Page 414 post #2 or 3 can't remember exactly but the solution is on that page and it works fine i've done it myself
[G1 Android Development] naguz:
I just installed this build on my G1 (my first custom formware on the unit), but it won't fully boot up. "The dudes cupcake android 1.2"-splash screen runs in an endless loop. Why? Do I need a ext2/3 partition on my sd card or something? Has anything else gone wrong, maybe?

Tried installing update.zip again, now it worked. But it says "SIM network unlock PIN". I thought with custom ROM there was no reason to get unlock code from Vodafone!
[G1 Android Development] TheDudeOfLife:
New build coming tonight...this won't be a problem.
[G1 Android Development] buzzdroidx:
Nice... standing by:cool:
[G1 Android Development] inportb:
Good stuff!
[G1 Android Development] samir5421:
hello i want to install the dude's firmware. i have jf cupcake and apps to sd, after i install this, will i have to re install every app? if it does require a wipe is there a way to get the apps that have already been installed on my ext2 partition?

Thanks
[G1 Android Development] KaL-EL3038:
thanks dude fixed already but still looking foward to new build
[G1 Android Development] robbie725:
cyanogen

Dude,

Just a question... i am currently using cyanogen's ROM... that created an EXT3 I want to flash you new ROM when it comes out later would it be best to re-partition it back to FAT32 and EXT2? Or can I leave is as it is just add a 3rd partition of EXT2:confused:... ???

thanks

Peace
[G1 Android Development] Gimpeh:
You should be able to just leave it at EXT3 and it should run fine. I'm not having any issues.
[G1 Android Development] ivanmmj:
Can't wait!

Right now, my phone feels perfect with your 1.2b.
[G1 Android Development] Misiek_ud:
How to change version with apps2sd

Hi,

I have 1.1 version with apps2sd. What should I do in order to install this 1.2 and don't brick the phone? Can I do nothing amd just flash update.zip(1.2) or maybe I shoild do something?(uninstal apps from sd, format, or something like that)

I can't find any clear info in this big thread, so please help.
[G1 Android Development] buzzdroidx:
optimal settings for clocking the cpu were 176/528 for battery and both using same ratio correct?

and if later when i load 1.3 will the clock be stuck at those settings or will it wipe with the new install? or should i clock to stock before i load the new version?
[G1 Android Development] Sareas:
Is this possible to transfer Browser with included Flash Player from Hero to some other build? If no why :O
[G1 Android Development] Serpico1979:
ext3

Hi all,

Ok, now i have 1.2b apptosd with ext2 partition.

If i want load new 1.3, is there a way change ext2 in ext3 without format sd?

Is possible?

Bye
[G1 Android Development] TheDudeOfLife:
Yes, I'll post all pertinent ext2/ext3 info when I post the build.

Edit: I'll be posting 1.3 tomorrow. That way I can post a lite build (no a2sd/3rd party apps) and update the resources.zip and a new theme template.

Sorry for the delay.
[G1 Android Development] beagz:
Is there supposed to be a

libA2DP.so

liba2dp.so

both in the system/lib folder?

I cannot repack in windows with both of those in there since it just gives errors. :(

I got it working, I first installed the new full version then just replaced the system/app with odex optimizations using a theme template.
[G1 Android Development] BSDADON:
No worries dude. I think most of the impatient ones have disappeared since Haykuro said he was done, or learned to stop being so damn impatient. We will be here waiting either way.:D
[G1 Android Development] alritewhadeva:
and all secretly dying inside :D
[G1 Android Development] TheDudeOfLife:
That's me playing with Hero libs.

Not sure why both are there.
[G1 Android Development] lovegu:
oops,, i just changed my ext2 partition to ext3 on 1.2b

it doesnt mount /system/sd on boot anymore :eek:

but when i try mounting on terminal it mounts without a problem.

whats wrong with it? :confused:
[G1 Android Development] beagz:
did you use Lucid's scripts?
[G1 Android Development] lovegu:
I just followed this

http://xdaforums.com/showpost.php?p=3879988&postcount=41
[G1 Android Development] osho741:
Beagz, when I flash dude's new build tomarrow will I need to delete the odex files before I install it because of the theme the build comes with or will his build simply overwrite everything?
[G1 Android Development] beagz:
I have my update script set to delete the data/app/*.odex files on any theme or OS update. That prevents any problems. And since I just use a script to redo the data/app odex optimizations it only takes a couple of minutes.
[G1 Android Development] osho741:
Ok I think ill just delete them all and redo the data/app odex using lucids scripts after the update then to be safe, not really that much trouble to do anyways :)
[G1 Android Development] beagz:
do this from terminal

$su
#mount -o rw,remount /dev/block/mtdblock3 /system
#mkdir /sdcard/tmp
#cd /sdcard/tmp
#wget http://files.lucidrem.us/jf/system/bin/lucid.txt
#busybox cp lucid.txt /system/bin/lucid
#chmod 755 /system/bin/lucid
#busybox chown 0:0 /system/bin/lucid
#lucid

Then do this

ok .. so as always i like doing things the "lucid" way - LOL

$su
#lucid -u
#lucid -e3
#reboot

HOME+POWER -> recovery (this is done from the recovery terminal)

mount system
e2fsck /dev/block/mmcblk0p2
tune2fs -j /dev/block/mmcblk0p2
reboot

enjoy!

___________

All of the above is from Lucid. Cut and pasted for you lovegu!
[G1 Android Development] beagz:
Dude I got your new build working with *.odex optimizations in case you didn't get my message.
[G1 Android Development] lovegu:
Thanks for the help but its the same as the post I had before except I had to put the binaries myself but lucid way is just script doing it for me.

I even tried to edit a2sd.sh putting

if [ -z $(df|grep "^/system/sd") ];
then
mount -t ext3 -o noatime,nodiratime /dev/block/mmcblk0p2 /system/sd;
fi;

but it doesnt seem to work :(
[G1 Android Development] beagz:
did you do the second part from adb terminal on the computer or from recovery terminal on the phone?
[G1 Android Development] lovegu:
I did it from adb terminal.

edit: omg.. was that the problem?
[G1 Android Development] beagz:
Yes, Lucid said it may not work from adb
[G1 Android Development] MontAlbert:
i have just made a gscript using the script listed in the odex optimisation thread. I point it at data/app as per beagz (thx for that btw mate), but before it i have a line saying rm /data/app/*.odex

this works perfectly for me and i dont have to go hunting for the apk of the new app....
[G1 Android Development] osho741:
There is a new script posted as a .sh in a zip file that goes through and only replaces the apps that either don't have an odex or need a new odex created call gen_odex that can be loaded from the sd card from gscript, works for app or system depending where you have it pointed at :)
[G1 Android Development] lovegu:
thanks for the help

i still had to reflash tho :(

i tried to reformat my 2nd partition to ext2 but it still didnt mount so had to reflash
[G1 Android Development] MontAlbert:
nice thanks. will have to try and find it now- odex thread or gscript? how about i do a search!! haha

****edit*** found it- not thru search (it couldnt find gen_odex)- search does suck. just reread the odex optimisation thread. http://xdaforums.com/showpost.php?p=3889819&postcount=77
[G1 Android Development] TheDudeOfLife:
For those of you just dying to test....

here's 1.3beta6...don't quote the link and don't repost it....basically if you don't get it in the next 10-15 minutes...you won't have it.

Not gonna get any support so if you don't know what you're doing or aren't sure....wait it out.

I do want to know what works, what doesn't work, and how fast it seems.

odex optimizations aren't in the build yet...that's still being tested.

The time starts....now...10 minutes i'm pulling the link...again don't repost or quote.