|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Finally, easy to prevent erase or overwrite protected partition
platform/msm_shared/nand.c Code:
int flash_erase(struct ptentry *ptn) { unsigned block = ptn->start; unsigned count = ptn->length; if (ptn->perm == PERM_NON_WRITEABLE) { dprintf(INFO, "%s partition is protected, can't be erased.\n", ptn->name); return -1; } set_nand_configuration(ptn->type); while(count-- > 0) { if(flash_erase_block(flash_cmdlist, flash_ptrlist, block * 64)) { dprintf(INFO, "cannot erase @ %d (bad block?)\n", block); } block++; } return 0; } int flash_write(struct ptentry *ptn, unsigned extra_per_page, const void *data, unsigned bytes) { unsigned page = ptn->start * 64; unsigned lastpage = (ptn->start + ptn->length) * 64; unsigned *spare = (unsigned*) flash_spare; const unsigned char *image = data; unsigned wsize = flash_pagesize + extra_per_page; unsigned n; int r; if (ptn->type == TYPE_MODEM_PARTITION) { dprintf(CRITICAL, "flash_write_image: model partition not supported\n"); return -1; } if (ptn->perm == PERM_NON_WRITEABLE) { dprintf(INFO, "%s partition is protected, can't be overwrited.\n", ptn->name); return -1; } Quote:
Last edited by muziling; 02-24-2012 at 01:41 AM. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
I'll see if I can get it done this weekend. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
But I always hope you can give me a copy, I can compare what different between them. Last edited by muziling; 02-24-2012 at 02:55 AM. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
__________________
|
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Finally got around to updating to the new LK and recovery and getting my CID. So here it is.
CID: TELUS001 Edit: And my phone is a Rhod500 with a Rhod400 keymap Last edited by trevoroni; 02-25-2012 at 04:13 PM. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
might there be an app in the marketplace that would automate the connection/disconnection of the data line?
i get about 5 hours on a battery too... and whats funny is if i am streaming online radio in wm6.5 i might get 2.5 hours on a battery charge. while in xdandroid i usually get 3-4hours. so while xdandroid cant sleep like wm6 can, it seems to use less battery power for at least that one task. but if we can get xdandroid to last all day like wm6 can without user intervention then i would definitely go nand. wm6 might be slightly faster, but android runs so much more fluently... plus there are a ton of apps |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
|
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Hi, i think the battery drain with data service is critical in this rom, i have 3 or 4 hour battery life with only whatsapp and push mail, and in winmo i have 8 hour with push email and messenger online; i need data all time for my work
I like this rom (without SOD) but battery drain is critical, for this reason lamentably i roll back to winmo i hope this and SOD have any solution in the future release...!! Thanks to all developers with this great effort and hard work have managed to extend the useful life of our phone.. Last edited by imohtep; 02-27-2012 at 10:59 AM. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
I never really had any issues with battery life and usually lasts the whole day (but then again I am not a massive data user (twitter, facebook and gmail and some app updates) and I have wifi on pretty much the whole day and only a few calls/texts and less than 30 minutes of GPS)
However I noticed something interesting after installing the battery icon mod from UOT kitchen (By itself it is great instead of the useless icons that come stock). Normally the battery meter is useless and would jump 20-30% randomly and vary from 20% to 90% irrespective of what the actual battery was. But after the battery icon mod now the battery is very stable and has gone down from 95% to 40% in a very linear way without randomly jumping around. I am sure it has nothing to do with the mod as it only mods the framework-res and systemUI apks and doesnt touch the drivers. Is there some type of log I can pull to see how the battery is affected Last edited by htrakr; 02-27-2012 at 03:10 PM. Reason: typo |
|
|
|