yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] therealphami:
Weeirdddooo...

What up World?

First of all thank you for Kabaldan for his amazing work!!!

BUT

I have some weird issues with my 'Stone.

It's only Wednesday and I already re-flashed my phone from ground zero (Retail Europe Shols - Vulnerable RAM - CM7) at least 7 times, today only 2 times and it's 2.53 am atm.

So, what is happening is when I flash everything the phone is booting up without any hussle. I'm about to flash GAPPS, everything goes fine but my phone stucks at the 2nd Boot picture for like 20 minutes and after that it disappears and my phone ain't going nowhere...I pull out the battery and puff it boots like a muthaff...khm sorry lol...and then I try to go back to OR to flash 98Swap when I realize the update.zip file simply disappeared from my SD card. I copy and paste it like 10 times and it stays on after a while...but usually when I'm finished with backing up my apps and I turn off my phone, i can't boot it back no more...

What the blooooodyy helll on earth is going on with it? Any tips?

Thank You!

Phami:good:
[Motorola Milestone Android Development] LuigiC6:
You need to install gapps immediately after you install cm7. Flash CM7, then flash gapps before rebooting.
[Motorola Milestone Android Development] krondar:
I don't know anything about degadation of memory, but with flash memory we got limited writes, after too many writes flash becomes "read only". This is true with USB flash keys and SSD drives. Cache is writing very often, and I don't think Motorola was thinking about that when Milestone/Droid was designed :)
[Motorola Milestone Android Development] fzelle:
@therealphami:

If update.zip disapears, your sd-card might be damaged.
[Motorola Milestone Android Development] ugynok:
Yes I think this is right: I had this issue and I did fsck / chkdsk to that sd card!
[Motorola Milestone Android Development] trewelu:
Thanks. I checked the play store (Both the web and from phone) before posting and it say incompatibe on the web (and doesn't found it on the phone). But when i checked it again after seeing your post, it say compatible now (and it just updated, coincidence?).
[Motorola Milestone Android Development] AirLancer:
I smell a conspiracy :p
[Motorola Milestone Android Development] Hellscream2010:
Can any body help please !!!:D
[Motorola Milestone Android Development] BoyBawang2:
Hi kabaldan,

Is there more memory requirement if I change to LauncherPro? I just find LauncherPro a lot smoother than ADWlauncher but more free RAM is my priority. Should I change?

thanks for the answer.
[Motorola Milestone Android Development] therealphami:
And there you go again

Oh yes.... I'm here again, watching the 2nd Boot logo for 10 minutes now....

I have nooo damn (sorry) idea why is this doing it and the funny thing is, I have this issue since I got back my 'Stone from my provider's service.. I don't know what they did but now I hate them LOL
[Motorola Milestone Android Development] Erovia:
If I were you, I would wipe and reflash everything. (even Vulnerable Recovery)
[Motorola Milestone Android Development] therealphami:
Unfortunately, I couldn't reach OR, stucked on the 2nd Boot picture. I will format my SD card and then check disk and so on. It might help me out :(
[Motorola Milestone Android Development] krondar:
This question was not for me, but I can tell you that i deleted ADW, and I'm using Lightning Launcher without any problem
[Motorola Milestone Android Development] BoyBawang2:
Thanks brother! I'm also planing to delete ADW but isn't it dangerous? I mean if I happen to wipe to factory default I will boot without launcher. No?
[Motorola Milestone Android Development] m0jo:
Propably not as dangerous as you might think.

You may just flash CM again and have ADW back, or adb push it while in recovery mode.
[Motorola Milestone Android Development] genziutek:
Last version - 7.2.4b - is great. V6 Supercharger with multitasking configuration and i have 50-60 free RAM all time. :D
[Motorola Milestone Android Development] kentobi:
Hi guys, im having trouble with wifi. Sometimes it seems that the connection is lost. Are there possible problems? What could i try to solve this? Die thanks!
[Motorola Milestone Android Development] akantoch:
Hi, does anyone have problem with old sim cards with milestone, when i use it with my personal sim, it works great, but when i use it with my second sim card from work (i think it quite old one) it restarts the phone, but when i use it with only 2g mode it works guite good. How to check what is the the problem?
[Motorola Milestone Android Development] krondar:
You can use Titanium Backup to Backup / Restore it without flashing :)
[Motorola Milestone Android Development] chaoscreater:
hey guys, I finally decided to update from v7.2.1 to v7.2.4b today. Since FuFu's MiniMod was also updated to use the 2ndboot thing, I also updated that as well. So I deleted my old OpenRecovery folder and extracted the contents from FuFu's new version.

The thing is, inside my old OpenRecovery folder contained gapps, and since I don't flash often I forgot to put that into the new folder.

So after I flashed it, everything is fine. Android Market even updated itself to the latest Google Play. My contacts, Gmail etc syncs fine, no problem whatsoever.

So ya, is gapps really needed or am I just lucky? I read just a few pages ago that someone had problems because they didn't flash gapps immediately. I know this is the right procedure to take, it's just that I forgot about it and everything still seems fine so far....
[Motorola Milestone Android Development] Erovia:
It's because you didn't wiped your data partition which contains the apps.
[Motorola Milestone Android Development] kabaldan:
You did it the right way.

When you are already on CM7 with gapps installed and you want to update to the current release, all you have to do is to apply the current CM7 update zip package.

Although the /system is formatted, the gapps are backed-up first and then restored, during the update.

Gapps are (have to be) actually installed in /system, but there is a backup script that preserves them during updates, so gapps don't need to be reinstalled after every upadate.
[Motorola Milestone Android Development] chaoscreater:
thanks for your reply.

The thing is, I wiped/formatted the system, cache and dalvik cache so I thought everything is wiped?
[Motorola Milestone Android Development] Erovia:
Thanks for the info, didn't know that. ;)
[Motorola Milestone Android Development] l2azoredge:
hi .. i just changed my phone from zte blade to milestone..and i have installed this rom..

im geting 20fps on antutu's first 2d test(that swirl thing)...is this normal..i used to get 60ps on zte blade which had an armv6 processor with a little less powerful gpu adreno 200.....is this normal???
[Motorola Milestone Android Development] Quentin himself:
Just a question of RAM (at least 50% more on Blade if I'm right) and maybe a question of kernel too (Milestone's one is crap...)
[Motorola Milestone Android Development] mrvek:
You can't be serious. Why do you think it is crap? Also, you do know that we're now running a custom kernel?
[Motorola Milestone Android Development] Quentin himself:
There is a lot of smartphone with almost same specifications and running far far better Android. I'm totally aware that we are running a custom kernel now but we are at the beginning of its development (the bypass method has been found for three months? ) I red (can't say where, obviously ><) that its kernel is a crap (really not adapted and bugged).

You'll not be surprise if I tell you that I've hesitated to write this stuff ^^ Since I'm neither a dev nor an experienced guy in computer science, I may be wrong.
[Motorola Milestone Android Development] LuigiC6:
You're 110% wrong and should retract your comments. They are pretty offensive to the developers.
[Motorola Milestone Android Development] enrsil1983:
I'm sure he didn't mind to offend Kabaldan, Skrilax_CZ and other XDA developers, just Motorola ones ;)
[Motorola Milestone Android Development] mrvek:
That kernel after all the fixes it got is running quite nice. I'd say it is an exceptional work. That same kernel is making cm10 run very smooth. I no longer get dsi freeze after usb plug/unplug, memory usage has been reduced and optimized, swap enabled (you need to keep swappiness low), and so on...

And cm7 is really flying around, faster than ever.

Simply brilliant!
[Motorola Milestone Android Development] l2azoredge:
zte blade also has a chinese variant with 256mb of ram(european variant and other variants are 512mb)..and it has a 2.6.35.7 kernel..devs can check developer "burstlam" threads as he mainly works for the 256mb blade if anything useful can be ported ..

cm10 for 256mb blade thread : http://bbs.hiapk.com/thread-4165085-1-1.html

cm7 for 256mb blade thread : http://bbs.hiapk.com/thread-965099-1-1.html

P.S i dont know anything about porting just that the devs in blade forum used to port a lot of stuff from sony x8 and lg p500 devices..
[Motorola Milestone Android Development] Quentin himself:
This is a BIG misunderstanding. I LOVE and appreciate a LOT (I mean a LOT) the work made by all non-Motorola developers but what a bad work by Motorola? 2.0/2.1/2.2 aren't smooth at all (that's why I went to custom ROM).

I didn't say by any any word or I don't know that the new kernel is bad but I'm sure that it will be highly more optimized (I'm not saying it isn't) because we're at the beginning of its development. Remember when CM10 were out, firsts nightlies : unusable, unstable... Then less than a month later, daily usable etc... Same for CM7, it was worse than the froyo mod! But it need just a bit of improvement and it become better and better.

I don't know if it's because my English is bad or if it's because you understood bad what I said but I'll never say that devs' work is crap or something bad.

I'm although thinking that it's not the place to write non-related posts to CM7/10.

I sum up to avoid misunderstanding (by my or your fault) : Milestone's original kernel is crap (I red it from a dev), new custom kernel is a big big improvement but like all development (even if it is good at the beginning) becomes better and better with ages (like it is with CM7/10).

I really hope that you, devs, didn't take it personally. Sorry for misunderstanding.

As a conclusion, I'M NOT JUDGING AT ALL THE WORK MADE BY NON-MOTO DEVS!

Edit: I re-red my short post and sorry to all but even me, I would misunderstanding what I said. Only talking about original one.
[Motorola Milestone Android Development] papadawgg:
is it possible for our developers (nadlabak&co) to disable the lowmemorykiller and change the memorymanagement to the one that ios, windows, etc has? of course i know that people say "free ram is wasted ram" and that its normal for linux to do that and that it might have lots of benefits. i just dont think that this concept is the best on a 256 mb ram device. the apps are getting bigger and bigger but our ram stays which also could cause the sluggish behaviour within longer "on" time. it would be just interesting to see how everything would work and which concept would be better on our milestone.

i hope that you consider my suggestion, thanks!
[Motorola Milestone Android Development] kabaldan:
I guess you actually mean the first 3D test, not 2D (as fps are not displayed for the 2D tests in antutu).

Yes, it's normal. Our SGX530 rev121 GPU does not seem to like this particular test setup.

But the fact that there is a bad performance in a single test doesn't tell much about the actual GPU performance.

E.g. the Quadrant 2D and 3D scores on Milestone are far better than any results I've seen for ZTE Blade.
[Motorola Milestone Android Development] kabaldan:
I actually don't know much HDPI phones with 256MB RAM and other similar specs. Which phones do you have on mind? The meaning of "running far far better Android" is quite obscure to me as well...
[Motorola Milestone Android Development] kabaldan:
ZTE Blade is built on completely different platform (Qualcomm MSM7227) than Milestone (TI OMAP3430).
[Motorola Milestone Android Development] papadawgg:
@kabaldan what do you think of my idea for the memory management? i think the milestone would be more usable if only system relevant processes would get stored in ram. and since apps are not optimized for our kind of memory, anymore, this would also be a good alternative to run them anyway. i think thats one of many other reasons why the iphone 3gs is still capable of running ios6 and mostly every app available for it.
[Motorola Milestone Android Development] Quentin himself:
With HDPI, I don't know now. Be sure I'll be quite now and not share my opinion anymore. I've not enough knowledge to talk about this kind of subject. Thanks all for all. (Far far = smoother) However if I have an answer to a question already solved or if I may find the answer with what I gathered, I'll be glad to help. Sorry again for spamming with this bull****.
[Motorola Milestone Android Development] kabaldan:
papadawgg:

You can't change the fundamental Android's application lifetime management model while keeping the Android compatibility.

Android apps are not designed to close itself, but to be freed from memory while being in background, by the system as needed.

The memory is actually freed by the ApplicationManagerService/oomkiller combo as needed just fine as it is.

Indeed, if there is an app that needs e.g. 150MB of RAM just for itself to run well, it's not usable on Milestone. No changes to the way how apps are kept or freed from memory could help it.

What actually breaks the Android's rather well working memory management is the usage of a big swap (including the compcache/zram), as it pretends free RAM to be available while it actually isn't there.

My current setup is to use only 16MB swap (with swappiness 10) - that allows me to run Bad Biggies/Angry Birds StarWars (with the little help of ChainFire3D - Reduce Texture quality option) while not disrupting the native Android's app lifetime management too much.
[Motorola Milestone Android Development] papadawgg:
i understand your doubts and i think youre right about the fact that apps about 150 mb wouldnt run on milestone anyway. my problem is not swap or anything else. its just the fact that the system gets more unstable the longer it is on. apps need longer to respond and the overall performance gets just bad.

thats because there are always big, (in real life) unnessesary cache processes stored in ram which slows down the phone untill the certain value of free ram is reached to "clean" the ram up, just until the next unnessesary process like songify runs in the background, while we dont use it, now. since im using advanced task killer to kill every unccessesary app, the system feels much faster and more reliable than before. its not placebo, just a fact :)

is it at least possible to change the lowmemorykiller that way that it automatically kills processes not needed by system and that we didnt minimized ourselves (but keeps apps like whatsapp in ram as well)? i think for low ram devices like milestone, its not necessary to keep that much cache just to start an app a milisecond faster than before and only if we ever open it.
[Motorola Milestone Android Development] krondar:
@kabaldan So, keeping my ZRAM at 10% is generally better than 26% in long term stability and system responsiveness? :) What about ZRAM and it's impact on battery? Is it something we can feel, or is it just a minor impact?

One more thing, when I'm on 2G, my Gmail isn't getting notifications of new mails (not working autosync with 2G?)

@papadawgg you can change how big amount of ram your system will keep free with Autokiller Memory Optimizer. But:

1. Too big number will kill big apps

2. Big launcher (Go launcher, adw etc) will be freqently killed and restarted

3. Apps in your background will be killed. All of them. Example:

a) you open a browser

b) copy some stuff

c) open some notepad to paste it

d) you wish to get back to browser... and you can't, it's dead. Same with gmail etc.

Been there. Done that. Not a good idea ;)

You use swap or zram?
[Motorola Milestone Android Development] papadawgg:
i also done that and thats why i hope, someone would find a way to do this the real way. currently im using swap on /cache partition but swap is not the problem. even without swap/zram performance will get worse with a long on time until you dont kill some processes sometimes.
[Motorola Milestone Android Development] krondar:
Have you tried Autokiller Memory Optimizer? It's not another task killer, it's the app you are searching for, it's only tweaking android. You can select exact amounts of memory that got be free for active, background and sleeping aps by the system. It is the real way. Give it a try, it can even change oom value to keep app safe :)

About system slowdowns, I don't have any. And I didn't tweak my memory, it's on default with some zram only.

Using swap is tricky as kabaldan wrote here :)
[Motorola Milestone Android Development] papadawgg:
well, as i said, swap is not the problem. even without swap it is happening. and i know exactly what autokiller is and and what it used for. if you set the minfree levels too high, multitasking is impossible, which is not my goal. if you set them too low, there are more processes cached in ram and thats the opposite of what i want.

a task killer is way better because i can choose, which apps have to be killed. i only choose system irrelevant proccesses and not apps that i minimized myself. what i wish was a way to get the irrelevant ram filler wiped away by system automatically, but until then im happy with the task killer workaround.
[Motorola Milestone Android Development] krondar:
Ok, I was just trying to help :) And as I understand what you wish for, I think it's impossible with android :) Ofcourse, I can be wrong :)
[Motorola Milestone Android Development] d.casper.b:
Just my opinion on the matter. Look, I did a fresh install of 7.2.4b and have only an ext4 partition. I am not using SWAP or zram etc. and no task killer. The system does not slow down over time. I also do not play demanding games or use demanding applications. I guess I'm no longer pushing my phone, but the fact is, it is running quite smoothly non-the-less. I even play Monsters Ate My Condo - yes it's not smooth, but I play it without fiddling with any settings. At the end of the day, the phone does what I need and I will be getting a Razr sometime anyways. But right now, I am satisfied - and a BIG thank you to kabaldan (PS. what is the difference with kabaldan/nadlabak - is it two different people or just you? The two nicks are "mirrors" of each other..).
[Motorola Milestone Android Development] Aviv:
Did anyone notice that the red LED is not working anymore? the only colors available are blue, green and their combinations.
[Motorola Milestone Android Development] savezia:
Here the red color is working just fine. I see it too often actually,my battery is empty in ten hours or so XD
[Motorola Milestone Android Development] xenomorph150:
same here, got to see the red light more often than I would like ^^'
[Motorola Milestone Android Development] l2azoredge:
waiting for next build xD
[Motorola Milestone Android Development] Maniaccc:
+1

Milestone cihazımdan gönderildi
[Motorola Milestone Android Development] krondar:
Sorry m8, red led on 10% is working fine on my stone too.
[Motorola Milestone Android Development] Eiertschik:
Download app: https://play.google.com/store/apps/details?id=imoblife.blink

Try colors

Everything working here - seems to be hardware issue
[Motorola Milestone Android Development] Aviv:
Thank you all, I'll try to restore from nandroid to an older version to see if it's really a hardware problem.

---------- Post added at 09:05 AM ---------- Previous post was at 08:28 AM ----------

Oh well, it is hardware. This phone is a tank, and I'm surprised that this is the first thing to break down.
[Motorola Milestone Android Development] impactor:
FuFu, I tried adopting your script to run it on the data partition of HTC Desire, but it did not work. Here's the modified script:

#!/system/bin/sh

## change to the size you want
## default setting is 32 for 32mb
SWAPSIZE=64
## settings for use swap on intern memory
SWAPDEV=/data
## how much space left for the swap device to use
LEAVE=102400

SWAPLOG="/data/swapon.log"
SWAPLOGLAST="/data/swapon_last.log"
if [ -f $SWAPLOG ]; then
if [ -f $SWAPLOGLAST ]; then
rm -f $SWAPLOGLAST
mv $SWAPLOG $SWAPLOGLAST
else
mv $SWAPLOG $SWAPLOGLAST
fi
fi
rm -f /data/swapon
touch $SWAPLOG
echo "" > $SWAPLOG

rm /cache/swap.img
rm /data/swap.img
if [ -e /data/.swapint ]; then
echo "found /data/.swapint" >> $SWAPLOG
echo "use $SWAPDEV for swap" >> $SWAPLOG
FREE=`df $SWAPDEV | tail -1 | awk '{ print $4 }'`
echo "$FREE kb free on $SWAPDEV" >> $SWAPLOG
SWAP=`expr $FREE - $LEAVE`
echo "use $SWAP kb for swap" >> $SWAPLOG
dd if=/dev/zero of=$SWAPDEV/swap.img bs=1024 count=$SWAP >> $SWAPLOG
mkswap $SWAPDEV/swap.img >> $SWAPLOG
losetup /dev/block/loop2 $SWAPDEV/swap.img >> $SWAPLOG
swapon /dev/block/loop2 >> $SWAPLOG
touch /data/swapon
else
if [ -e /dev/block/mmcblk0p3 ]; then
echo "use mmcblk0p3 for swap..." >> $SWAPLOG
mkswap /dev/block/mmcblk0p3 >> $SWAPLOG
swapon /dev/block/mmcblk0p3 >> $SWAPLOG
touch /data/swapon
else
echo "mmcblk0p3 not exist..." >> $SWAPLOG
if [ -e /sdcard/swapfile ]; then
echo "use /sdcard/swapfile for swap..." >> $SWAPLOG
mkswap /sdcard/swapfile >> $SWAPLOG
swapon /sdcard/swapfile >> $SWAPLOG
touch /data/swapon
elif [ -e /sd-ext/swapfile ]; then
echo "use /sd-ext/swapfile for swap..." >> $SWAPLOG
mkswap /sd-ext/swapfile >> $SWAPLOG
swapon /sd-ext/swapfile >> $SWAPLOG
touch /data/swapon
else
echo "no swap file found on sdcard or ext partition..." >> $SWAPLOG
if [ -e /dev/block/mmcblk0p2 ]; then
echo "creating swapfile on /sd-ext..." >> $SWAPLOG
dd if=/dev/zero of=/sd-ext/swapfile bs=1048576 count=$SWAPSIZE >> $SWAPLOG
echo "use /sd-ext/swapfile for swap..." >> $SWAPLOG
mkswap /sd-ext/swapfile >> $SWAPLOG
swapon /sd-ext/swapfile >> $SWAPLOG
touch /data/swapon
else
echo "creating swapfile on /sdcard..." >> $SWAPLOG
dd if=/dev/zero of=/sdcard/swapfile bs=1048576 count=$SWAPSIZE >> $SWAPLOG
echo "use /sdcard/swapfile for swap..." >> $SWAPLOG
mkswap /sdcard/swapfile >> $SWAPLOG
swapon /sdcard/swapfile >> $SWAPLOG
touch /data/swapon
fi
fi
fi
fi

if [ -f /data/swapon ]; then
echo "set swappiness settings..." >> $SWAPLOG
echo "15" > /proc/sys/vm/swappiness
echo "80" > /proc/sys/vm/dirty_ratio
echo "30" > /proc/sys/vm/dirty_background_ratio
echo "10" > /proc/sys/vm/vfs_cache_pressure
echo "1000" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
echo "0" > /proc/sys/vm/laptop_mode
echo "1" > /proc/sys/vm/oom_kill_allocating_task
echo "0" > /proc/sys/vm/panic_on_oom
rm -f /data/swapon
echo "all done" >> $SWAPLOG
fi
echo "" >> $SWAPLOG

And this is what happens after applying it:

- OS runs but every app that starts produces a Force Close error

- when I connect to the phone with ADB, command "free" still says I am not using any swap

Could you help me with it?
[Motorola Milestone Android Development] l2azoredge:
http://omappedia.org/wiki/Android_How-tos

found this while random browsing..might be of relevance to our devs.. :)
[Motorola Milestone Android Development] -FuFu-:
first problem with you edited script is, it use whole /data size for swap ;)

edit "dd if=/dev/zero of=$SWAPDEV/swap.img bs=1024 count=$SWAP >> $SWAPLOG" to "dd if=/dev/zero of=$SWAPDEV/swap.img bs=1024 count=$SWAPSIZE >> $SWAPLOG" and it will use the swapsize from SWAPSIZE=64 but you must edit it to 655360 for 64mb

but im not sure if it works on HTC Desire, best way to test is, open terminal emulator and just test the commands and look where is the error...

or tak a look at the file "/cache/swapon.log" this file is created by my script ;)

maybe there is a problem by mounting the loop device
[Motorola Milestone Android Development] hanschke:
any connection errors for g+ like me?
[Motorola Milestone Android Development] nagabushan.c:
Its working fine for me...