yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] tjhart85:
So far I am loving this ROM!

Super stable & I finally activated that 128MB linux-swap that I've had on my SD card for a couple months & WOW does that make a difference (well, I think it does....I didn't do a proper comparison with 4.2.1 before/after).

With the last 5 or so builds, anytime I minimized the browser & opened another app, it would run out of cache & need to reload the browser (a MASSIVE PITA!).

Not happening in this build with swap activated! I opened 10 apps and ran them all for a while (normally one trip through WHERE or GASBOT would cause the cache to empty) and went back to the broswer with no problems.

---

The ROM itself has been super stable, there was initially unstableness when I first loaded it, but that went away with a fix_permissions.

The only problem I am having is that one app shows as installed but it's not & it won't let me re-install/install it from the market (paid app).

The app was moved to my /system/app directory so it could directly turn the GPS on (per the devs instructions). Unfortunately, when I installed the 4.2.1, it wiped the app from the /system directory. Now the market thinks its installed so it won't install it again & it won't uninstall it because it's not installed!

Oh well, I'll eventually wipe & redownload the app to get it all working, but am overall very impressed right now! Almost no lagging after more than an hour of heavy use!

THANKS!
[G1 Android Development] terence_oh:
Hi, did you activate that linux-swap throught a userinit file? Would you mind sharing that file with me?

I have my SD card partitioned, but am not sure that it is being utilized...
[G1 Android Development] tjhart85:
They were on your sd card. You didn't wipe the partition, you just wiped teh phones internal memory (which if you didn't have a App2SD would have wiped your apps).

Ext repair is a file system repair (um.....when your PC OS boots and says it needs to run a disc check [or whatever it says], it's repairing your file system.....this is what that does), just like with your PC, it doesn't wipe your data.

Glad it's working for you. That's what really matters!

----------------

If you type 'free' into a terminal, it'll show you how much of all your memory (including swap) is being used.

The command I found was

sh userinit.sh -s

The userinit.sh and user.conf had to be in /system/data

I copied them to my /sdcard initially and then

su

cp /sdcard/*user /system/data

sh userinit.sh -s

I found the userinit.sh on a webpage and used the user.conf that someone else posted a few posts back (but I changed the swappiness to 40).

I'm going to go ahead & attach those files as well.

I know I answered more than the scope of your question, but when I was searching for these answers, they were hard to find & I had to do a bit of trial/error before I got it working, so I erred on the side of too much info :-)
[G1 Android Development] terence_oh:
Thank you, much appreciated.
[G1 Android Development] disturkis4u:
I remember a few builds ago the browser was really great at not reloading. Now with this build its reloading ALL the time...its really annoying...

Is there a way to fix that??
[G1 Android Development] EWitsJan:
I just downloaded Linda File Manager and it froze on me. I press everything and wouldn't respond so i rebooted. When I went back to market it says it was installed but i cant open or uninstall it. Its grayed out so I can't even click on it. Is there a fix for this?:confused:
[G1 Android Development] tjhart85:
That's what I have as well for my Sim Checker Pro! I thought it was because of the reasons mentioned in my earlier post though!
[G1 Android Development] bradycl_84043:
Is there anyone out there who uses the TerraTime updating wallpaper map? Unfortunately a new version was released and I updated it at basically the same time that I installed 4.2.1 (did a clean install with the ADP image and all partitions on my SD card reformatted).

A fix was released today to restore the high resolution of the background map which had been lowered in the 10/23 update, and that is working. However, both before and after today's update, in 4.2.1, I am seeing fc's of TerraTime within a few minutes, and am not really getting any updates of the background.

(I should note that prior to the 10/23 update of TerraTime and the release of 4.2.1, the prior version of TerraTime was working just fine on 4.1.9999.)

Is there anyone else seeing this who might have an idea or be able to do some testing to confirm if this is the ROM, the homescreen in the ROM, or the app that is causing the fc's?

Thanks!
[G1 Android Development] EWitsJan:
I have root explorer too can some one just tell me what to remove?
[G1 Android Development] EWitsJan:
Yea this sucks I had this before on hero ROM's too.
[G1 Android Development] gringo69:
yep...my phones flyin with this update...so far so good...
[G1 Android Development] Ooglez:
had the same problem with weatherbug elite, but it's just that the system is convinced that it's installed, but the file isn't there. What I did was replaced the file with the apk that i had backed up:

adb push weatherbugelitesstrangelynamed.apk /system/sd/app-private

Then uninstalled and reinstalled. Try renaming another apk to the name of your app, pushing it there, and then uninstalling. No guarantees, but it might work. Wish I knew where the data for the market was so I could just tell it 'nope, not installed.'
[G1 Android Development] Royalknight6190:
So I typed free in my terminal and it is coming up with this:

Total Used Free

ers

Mem: 97972 90892 7080

388

Swap: 0 0 0

Total: 97972 90892 7080

Does that mean my swap is not activated?
[G1 Android Development] tama82:
Hi all,

I'm on cm 4.2.1 rom and having the following issue.

My phone reboots occasionally with smspopup notification. Not sure what is the exact cause. I have attached the logcat and anr traces in log.zip.
[G1 Android Development] Ooglez:
Correct. I don't know why the person you quoted said that userinit.sh and user.conf go in /system/data. They go in /system/sd. I have them there and have a lovely 128MB swap partition active. Best of luck.
[G1 Android Development] Royalknight6190:
So how do I activate it. I have a 64MB Swap partition set up I just need to activate it.
[G1 Android Development] zimphishmonger:
Something is up with all the userinit.sh files floating around. I keep getting an error regarding compcache modules (xvmalloc.ko). Anyone have an updated userinit.sh?
[G1 Android Development] stru85:
hey guys, as I'm reading previous posts, I feel a little dumb for asking for help but I don't know what to do. I have a Rogers HTC magic and I'm currently running 4.1.999 with RAv1.2.1H recovery image. When I try to just flash the new 4.2.1, as instructed, reboot, it freezes on the rogers boot screen. I tried wiping then flashing HTC ADP 1.6 and then flashing 4.2.1 but I still get stuck on the rogers boot screen. I'm not a wiz kid ans can't really extrapolate solutions, but I want to use this rom! thanks in advance.
[G1 Android Development] reeselp:
EMAIL App Not working (CM-4.2.1)

Hey, idk if anyone else having this prblem but i cant sign up non of my email accounts using the "Email" app on my G1. It always give me a Username or Password Incorrect for every email i try to set uP!!!!! :mad: any suggestions or a solution?

Gtalk - ReeseLofton88
[G1 Android Development] pascanu:
Google Partner Setup FORCE CLOSE

For all those having problems with Google Partner Setup FC, or Google applications not working (Gmail, Market, GTalk) here's a solution:

- delete /data/system/packages.xml (it will be rebuilt on next boot)

- reboot to recovery

- run fix_permissions (otherwise you will get a lot of FC)

- reboot

You will lose Home settings (shortcuts, widgets etc) and Google apps settings, bookmarks, call log and some other (can use Backup for root users for all those) but it's not such a big deal (alternative is to wipe!).

Hope this helps. (worked for me)
[G1 Android Development] terence_oh:
Look at the post from tjhart85 a page or two before this
[G1 Android Development] kevo:
Really impressed with the lock home in memory thing. Makes the phone feel loads better over all.

Its something that should be in the main build of Android. Is that likely to happen, or is the implementation a bit of a hack?
[G1 Android Development] anthonws:
This rom (4.2.1) is really great!

Love the new drawer button :)

Thank you very much Cyanogen,

You are a true XDA hero!
[G1 Android Development] purg:
Flash update went OK but now have force close issues within [/b]CM-UPDATER

Steps taken on a new replacement phone

Backdated to DREAIMG.NBH

CM Recovery image

Flashed SPLhard1

Flashed radio (2_22_19_26I)

Flashed CM-4.0.4 (noticed newer versions so carried on)

Flashed devphone_userdebug-ota-14721

Flashed CM-4.1.99

Using CM-Updater Flashed CM-4.2.1

All went fine but CM-Updater now force close all the time.

If you want more info please PM, this thread gets out of hand.
[G1 Android Development] PsychoI3oy:
Cyanogen does not produce the cm-updater app.

There's a thread for it around somewhere.
[G1 Android Development] alchemistone:
Is the power control widget no more included in 4.2.1?

Where do i get it now?
[G1 Android Development] josevtome:
Repartition SD

I've been reading good things about enabling swap with this release, so I've been thinking in doing it, but my SD card is only partitioned with the FAT & ext4 partitions. I could resize the FAT, move and create a new SWAP and then enable swap use, but I'm not sure if anyone did this before. I want to do it without having to wipe. Has enyone done this with no problems so I can be more sure to do it? any advice? :rolleyes:
[G1 Android Development] FatBoyExtraordinaire:
Hate to be a bother but would anyone happen to have a screenshot of this new drawer button I've been hearing so much about? Also, are there any other graphical differences I should be aware of? TIA.
[G1 Android Development] ZilverZurfarn:
/Mats
[G1 Android Development] tjs3783:
Here's the userinit/user.conf config I use. It's set for linux-swap ONLY, so tweak the user.conf to your liking.

I use ADB, so that's what the instructions will be based around...

1: Unzip userinit.zip

2: adb push path/to/userinit.sh /system/sd/userinit.sh

3: adb shell chmod 755 /system/sd/userinit.sh

4: adb push path/to/user.conf /system/sd/user.conf

5: adb shell chmod 755 /system/sd/user.conf

6: Reboot phone

To check userinit config status, once the phone has booted:

1: adb shell userinit -s

See screenshots for free & userinit -s output

userinit.sh & user.conf are tweaked versions of huanyu's userinit.sh & user.conf 0.1.5.3 files
[G1 Android Development] MarvinTheAndroid:
On any of your home screens, press and hold, select widgets, select Power Control - and you're done. :D
[G1 Android Development] robbiekhan:
Keeping home app in memory randomly causes home screen icons to vanish but widgets stay all fine - weird. Turned off this feature in spar parts as I didn't really need it anyway.
[G1 Android Development] bornmw:
is transparency is a graphical difference? search the forum for 'transparent' then
[G1 Android Development] Chosen_on184:
if your trying to sync with yahoo with the email apk

Go to manual setup > IMAP account and change to these settings....

INCOMING

Imap server - imap.mail.yahoo.com

port - 143

security type - TLS (if available)

OUTGOING

SMTP Server- smtp.mobile.mail.yahoo.com

port - 25

security type - TLS (if available)

* check Require sign-in

Hope this helps.

thats for yahoo mail
[G1 Android Development] terence_oh:
Hi,

the ROM is set to work with app2sd as long as you have an ext2/3/4 partition. Does this line in your user.conf turn it off?

apps2sd=0	# this is useless here, require a modified a2sd script

or does it do nothing as the comment says?
[G1 Android Development] ddrum2000:
Home button problems

This probably isn't a ROM problem but my home button is does not work. I cannot use it to return to the home screen but pushing it will activate the backlighting on the keyboard. I'm running CM 4.2.1 and this began while I was running 4.1.9999. Any ideas?
[G1 Android Development] fermunky:
In the Spare Parts > End Button Behavior: Set it to "Go to sleep". The other options in here have not worked for me for quite some time starting with 4.1.x somewhere. I miss the "Home, then sleep" option.
[G1 Android Development] mfrey0118:
Swap issue

OK, so after breaking my phone several times, I finally got a clean install of 4.2.1. I wiped out the partitions on my sdcard, reformatted, and added a 64mb linux-swap partition after the ext3 (tried formatting to ext4 but never got past the "G1" screen after that).

So far so good, i run

#free

in Terminal (i don't use adb) and see my 64 mb of swap but it's not on yet. So i type in

# mkswap /dev/block/mmcblk0p3

# swapon /dev/block/mmcblk0p3

Cool. Now it shows swap and it is being used. Just to be sure, I run

# sh /system/sd/userinit.sh -s

And it says it can't find it. So cool, compcache is disabled, right?

So to be safe I reboot. Now, when I run

# free

I see that my partition changed to 32mb all by itself. WTH?? So I run the commands to enable the swap on the 64mb partition again.

Now when I run

#free

I see that it ADDED my swap to the 32mb it came up with all by itself and now I have a 97MB swap partition.

How did this happen? How can I fix it? All I want is a regular 64mb linux swap partition with swappiness of 60.

Help for a semi-noob? (If giving commands, please use Terminal, not adb)
[G1 Android Development] ZilverZurfarn:
What's wrong with using userinit.sh/user.conf? IMO, that's the easiest metod, regardless if you use swap or compcache or both.

And rest assured, your partitions don't change size by themselves. They only do that if you repartition your SD card. And that doesn't happen unless you do it.

/Mats
[G1 Android Development] mfrey0118:
You got to be kidding me right? I know how to partition, format, and resize. I used Gparted in Ubuntu Jaunty. I don't partition in Terminal or adb.

I formatted a 64mb Linux-swap partition on my sd card. I ran the free command to verify and it was there and the correct size. After I enabled swap, however, and rebooted, it read 32mb. Then when I re-ran the commands to enable, it read 97mb when I ran free command.

So let me be a little less basic in my question so you don't think I'm running around repartioning Linux swap in my sleep.

Is there some kind of default swap setting in 4.2.1? May be it took priority on reboot or something. Or perhaps the ROM is set to set swap at a certain size when it detects a linux-swap partition on the sdcard? Do I have a rogue compcache script running around in there somehow that survived everything?

EDIT: Ok now I rebooted again and ran "# free" and it reads 0 0 0 across...but i noticed that total memory equals what the swap partition was (97mb)...

So now I go into Terminal again, and I type

# mkswap /dev/block/mmcblk0p3 (is that the correct address for the swap partition or is that making a swap file in the ext3? I assume it's the correct location for the swap partition because it then recognizes the correct partition size)

it says "setting up swapscpace version 1, size=65798144 bytes"

so now I do the "swapon" command, right?

# swapon /dev/block/mmcblk0p3

Ok now when I type "# free" it reads

Swap: 64252 532 63720

So I should be good right? But this is exactly what happened before so I guess we'll see what it says after another reboot.
[G1 Android Development] georgegreco86:
hey guys .. maybe i can touch on the subject ..

heres my config

1.)Rooted (32B/DevPhone) G-1 Black

2.)Class-6 Sandisk Micro-SD 4gig Storage Media

3.)Cyanogen Recovery 1.4 - Used RA-1.2.3 (Think its overrated)

4.)Cyanogens 4.2.1 Stable - No Theme as im still making it.

5.)Apps2SD - Fat32/EXT3/Linux-Swap

6.)SetCPU @ Max 90 percent of the day .. lol

anywho, heres my situation, i was attempting to install my same theme revision that ive been using since 4.0.4, and it would not let me connec to the google servers for shiit, so i erased my entire sd, erased the phone, wiped everything, dalvik, ext3, fixed all problems via recovery menu.

Re-Rooted phone, started from the good ol' Dreaming.nbh! But followed traditional methods for rooting (Forget that auto root, manual is for sure!)

And finallllly after all the shenanigans, i was to the point of where i could install the HTC image, followed by Cyan official 4.2.1 Stable. And needless to say, its working like a charm now, only one reboot, but after that it was fine.

I DO HAVE A QUESTION THOUGH, why is it that everyone is converting to ext4? What are the benefits? Thanks guys, and hope this helped or helps anyone.

-G.Droid
[G1 Android Development] godofthesms:
No Data :(

Dis anyone try to flash this rom on a Rogers G1? i am able to flash but when i come into the setup i have no data connection... I have tried the official HTC recovery 1.6 and the drc83 rooted zip but neither work. My phone shows me 32b in the SPL boot and i have radio .26I!

Anyone else have this issue or are these rom delivered with basebands that are specific to Tmobile?

i am just throwing anything out on a limb trying to get it to work!

thanks for help :)

and yes i followed the steps exactly as mentioned!!! :)
[G1 Android Development] ZilverZurfarn:
AFAIK, neither swap nor compcache is enabled by default in 4.2.x

Compcache off is in the change log for 4.2

Nothing about swap being enabled by default.

But if you use userinit.sh / user.conf, you take the guesswork out of the picture. With that, you easily configure how your phone should take care of virtual memory management.

/Mats
[G1 Android Development] ZilverZurfarn:
<edit>Double post</edit>
[G1 Android Development] nolsen311:
CM-4.2.1 Freezes on reboot? [EBI1][32a]

+1 I too have (almost) the same issue...

stru85: you're probably forgetting to apply the radix999 kernel before rebooting

I, however, have applied the kernel update. The phone boots into CM-4.2.1 as expected. When I end up rebooting the phone, however, it freezes during operator boot splash. I'd call it the "Rogers" screen, but I've replaced it.

Anywho, here's the logcat:

- waiting for device -
I//system/xbin/busybox( 47): +++ "This is your world, these are your people. You can live for yourself today, or help
build tomorrow for everyone."
I//system/xbin/busybox( 47): +++ Welcome to Android 1.6 / CyanogenMod-4.2.1
I//system/xbin/busybox( 47): --- Checking filesystems
I//system/xbin/busybox( 47): e2fsck 1.41.9 (22-Aug-2009)
I//system/xbin/busybox( 47): /dev/block/mmcblk0p2: clean, 147/67392 files, 23803/269088 blocks
I//system/xbin/busybox( 47): cp: cannot stat '/data/dalvik-cache/*': No such file or directory
I//system/xbin/busybox( 47): +++ Apps-to-SD successfully enabled
I/logwrapper( 47): /system/xbin/busybox terminated by exit(0)
[G1 Android Development] mfrey0118:
Yes, but there's been so many threads and changes to those...got a good link?
[G1 Android Development] istrebitjel:
Hi,

I'm not complaining, but why is myTouch running about 50% faster than the last version (4.1.9999)?

Thanks!

Marco
[G1 Android Development] ddrum2000:
I was saying that the HOME button does not work. The END button works fine. I suppose I could change the end button behavior to Home then Sleep though. Thanks for the idea.

EDIT - When I changed the End button behavior to "Home then Sleep" an tried to use the end button for home, the phone would not return to the home screen either.
[G1 Android Development] ZilverZurfarn:
http://xdaforums.com/showthread.php?t=542899

It's very well documented, so I don't think any further explanation is needed.

/Mats
[G1 Android Development] dead2hill:
I flashed, been running for 2 days now, none of these. Problems I've had are going to pictures from other apps and other slight issues like that, other than that its good, the home locked into memory seems to lag more than .9999 and some other difference, I honestly feel this is a slower build than the previous, hoping to see some bug fixes for it! On another note, good stuff man!
[G1 Android Development] mfrey0118:
I found out one problem...I had downloaded droidswap from Market and it was set to enable a 32mb swap file on startup. I changed the settings to delete swap file and not to enable on startup. Now when I reboot, swap is off until I enable it for the 64mb partition i set up. Why is it not staying on after reboot?

EDIT:OK I got it. I just copied the user.conf and userinit.sh files with Linux swap only enabled to /system/sd and rebooted and the 64mb partition is up and running.
[G1 Android Development] tjs3783:
No. That line is specifically for when there was a time ROM's DIDN'T auto-A2SD. It's there to run a stand-alone A2SD script. There is absolutely no reason to enable that flag for this ROM.
[G1 Android Development] mfrey0118:
Anyone know why my phone bricked after I formatted my ext3 to ext4?
[G1 Android Development] lt1pnyklr:
I just noticed this for the Mytouch as well. I received a phone call but my phone didnt ring, actually nothing appeared on the screen at all except my trackball was flashing. I tried to answer it but it wouldnt allow me to. The ball continued to flash until I pulled the battery. After booting back up, I tried calling myself from my landline and it did the samething.
[G1 Android Development] P_Dub_S:
I had a similar problem My sister called me then 5 minutes later she called me again and the phone just sat there vibrating constantly till i removed the battery no display no lights nothing. After the reboot the phone worked again as normally though.
[G1 Android Development] velazcod:
is there a way of disabling Apps2SD but also keep the linux-swap partition? I tried doing a FAT32 + Linux-Swap partition only without the ext partition and the phone didn't boot, I guess it's because it maps the ext partition that a2sd uses to /dev/block/mmcblk0p2 and in my case linux-swap ends up being 0p2...

I can change the linux-swap to use 0p2 instead of 0p3 but I can't seem to find where I can change this or disable a2sd.

Thanks.

Found solution: http://xdaforums.com/showpost.php?p=4393924&postcount=15
[G1 Android Development] tjs3783:
Gonna need a bit more info than that, I'm afraid. :|

But if you formatted instead of upgrading, you might have to reflash the ROM, etc.
[G1 Android Development] velazcod:
fixed the problem, had to go back and reinstall everything from scratch, including the adp1 image.

I updated from 4.1.999999, at first I had many problems and force closes. Then I wiped everything, yes, even the ext partition, cleared everything..

Everthing was running smoothly except for the 2 problems above, seemed to have some problems with the sdk or whatever. Then when I reinstalled everything from scratch, adp1 -> 4.2.1, everything started working correctly....
[G1 Android Development] seaweeduk:
I had the same problem today black screen and vibrating but couldn't use phone till I took the battery out, guessing its on the issue tracker I'm going to chevck that when I get home in case cyanogen isn't aware of the problem yet.

Edit: I have received a number of calls without the same problem occuring still trying to replicate it
[G1 Android Development] velazcod:
Sorry, my past search terms sucked so I tried searching again and found a solution...

http://xdaforums.com/showpost.php?p=4393924&postcount=15
[G1 Android Development] dj_blueshift:
getting android.process.acore crashes when saving contacts after editing them on 4.2.1.

other than that, running fast and smooth. love it!
[G1 Android Development] velazcod:
The apps2sd script in 4.2.1 is located at /system/etc/init.d/04apps2sd
[G1 Android Development] AnGeL_WiT_SiNs:
force close acore

i get a force close acore when in my homescreen when rotated..also when i

open the keyboard...but only on the home screen...is there a solution for this...
[G1 Android Development] dead2hill:
Id suggest wiping, flashing CM1.4 recovery, flash dream.devphone.ota.14721, reboot(which brings u back to recovery). Then flash 4.2.1, once booted into rom run fix_permissions from terminal.

This advice assumes you didn't follow instructions completely, if you did I appologize, and can only offer a complete restart of the process from rc29 which will clear any issues you have.