Updated

Former News of the World editor Rebekah Brooks — a pivotal figure in Britain's tabloid phone hacking saga — said Friday that Prime Minister David Cameron commiserated with her after she quit in the wake of the scandal.

The 43-year-old Brooks, who resigned in July as chief executive of News International, Rupert Murdoch's British newspaper operation, told the country's media ethics inquiry of her close ties to those in power.

Known for her striking red curls and meteoric rise from junior employee to editor at News of the World, Brooks acknowledged she had messages of support from politicians including Cameron and ex-Prime Minister Tony Blair when she stepped down.

In evidence offered so far in Friday's hearing, Brooks has been questioned on the close ties between British politicians and the press, chiefly Murdoch's media empire.

CLOSE TO CAMERON

Brooks said Cameron is a personal friend and neighbor in the picturesque Cotswolds area of southern England — and acknowledged she even had to offer him advice on text messaging.

After she stepped down amid the phone hacking scandal, Brooks said she had received "indirect messages" of support — text messages sent by the aides of politicians, but relaying their personal thoughts — including from Cameron.

"I received some indirect messages from No. 10, No. 11, the Home Office and Foreign Office," Brooks said, referring to Cameron, Treasury chief George Osborne and other leading Cabinet members.

She agreed with inquiry lawyer Robert Jay that a message from Cameron had told her to "keep your head up" and expressed regret that he could not be more loyal because of the political pressure he was under over the hacking scandal.

The message was "along those lines, I don't think they were the exact words," Brooks said.

Brooks said she and Cameron would trade texts at least once a week, or twice a week during busier periods such as Britain's 2010 national election.

"He would sign them off 'DC' in the main," said Brooks, who showed composure, and frequent flashes of humor, as she testified.

"Occasionally he would sign them off LOL, 'lots of love', until I told him it meant 'laugh out loud'," she said.

Brooks confirmed that she had discussed tabloid phone hacking with Cameron, but "not very often, once or twice ... it kept coming up, so we would bring it up."

Conversations had taken place after the revelations that the News of the World had hacked murdered schoolgirl Milly Dowler's phone when she disappeared in 2002.

Public revulsion at the tactics deployed to pursue the schoolgirl led Murdoch to shut down the 168-year-old News of the World in July, and saw Cameron set up the ethics inquiry, led by Lord Justice Brian Leveson.

Brooks also detailed about 20 formal meetings with Cameron between 2005 — when he became leader of the then-opposition Conservative Party — and 2011.

Cameron has previously acknowledged that he has known her husband for 30 years and that he had ridden on a retired police horse that had been loaned to Rebekah Brooks.

BUDDY OF THE BLAIRS

Blair, who quit as Prime Minister in 2007, also sent a message of support when she quit and was a longtime ally, Brooks disclosed.

In a written statement to the inquiry, Brooks said that "Tony Blair, his senior Cabinet, advisers and press secretaries were a constant presence in my life for many years."

"I became close friends with his wife Cherie Blair ... and also with the Blairs' closest advisers, including Alistair Campbell and his partner Fiona Miller."

In 2003, as editor of The Sun tabloid, she offered her newspaper's support for Britain's role in the U.S.-led invasion of Iraq.

"During the Iraq war, I spent more time than usual talking to Tony Blair and Downing Street," she said. Public opinion was divided in Britain over the war, with large numbers opposed to Blair's decision to join the conflict.

Brooks detailed at least 12 dinners — three when they ate alone — and drinks meetings with Blair between 2005 and 2007 and said he'd been among the political heavyweights who attended her 40th birthday party — hosted at Murdoch's home.

BUT ANGER FROM GORDON BROWN

Murdoch's newspapers turned their back on the Labour Party before Britain's 2010 election, offering backing instead to Conservative Party leader Cameron.

Though Blair — who led Labour — remained friendly, his successor as prime minister and party chief, Gordon Brown was "incredibly aggressive and angry," after The Sun tabloid switched political allegiance.

Brown hadn't sent any message after she quit. "He was probably getting the bunting out," Brooks joked, with a relaxed smile.

However, his wife Sarah Brown was "an amazing lady" and a friend who was part of a social circle that also included Brooks, Elisabeth Murdoch and Wendi Deng, Murdoch's wife.

The ex-editor acknowledged she'd sided with Blair amid Brown's maneuvering to oust his colleague as Britain's leader.

AT THE HEART OF THE SCANDAL

Brooks, a former editor of both The Sun and the News of The World, has twice been arrested and questioned by police about illegal eavesdropping and obstruction of justice. She is currently on police bail pending further inquiries, but has not been charged with any offense.

Before stepping down, she was regarded as Murdoch's key lieutenant in Britain.

As he arrived in London to handle the fallout from the hacking scandal last year — and before she quit — Murdoch told reporters his priority was "this one," gesturing toward Brooks.

In a report earlier this month, legislators sharply criticized Brooks for overseeing a culture at the News of The World which permitted illegal acts at her newspaper, particularly in the Dowler case.