yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] Ricfil:
Thanks, but still some doubts.

"Set build prop" If it is not a command what is it? It still needs to be inputed on a "command line interface" such as Terminal Emulator

. Just curious and willing to learn:D

Relating the swap on/off aspect of the 12swap script, still did not get if using the swapon/off comand it activates and deactivates swap on the device without needing any reboot.:confused: What you are saying is that we only need to set swap size once, reboot and then only turn swap on/off using the swap command from there on? Has I understand the script still has got a number "adressed" to it (persist.sys.swapsize), so if a reboot hapenned or even the phone rebooted by itself (not that it happens often now with the new kernel and all, but still...), swap would iniciate automatically again? I do believe 98swapon does not do this, one more reason I like it. You set it on/off and if you have it on and reboot it goes back to off. I prefer it this way, as I only use it for games and that way it is easier to manage its state. To turn 12swap permanently off you have to "edit" the persyst.sys option, I find this aspect less manageable than 98swapon. Personal preference really.

Relating the entire swap space, I did not know that one could set a number above it to use all of it, but still, 98swapon does that for you automatically :D. Since I´m not that into linux command line to see the exact space each partition on the phone has got (Linux command line can be tricky, lol), I much prefered FuFu´s script. But now I know another method :good:
[Motorola Milestone Android Development] damiann69:
It seems to be entropy seeder

I'm waiting for new build :)
[Motorola Milestone Android Development] mrvek:
1) In the given context - it has no meaning and will not enable swap if you execute it in terminal

2) by casual reading? From my experience that is rather difficult (see under "1)" ;) )

12swap is a startup script. It means it is executed at boot. It expects you to have a swap partition on the sdcard. That swap partition you needed to create manualy so you should already know what size it has. That script makes some sanity checks (expect no less from kabaldan) like if the partition exists and if if it does not exist the script is of no use to you. It also checks to see if the size you set using setprop command to set persist.sys.swapsize property is larger than the size of the partition and if it is it'll simply use the entire partition (you can't use more than it has, right?).

You configure the value you desire and let it be. The script handles the rest on every boot.

98swapon will try to use sd-ext or sdcard, respectively, if you do not have a swap partition.

The problem with the swap file on sdcard is that you can not mount your sdcard to pc in mass storage mode until you disable swap. This is where the swapoff command can be of use, but since 12swap is using partition there is no need for manualy starting/stoping swap when connecting phone in mass storage mode.

Other possible use case is testing swap size that suits you best without need for a reboot: stop swap if enabled, format (mkswap) partition with desired size, start swap.
[Motorola Milestone Android Development] Ricfil:
Thanks for the input man.

The problem relating the command stuff, as I see was only due to bad word input (the set build prop part) I used. I meant to say set.persyst.sys...etc ;). It was a matter of mistyping and a matter of memory assimilation lack, and/or a bit of laziness to interiorize the right command name. But certaintly not one of casual reading, as I am pretty shure I would still misremenber the words even if I read the commands from an engineering bible, lol. Since I´m not on an exams day on University or anything like that I did mistyped the words, on my relaxed mode. My bad. :p Still, you would be surprised (if you still aren´t) for the human being ability to learn, and from what sources the learning might come :good:

When I say learn, I do not mean take a course in programming or anything llike that. It is just that many people around here have knowledge enough to inlighten me relating some more "superficial" doubts that may come in hand to see answered (in this flash roms,scripts and what not world). Like you just did on this third post relating my inicial doubt.:good:

Relating the scripts, as I understand 98swapon is also a start up script, and it works similarly to 12swap. It creates the script either on swap partition (my case) or ext partition (so no problems relating unmounting sdcard on pc arise from that) or sdcard as you said. But as I said before, for the use I want to give to the swap option, I still believe 98swapon is better. And that was my doubt, 12swap starts with the numbers you have set with the set.persyst.sys command, so if you want to change the overall script "initiation state" you still need to input that command (change the number to 0) and reboot for it to take effect. So in my case as I only want swap active for certain tasks, 98swapon is the better choice, since it always reverts back to off on every boot/reboot. Others might find the "persyst" option better, myself I do prefer the "off default state" 98swapon provides:D Much debate arises from the consequences of the use of a swap option on the SDCard, but people should have no doubt, reading and writing constantly to the SDCard reduces the cards lifespan. After this realization it all depends if the individual is still inclined to use it always on regardless of its possible consequences and/or is willing to use other command diferent from swapofff, etc to set it off at boot time. I prefer the easier aproach ;)

Thanks again man.
[Motorola Milestone Android Development] pnsdhrn:
Also@mrvek,

That all said above by you two,I came to serious dilemma now.Previously I had installed 98swapon using FuFu's MiniMod.I also have an ext3 partition.And when Kabaldan introduced 12swapon included Rom I deleted the existing rom with 98swapon by doing data wipe and flashed this new rom.I did not do anything after that for creating a swap partition since or put up a command in build.prop.Seeing your remarks that swap action will reduce the life of internal memory/sd card memory,I am afraid to activate it. now. Is 12 swapon will reduce the life of the phone or sd card?If it will, I want to disable the 12 swapon and what is the procedure for it?Also whether the 12 swapon is automatically functioning after the flashing of the rom without any particular task from my part?

pnsdhrn
[Motorola Milestone Android Development] Erovia:
Flash memories degrades over time. It's unavoidable. The read/write operations only make it faster.

12swap script is executed at every boot, but it only works with a dedicated swap partition, so if you dont have any, it doesnt create swap for you.
[Motorola Milestone Android Development] kabaldan:
Why I decided to include my simple 12swap script instead of using the FuFu's 98swapon script:

1. 98swapon enables the swap by default, while I wanted that user has to actively enable it, for swap to be used.

2. I wanted only the dedicated swap partition (3rd on SD card) to be used as swap device (not swap file on either fat or ext SD card partition - those would be used by 98swapon if there's no dedicated swap partition - and in no way to use the internal NAND for swap).

3. I wanted that also only a part of the swap partition could be used, so that people can experiment with swap size without repartitioning. (98swapon allows only to use the entire partition space).

Why I decided to support only a dedicated swap partition:

1. swapfile on fat partition (SD card):

- it conflicts with usb media sharing

- unnecessary filesystem overhead

2. swapfile on ext partition (SD card):

- unnecessary filesystem overhead (also additional unnecessary writes to SD card in case of journalled ext3 or ext4)

- also - if someone already managed to create ext partition on SD card, I'm sure he'll manage to create swap partition as well :)

3. internal NAND (cache or data mtd block):

- excessive writes to swap causes wear to memory cells, that's inevitable. In case of SD card, it can be easily and rather cheaply replaced, so that's acceptable. But no one can replace the dead blocks on internal NAND. Therefore I will never encourage the usage of the internal NAND for swap.
[Motorola Milestone Android Development] CanAndroid:
I know that flash memory degrades, and that using swap increases the wear, but what I don't have a good feel for is how much quicker it actually wears out?

For instance, if there's say 5 years of expected life left in the card (just making up numbers), would it reduce that by a few months, a few years, or even quicker?

Personally, I'm currently using the internal swap, because I find it is noticeably faster. If I can still expect to get a couple years out of it, I think that's acceptable, since I'll most likely have a new phone by then anyways. But if its much less than that, say only a few more months, then the swap partition would be just fine.
[Motorola Milestone Android Development] alicheusz:
keyboard

Did anybody compiled latest ics? And would share at least latest keyboard.
[Motorola Milestone Android Development] mrvek:
Only apk. No gurantees it'll work as expected so please do make backup of the original LatinIME.apk (in /data/vendor/app). If you have some backup app (eg, titanium, backup pro, or whatever) make backup of app data (settings and config) as well.

Note that this is from my own build so it has some minor differences (long pressing time from shift to caps lock is reduced, long press for keys to get alternate characters also).

LatinIME (apk only)
[Motorola Milestone Android Development] Ricfil:
I do believe mrvek is way better into the knowledge of all this stuff than myself, but from the knowledge I do have and also the experience playing with them I may help you out a bit.

1 - Erasing the rom with the 98swapon does not matter as you may get the flashable script from FuFu´s page anyway and flash it accordingly(as you may know).

2 - It seems you are, like I was when first flashing this scripts, with some doubts relating some more "script specific" beahviours and commands to use in the scripts.

In my case, and since swap - when on - reads and writes alot to the partition it is set to, is off most of the time (only use it for games, the rom works fluid enough for me to no use it on otherwise). Many people always use it on on the SDCard (since cards are cheap enough nowadays to replace if damaged or when its lifespan is shortened), but if they are not willing to risk damaging internal ICs, they do not use it internally.

From what I know 98swapon works by looking for a specific partition in which to use swap in. It looks for in this order: First: swap partition

When it does not find the above it searches for ext partition. And lastly SDCard (Fat32 partition). If the size is not configured on the case of the swap partition the script will use all of its space (which is handy in my opinion). You can enable internal swap by editing the script (and also edit swap size, etc) on a file located on the SDCard (swapon.conf). I do not advise enabling internal partitions ;). An sdcard costs 25 euros, How much costs an integrated circuit chip?... It may not even be that expensive but it shure is hard to substitute! Point taken? :D If in doubt relate to FuFus xda pages.

12swap is also very good to use. But it works in a little diferent manner:

You need to use the set persyst.sys command to enable the amount of space to use by the script (and set it on for the first time - refer to kabaldan´s "android.doshaska.net Do Shaska!" site on CM7 version 7.4.2.c it is explained).

And the script only works when you have set up a swap partition. To enable and disable both scripts you may use the swapon/off command, being that the diference is that when rebooting on 98swapon the script always reverts to off (no swap). On 12swap it remains in the same set persyst.sys command settings you defined to the script. If you need to have it off after a reboot, you need to revert the set persyst.sys command to 0, if you need it on you need to revert it to the size of your swap space you want/need.

I guess it is all a matter of what suits one best. I do prefer 98swapon (motives are all in my previous post), Others might find 12swap more usefull. They both work ok in the end.

Hope it helps.:)

Any doubt shoot! :good:
[Motorola Milestone Android Development] Ricfil:
I do believe it really depends on the usage you make of your phone. IF you are constantly (and I mean 24/7:D) using the phone you might expect the wear to be faster and the cels might start going sooner rather than later. And when this starts to happen it is not a good/broke situation all of a sudden. You might have a cel broken and others working, a few days later three more...and so on... the IC does not stop responding altogether, it may still work fine, but when a cpu/memory request is made to the specific block/sector broken or with problems the lag, error, crash will happen... You can expect inically your phone not working as it should as days go by... and the phone might even present the most strangest behaviour, getting progressively worse and worse. All of which is bad enough for me. ;)When will it happen? Depends on several factors really - phone usage , time on, if you play lots of games or not, if you use gps data a lot, etc.
[Motorola Milestone Android Development] pnsdhrn:
Thank you Ricfil for your detailed explanation.Seeing it and also that given by Kabaldan above,I think don't need swap - especially me not being a gamer.BTW one more doubt.I am with FuFu's latest MiniMod and also a frequent upgrader of ROMs.So if I upgrade to a new ROM ,will FuFu 's MniMod automtically activate 98swapon without my doing anything in particular?

pnsdhrn
[Motorola Milestone Android Development] Ricfil:
Relating swap, you may flash it (or use the built in 12swap without a problem - after creating a swap partition on the sdcard). 12swap is off by default (using set persyst.sys activates swap on the swap partition) and FuFu´s I do believe it comes on after flashing and booting to the system, but you can easily manage it using the command " swapon/(or off) /dev/block/mmcblk0p3 (swap partition), and that way you may easily manage its usage without having it always on. I need it for games like Bad Piggies and some similar. When the game ends, swap is disabled and we are back to normal. It makes a HUGE diference for games. :D But if you do not play at all... Your call.

Relating 98swapon, no, upgrading/flashing new roms won´t activate the script by default. The menu available on Minimod is just a "gift" from FuFu´s laborious work (;)) for all of us to have an easier way to flash the script. After flashing it... as said before, it is your call to use it (abuse it:silly:) or not (using the given command). MiniMod is just another (very good) Milestone recovery alternative. It does not get messed up in any way with flashing roms. :good:

P.S: For kabaldan and whoever interested.

I´ve come to notice that my Milestone seems to be draining the battery like hell when using flight mode, since a few days. Using the latest version, for a couple of times when I use flight mode (whenever I go to sleep), I notice a big battery drain over the space of probably 8 hours. The battery went from 100% to 80% in one ocasion, it went from 100% to 60% on another, and on another it discharged from 100% to 5% without any apps running in the back ground (that I knew of, all were killed before puting the phone to flight mode). When using the radio signal on during all day whithout using the phone much it barely went down more than 10/15 percent... I´ve checked with betterbatterystats but did not see anything out of the ordinary.

Strange indeed...
[Motorola Milestone Android Development] afadel:
Guys, this a very alpha ROM an it's definitely not for daily use. If you're wondering how you can fix the camera problem yourself or where is the market, maybe you should reconsider.

Have a shot on CM7. ;)
[Motorola Milestone Android Development] cowsquad:
Have you flashed the gapps?
[Motorola Milestone Android Development] cowsquad:
This is why developers don't release they work. People keep asking question that have been answered on the OP. Developing a rom takes time; it is time and brain consuming. Support the devs.
[Motorola Milestone Android Development] SophT:
Oh man, that one made me laugh.
[Motorola Milestone Android Development] Babis_ECE:
I am waiting for another 2-3 weeks before I install CM9, because I really need the Camera these days. But the anticipation is getting bigger and bigger everyday!

BTW, some posts in this Thread should be deleted, they are just useless. :rolleyes:
[Motorola Milestone Android Development] A-H_Zeto:
Hi,

i have a little comment about the QWERTZ layout,

it is not sufficient, to only modify system/usr/keylayout/sholes-keypad.kl

system/usr/keychars/sholes-keypad.kcm should be modified also.

Otherwise the "6" would be on the Y key, which can be a little confusing.

Modified files should look like this:

system/usr/keylayout/sholes-keypad.kl

key 21 Z WAKE_DROPPED

key 44 Y WAKE_DROPPED

system/usr/keychars/sholes-keypad.kcm

key Z {

label: 'Z'

base: 'z'

shift, capslock: 'Z'

number, alt: '6'

shift+alt: '\u00A1'

}

key Y {

label: 'Y'

base: 'y'

shift, capslock: 'Y'

number: '<'

alt: '<'

shift+alt: none

}

In the attached .zip are the modified files.

Simply put the .kl file in the keylaout folder,

and the .kcm file in the keychars folder.
[Motorola Milestone Android Development] kabaldan:
It's "simple":

1. write hwcomposer for omap3 or port support for old overlay to ics

2. write a new libcamera from scratch or write a wrapper around the proprietary froyo libcamera

3. adapt TI OMX code for omap3 to ics
[Motorola Milestone Android Development] jonatasmz:
lol, seens "easy" hahaha
[Motorola Milestone Android Development] risahri:
Video review

Video review about this great new rom..

http://www.youtube.com/watch?v=_aW2w0sRcDQ

http://www.youtube.com/watch?v=_aW2w0sRcDQ
[Motorola Milestone Android Development] A-H_Zeto:
I found another bug today,

don't know if it correlates to the fact that there are two music apk's or to a bug to the newer one.

Basic-Setup:

Music is stored on SDCard and is visible in both Music Apps.

The old Music App (Speaker-Symbol) was deactivated by me, because it didn't respond to my BT-Headset.

Failure:

If the phone is connected via USB to the PC and is unplugged,

there is no Music visible in the new Player (Headphones-Symbol).

I tried deleting the data from both Music-Apk's, from the Gallery, from the Media-Storage and also did a cache wipe from OR.

In CM7 one of these always fixed similar issues.

In CM9 it didn't.

Then i re-activated the old Music-APK, and there the Music was visible,

afterwards it was then also visible in the new APK.

Seems like the new APK is not capable of refreshing the Music-Data.
[Motorola Milestone Android Development] znetroll:
I tried to be your friendly neighbourhood buildbot, but the build fails again. Nadlabak hasn't merged android_frameworks_base yet, but an upstream commit in MediaProvider's MediaScannerService depends on it. So, no build, but here's some stuff that's changed since I last uploaded a build:

- Lots of new Settings

- Browser now has "Open in Incognito Tab" when long-pressing a link

- Cleanups

- Superuser app name is not localized

- sha1 is now computed with bionic, not libdex (apparently faster)

- DexOpt anything in /system on /cache

(I forgot or left out stuff I didn't consider important)

As soon as the Kabaldan's merged the upstream Android Framework, I'll upload a build, promised, I'm really curious myself, especially about those new Settings ;)

Edit: It's not just the MediaScannerService commit (I reverted that to see if it builds then), there's at least one other thing that breaks the build (probably again something not merged yet), so I decided to wait.

Edit2: Seems merged, building right now. fliege91: No need anymore ;) Plus the interesting stuff is part of what broke it.
[Motorola Milestone Android Development] fliege91:
Hi,

I compiled the current sources last night without any problems, but I haven't tried the update.zip yet. I could upload it tonight, if you want me to.
[Motorola Milestone Android Development] znetroll:
So, here it is, finally.

https://rapidshare.com/files/1343759314/update-cm-9.0.0-RC0-Milestone-KANG-signed.zip

7b9f2fcf7153e877f6c607410c46c61b

Haven't had time to try it out, going to bed first ;)

Just out of curiosity - shall I continue posting these or does everyone build themselves anyway? My other build has been downloaded nearly 50 times, I guess I'll keep posting them whenever I build it anyways (big uplink ftw) until numbers drop.
[Motorola Milestone Android Development] SophT:
I'm happy to let somebody else do the hard work for me :) thanks.

I'm assuming this doesn't require a full wipe, just a dalvik/cache this they're all 9.0.0 rc0 right?
[Motorola Milestone Android Development] adistf:
i downloaded it so...i would like you to continue :D
[Motorola Milestone Android Development] vikcon:
ROFL

Thats a geeky way to simplify the things

But yes its fact!
[Motorola Milestone Android Development] adistf:
i cant set keyboard layout to qwerty on latest build...any ideas?
[Motorola Milestone Android Development] Neldrin:
Edit the system/usr/keylayout/sholes-keypad.kl file using Root Explorer or sth like that, and modify a part of it to look exactly like this:

key 21 Y WAKE_DROPPED
key 44 Z WAKE_DROPPED

And the system/usr/keychars/sholes-keypad.kcm file to look like this:

key Y {

label: 'Y'

base: 'y'

shift, capslock: 'Y'

number, alt: '6'

shift+alt: '\u00A1'

}

key Z {

label: 'Z'

base: 'z'

shift, capslock: 'Z'

number: '<'

alt: '<'

shift+alt: none

}
[Motorola Milestone Android Development] adistf:
thanks it worked;))
[Motorola Milestone Android Development] ExtraDan:
two years im installing different roms, but for this one, i cant even use it.

i wiped all, installed system and gapps... rebooted..

and when i click on "next", the setup wizard force closing... every time. :(

nvm... solved.
[Motorola Milestone Android Development] pnsdhrn:
Thank you Ricfil.But one more question please.You said 12 swapon can be used after creating a swapon partition in the sdcard.What is the procedure for creating swapon partition in the sdacard?I have already partitioned my sdcard(16GB) with Mini Partition Wizard to 12GB in FAT32 and 4GB in Ext3.Now where is to be created the swapon partition and how much size?

pnsdhrn
[Motorola Milestone Android Development] Ricfil:
Jus use that partitioning tool (MiniTool Partition Wizard is great for that) and at the end of the sdcard (after the ext partition) reserve some space from the previous (ext partition) to swap partition (I´m using a swap partition with 200 MB and it works great). Right click on the ext partition and resize it,(if it does not let you resize it-as I believe Ext partition will not let you, just re-format/create a new ext partition subtracting from it the amount of space you want for swap) so that in the end there is the amount of space you need for the swap partition. Then go to that created free space, right click on it and create a partition. On it´s "type of partition options" enable "swap partition" (I do believe through a drop down menu) as you do when creating Fat32 or Ext partition. Then you just need to flash FuFu´s script - you may use the option from MiniMod (or use the built in 12swap after setting the "persyst.sys" amount of space - refer to kabaldan "android.doshaska.net Do Shaska!" site on CM7 version 7.4.2.c it is explained) and get ready to fly :D

Any doubt do say so :good:
[Motorola Milestone Android Development] Sandman21dan:
Hi, i need some help, just flashed this rom completely fresh, and i can't get mobile network connection nor mobile data of course, is this a known issue?
[Motorola Milestone Android Development] LuigiC6:
Advanced Setting > Baseband > Select your country/network operator
[Motorola Milestone Android Development] Sandman21dan:
Worked like a charm! Thnx a lot!