PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1321 (permalink)  
Old 02-24-2012, 12:40 AM
arrrghhh's Avatar
Testing Extraordinaire
Offline
Pocket PC: HTC Touch Pro 2 (RHOD400)
Carrier: Sprint
 
Join Date: Mar 2007
Posts: 3,604
Reputation: 7360
arrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the community
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by imohtep View Post
But i need full data for my job and my dialy uses, in my personal opinion an android phone without data is a normaly phone only sms and calls

And What application do you recommend to get the good logs? I really like to work together to find the solution to this problem
Well obviously data is nice, but if you want to save battery disable it.

There's no app to get SoD logs. last_kmsg are the only way, please follow this thread.
Reply With Quote
  #1322 (permalink)  
Old 02-24-2012, 12:59 AM
muziling's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2(RHOD400)
Carrier: CDMA
 
Join Date: Nov 2010
Posts: 175
Reputation: 55
muziling is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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;
    }
Tested pass:
Quote:
E:\adb-tool>Fastboot flash TPCAL x:\cal.raw
sending 'TPCAL' (128 KB)... OKAY [ 0.110s]
writing 'TPCAL'... FAILED (remote: flash write failure)
finished. total time: 0.345s

E:\adb-tool>Fastboot erase TPCAL
erasing 'TPCAL'... FAILED (remote: failed to erase partition)
finished. total time: 0.692s

Last edited by muziling; 02-24-2012 at 01:41 AM.
Reply With Quote
  #1323 (permalink)  
Old 02-24-2012, 01:28 AM
mbellot's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: Boost
 
Join Date: Jul 2010
Posts: 156
Reputation: 135
mbellot is keeping up the good workmbellot is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
New LK can use fastboot update LK itself, but I don't know how to compile source code to ruu_lk.img.

Don't tast29 and flash my NBH, no need to re-flash NAND rom(assume you are use ACL newest nbh), direct run into android then dump wifi data.
After this, can flash ACL nbh back, no need to task29

Don't do "fastboot erase WIFI", it's safe.

Also, weekend is OK too.
I haven't upgraded to the newest LK yet. Because of the "fun" I had with the last update I decided to wait until ACL pushed a new release.

I'll see if I can get it done this weekend.
Reply With Quote
  #1324 (permalink)  
Old 02-24-2012, 02:31 AM
muziling's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2(RHOD400)
Carrier: CDMA
 
Join Date: Nov 2010
Posts: 175
Reputation: 55
muziling is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by mbellot View Post
I haven't upgraded to the newest LK yet. Because of the "fun" I had with the last update I decided to wait until ACL pushed a new release.

I'll see if I can get it done this weekend.
Thanks, I got that file from others, write back to my phone, now RHOD400!!!
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.
Reply With Quote
  #1325 (permalink)  
Old 02-24-2012, 12:19 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
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;
    }
Tested pass:
No, bad method. We arent supposed to keep those partitions. So what i might end up doing is reading, and removing them from the ptable. flash_erase is actually stock code from google/ca since it's not meant to check permissions. But really dood, you are wasting my time with this because you decided to wipe your own nand ? come on man stop spamming my thread.
__________________
Reply With Quote
  #1326 (permalink)  
Old 02-25-2012, 04:05 PM
trevoroni's Avatar
N00b
Offline
Pocket PC: Touch Pro 2
Carrier: Telus
 
Join Date: Jul 2009
Posts: 26
Reputation: 10
trevoroni is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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.
Reply With Quote
  #1327 (permalink)  
Old 02-27-2012, 07:13 AM
resinis's Avatar
PPCGeeks Regular
Offline
Pocket PC: treo pro
Carrier: sprint
 
Join Date: Jun 2008
Posts: 61
Reputation: 30
resinis is just getting started
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
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
Reply With Quote
  #1328 (permalink)  
Old 02-27-2012, 10:35 AM
milda25's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2 (Rhod100)
Carrier: O2-CZ
Location: Czech Republic
 
Join Date: Dec 2011
Posts: 79
Reputation: 5
milda25 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by resinis View Post
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
I'm managing data connection manually using standard settings (or widget data on/off on home screen). But be sure that data off brings you relative little battery life more. I have off all what I can (data, background data, autosync, gps positioning, tower positioning) and I have total battery life about 7-8 hours. This is very bad time. I hope there will be some optimalization soon, but it not depends on me. I'm waiting now for a new battery and I will see, what happened after use this one ...
Reply With Quote
  #1329 (permalink)  
Old 02-27-2012, 10:48 AM
imohtep's Avatar
N00b
Offline
Pocket PC: HTC TP2 R500
Carrier: Movilnet
 
Join Date: Oct 2008
Posts: 27
Reputation: 10
imohtep is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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.
Reply With Quote
  #1330 (permalink)  
Old 02-27-2012, 02:57 PM
htrakr's Avatar
Lurker
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Apr 2010
Posts: 21
Reputation: 5
htrakr is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 02:30 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com