yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] Sefy:
I've installed all my 60 applications (Twitter, WhatsApp, Skype,Instagram, Vine, Viber...) and they respond pretty good

i've also install Fast Cleaner for memory management and i put good old LauncherPro (hate Trebuchet!) and technically it all looks good

But when the phone loads up, it gets very sluggish and i see memory is going down very fast.
[G2 and Desire Z Android Development] Firestone_cz:
Hello everybody. Could I ask for help what I have to do when I try to install Flinny's CM11.0 into my rooted Desire Z @ old CyanogenMod 7.2.0 (Android v2.3.7) with ROM Manager v5.5.3.7? Anyway I can't down any files from http://milaq.net/downloads/ :(

Thx for any possible info that could help for newbie :)
[G2 and Desire Z Android Development] Kéno40:
It worked 2 weeks ago..

Maybe you can ask Milaq by PM.
[G2 and Desire Z Android Development] calebdaking:
your cwm or 4ext recovery most be up to date, and the link Will work fine ASAP I believe, then your can flash your way to kitkat (I use nighties with gapps standard 4.4.4,with desire z hboot).
[G2 and Desire Z Android Development] utx:
Problems of latest build

I decided to install the latest snapshot (2014-02-02) and try it for my daily usage.

First experiences were very good. Even after restore of first half of my backed-up applications, it still worked well. (It is much better than PureKat tested by me several months ago.) But after restoring the other half, it started to lag badly. I was even unable to run Preferences or Titanium Backup and disable some of them.

So my summary: It runs well as long as you are using small amount of applications.

Looking deeper, I found several problems:

Swap does not work as expected

Using zramfs swap in the way it is used seems to be a bad decision: Current Android has two killers: Smart one is working on Android level. It sends signals to applications: low on memory and then request to save application state and exit. And the brutal one – OOM killer, a part of Linux kernel, sends a kill signal to hungry applications. Modern Android should not experience OOM killer often.

There is a problem: The Android killer is not aware of swap. Is starts to suspend applications whenever physical RAM is going to be exhausted. Using part of RAM as swap causes Android killer being called much more often. The swap itself works as a memory buffer used in time of Android killer run.

I watched the amount of swap used during the long lags using adb shell free command. Android never uses more than about 30MB of swap. But the zramfs swap is configured to use 80MB. It means, that ~50MB of RAM is never used. (Comparing with my old Jelly Baby, Jelly Baby was able to use about 190MB of swap!)

I see two possible solutions:

Patch Android killer to take swap in account.

Do not use zramfs swap (and zramfs at all).

The current /cache partition is nearly unused now. Using swap to file inside /cache seems to be much better solution. It works well as a buffer during the RAM congestion, and does not eat RAM. (I have good experiences with it in Jelly Baby).

Internal/external storage

There seems to be something bad about external/internal storage. Preferences/Storage shows it well. Also Preferences/Applications show it OK. But for example Google Play complains about exhausted external storage when the internal storage is going to be full. And Titanium Backup restores applications from internal memory to SD (of possible) and applications from SD to internal memory.
[G2 and Desire Z Android Development] Firestone_cz:
Thanks for your feedback. I'm done and successfully flashed to 4.2.2 because KitKat nighties is too lagy for me ?!

Anyway are you using any overclocking settings? And if you can write here your performance settings.
[G2 and Desire Z Android Development] calebdaking:
you maybe right, I don't use zram with this ROM (I use cache swap of 250mb) and I flashed another kernel, and some scripts, you can use seeder, and so on....the latest build is more faster.

---------- Post added 5th December 2014 at 12:08 AM ---------- Previous post was 4th December 2014 at 11:58 PM ----------

sure, I use AlterNdromadus kitkat kernel with 245-1516 interactive, I/O to ROW. I see this kernel faster than the kernel in the build and it save almost 30 percent of my battery and turbo boost to swap on cache.
[G2 and Desire Z Android Development] Firestone_cz:
Thx for your reply. And what about performance settings? I mean Memory management (zRam, purging), Surface improvement and 16bit transparency? I'm asking cos sometimes I red some problems with cache size when users have this newer ROM installed for long time with huge amount of applications etc.

Anyway seems to when I set max CPU about 1516 MHz than whole phone consume a lot of batteries capacity instead of lower clock? Have you same eperience or not?
[G2 and Desire Z Android Development] Firestone_cz:
And another observation is that sometimes I can't use back button (I have to lock and unlock phone to get this function back in business) and what is worst that sometimes I can't back to home screen. There is only application screen in the place when I hit home button and I have to restart whole phone :( So when I try to back to home screen wallpaper from everywhere there is only app screen with app list at the end. No home screen at all.
[G2 and Desire Z Android Development] calebdaking:
I think you did something wrong, full wipe and flash again, like this.

ROM,

reboot,

gapps,

reboot,

and check if the problem is fixed or not.

---------- Post added at 11:45 AM ---------- Previous post was at 11:22 AM ----------

I disable zram and put swap in cache (for fast phone don't use swap or zram), gltools apps too speed up a little, activate 16bit transparency in performance. and about the cache problem, I think it has been fixed in the latest build, I don't really observe any problem with cache after I updated to the latest build( apps like bbm,whatsapp,wechat, and other apps with large cache are running good but too many apps my lag,I don't know I use 37app only)

the ROM kernel makes the phone hot at the max, so I flashed AlterNdromadus kitkat kernel 3.x.x and temperature of the phone reduces and fast(use 4ext to flash).
[G2 and Desire Z Android Development] Firestone_cz:
Could you please describe how to exactly put swap into cache?

I will consider wiping and reflashing rom but I would like to ask you why I can backup whole main Android settings and applications? For example I used TitaniumBackup for app backup but is there any way how to backup whole system's settings to move it from backup into fresh flashed system?

Anyway I'm running now at CM10.1 ([ROM][09/03/14] AlterNdromadus CM10.1 | Android 4.2.2 [STABLE]) and I'm thinking about try to CM11 again... It's good move or not? I would like to prefer performance and stability of the whole system.
[G2 and Desire Z Android Development] calebdaking:
download this file http://d-h.st/aLc it a aroma installer follow the instructions to install swap at cache.

and for backing up 4.2 setting to 4.4 may cause crashes(if wanna give try backup data and restore it on 4.4 and see.NOTE create full backup of the 4.2 ROM at first)

I just notice that the 9mb gapps 4.4.x is good to try too.

it should be OK for daily use dude.
[G2 and Desire Z Android Development] Firestone_cz:
What kind of swap do you prefer for Desire Z? Single, Dual or Triple? I choose Triple with default amount size.

So you specified about very small gapps -- where I can down it? I pretty hate large gapps :(

Maybe http://xdaforums.com/showthread.php?t=2265564 this link is the write one? I spotted file Slim_4.4.X_gapps_Nbsss_v2.zip there is about 9 MB but the newer version has more size. So I will try this one (v2).

NOTED: Seems to be some problem with the very latest ROM (cm-11-20141205-UNOFFICIAL-vision.zip). I can flash it, only with error:

Warning: No file_contextsscript succeede: result was [/system]
[G2 and Desire Z Android Development] calebdaking:
i use single swap and select cache and gapps of 9mb(you try other version) wow. try older version and see and flash the latest one without wiping.
[G2 and Desire Z Android Development] Firestone_cz:
Thx, I tried 250 MB size of cache size but failed -- system goes to a rebooting loop. So seems to I have choose too many MB, so I give it 175 MB and system reboot well now. How many size did you choose please?

Definitelly I have to use a older CM 10.1 because CM11 is too lazy for me.

And for explanation when I flash older CM11 NIGHTLY and after that the very newest everything works as you said :)
[G2 and Desire Z Android Development] utx:
Call this once in the root shell:

dd if=/dev/zero of=/cache/swap bs=1048576 count=256 # last number = swap size in MiB
mkswap /cache/swap

And call this as root on every boot:

swapon /cache/swap

Note: I am not sure, how much space in /cache can be occupied by swap, but it seems that 256MiB is still OK. /cache has only a minimal use in the latest Android.

Physical memory usage statistics in the root shell:

free
[G2 and Desire Z Android Development] Firestone_cz:
I'm little confused about swapping and actual latency of my phone. It's now so lazy. I don't know why.

Anyway I now delete whole caches that was created by TURBO BOOST MOD. When I type free command I have got following output (please look at attached screenshot).

However could you please tell me how can I run any command on every boot?
[G2 and Desire Z Android Development] utx:
The impact of swap is not so positive as one would expect:

Android killer starts to terminate apps when going out of free physical RAM, not RAM+swap. It means that swap could nearly never be filled.

Modern Android can save application state and restore later. This process may be fast (application needs to be ran, but often resulting only small amount of data writes), maybe even faster than writing the whole application memory image into the swap and then restoring it.

Writing to swap can cause latency, as memory allocations wait until it is done. (These lags can be experienced even on desktop Linux systems with slow swap.)

In case of zramfs swap, amount of physical memory available to applications significantly decreases!

Typical image. HTC Desire Z has 384MiB of RAM usable by system. Kernel needs several megabytes permanently, the rest is available to the system. Physical image is nearly full, because there are too many applications that want to use RAM. Less applications = smaller pressure to free RAM. (You can tune applications wakeups and occupying RAM by these applications: Autostarts (waking by event), Greenify (hibernate and exit applications exactly like Android memory manager does), Per App Hacking (control RAM resident processes), App Settings (disable wakeups and installation of services). And using Titanium Backup, you can freeze the application completely.)

You can fine tune kernel virtual memory management using virtual files in /proc/sys/vm (cat /proc/sys/vm/{file}, echo {number} >/proc/sys/vm/{file}). But finding a better configuration is a bit of magic.

I created a simple Tasker task for it. (Tasker supports root shell, and it needs no programming.)
[G2 and Desire Z Android Development] Firestone_cz:
Where I can find this Tasker?

Anyway when I manually set swap I got followed. I'm afraid that swap size will be soon filled at the maximum and after that system will be slowly again?
[G2 and Desire Z Android Development] utx:
Tasker in Google Play. It is also possible to export a task, but I never tried it.

Interesting, your KitKat heavily uses swap.

Swap itself slows down the system a bit, as it needs to write to flash. When you will be out of swap, some applications will be killed.
[G2 and Desire Z Android Development] utx:
ZRAM

Here is the way, how to disable ZRAM swap:

swapoff /dev/block/zram0 # You may experience "Killed" many times. Repeat often as long as it is not killed.
echo 1 >/sys/block/zram0/reset # Release RAM occupied by ZRAM.
[G2 and Desire Z Android Development] HTCDreamOn:
[MENTION=1594835]milaq[/MENTION] Very pleasantly surprised to see nightlies still being built of this, works great. I'm using this to turn my G2 into a Spotify only device by stripping it down so I don't need to use my N7 which simultaneously distracts me from schoolwork with FB etc. Used Xposed to trick Spotify into thinking my G2 is a tablet (so no shuffle-only play) and now it's super.

NB if anyone remembers reading I lost my G2... it turned up magically! :o
[G2 and Desire Z Android Development] Kéno40:
It works great?

Better than CM10.1?
[G2 and Desire Z Android Development] HTCDreamOn:
Well... bearing in mind I installed these GApps which strip out ALOT of system apps, and all I've installed is Xposed, a module, and Spotify (which is really laggy lol) yeah it works "great" for what I've repurposed it for, I don't know about daily use as a phone though.

Also forgot that the Vision's sound sucks worse than anything... ah well.

Juansheng's AOSP 4.2.2 is still and always will be the best ROM I've ever used on Vision though.
[G2 and Desire Z Android Development] Kéno40:
Never heard of this one... Where?
[G2 and Desire Z Android Development] calebdaking:
me too, where can we download it please?
[G2 and Desire Z Android Development] HTCDreamOn:
I didn't want to turn this into a best ROM thread :silly: this is development, PM me if you want to ask something unrelated to the thread. Sorry for the ambiguity but I was just talking about cn.fyodor's ROM I said Juansheng as that's his Github name.
[G2 and Desire Z Android Development] davidshen84:
Hi,

After I install this ROM, I got endless reboot. It stay at the home screen for a sec, then reboot....any idea?
[G2 and Desire Z Android Development] Kéno40:
Just try to reflash over. If it's the same, wipe all and reflash...
[G2 and Desire Z Android Development] davidshen84:
I did wipe all, re-flash already...
[G2 and Desire Z Android Development] Kéno40:
Is it only with this ROM? Does others works?

Try to re-download it from a computer...
[G2 and Desire Z Android Development] davidshen84:
Actually, there's a little story about my phone and the ROMs I used. I also have this issue with Flinny. But I was able to use Flinny at the beginning, until some day the phone won't work.

I think there's something wrong with my SIM card. If I remove the card, the phone can boot with your ROM. But the strange thing is, my phone can work with CM7, with SIM card. So I think there might be something wrong with how this new ROM handle SIM card.
[G2 and Desire Z Android Development] davidshen84:
Hi,

I think I figured it out. I think my RADIO is too old, and I find a new one, Vision_Radio_12.62.60.27_26.13.04.19 from http://xdaforums.com/showthread.php?t=970809.

After reflash, I constantly got this "com.android.phone app is dead" message. But it disappeared after reboot. I think you should add a note in your OP to let people upgrade their RADIO.

Thanks.

---------- Post added at 07:33 AM ---------- Previous post was at 07:19 AM ----------

How to turn off animation?

This phone is really old. I think it would feel better if I can turn off all the animation effect. But I look through the Settings, but I could not find a way to turn off the animation. I remember CM has a customization section that would allow users to control the animations.
[G2 and Desire Z Android Development] davidshen84:
In Flinny, there's an option to wake up the phone by the track-pad. I cannot find this option in this ROM. Please restore this function if possible.
[G2 and Desire Z Android Development] arunal_123:
If you want to disable all animations...

Go to settings-> about phone-> click several time on Build Number.

This way you will enable Developer Options.

Now go to developer options and then scroll down.

In the Drawings section you can disable all animations.

Thanks...
[G2 and Desire Z Android Development] Kéno40:
Any improvement on this builds? Did anyone try it recently?

I will if I find time this week-end.
[G2 and Desire Z Android Development] HTCDreamOn:
CM team still updating CM11 in small amounts e.g.https://github.com/CyanogenMod/android_frameworks_base/commits/cm-11.0 haven't seen any vision device tree changes or kernel changes recently however so I doubt performance has changed much. I can't see it getting any better unfortunately, lollipop uses even more resources than KitKat so I don't think these builds will improve much.
[G2 and Desire Z Android Development] asim.sidz:
Is there a possibility of lollipop in future?
[G2 and Desire Z Android Development] Kéno40:
You know you are on the Desire Z "Vision" 's page, right ?

:D
[G2 and Desire Z Android Development] asim.sidz:
Of course i do! Correct me if i've gone wrong somewhere. Lol. Actually, i'm just about to buy a new HTC Desire Z for my mom, so just wanna know if will get a lollipop in future or not.
[G2 and Desire Z Android Development] Kéno40:
Ok, so you're in the good place.

IMHO, no Lollipop...

For me, even 4.4 version are NOT usable as daily driver, and even less with ART.... So I chosed to stay on 4.2.2 version (CM 10.1).
[G2 and Desire Z Android Development] asim.sidz:
Looks like i have met the right guy in here. I just want a nice looking device for my mom. She wont be playing games or doing any heavy multi-tasking. I intend to stay on 4.2.2 because you suggested. So, is JB stable on this device? And overall, is it worth buying a new phone even when it had released 5 years ago? Let me know. And thank you very much for your time, brother!
[G2 and Desire Z Android Development] Kéno40:
I don't know how much you'll pay it, but you should buy a good recent phone at least already on 4.4

Ex : Oneplusone, Moto G 4G, LG G2 mini...

For me, i would buy a kind of Xperia Z3 Compact (for the spec and shape) but I found it ugly.

So I wait for the next ones, till my Vision die... Hopefully, there will be a 64bit proc on a not to big screen somewhere if it doesn't die too soon.
[G2 and Desire Z Android Development] HTCDreamOn:
Agreed, Vision doesn't stand up well against other single core devices due to having so little RAM and a very early S2 chipset, even the slightly newer chips in the Desire S and HD are much better and have almost double the available memory.

JB 4.2.2 is certainly the best there is for Vision, but it's still extremely painful even when using super super lightweight apps and minimal gapps. As soon as you start we browsing its quite frustrating even if it can cope very well with smooth animations in general use.

In conclusion as [MENTION=3126797]Kéno40[/MENTION] said, go with something newer. SIII is my daily phone, 2 years old but fantastic and probably not much more expensive than a Vision as the latter seem unnaturally expensive on eBay. Moto G 1st or 2nd is a great suggestion. any Post SII samsung's with Qualcomm processors and good dev support are worth looking at (Exynos is a **** in SIII and Note II tho), Sony's have great open source support, I personally like the blocky shapes. Nexus 4s look great, maybe too big though, but Nexus can't go wrong.
[G2 and Desire Z Android Development] nbsp:
Hello,

I am not sure why my wifi network does not appear in the list. My computer is currently connected to it and the signal strength is excellent. If I enter it manually (including the password), the message that appears underneath the network name is "Not in range".

The strange thing is that I have a second Desire Z with Gingerbread 2.3.4 ROM which is connected to the same wifi network in my house. Internet browsing works fine on this second DZ...

Do you have any idea why the wifi network is not shown (does not appear) in CM? I am not sure why the "Not in range" message is shown since the router is in the room next to mine and both my computer and the second DZ have no problems connecting to it...

Thanks!

EDIT:

The problem is not the ROM, as the same issue happened with 2 other ROMs I have tried. I have flashed the ROM with no SIM card inserted and this seems to be why my Wifi network is not seen by the phone. As soon as I insert a SIM card into the phone, the Wifi network appears in the list. Removing the SIM card again has no consequences: the wifi network does not disappear anymore.

My guess is this is probably related to the Radio ROM.
[G2 and Desire Z Android Development] the.Legend:
Seems like there's a problem with HotSpot mode on Vision (HTC Desire Z): all various devices are able to connect but most of pages pages aren't loading or loading partially. Strangely, when I check with CURL to google.com proper redirect page is returned. At the same time curl to local www google.pl returns Connection reset by peer

Also CURL to httpS google.pl stucks and then returns gnutls_handshake() failed: Error in the pull function

From phone's browser all pages load without any issues, pings are constant and with reasonable response time.

When running ad-hoc Proxy Server on Vision phone then computer is also able to load pages .

It's not blocked on operator's side because tethering with the same SIM works just fine on another phone (Motorola Droid 4 also on CM11). Moreover, other SIM from different operator which I use for HotSpot on Motorola also has the same problem on Vision.

It's not related to User Agent filtering either. I copied UserAgent identifier from phone to both CURL and Firefox and still can't load pages.

disabling DUN for tethering didn't help ( adb shell -> `settings put global tether_dun_required 0` )

I also tried patching cyanogen with global cdma_gsm patch just in case but no avail.

Any other ideas?
[G2 and Desire Z Android Development] todonormal:
[MENTION=1594835]milaq[/MENTION] You compile this version today? it's good? New problems?
[G2 and Desire Z Android Development] 12vlt:
milaq has removed all builds! hopefully they will return soon? anyone have contact with the dev?
[G2 and Desire Z Android Development] robuser007:
Can anyone post a link to the latest build ever made for this device (cm11)?
[G2 and Desire Z Android Development] bradley_e_smith:
If needed I can see about posting this, I think it might be the latest one I have
[G2 and Desire Z Android Development] 12vlt:
This is a very old version from 2014. Milaq was compiling builds once a month from the cm11 nightly branch. The latest upload was from October of this year. I believe I have the build from September of this year which I could upload, but there are essential patches which have been released since, such as the patch for stagefright 2. I'm really hoping milaq uploads a new build or passes the torch to someone else.
[G2 and Desire Z Android Development] bradley_e_smith:
That is the newest version I have, sorry about that
[G2 and Desire Z Android Development] amp:
Is the ROM stable enough for use? Any links by the way? Thanks.