yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] timoskrempel:
I have similar results with my G1, but without swap services restart all the time and battery life is horrible. I switched to 64mb swap with swapiness 10 and no JIT, no CC. You are right that performance is often a lot worse than without swap (as in some app takes 10 seconds to reload). I still stay with swap for now, because battery life is a lot better and I can be sure that all services are running.
[G1 Android Development] yo9gnc:
that will be the eternal discussion between cc vs swap. in my opinion are both slowing down the system the same. the difference will be a larger amount of free ram with swap enabled. by the way, i`m never with more than 10-15 swappiness (60mb swap partition class 4 4gb). and yes, 05222011, as roalex says, was a test, and not the most successfully one.
[G1 Android Development] ezterry:
In gingerbread on a 32b device I'm finding a little bit of compcache important to keep memory under control.. otherwise many reboots due to lack of ram..

If you have more than 32mb of either I question the wisdom.. and I find swap slower because on a dream I use various apps2sd methods that create bottlenecks with swap on sd
[G1 Android Development] hrk:
... and this is exactly what I don't understand. Why do reboots happen when the memory is low? Shouldn't the OOM-killer ... just kill some background services? I mean: if the phone could "live" up to the point where memory was clogged, why doesn't the OOM-killer just kill something in background. In the worst case scenario I could see it kill every running app and service except zygote (or whatever is the android system). I don't understand why the kernel dies and goes into a reboot.

In the good old days of CM6, I could fire up the browser and get it zapped as soon as I opened a page which wasn't your average "Hello HTML world!". Annoying, but less than a reboot in my face. :)
[G1 Android Development] XmeccaX:
I just Updated to the latest version 5/22/2011 and trying to use Droid Explorer and I cant get it to connect, i tried using ADB in command and still cant connect, Has anyone else have this problem?
[G1 Android Development] ringochan:
My guess is that soft reboot is the only way that system can recover from swap-gridlock situation. When your foreground app is trying to call cached process which in turn needs access to the portion of code which was just killed because of the initial call to the cached process, it goes into a loop. I may be completely off the point, though.

Edit: According to ezterry "Also the 'wired' reboots are a sign of zygote being killed via oom thus effectivly restarting the Android layer, without fully restarting the phone/linux." Thanks for the info!

Still, I don't understand why it should happen after a long sleep with no app running. All I see on logcat is gc and wifi-supplicant doing their regular work. (I know Sync is not the issue because I see it happens even when I turn off Sync.) But, even under that condition memory sometimes gets filled completely and lagness starts. At that point, I don't see incoming call until it's too late or the phone just soft reboots.

Also, I am sure this problem existed before you guys started tweeking the memory management. The recent tweeking just made it trigger the issue more frequently (once in two weeks vs. twice a week, maybe).
[G1 Android Development] ringochan:
I think many of us still have 64mb swap partition as a left over from CM6 era. I don't remember my phone utilizing the entire swap space at whatever swappiness level back then. At 64mb, about 20-25mb of it was actually used and 64 was about the right size to keep 2-3 apps running harmoniously. That's how I ended up creating 64mb partition.

Right now, cc @18or26% 25swappiness is the most responsive setting for me, alas, with the sacrifice of multi-task-ability.
[G1 Android Development] ringochan:
Oh, that's good to know. Your brilliant work is keeping us going with these 3-year old phones!

Will it have any effect if we disabled apps2sd? I'm on diet now and am down to using only like 70mb on /data.
[G1 Android Development] dw9906:
Well you were right. I still had the same issue with WiFi going on and off constantly with 5/21 as i did with 5/22. Guess i'll stay with 5/20 for now. I attached a Logcat for you roalex if you could take a look for me. :D

View attachment Logcat.zip
[G1 Android Development] ginoyang:
Anyone with 32A could help to test if your flash web page work or not?

I was install flash player 10.3 but web page with flash plugin still can't show...
[G1 Android Development] dw9906:
Our phones don't support flash. Its not going to work.
[G1 Android Development] AndDiSa:
@dw9906: It seems to me, that your phone doesn't get an IP address from your DHCP server. That's the reason to me why it's switching on and off.
[G1 Android Development] WongHokZau:
Spare parts settings couldn't be saved.

when I tried to change some settings in Spare parts.Actually it worked after setting.But it seemed couldn't be saved after rebooting.Is there anyway to make it saved after rebooting???
[G1 Android Development] innerspace:
oh noes, a doppelganger.

I have pretty much the same rig as you. HTC Dream (32b). 8gb cls6

I've come to the conclusion that swap partitions cause big slowdowns, especially if a2sd is utilized. I'm going to switch back to 18CC and see how it goes. Multitasking was doa with the swap partition, unusable.
[G1 Android Development] kadajawi:
Looks a lot like my logcat, and it seems like it always tries to free some RAM before WiFi drops. Which is a bit weird cause it happens even if I have a rather big swap file...
[G1 Android Development] drbobb:
GPS non-functional again. Details are here.
[G1 Android Development] roalex:
Guys atm im cleaning up the "code" i use, so will be a bit till i put up a new build :)
[G1 Android Development] kadajawi:
Oh. So, can we revert to 5/20 without wipe? Cause 5/21 is really not usable...
[G1 Android Development] tvall:
If you made a backup, use that. If you didn't, get into the habit of making backups
[G1 Android Development] kadajawi:
Well, I did, but that's of a 4/something, so I might as well try ezGingerbread for a change. Perhaps a slimmer system might make more sense for me.
[G1 Android Development] dw9906:
It did find my IP address, I just deleted that info from the logcat. I didn't want my IP address and other info available to everyone. Lol :) It only happened on 5/21 and 5/22. Never before that. And I always wipe almost every build just cause I have nothing else to do. Lol
[G1 Android Development] BlackF09:
Gmail missing

Just wanted to show how I managed to get GMail working without cheating the Market, I'm not allowed to d/l it here in Germany:

In lack of a current Gmail build (it seem to be not included in GApps any more) I took the last one available to me. It's from the CM6 version and in the "gapps-mdpi-tiny-20101020-signed.zip" archive (see cyanogen wiki).

extract Gmail.apk from the zip (it's in \system\app)

remount system partition with read-write access

copy the Gmail.apk into /system/app

reboot

After the reboot Gmail is installed and ready to use, just activate auto sync for Gmail in your Google account sync settings.

So far it works pretty well for me :)

This is not an official way in any form, just a work-around with my understanding of the android things

PS: I miss the bash shell with file/path completion... :(
[G1 Android Development] tom0769:
Try MarketEnabler.

Just fake another provider (I use swisscom) and afterwards you'll see Gmail in the market;)
[G1 Android Development] robuser007:
Yeah, much better solution for getting a recent gmail app.

I use marketenabler for getting icoyote (only in France with one provider, can't get it elsewhere): works great !
[G1 Android Development] johmir:
I had exactly the same problem using the default rom apn settings. Then I called my network provider and set it up exactly as they said and the GPS problem just disappeared. I get GPS location in a few seconds everytime.

Hope this helps.
[G1 Android Development] inportb:
... is there something you wished ash could do that bash does? it only offers a subset of bash's functionality, but path autocompletion is one of them. It's also a lot lighter... works for me ;)
[G1 Android Development] darkguy2008:
So, you mean it's possible to replace the default adb shell with a different one? how can you do that?
[G1 Android Development] cj chitwood:
I could be wrong, but the shell is just a binary executable file (like a dot-exe file in Windows). Want to replace the shell? Just replace that file. Looks like it's in /system/bin/sh. Just make sure if you do this, the permissions of the replacement match the original.
[G1 Android Development] tvall:
I would put bash in /system/bin/bash then symlink it to where adb looks for a shell. idk why you would want to use bash on a resource starved system like ours tho...
[G1 Android Development] cj chitwood:
Agreed. Not enough stuff for us to put bloat on our dinky little systems.

I think I read that the reason to swap was command-line autocomplete. I assume this is with the TAB key. But they're trying to do it in ADB, and that never worked for me. The default shell in Terminal Emulator has that, though, and I think so does the shell in recovery (though I'm not sure, so don't quote me on that last bit). I think if they're doing it to get autocompletion in ADB through the computer, they'll be disappointed.
[G1 Android Development] darkguy2008:
I got tab-completion working in adb - randomly though, and only under Linux :/
[G1 Android Development] xploit:
guys whats the app that allows you to install the .nbg themes? can it be downloaded from market?
[G1 Android Development] inportb:
I would not recommend replacing the default shell permanently. ash comes preinstalled on this ROM (as well as many other ROMs) -- just run it before you do anything else in adb. It's not as awesome as bash, but you'll live ;p

You might then ask: since ash is better, and it's already included, why isn't it the default? Well, it is bigger than the default shell, which is used for lots of stuff during and after boot. Sticking with the minimal shell keeps your phone working efficiently. I do not know how to make only adb use this shell by default.
[G1 Android Development] BlackF09:
The ash is the included one, right? How can I enable path and file completion in the "terminal"? I don't mean adb or recovery.

I see, it's not started by default. I thought "sh" is just a link to ash! Ty inportb!
[G1 Android Development] ezterry:
on some roms it is... well a link to busybox that acts like ash

ezGingerbread and my parts package to the froyo ota do just this
[G1 Android Development] drbobb:
I don't think this could help. In the past I have used the GPS on this phone without any sort of data connection being active at all - during foreign trips (data roaming charges are outrageous, a single month's bill could well bankrupt you for life). And it worked fairly well. That was on the official CM6 Froyo (which did have other shortcomings that would make me not too happy if I had to downgrade to it).
[G1 Android Development] cj chitwood:
I've been trying several different versions, each one with something I like and something I don't, and I'm trying to find the best compromise.

In so doing, I can't install apps from market. Says not enough space (even though there is). Old problem, been posted here, I will read up on it when I get a chance. BUT, in this, I've looked for where to set install location. My understanding is that it's supposed to be in Menu > Settings > Applications. It's not.

I have been to Menu > Settings > COS Settings > Misc and yes, "Allow Application Moving" is checked. However, I've been all over the menu setup and not found the setting to specify to put apps in sd-ext anywhere. It was there before. I can still manually move apps, but I'd rather not do that every time I install a new app or new update (with over 200MB available on sd-ext, it's clearly still trying to install to NAND).

To those of you who still have the default install location option in settings, what version of COS-DS are you running? I've tried in the past two days versions 0426, 0506, 0509, 0511, and 0513 yet none of these have this setting (I'm certain at least one of them did before, recently, in the past couple weeks).

Thanks.

P.S.: I have looked but not seen it... what exactly does COS stand for? CyanogenMod of Source? CyanogenMod on Steroids? CyanogenMod Overly Simplified? Creatively Obtuse Sectional?
[G1 Android Development] uvt_novice:
Man, firstly make sure you have your SD-card installed and partitioned with SD-EXT3 or EXT4, - does not matter. After first boot (after installing the ROM) just go to your Settings, then Applications, then Preferred install location and choose SD Extension partition. Reboot your phone. Done. All applications now go to SD-Ext partition to save /data space on your phone.
[G1 Android Development] inportb:
Well, give it a try...
[G1 Android Development] BlackF09:
Using ash shell

I tried and it works, thx again.

Here's an example how it looks like:

$
$ su
# ash
~ # cd /sdcard
/mnt/sdcard # _
[G1 Android Development] kingjehu:
I can only answer that part. You were close. It's Cyanogenmod Open Source, since it's mostly CM but with bits of ezterry's work and some open source stuff.
[G1 Android Development] cj chitwood:
By the bolds above, I intended to convey that I do have an ext partition on my SD card and that I'm looking to see at what point the option disappeared for my phone (because obviously I don't go back and recheck with every update). Apologies if that was not what happened. :)

Thanks... Yeah, I've got an ext-4 partition. Had an ext on the SD since... wow, I think it was JesusFreke's Cupcake I was using back then. Was either ext2 or 3, but it's 4 now. Hah, it was back in the early days of pre-CM when sd-ext was just starting out on Androids and you had to symlink /data and optionally one or two other folders...

No, it's just that the menu option for setting the location is no longer there on my phone, and I'm trying to find out if it was removed on the ROM or if my phone is borked.

You clearly still have the option, so what version of COS are you running? I assume the latest?
[G1 Android Development] dw9906:
Oops. Double post. Damn website. Lol
[G1 Android Development] dw9906:
My guess is "CyanogenMod Open Source" or "CyanogenMod Operating System"

I've wondered this myself. Lol :D
[G1 Android Development] cj chitwood:
We need a . I should have guessed the O was open.
[G1 Android Development] Paul Shirley:
1: if you've not managed to enable apps2sd-ext then free space on sd-ext is completely irrelevant - yes, it's stating the bleedin' obvious but sometimes that needs doing...

2: if you run out of space on /data it doesn't matter how much space you have anywhere else, or where apps are set to install, it will fail.

Normal cause on my phone is /data/local/downloads filling with apks. This happens after every wipe, Android tries to restore my installed apps before I get the chance to symlink /data/local/download to /sd-ext/data/local/download, fills the partition and dies. Every Market install drops a copy of the apk in there and doesn't seem to remove them.

So check /data/local/download and either clear it or move its contents to sd-ext then symlink it out of internal memory.
[G1 Android Development] ehb224:
If you need to reinstall a lot of apps use titanium backup to back them up first, then wipe and reflash and go into applications/preferred install location and select SD extension partition then use titanium backup to reinstall them. After than you can manually move any apps to internal storage you might want to (such as alternative keyboards or other apps where responsiveness is important.)
[G1 Android Development] kadajawi:
Ah, good to know what COS means. DS I figured stands for Dream/Sapphire.

Been running ezGingerbread since yesterday. Works pretty well... not CM6.1 but getting there. But I didn't realize how naked stock Android is. Oh well, you can't have everything.

Btw., does anyone know how to enable auto restore? It worked _once_. Reinstalled the system, and the apps were all installed automatically. Since then it never worked again. Is that expected, i.e. the feature is broken on COS-DS and ezGingerbread?
[G1 Android Development] cj chitwood:
Agreed, obvious sometimes needs stating. No offense taken.

a2sd-e is enabled in Settings > COS > Misc > "Allow Application Moving" = Yes, and, I do have apps showing in my drawer that I know are installed to sd-e and not internal NAND.

"df -h" shows /data is 91.8M size, 60.5M used (58.9 of which is dalvik-cache, which I did wipe today), and 31.2M free. Yet, /data/local/download has nothing in it.

I think there must be something amiss with my phone, for other people not to notice these things. It seems that when I wipe is when thinks (like menu items) disappear without warning. I'll just keep reverting, version by version, until I find it. Then I'll wipe, reflash that version, then flash the one I'm on ATM (0509) and see if the menu item is still there.

A new issue has popped up though -- now, my phone apk keeps F/C whenever I'm not in airplane mode, even when I have 4 bars signal. Will inspect lolcat later...
[G1 Android Development] cj chitwood:
Are Settings > Privacy > Back up my data and Automatic restore what you're looking for?
[G1 Android Development] uvt_novice:
You asked me about ROM version - they are in my signature.

Ok, reset your phone to factory defaults (if there are nothing to cry about, I mean applications) or do wipe data from recovery and reboot your phone. Boot it back and go to "settings" - "applications" - "preferred install locations" and choose SD Extension, then reboot phone. Install Clockwork Rom manager and run it, run there "Fix Permissions". After it's done, reboot your phone. That should work. That's it.
[G1 Android Development] dw9906:
Can't wait for Ice Cream Sandwich to be released in the fourth quarter of 2011. It's Honeycomb for phones. :D I hope it gets hacked up for our Mytouch and G1's.

http://news.cnet.com/8301-30686_3-20062119-266.html

http://reviews.cnet.com/8301-19736_7-20061541-251.html?tag=mncol;txt
[G1 Android Development] kadajawi:
I hoped there'd be something else... yes, those are on, but never work. :(

@dw9906: May I suggest getting a newer phone? Cause really I don't see it running very well on our poor little phones. I mean Gingerbread is already quite a struggle... it works... just.
[G1 Android Development] Paul Shirley:
That should be enough space, though I have a nagging suspicion you need 2x the apk size (but am probably wrong). Mine looks like this:

/dev/block/mtdblock3 91.0M 87.5M 3.5M 96% /system
/dev/block/mtdblock5 91.8M 45.2M 46.5M 49% /data
/dev/block/mtdblock4 27.0M 1.1M 25.9M 4% /cache
/dev/block/mmcblk0p2 457.9M 174.4M 259.1M 40% /sd-ext

I have /data/local/download and tmp symlink'd off internal and don't have problems installing anything now. Is you /cache showing free space?

Other than that it's looks like you have another problem, attempting an install should have left something in local/download so that's suspicious. Time to grab a logcat while installing, might show what's wrong.

I'd nandroid, format /data and /system then restore/reinstall. I'm insanely adventurous though ;)
[G1 Android Development] cj chitwood:
Ah, yes. Thanks!

I need to update mine -- once I settle on one.

Right, that should set the location, then the phone will "pick up" what was there before. I've done this before too, when I converted from 04-something to 05-something. It didn't pick up the applications until I set that manually, then I had to fix perms like you say here. Unfortunately, that doesn't bring back the menu item that is missing, which I'll suggest is the 2nd largest problem, the first largest following shortly...

I did do the factory reset wipe (data and cache, according to the confirmation prompt) and then rewiped cache, and then wiped Dalvik-cache. Either before, or after, I forget which, I reflashed version 0413. Upon boot, it asked me to touch the android, which I skipped, and it does have the application install location menu item we seek. This is at least a partial success.

I then rebooted to recovery, and updated to 0511. Not only did it not ask me to touch the android, it had one of my previous wallpapers already in place, as well as my "desktop" arrangement. I had wiped all that clean before, so why is it there now? But alas, either way, the menu item is gone.

I have no signal right now, by the way, plus my phone's in airplane mode anyway, so where did my previous settings come from? I had wiped everything I had access to. This is proof enough to me that wiping is not really wiping, or, there's something that needs to be wiped that's not. This could be the fault of AmonRA (which I use because of some issue I had with Clockwork not meeting my expectations).

I think I read something about this before. Will do some more investigating.

Will also try deleting everything from within recovery's console and see if that acts more like a real wipe. Might also research Fastboot Erase options.

Thanks for all the help, guys... keep it comin!
[G1 Android Development] cj chitwood:
@Paul Shirley

Thanks... I was partially referring to stuff I did a night or two ago with the installs (I don't get many chances to mess around, so sometimes I am a day or two late in my responses). At the time I posted, I hadn't wiped anything, but now that I have, I am afraid my post is made slightly irrelevant.

My cache partition is only 27M, with only 1.1M in use. Of course, this is ATM and after wipes and all that...

Filesystem Size Used Available Use% Mounted on

tmpfs 54.9M 32.0K 54.9M 0% /dev

tmpfs 54.9M 0 54.9M 0% /mnt/asec

tmpfs 54.9M 0 54.9M 0% /mnt/obb

/dev/block/mtdblock3 91.0M 78.5M 12.5M 86% /system

/dev/block/mtdblock5 91.8M 60.2M 31.5M 66% /data

/dev/block/mtdblock4 27.0M 1.1M 25.9M 4% /cache

/dev/block/loop0 768.0K 768.0K 0 100% /system/lib/modules

/dev/block/loop1 2.6M 2.6M 0 100% /system/xbin

/dev/block/loop2 2.9M 2.9M 0 100% /system/fonts

/dev/block/mmcblk0p2 395.0M 107.3M 267.4M 29% /sd-ext

/dev/block/mmcblk0p2 395.0M 107.3M 267.4M 29% /data/app

/dev/block/mmcblk0p2 395.0M 107.3M 267.4M 29% /data/app-private

/dev/block/mmcblk0p2 395.0M 107.3M 267.4M 29% /data/data

/dev/block/mmcblk0p2 395.0M 107.3M 267.4M 29% /data/system

/dev/block/vold/179:1

3.3G 1.7G 1.6G 51% /mnt/sdcard

/dev/block/vold/179:1

3.3G 1.7G 1.6G 51% /mnt/secure/asec

Will be pausing on this, as the issue of "wipe" not actually removing stuff is a little more pressing (and would affect just about anything else).
[G1 Android Development] dw9906:
I am getting a new phone, but I'm gonna keep this one around. I'm sure it will work on our phones. Just might miss some features. And I don't know about your phone but gingerbread runs just as good as froyo on my phone. I have no issues with GB.
[G1 Android Development] chris122380:
How do I create a SWAP file on the ext partition? How would I then setup this ROM to use that swap file? I would like to use a swap file like Ginger Yoshi 1.1 does. How do I do that with this ROM?
[G1 Android Development] Paul Shirley:
Try a 'fastboot erase system -w' then reflash. Amon ra has no system wipe support and it might make a difference.
[G1 Android Development] cj chitwood:
Yeah, I keep forgetting about the amon ra not wiping system. You'd think with stuff like this, I'd remember that. I will do fastboot erase next. I did rm -rf just about all I could find in the filesystem, but yet when I reflash 0511 after 0413 it still has my old desktop. Will fastboot erase now.

Edit: My wallpaper and desktop are still here. WTH? Thoughts? I'm beginning to wonder if this is where Ohsaka comes in for some people. Shouldn't be necessary though.
[G1 Android Development] dw9906:
For anyone who cares. Androot file manager is now available In Amazon appstore.
[G1 Android Development] chris122380:
I already have the swap partition so how do I make sure this rom is using it?