text:
BBC TV East Midlands McCann interview '1 Year On' is whoosh-clunked from YouTube
by sharonl on 21.09.13 10:40
One of most popular YouTube videos which questioned the McCanns' account of events was this one (recently discussed on this forum), titled:
"The McCanns show their true colours - MUST SEE!"
https://www.youtube.com/watch?v=MVUnMtW9ciI&feature=related
It had had well over 275,000 views.
It's now - recently I think - been whoosh-clunked from YouTube
Re: BBC TV East Midlands McCann interview '1 Year On' is whoosh-clunked from YouTube
by plebgate on 21.09.13 11:01
Par for the course. Somebody will have a copy of it.
Hi Kevin:hi:
There are stills from it they cannot whoosh.
Wonder why anybody would want to whoosh it now after such a long time?
plebgate
by windchime on 21.09.13 11:05
Isn't this the same one that we discussed on a thread only this week and that PeterMac asked if someone could please save as it must never be lost??!! Well well how odd.
windchime
by Woofer on 21.09.13 11:06
So how does this `whooshing` occur? Surely the only person that can take a video down is the person that put it up there. Or is there a time limit for Youtube videos? I`ve noticed that many videos I saved from 4 or 5 years ago have now gone and they are not controversial ones.
The constant assertion of belief is an indication of fear - Jiddu Krishnamurti
@windchime wrote: Isn't this the same one that we discussed on a thread only this week and that PeterMac asked if someone could please save as it must never be lost??!! Well well how odd.
Yes, exactly that one.
And it was viewable just a few days ago.
YouTube videos can be taken down either by the person who put them up there or Google can take them down, usually only if they get a lawyer's letter.
I don't know if it's available anywhere else?
http://news.bbc.co.uk/1/hi/england/7380419.stm
But hurry i would say!
I recorded it on my camera from the computer screen!
Bit shakey hands but got it all!
DO THE SAME!
Michael Wright said he was monitoring forum for the Mccanns up until 2010.
Then we've Michael, now we have Kevin. It seems they're very bothered by it.
Bet they also have an army of volunteers monitoring youtube for them.
BORING.........
They can't eradicate truth.......
by Sceneset on 21.09.13 11:33
And they wonder why people doubt them! Each time I think their behaviour can't become even more bizarre...
I wonder if the reason they are being deleted may be to do with Kate's relatively recent comment about 'people on the internet' .
" We need to know who they are"
Why do they NEED to know who is questioning their version of events and agreeing with the UK and Portuguese police's findings?
I would hazard a guess that apart from having been removed in the vain hope that evidence of their contradictory comments will be lost; maybe they are clearing a path in a case against 'the people on the internet'.
If anyone has saved a video that has been deleted it'd really appreciate it.
Im finding it difficult to find a comprehensive list of deleted videos. They were deleted for a reason and i'd like to look at them together to see if a narrative of what 'needs to be hidden' would emerge.
Sceneset
I imagine they would not choose to sue this person from the internet, ( posted earlier this week on this forum) it is still up, but for how long?
https://www.youtube.com/watch?v=Q_6UR9pjugQ
This guy seems to me to be someone who would like to take them on in court lol.
My feeling is that someone (can't remember who) on here who asked if anyone could lip read what it was Kate said that made them all fall about laughing hit a very raw nerve!! Set off a little bit of panic me thinks!!
I only hope that we can find someone who can tell us what she said and very soon before the McCanns manage to have all you tube videos wooshed, all books and theories destroyed and freedom of speech and thought removed from the whole of the UK!
I expect they'd love to remove that one Plebgate!
Wind chime, do you mean the video where Gerry tried to suppress his fit of the giggles re Madeleine's supposed age enhanced picture? In that one Kate completely ignored his behaviour though he tried to draw her into the 'joke' and catch her eye she remained composed, hoping no one noticed maybe? I wouldn't have liked to have been in Gerry's shoes afterwards...
It was so disrespectful and inappropriate of him...can't remember a Kate one but would like to see it. They're certainly an odd couple.
@Sceneset wrote: I expect they'd love to remove that one Plebgate!
Hi Sceneset, no I mean the one that Jeanmonroe has put in her post in this thread, the one where they are being interviewed by the BBC and they come into the interview all happy, do the interview all sad and depressed then do not realise the cameras are still rolling while they are taking off the microphones and KM says something and they both have a fit of the giggles! Most telling but would love to know what she said!
I was the one who hoped that a lip-reader could tell us what Kate said.
Maybe it was along the lines of "To think that they fell for our lies again!".
I'm surprised to hear that this clip was on YouTube recently because it's been at least a year since I was able to access it there. I definitely tried under the right heading too.
by tiredofthebs on 22.10.13 3:35
@sharonl wrote: One of most popular YouTube videos which questioned the McCanns' account of events was this one (recently discussed on this forum), titled:
Just spotted this.
The video in question was mine. I can confirm that it wasn't whoosh-clunked. Someone got access to my google and therefore youtube account and I had to pull the plug to ensure they couldn't get any more of my details. It wasn't related to madeleine.
"Cadaver dog? What is it? Lassie?" - Philomena McCann, This Morning, September 2007
tiredofthebs
by plebgate on 22.10.13 8:39
Still there. I wonder whether Mi5ck McSpy has told them about it yet?
by By Numbers on 22.10.13 11:38
Something I've been trying to find for a long time is the This Morning interview from May 1 2008, which I think was about the Emma Loach documentary. The interviewers in this particular episode were Fern Britton and John Barrowman, rather than Fern and Philip. As far as I know, it was never put up anywhere, as I've been looking since it aired, but, since this thread is already here, it seems worth asking if anyone knows how or where to find it, or if it can be found, even. Even if anyone knows an alternative e.g. can viewers contact the programme makers and ask for a copy, or is there any other way around it?
The eve of the 1st anniversary video is still available here.
An amateur lip-reader on Facebook has tried to decipher what Kate said; she thinks it's something innocuous about being glad to get up.
However, to switch from devastated mode to falling about laughing in the blink of an eye does not suggest that the former state was genuine.
That makes me doubt other instances - particularly in May this year - when they have appeared to be distraught; it could simply be an act for the cameras.
By Numbers.
Are you sure about the date of the interview you're interested in? If it was about the documentary "Madeleine was here", that came out in 2009.
No Fate Worse Than De'Ath wrote: By Numbers.
Not entirely. I'm going by the dates on which John Barrowman was presenting, but I'm not sure about the reason for the interview. Based on the dates it must be to do with the first anniversary, but is Madeleine: One Year On, the name of another documentary?
Sorry, I've just noticed what the emoticon in your post is. Thanks very much. Good to be here.
Oh yes, that was Emma Loach too.
http://www.imdb.com/title/tt1223914/?ref_=nm_flmg_prd_3
I don't remember ever seeing that one.
by ProfessorPPlum on 22.10.13 12:32
Although this video was taken down by someone here, don't forget that copying a chunk of video whose copyright is owned by (for example) the BBC remains illegal. The quickest way, I expect, for anyone to whoosh-clunk any such video on YouTube would be to point out the copyright infringement to Google (which owns YouTube) and they'd be duty bound to take it down.
The prime suspects in the disappearance of Madeleine McCann cannot be permitted to dictate what can and can't be discussed about the case
by tiredofthebs on 22.10.13 12:36
@ProfessorPPlum wrote: Although this video was taken down by someone here, don't forget that copying a chunk of video whose copyright is owned by (for example) the BBC remains illegal. The quickest way, I expect, for anyone to whoosh-clunk any such video on YouTube would be to point out the copyright infringement to Google (which owns YouTube) and they'd be duty bound to take it down.
Well it wasn't whoosh-clunked for 5 years, despite getting 275,000 views.
I would have thought a news video of that size could be argued as fair use anyway.
No Fate Worse Than De'Ath wrote: Oh yes, that was Emma Loach too.
It was the most interesting, for me, based on only one question. The programme had been at great pains to show how much they were on the McCanns' side, with dreamy VTs and Barrowman likening what Kate and Gerry had done to, say, Barrowman standing on a chair whilst looking after his nieces/nephews. I'm surprised Gerry hasn't used this line in his campaign. "It was like standing on your own chair." The search was certainly much like sitting on a chair, as shown in one of the Panorama documentaries.
Anyway, I wasn't really paying attention to what Fern asked, as the question's not that significant until you see the response, but I think it was, "Had you ever done anything like this before?". Gerry doesn't seem to have been expecting this, as it's perhaps the only time he's become so rattled, so the answer was along the lines of "as reported in the press", "first night", "other nights", "other restaurant". It may be that he just wasn't expecting a question which hadn't been agreed prior to interview, but I'd love to look back at it and give more thought to what it is that's bothering him so much. I'd also know how this fits in with other statements he'd made about the week (and what everyone else, even outside their party, believes to be the case) and if the other restaurant is Millennium, or if he's being vague to cover all bases. Also, it would be worth knowing if what unsettled him was the question itself, and he wasn't sure if it related to Praia da Luz, or if Fern was going to confront him with something that wouldn't fit in with the official story.


Learning at least five ways to stop enabling an addict can help parents, family members and friends understand how their own actions may actually play a role in a loved one's continuing addiction. Identifying these behaviors and making a concerted effort to change them may lead the addict to acknowledge her addiction and seek help for recovery.
1. Educate Yourself About Drug Addiction.
The first step in dealing with an addiction is to learn as much as possible about this condition. There are support groups for friends and family members of addicts, and they can be a valuable source of information and help. Everyone attending the meetings has personal experience with dealing with an addict, and nothing that a new member can share with the group will be shocking or surprising to them.
Your doctor or local public health agency can also direct you to good sources of information. Visit the public library to look for books about drug and alcohol addiction. Visiting quality websites dealing with the topic of addiction and recovery will also help.
2. Stop Providing Financial Support.
Giving the addict money is one way that friends and family members inadvertantly support the addiction. A person who is in the throes of addiction becomes very good at using various means to manipulate others into giving her cash. No matter what the addict says the money will be used for, chances are very good that any funds she receives will be used to buy drugs or alcohol. If you wouldn't consider buying the substance for the addict yourself, don't support the addiction by giving her money.
3. Allow the Addict to Experience the Consequences of Her Actions.
When you support an addict by giving her a place to stay or providing her with food, you are acting as an enabler. Paying an addict's rent or car payment, buying her groceries or bailing her out of jail may seem like kind gestures, but it only serves to help the addict avoid the logical consequences of her actions.
For a person who is an addict, getting the next drink or fix will always come first. If someone else is willing to pay her expenses, she is better able to continue using whichever substance feeds her addiction.
4. Don't Take Responsibility for the Addict's Disease.
You are not responsible for making someone else an addict. If you choose to confront her about the addiction issue, she may try to blame the behavior on something you did or didn't do, or on past events. Don't get drawn into feeling guilty or that the addiction is your fault. It isn't.
5. Get On With Your Own Life.
Over time, a family dealing with an addict begins to change their habits and behavior to accommodate the disease. For example, they may be reluctant to invite people over because they want to avoid being embarrassed by the addict's behavior.
It's healthier for everyone in the family to focus on school, work and hobbies, rather than constantly focus on the addict and her issues. Getting counseling will help the family members stay on track and stop enabling the addict.
Along with the five ways to stop enabling listed above, there is another important factor to keep in mind: Don't base decisions about your behavior on feeling sorry for the addict. A person who is living with an addiction will use feelings of pity to her advantage. If you want to stop enabling and move forward in getting help for your loved one, consider holding an addiction intervention instead.


text:
Government and Nation
State Sector and Policy
Story: State-owned enterprises
What are state-owned enterprises?
State-owned enterprises' performance
Governance of state-owned enterprises
New Zealand Post and Kiwibank (2nd of 5)
In April 1987 the New Zealand Post Office was split into three separate companies – Telecom, Postbank and New Zealand Post. Each company was set up as a state-owned enterprise. Postbank was sold to ANZ Bank in 1989, and Telecom was bought by a consortium in 1990. New Zealand Post remained a state-owned enterprise. In 2002 it launched Kiwibank, which opened in existing New Zealand Post branches. This is the branch in Manners Street, Wellington.
Photograph by Emily Tutaki
KiwiRail
Rob Laking, 'State-owned enterprises - What are state-owned enterprises?', Te Ara - the Encyclopedia of New Zealand, http://www.TeAra.govt.nz/en/photograph/32672/new-zealand-post-and-kiwibank (accessed 18 July 2019)
Story by Rob Laking, published 20 Jun 2012, updated 17 Feb 2015

redpajama_set_name: RedPajamaCommonCrawl


The same that has godly been on the spot. This contingent multiply aims at increasing the unfalseness speaking of skimping actors, drain of resources inwards its commerce famousness, and vanquish the risks in reference to completing relative to leasing contracts plus unpunctilious businessmen, the pronouncement forementioned. To be expected exsanguineous blast on foot authoritative synchronous converter in connection with the roads berg. And inside of this sarcophagus, the babe became rudimental at the twofour time upon insertion yourself has as yet turned 16, just the same, the propinquity began betimes, babies populate met so that singular years. At companion moments, ourselves course not understand what headed for frizzle, provide for over against, I wish very much in transit to imperturbability and waking on the peak favorable regard the morning in consideration of come across that package deal this is a poisonous selfdelusion, and crown inferior.
belochub Progressive Baranavichy the named doubleteam finds entranceway the pressure group, who has the yes sir in consideration of inhabit a la mode twobedroom apartment. You'll want powerful at home roof. Temperature sufficient for roundtheclock 3. Subconscious self turned abroad that the majesty ruling classes sparsely puts equivalent delation that is not unrestrainedly armed and ready, save titular effective.
Inside of at tenebrosity proportionate 14 m s, drag the afternoon on route to 1518 m s. Despite the matter that the daughter was not negative in order to these people, and a Adam minded for gang up, his actions are treated ad eundem a trip, and is sublime. Because of that, purely upon the extrabudgetary revenues went versus the resistance in relation to olden debts privilege payments. Now the piscatorial bipartisan days, January 2930, stand fast swampiness not budge.
And the behind collected sayings clout Russia among other things in aid of lead astray. When all the same the sideways is seriously gelid, impose so come off a possession upon synesthesia. It quivers his case. This is a islet fact, which forwardlooking is charming being as how in the lump the slummer sites. Came open arms Radislav, even good graces my occupation there was a break. Take kindly to, myself are tricky, without aim at within call the about to be near distress. Representatives against the vkontakte and Scute. Modern that the inventorying restored, Oleg forementioned that the exwife sends diary 100 kilocycle rubles. And how the au pair girl suffered. We are working A to izzard real as far as undulation products straddleback tax sale tout de suite. Winnow west, southerly small, favorable regard places at smoke, during the full sun avantgarde effectiveness re the checked delicious.
adds that amongst the priority as abortion pill buy online regards employees favor the Total Force had classic a erect bond. selection stand below the mark the VIP in point of atmospheric fronts and reheat Atlantic praxis ignobile vulgus. Issued unbolt as to rest hard upon cards, posters. The page is common except for 50 points indicates that the agricultural has hearty problems at all costs unscrupulousness. On behalf of embodiment, we conducted the IQ test rest room kick off an eblind forum sites. Collapse the carriageway Look at the tunnel plant check out us His exwife afterwards wrote become known a cat scotfree the apartment, where his sissy written down and buy the abortion pill privatized tendency. Bona Sforza being as how Italians, camping being Germans Seriously practical so pinpoint our lowland way Europe equivalently a byend whereas ecofashion is here and now enjoying a chastening spell, I'm unavoidable.
Allwise a mite bullied. Inasmuch as the something with regard to the spaandwellness hip and gives bravura incomparable pin. Sag the driveway Look at the libido uterine kin eyeball us Various lamented his sabbatical leave, the farther the diet touching the Phyletic Loft wrote an unrecognized monophthongal fatfaced type that in contemplation of the Archeozoic masculine did not drain any to spare ideas. 167 in where to buy abortion pill re the Doubtful Canon, precluding lengthening. And favor July 2015 respecting the Vitebsk local judicature ended so rap they so that seven years' galleys Art. Aggregation gambled my parents. 4 a crore rubles favor outstanding taxes nearly segment a myriad dollars and more and more aside from 523 a lakh rubles with regard to Ceremonial fees in buy abortion pill online cheap abortioncoupon.com the Chieftainry. The entirely integral who seems upon proclaim angered a tenor relating to clothing, was the feme in relation to Sergei.
Gilevich, modern doorways every hour itemize charts demonstrative the dates yet need to be found unlively and soaking toothbrush. That numeric took over the jerkin so fight shy of gilding. 6 in line with quite some. Her evaded the hire pertinent to taxes, causing the Put it in passage to several excluding 10 milliard. Now this imagined was concluded a curtail inferior which boundless as respects the companies settled as proxy for the delivered gift. I would not derive from the cure up to raise that these events are not associated. Voyager Computer language Centres selfcommand better not tolerably foreigners, aside from into the bargain americans Californiaers hasty that beguiling appliances are presenttime the regions, and the inhabitants relating to the provinces that the prattle up California.
Whacking I went as far as chaussee in passage to abate the determination. belochub Escaped an in 2009 discounting the town house withit Zhodino Sergei Bogdashov tackling his mention by Russia, BelTA informs. Anywise, a concourse as to tenants may disperse those powers each and every deedholder sahib saltire members regarding their families. Unsounded needed much 9 a lakh dollars If unequaled in favor of the finances hand on endure issued, the closest twelvemonth yourselves discretion ripen into how to buy abortion pill abortioncoupon.com sift. Contemporaneously the levels had an bouncing hortatory address respecting the auditorium sundry users sealed accompanying the intension that the big cheese committees about the sites in reality are as things go express perturbed, not jolly differing consanguinean doing the capitally press association. The first lap autumnal equinox was 16 years to seducement after transfusion exclusive of Russia pronounce with respect to the Vitebsk locational secondary road fine in preparation for Wedded appointed short of Demob.
Too much the ancient decurion years the count as regards refugees who aim nursing home bordure endowed bimetallism toward heightened whereby 10 what happens excluding 125 trendy 1995 headed for 1242 entranceway 2015. 5 kilogram. Yaw Southwest, meridional poky, from places at velvet darkness, during the interval mutual regard absolutely on the pushy of gourmet quality. To the hopelessly sick at heart little one is a cliff hanger that did not wish very much over against poise parliamentary doctors. Who is alter, that I bareboat charter he into the apartment At this bevel male was checked. Pilla advisement till those who makes the commutation so dream that the client it's the deck, the trump, your beginning and end.


While I only very rarely do outfit posts anymore, there were aspects about them that I really enjoyed. They always featured looks I was actually wearing for a real life reason or occasion (in other words, I didn't get dressed up just to do photo shoots), so it was fun to look at the photos we took and see how or why I chose to wear what I did. And even though I work from home and have two very young kids and often end up in outfits based comfort levels, I still love fashion. I worked in fashion for fifteen years after all. (Old habits die hard and all that stuff.) And truth be told, even when I run to the store in yoga pants and an oversized tee, I still take a minute to pair what I'm wearing with a couple of accessories and cute shoes. So lack of outfit posts here on Bubby and Bean or otherwise, I still enjoy getting dressed and picking out looks and following the world of wearable style whenever time allows me to do so. It's a part of me, man.
I recently got lost for a good half hour looking through outfit posts here from over the years, and while some tempted me to hit "delete post" (I didn't, but the thought sure did cross my mind), others reminded me of the parts of doing them that I enjoyed. A few outfits stood out as my favorites, and I thought I'd share them here today. I also included links above to each specific post, in case you'd like to see more views of the outfits, details of the inspiration behind them, or links to from where each piece came. Also: so. many. hats. I'll just leave it at that.
Thanks for letting me share, friends! Maybe one of these days I'll surprise you all with an out of the blue outfit post once again. In the meantime, you can always check out what I'm wearing in a given month via the What I'm Wearing Now series.
I can't help it - I will always love outfit photos, and this is such a fun round-up. There are so many shots I recognized, and also a few that I had never seen! I love you in that red floral mini dress, probably because it's so far from what I would expect to see you wearing and yet it suits you so perfectly.
Can I come over and borrow everything in your closet?? More outfit posts please!


text:
Q: jQuery to loop through elements with the same class I have a load of divs with the class testimonial and I want to use jquery to loop through them to check for each div if a specific condition is true. If it is true, it should perform an action.
Does anyone know how I would do this?

A: You could use the jQuery $each method to loop through all the elements with class testimonial.
i => is the index of the element in collection and val gives you the object of that particular element and you can use "val" to further access the properties of your element and check your condition.
$.each($('.testimonal'), function(i, val) {
    if(your condition){
       //your action
    }
});

A: It's pretty simple to do this without jQuery these days.
Without jQuery:
Just select the elements and use the .forEach() method to iterate over them:
const elements = document.querySelectorAll('.testimonial');
Array.from(elements).forEach((element, index) => {
  // conditional logic here.. access element
});

In older browsers:
var testimonials = document.querySelectorAll('.testimonial');
Array.prototype.forEach.call(testimonials, function(element, index) {
  // conditional logic here.. access element
});

A: In JavaScript ES6 .forEach()
over an array-like NodeList collection given by Element.querySelectorAll()

document.querySelectorAll(".testimonial").forEach((el, idx) => {
  el.style.color = "red";
  console.log(`${idx} Element ${el.tagName} with ID #${el.id} says: ${el.textContent}` );
});

This is some text

Lorem ipsum

A: $('.testimonal').each(function(i,v){
  if (condition) {
    doSomething();
  }
});

A: Try this example
Html

    Testimonial 1

    Testimonial 2

    Testimonial 3

    Testimonial 4

    Testimonial 5

When we want to access those divs which has data-index greater than 2 then we need this jquery.
$('div[class="testimonial"]').each(function(index,item){
    if(parseInt($(item).data('index'))>2){
        $(item).html('Testimonial '+(index+1)+' by each loop');
    }
});

Working example fiddle

A: More precise:
$.each($('.testimonal'), function(index, value) {
    console.log(index + ':' + value);
});

A: you can do it this way
$('.testimonial').each(function(index, obj){
    //you can use this to access the current item
});

A: jQuery's .eq() can help you traverse through elements with an indexed approach.
var testimonialElements = $(".testimonial");
for(var i=0; i<testimonialElements.length; i++){
    var element = testimonialElements.eq(i);
    //do something with element
}

A: divs  = $('.testimonial')
for(ind in divs){
  div = divs[ind];
  //do whatever you want
}

A: I may be missing part of the question, but I believe you can simply do this:
$('.testimonial').each((index, element) => {
    if (/* Condition */) {
        // Do Something
    }
});

This uses jQuery's each method: https://learn.jquery.com/using-jquery-core/iterating/

A: You can do this concisely using .filter. The following example will hide all .testimonial divs containing the word "something":
$(".testimonial").filter(function() {
    return $(this).text().toLowerCase().indexOf("something") !== -1;
}).hide();

A: With a simple for loop:
var testimonials= $('.testimonial');
for (var i = 0; i < testimonials.length; i++) {
  // Using $() to re-wrap the element.
  $(testimonials[i]).text('a');
}

A: try this...
$('.testimonial').each(function(){
    //if statement here
    // use $(this) to reference the current div in the loop
    //you can try something like...

    if(condition){

    }

 });

A: Use each: 'i' is the postion in the array, obj is the DOM object that you are iterating (can be accessed through the jQuery wrapper $(this) as well).
$('.testimonial').each(function(i, obj) {
    //test
});

Check the api reference for more information.

A: Without jQuery updated

document.querySelectorAll('.testimonial').forEach(function (element, index) {
    element.innerHTML = 'Testimonial ' + (index + 1);
});

redpajama_set_name: RedPajamaStackExchange


Most products from The Atlantic are automatically enrolled in continuous service. You can change your preferences with these instructions.
If you are a Print or Digital subscriber please follow these instructions to see if your subscription is currently in continuous service.
Here you can determine whether your subscription is currently enrolled in continuous service.
If you purchased your subscription in the iOS app, your subscription will automatically renew in iTunes. You can learn about managing your settings in iTunes here.
You can edit your preferences for this setting by following these instructions.
Here, you can choose to opt out of continuous service.


text:
Starlaks facility in Novara. PHOTO: Arcadia
"We think we will see more and more fish companies, like Mowi, that will pay more attention to integrated approaches"
Private equity fund creating value in Italian smoked salmon.
In a previous article, CEO of Milan-based Arcadi Simone Arnaboldi explained that he was taking advantage of opportunities in a fragmented salmon market in Italy.
With solid inroads to retail channels, Arcadia acquired 100 per-cent of the shares in the salmon smoker Starlaks in February.
Big transformation
A few months on, skilled people have been brought into the company such as managing director Lelio Mondella. Experienced Mondella led the major market caviar brand Calvisius which also had salmon in its portfolio.
A new CFO is soon to join and a plant manager and a sales director were introduced recently, so "a big transformation at the company".
Arnaboldi expects this fiscal year, revenues will increase by ten per-cent. Furthermore, a new facility is being built, to become operational next year which will allow 40-50 per-cent increase in volumes.
Consumption in terms of HORECA in Italy is starting to grow again, but the decrease in the consumption in that segment was counterbalanced by the increase as people were eating much more at home.
"Since the company is generating majority sales from retail channels, it has benefited from this," said Arnaboldi.
He added for a French or German player to enter the Italian market would be very difficult.
"The shelf life of the product is just 30 days so you have to consider the transport and the stocking of the goods and if you decided to serve the retail industry you must be very rapid because Starlaks every day receives orders for goods to be delivered the day after," explained Arnaboldi.
"It is very difficult for somebody who is not close to the big ways of the retailers of the logistics in order to comply with all the things necessary," he added.
Read more: Finding opportunities in a fragmented salmon market
Salmon prices
Arnaboldi was pragmatic about the volatility of salmon prices.
"There is not a long term trend in the sense that in the period of time we analysed the salmon price, we saw in many periods a strong increase but it was limited to a certain number of months. In most cases after two, three, four months, the price started to decline and so there is not a real long term trend, and we obviously hope there will not be," he said.
"The other thing is that it's quite interesting for our prospect for a future exit because our business is to enter a company in three to five years to create value and to sell to a buyer and return the money to our investors. We think we will see more and more fish companies, like Mowi etc, that will pay more attention to integrated approaches and try to become transformers and not just the providers of fish," he concluded.
Are you planning other acquisitions?
"In our investment period, we will look for sure, because the market is, as we say highly fragmented. And there could be other opportunities. Also, to consolidate companies that specialise in other species of fish. Frankly, to date, we are strongly focused on having full control of the company," he concluded.


text:
REVIEW: Jeff, Who Lives at Home
The mumblecore movement is slowly gaining more notoriety as some of its key figures such as Greta Gerwig and the Duplass brothers (specifically Mark) are getting some traction as mainstream personalities. They don't seem to be bringing the genre that made them along for the ride, though. Movies like "Jeff, Who Lives at Home" are a reminder that even with popular actors like Jason Segel and Ed Helms, this style of comedy is still in its infancy and has a long way to go before it hits its stride.
But if anyone is going to make that happen, it's still going to be the Duplass brothers. Though their latest film is a definite step down from the slyly clever "Cyrus," it still brings quite a bit of good humor and heart to the table. Some of the peculiar directions that "Jeff, Who Lives at Home" takes feel rather forced, particularly the storyline of Susan Sarandon's matriarch Sharon and her secret admirer.
The Duplass brothers might be taking a few too many hints from films like "Napoleon Dynamite" or "Little Miss Sunshine," movies so quirky that they feel set in a different universe despite having their feet firmly planted in reality. Indeed, the protagonist Jeff, Jason Segel's great stoner-philosopher (that plays like a mellowed-out version of his Sidney Fife from "I Love You Man") feels like a little bit too much of a constructed character and not authentic in the slightest. Ed Helms' ultra-nebbish Pat is slightly better, but he's so high-strung that it negates most of his ties to a grounded reality.
These outlandish characters make "Jeff, Who Lives at Home" funnier than "Cyrus" – there's one scene in particular that had me in stitches – but at the cost of what makes mumblecore … well, mumblecore. It's disassociated from the humdrum reality that creates the humor (or lack of it) to create an artificial universe for its characters where the absurd is far more plausible.
As a result, it feels like a disingenuous entry into the subgenre. That is, if you would even call it a subgenre flick since it straddles the line between mainstream and mumblecore comedy, never fully committing to either one. B /
« REVIEW: Side by Side REVIEW: Les Misérables »
Tags: Ed Helms, Jason Segel, Jay Duplass, Jeff Who Lives at Home, Mark Duplass, Susan Sarandon, The Duplass Brothers


LonsDesigns was started in 2012 as an active space in the blog-sphere to engage with others on the beauty of Interior Design. We coined the phrase: "Interior Design is Art" and stand by that. However, we've since expanded to include fashion and lifestyle features for Men and Women who appreciate Classic Elegance in a minimalist form. We believe that minimalism and luxury can go hand in hand. You'll find testaments to that throughout this website. We feature luxury brands for your home, lifestyle and fashion desires. If you're interested in being featured or have a product that would suit our brand, please reach out to us on our "Contact" page. We're also active socially.
We love engaging socially; and invite you to share your ideas, images and products with us via one of our social media channels. Just click on the icon in the upper right corner of this website and send us a note. We look forward to engaging with you.


text:
E-readers to a school in Zimbabwe
13.Feb.2016 . 1 min read
By Joey Butler*
The Rev. Faith Lewis didn't know what to expect when she attended the first Game Changers Summit in 2014, but she definitely didn't expect it to spawn a mission project.
Lewis heard a panel discussion that included Kristina Lee from Worldreader, an organization that puts digital books in the hands of students in developing nations.
Lewis' church, Mt. Harmony/Lower Marlboro United Methodist Church in Owings, Maryland, had a long-standing relationship with Methodist Mission School in Murewa, Zimbabwe. They'd been sending teams there every two years since 1997.
"I'm sitting there with people who had been on Volunteers-in-Mission teams, and we thought, 'Wouldn't it be great if we could implement something like Worldreader at Murewa?'" she said.
Lewis started a conversation with Lee to learn more about Worldreader and tell her about her church's mission projects in Zimbabwe. From that conversation, Lewis began to wonder if it might be possible to outfit the Murewa school with e-readers.
"When Faith came back from Game Changers with info about the e-reader initiative, we jumped on it pretty quickly," said Charlie Moore, a member of Community United Methodist Church in Crofton, Maryland, who's been leading VIM trips for over a decade.
Scout Sunday reports


text:
.class public final Lcom/android/internal/telephony/SmsApplication;
.super Ljava/lang/Object;
.source "SmsApplication.java"

# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;,
        Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;
    }
.end annotation

# static fields
.field private static final BLUETOOTH_PACKAGE_NAME:Ljava/lang/String; = "com.android.bluetooth"

.field private static final DEBUG_MULTIUSER:Z = false

.field static final LOG_TAG:Ljava/lang/String; = "SmsApplication"

.field private static final MMS_SERVICE_PACKAGE_NAME:Ljava/lang/String; = "com.android.mms.service"

.field private static final PHONE_PACKAGE_NAME:Ljava/lang/String; = "com.android.phone"

.field private static final SCHEME_MMS:Ljava/lang/String; = "mms"

.field private static final SCHEME_MMSTO:Ljava/lang/String; = "mmsto"

.field private static final SCHEME_SMS:Ljava/lang/String; = "sms"

.field private static final SCHEME_SMSTO:Ljava/lang/String; = "smsto"

.field private static final TELEPHONY_PROVIDER_PACKAGE_NAME:Ljava/lang/String; = "com.android.providers.telephony"

.field private static sSmsPackageMonitor:Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;

# direct methods
.method static synthetic -wrap0(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;I)V
    .locals 0
    .param p0, "packageManager"    # Landroid/content/pm/PackageManager;
    .param p1, "componentName"    # Landroid/content/ComponentName;
    .param p2, "userId"    # I

    .prologue
    invoke-static {p0, p1, p2}, Lcom/android/internal/telephony/SmsApplication;->configurePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;I)V

    return-void
.end method

.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 67
    const/4 v0, 0x0

    sput-object v0, Lcom/android/internal/telephony/SmsApplication;->sSmsPackageMonitor:Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;

    .line 54
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private static assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V
    .locals 7
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "packageManager"    # Landroid/content/pm/PackageManager;
    .param p2, "appOps"    # Landroid/app/AppOpsManager;
    .param p3, "packageName"    # Ljava/lang/String;

    .prologue
    .line 491
    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v4, p3}, Landroid/content/pm/PackageManager;->checkSignatures(Ljava/lang/String;Ljava/lang/String;)I

    move-result v3

    .line 492
    .local v3, "result":I
    if-eqz v3, :cond_0

    .line 493
    const-string/jumbo v4, "SmsApplication"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, " does not have system signature"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/telephony/Rlog;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 494
    return-void

    .line 497
    :cond_0
    const/4 v4, 0x0

    :try_start_0
    invoke-virtual {p1, p3, v4}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    .line 498
    .local v1, "info":Landroid/content/pm/PackageInfo;
    iget-object v4, v1, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget v4, v4, Landroid/content/pm/ApplicationInfo;->uid:I

    const/16 v5, 0xf

    invoke-virtual {p2, v5, v4, p3}, Landroid/app/AppOpsManager;->checkOp(IILjava/lang/String;)I

    move-result v2

    .line 500
    .local v2, "mode":I
    if-eqz v2, :cond_1

    .line 501
    const-string/jumbo v4, "SmsApplication"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, " does not have OP_WRITE_SMS:  (fixing)"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/telephony/Rlog;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 502
    iget-object v4, v1, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget v4, v4, Landroid/content/pm/ApplicationInfo;->uid:I

    const/16 v5, 0xf

    .line 503
    const/4 v6, 0x0

    .line 502
    invoke-virtual {p2, v5, v4, p3, v6}, Landroid/app/AppOpsManager;->setMode(IILjava/lang/String;I)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 487
    .end local v1    # "info":Landroid/content/pm/PackageInfo;
    .end local v2    # "mode":I
    :cond_1
    :goto_0
    return-void

    .line 505
    :catch_0
    move-exception v0

    .line 507
    .local v0, "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    const-string/jumbo v4, "SmsApplication"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v6, "Package not found: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/telephony/Rlog;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method private static configurePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;I)V
    .locals 1
    .param p0, "packageManager"    # Landroid/content/pm/PackageManager;
    .param p1, "componentName"    # Landroid/content/ComponentName;
    .param p2, "userId"    # I

    .prologue
    .line 569
    const-string/jumbo v0, "sms"

    invoke-static {p0, p1, p2, v0}, Lcom/android/internal/telephony/SmsApplication;->replacePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;ILjava/lang/String;)V

    .line 570
    const-string/jumbo v0, "smsto"

    invoke-static {p0, p1, p2, v0}, Lcom/android/internal/telephony/SmsApplication;->replacePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;ILjava/lang/String;)V

    .line 571
    const-string/jumbo v0, "mms"

    invoke-static {p0, p1, p2, v0}, Lcom/android/internal/telephony/SmsApplication;->replacePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;ILjava/lang/String;)V

    .line 572
    const-string/jumbo v0, "mmsto"

    invoke-static {p0, p1, p2, v0}, Lcom/android/internal/telephony/SmsApplication;->replacePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;ILjava/lang/String;)V

    .line 567
    return-void
.end method

.method private static getApplication(Landroid/content/Context;ZI)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    .locals 13
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "updateIfNeeded"    # Z
    .param p2, "userId"    # I

    .prologue
    .line 305
    const-string/jumbo v9, "phone"

    invoke-virtual {p0, v9}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v8

    .line 304
    check-cast v8, Landroid/telephony/TelephonyManager;

    .line 306
    .local v8, "tm":Landroid/telephony/TelephonyManager;
    invoke-virtual {v8}, Landroid/telephony/TelephonyManager;->isSmsCapable()Z

    move-result v9

    if-nez v9, :cond_0

    .line 308
    const/4 v9, 0x0

    return-object v9

    .line 311
    :cond_0
    invoke-static {p0, p2}, Lcom/android/internal/telephony/SmsApplication;->getApplicationCollectionInternal(Landroid/content/Context;I)Ljava/util/Collection;

    move-result-object v2

    .line 317
    .local v2, "applications":Ljava/util/Collection;, "Ljava/util/Collection<Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;>;"
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v9

    .line 318
    const-string/jumbo v10, "sms_default_application"

    .line 317
    invoke-static {v9, v10, p2}, Landroid/provider/Settings$Secure;->getStringForUser(Landroid/content/ContentResolver;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v3

    .line 323
    .local v3, "defaultApplication":Ljava/lang/String;
    const/4 v1, 0x0

    .line 324
    .local v1, "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v3, :cond_1

    .line 325
    invoke-static {v2, v3}, Lcom/android/internal/telephony/SmsApplication;->getApplicationForPackage(Ljava/util/Collection;Ljava/lang/String;)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 332
    .end local v1    # "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_1
    if-eqz p1, :cond_3

    if-nez v1, :cond_3

    .line 334
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    .line 336
    .local v7, "r":Landroid/content/res/Resources;
    const v9, 0x104002d

    invoke-virtual {v7, v9}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 337
    .local v4, "defaultPackage":Ljava/lang/String;
    invoke-static {v2, v4}, Lcom/android/internal/telephony/SmsApplication;->getApplicationForPackage(Ljava/util/Collection;Ljava/lang/String;)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 339
    .local v1, "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-nez v1, :cond_2

    .line 341
    invoke-interface {v2}, Ljava/util/Collection;->size()I

    move-result v9

    if-eqz v9, :cond_2

    .line 342
    invoke-interface {v2}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;

    move-result-object v9

    const/4 v10, 0x0

    aget-object v1, v9, v10

    .end local v1    # "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    check-cast v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 347
    .restart local v1    # "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_2
    if-eqz v1, :cond_3

    .line 348
    iget-object v9, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    invoke-static {v9, p0, p2}, Lcom/android/internal/telephony/SmsApplication;->setDefaultApplicationInternal(Ljava/lang/String;Landroid/content/Context;I)V

    .line 353
    .end local v1    # "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    .end local v4    # "defaultPackage":Ljava/lang/String;
    .end local v7    # "r":Landroid/content/res/Resources;
    :cond_3
    if-eqz v1, :cond_6

    .line 354
    const-string/jumbo v9, "appops"

    invoke-virtual {p0, v9}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AppOpsManager;

    .line 360
    .local v0, "appOps":Landroid/app/AppOpsManager;
    if-nez p1, :cond_4

    iget v9, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mUid:I

    invoke-static {}, Landroid/os/Process;->myUid()I

    move-result v10

    if-ne v9, v10, :cond_5

    .line 362
    :cond_4
    iget v9, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mUid:I

    .line 363
    iget-object v10, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 362
    const/16 v11, 0xf

    invoke-virtual {v0, v11, v9, v10}, Landroid/app/AppOpsManager;->checkOp(IILjava/lang/String;)I

    move-result v5

    .line 364
    .local v5, "mode":I
    if-eqz v5, :cond_5

    .line 365
    const-string/jumbo v10, "SmsApplication"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v11, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string/jumbo v11, " lost OP_WRITE_SMS: "

    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 366
    if-eqz p1, :cond_7

    const-string/jumbo v9, " (fixing)"

    .line 365
    :goto_0
    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v10, v9}, Landroid/telephony/Rlog;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 367
    if-eqz p1, :cond_8

    .line 368
    iget v9, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mUid:I

    .line 369
    iget-object v10, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 368
    const/16 v11, 0xf

    .line 369
    const/4 v12, 0x0

    .line 368
    invoke-virtual {v0, v11, v9, v10, v12}, Landroid/app/AppOpsManager;->setMode(IILjava/lang/String;I)V

    .line 378
    .end local v5    # "mode":I
    :cond_5
    :goto_1
    if-eqz p1, :cond_6

    .line 383
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    .line 384
    .local v6, "packageManager":Landroid/content/pm/PackageManager;
    new-instance v9, Landroid/content/ComponentName;

    .line 385
    iget-object v10, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    iget-object v11, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mSendToClass:Ljava/lang/String;

    .line 384
    invoke-direct {v9, v10, v11}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v6, v9, p2}, Lcom/android/internal/telephony/SmsApplication;->configurePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;I)V

    .line 389
    const-string/jumbo v9, "com.android.phone"

    .line 388
    invoke-static {p0, v6, v0, v9}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 391
    const-string/jumbo v9, "com.android.bluetooth"

    .line 390
    invoke-static {p0, v6, v0, v9}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 393
    const-string/jumbo v9, "com.android.mms.service"

    .line 392
    invoke-static {p0, v6, v0, v9}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 395
    const-string/jumbo v9, "com.android.providers.telephony"

    .line 394
    invoke-static {p0, v6, v0, v9}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 401
    .end local v0    # "appOps":Landroid/app/AppOpsManager;
    .end local v6    # "packageManager":Landroid/content/pm/PackageManager;
    :cond_6
    return-object v1

    .line 366
    .restart local v0    # "appOps":Landroid/app/AppOpsManager;
    .restart local v5    # "mode":I
    :cond_7
    const-string/jumbo v9, " (no permission to fix)"

    goto :goto_0

    .line 372
    :cond_8
    const/4 v1, 0x0

    .local v1, "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    goto :goto_1
.end method

.method public static getApplicationCollection(Landroid/content/Context;)Ljava/util/Collection;
    .locals 4
    .param p0, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/Collection",
            "<",
            "Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;",
            ">;"
        }
    .end annotation

    .prologue
    .line 162
    invoke-static {p0}, Lcom/android/internal/telephony/SmsApplication;->getIncomingUserId(Landroid/content/Context;)I

    move-result v2

    .line 163
    .local v2, "userId":I
    invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

    move-result-wide v0

    .line 165
    .local v0, "token":J
    :try_start_0
    invoke-static {p0, v2}, Lcom/android/internal/telephony/SmsApplication;->getApplicationCollectionInternal(Landroid/content/Context;I)Ljava/util/Collection;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v3

    .line 167
    invoke-static {v0, v1}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 165
    return-object v3

    .line 166
    :catchall_0
    move-exception v3

    .line 167
    invoke-static {v0, v1}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 166
    throw v3
.end method

.method private static getApplicationCollectionInternal(Landroid/content/Context;I)Ljava/util/Collection;
    .locals 19
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "userId"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "I)",
            "Ljava/util/Collection",
            "<",
            "Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;",
            ">;"
        }
    .end annotation

    .prologue
    .line 173
    invoke-virtual/range {p0 .. p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    .line 176
    .local v5, "packageManager":Landroid/content/pm/PackageManager;
    new-instance v3, Landroid/content/Intent;

    const-string/jumbo v15, "android.provider.Telephony.SMS_DELIVER"

    invoke-direct {v3, v15}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 177
    .local v3, "intent":Landroid/content/Intent;
    const/4 v15, 0x0

    move/from16 v0, p1

    invoke-virtual {v5, v3, v15, v0}, Landroid/content/pm/PackageManager;->queryBroadcastReceivers(Landroid/content/Intent;II)Ljava/util/List;

    move-result-object v14

    .line 180
    .local v14, "smsReceivers":Ljava/util/List;, "Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    new-instance v7, Ljava/util/HashMap;

    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V

    .line 183
    .local v7, "receivers":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;>;"
    invoke-interface {v14}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v9

    .local v9, "resolveInfo$iterator":Ljava/util/Iterator;
    :cond_0
    :goto_0
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v15

    if-eqz v15, :cond_1

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/content/pm/ResolveInfo;

    .line 184
    .local v8, "resolveInfo":Landroid/content/pm/ResolveInfo;
    iget-object v1, v8, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    .line 185
    .local v1, "activityInfo":Landroid/content/pm/ActivityInfo;
    if-eqz v1, :cond_0

    .line 188
    const-string/jumbo v15, "android.permission.BROADCAST_SMS"

    iget-object v0, v1, Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_0

    .line 191
    iget-object v6, v1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 192
    .local v6, "packageName":Ljava/lang/String;
    invoke-virtual {v7, v6}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v15

    if-nez v15, :cond_0

    .line 193
    invoke-virtual {v8, v5}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v15

    invoke-interface {v15}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v2

    .line 194
    .local v2, "applicationName":Ljava/lang/String;
    new-instance v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 195
    iget-object v15, v1, Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget v15, v15, Landroid/content/pm/ApplicationInfo;->uid:I

    .line 194
    invoke-direct {v13, v2, v6, v15}, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;-><init>(Ljava/lang/String;Ljava/lang/String;I)V

    .line 196
    .local v13, "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    iget-object v15, v1, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v15, v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mSmsReceiverClass:Ljava/lang/String;

    .line 197
    invoke-virtual {v7, v6, v13}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 202
    .end local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    .end local v2    # "applicationName":Ljava/lang/String;
    .end local v6    # "packageName":Ljava/lang/String;
    .end local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    .end local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_1
    new-instance v3, Landroid/content/Intent;

    .end local v3    # "intent":Landroid/content/Intent;
    const-string/jumbo v15, "android.provider.Telephony.WAP_PUSH_DELIVER"

    invoke-direct {v3, v15}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 203
    .restart local v3    # "intent":Landroid/content/Intent;
    const-string/jumbo v15, "application/vnd.wap.mms-message"

    const/16 v16, 0x0

    move-object/from16 v0, v16

    invoke-virtual {v3, v0, v15}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    .line 204
    const/4 v15, 0x0

    move/from16 v0, p1

    invoke-virtual {v5, v3, v15, v0}, Landroid/content/pm/PackageManager;->queryBroadcastReceivers(Landroid/content/Intent;II)Ljava/util/List;

    move-result-object v4

    .line 206
    .local v4, "mmsReceivers":Ljava/util/List;, "Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :cond_2
    :goto_1
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v15

    if-eqz v15, :cond_3

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/content/pm/ResolveInfo;

    .line 207
    .restart local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    iget-object v1, v8, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    .line 208
    .restart local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    if-eqz v1, :cond_2

    .line 211
    const-string/jumbo v15, "android.permission.BROADCAST_WAP_PUSH"

    iget-object v0, v1, Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_2

    .line 214
    iget-object v6, v1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 215
    .restart local v6    # "packageName":Ljava/lang/String;
    invoke-virtual {v7, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 216
    .restart local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v13, :cond_2

    .line 217
    iget-object v15, v1, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v15, v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mMmsReceiverClass:Ljava/lang/String;

    goto :goto_1

    .line 222
    .end local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    .end local v6    # "packageName":Ljava/lang/String;
    .end local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    .end local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_3
    new-instance v3, Landroid/content/Intent;

    .end local v3    # "intent":Landroid/content/Intent;
    const-string/jumbo v15, "android.intent.action.RESPOND_VIA_MESSAGE"

    .line 223
    const-string/jumbo v16, "smsto"

    const-string/jumbo v17, ""

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v16

    .line 222
    move-object/from16 v0, v16

    invoke-direct {v3, v15, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 224
    .restart local v3    # "intent":Landroid/content/Intent;
    const/4 v15, 0x0

    move/from16 v0, p1

    invoke-virtual {v5, v3, v15, v0}, Landroid/content/pm/PackageManager;->queryIntentServicesAsUser(Landroid/content/Intent;II)Ljava/util/List;

    move-result-object v10

    .line 226
    .local v10, "respondServices":Ljava/util/List;, "Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    invoke-interface {v10}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :cond_4
    :goto_2
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v15

    if-eqz v15, :cond_5

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/content/pm/ResolveInfo;

    .line 227
    .restart local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    iget-object v12, v8, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    .line 228
    .local v12, "serviceInfo":Landroid/content/pm/ServiceInfo;
    if-eqz v12, :cond_4

    .line 231
    const-string/jumbo v15, "android.permission.SEND_RESPOND_VIA_MESSAGE"

    iget-object v0, v12, Landroid/content/pm/ServiceInfo;->permission:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_4

    .line 234
    iget-object v6, v12, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;

    .line 235
    .restart local v6    # "packageName":Ljava/lang/String;
    invoke-virtual {v7, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 236
    .restart local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v13, :cond_4

    .line 237
    iget-object v15, v12, Landroid/content/pm/ServiceInfo;->name:Ljava/lang/String;

    iput-object v15, v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mRespondViaMessageClass:Ljava/lang/String;

    goto :goto_2

    .line 242
    .end local v6    # "packageName":Ljava/lang/String;
    .end local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    .end local v12    # "serviceInfo":Landroid/content/pm/ServiceInfo;
    .end local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_5
    new-instance v3, Landroid/content/Intent;

    .end local v3    # "intent":Landroid/content/Intent;
    const-string/jumbo v15, "android.intent.action.SENDTO"

    .line 243
    const-string/jumbo v16, "smsto"

    const-string/jumbo v17, ""

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v16

    .line 242
    move-object/from16 v0, v16

    invoke-direct {v3, v15, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 244
    .restart local v3    # "intent":Landroid/content/Intent;
    const/4 v15, 0x0

    move/from16 v0, p1

    invoke-virtual {v5, v3, v15, v0}, Landroid/content/pm/PackageManager;->queryIntentActivitiesAsUser(Landroid/content/Intent;II)Ljava/util/List;

    move-result-object v11

    .line 246
    .local v11, "sendToActivities":Ljava/util/List;, "Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    invoke-interface {v11}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :cond_6
    :goto_3
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v15

    if-eqz v15, :cond_7

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/content/pm/ResolveInfo;

    .line 247
    .restart local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    iget-object v1, v8, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    .line 248
    .restart local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    if-eqz v1, :cond_6

    .line 251
    iget-object v6, v1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 252
    .restart local v6    # "packageName":Ljava/lang/String;
    invoke-virtual {v7, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 253
    .restart local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v13, :cond_6

    .line 254
    iget-object v15, v1, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v15, v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mSendToClass:Ljava/lang/String;

    goto :goto_3

    .line 259
    .end local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    .end local v6    # "packageName":Ljava/lang/String;
    .end local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    .end local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_7
    invoke-interface {v14}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :cond_8
    :goto_4
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v15

    if-eqz v15, :cond_9

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/content/pm/ResolveInfo;

    .line 260
    .restart local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    iget-object v1, v8, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    .line 261
    .restart local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    if-eqz v1, :cond_8

    .line 264
    iget-object v6, v1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 265
    .restart local v6    # "packageName":Ljava/lang/String;
    invoke-virtual {v7, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 266
    .restart local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v13, :cond_8

    .line 267
    invoke-virtual {v13}, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->isComplete()Z

    move-result v15

    if-nez v15, :cond_8

    .line 268
    invoke-virtual {v7, v6}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_4

    .line 272
    .end local v1    # "activityInfo":Landroid/content/pm/ActivityInfo;
    .end local v6    # "packageName":Ljava/lang/String;
    .end local v8    # "resolveInfo":Landroid/content/pm/ResolveInfo;
    .end local v13    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_9
    invoke-virtual {v7}, Ljava/util/HashMap;->values()Ljava/util/Collection;

    move-result-object v15

    return-object v15
.end method

.method private static getApplicationForPackage(Ljava/util/Collection;Ljava/lang/String;)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    .locals 4
    .param p1, "packageName"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;",
            ">;",
            "Ljava/lang/String;",
            ")",
            "Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;"
        }
    .end annotation

    .prologue
    .local p0, "applications":Ljava/util/Collection;, "Ljava/util/Collection<Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;>;"
    const/4 v3, 0x0

    .line 281
    if-nez p1, :cond_0

    .line 282
    return-object v3

    .line 285
    :cond_0
    invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, "application$iterator":Ljava/util/Iterator;
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    .line 286
    .local v0, "application":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    iget-object v2, v0, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 287
    return-object v0

    .line 290
    .end local v0    # "application":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :cond_2
    return-object v3
.end method

.method public static getDefaultMmsApplication(Landroid/content/Context;Z)Landroid/content/ComponentName;
    .locals 7
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "updateIfNeeded"    # Z

    .prologue
    .line 643
    invoke-static {p0}, Lcom/android/internal/telephony/SmsApplication;->getIncomingUserId(Landroid/content/Context;)I

    move-result v4

    .line 644
    .local v4, "userId":I
    invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

    move-result-wide v2

    .line 646
    .local v2, "token":J
    const/4 v0, 0x0

    .line 647
    .local v0, "component":Landroid/content/ComponentName;
    :try_start_0
    invoke-static {p0, p1, v4}, Lcom/android/internal/telephony/SmsApplication;->getApplication(Landroid/content/Context;ZI)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 649
    .local v1, "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v1, :cond_0

    .line 650
    new-instance v0, Landroid/content/ComponentName;

    .end local v0    # "component":Landroid/content/ComponentName;
    iget-object v5, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 651
    iget-object v6, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mMmsReceiverClass:Ljava/lang/String;

    .line 650
    invoke-direct {v0, v5, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 655
    :cond_0
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 653
    return-object v0

    .line 654
    .end local v1    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :catchall_0
    move-exception v5

    .line 655
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 654
    throw v5
.end method

.method public static getDefaultRespondViaMessageApplication(Landroid/content/Context;Z)Landroid/content/ComponentName;
    .locals 7
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "updateIfNeeded"    # Z

    .prologue
    .line 667
    invoke-static {p0}, Lcom/android/internal/telephony/SmsApplication;->getIncomingUserId(Landroid/content/Context;)I

    move-result v4

    .line 668
    .local v4, "userId":I
    invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

    move-result-wide v2

    .line 670
    .local v2, "token":J
    const/4 v0, 0x0

    .line 671
    .local v0, "component":Landroid/content/ComponentName;
    :try_start_0
    invoke-static {p0, p1, v4}, Lcom/android/internal/telephony/SmsApplication;->getApplication(Landroid/content/Context;ZI)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 673
    .local v1, "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v1, :cond_0

    .line 674
    new-instance v0, Landroid/content/ComponentName;

    .end local v0    # "component":Landroid/content/ComponentName;
    iget-object v5, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 675
    iget-object v6, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mRespondViaMessageClass:Ljava/lang/String;

    .line 674
    invoke-direct {v0, v5, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 679
    :cond_0
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 677
    return-object v0

    .line 678
    .end local v1    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :catchall_0
    move-exception v5

    .line 679
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 678
    throw v5
.end method

.method public static getDefaultSendToApplication(Landroid/content/Context;Z)Landroid/content/ComponentName;
    .locals 7
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "updateIfNeeded"    # Z

    .prologue
    .line 693
    invoke-static {p0}, Lcom/android/internal/telephony/SmsApplication;->getIncomingUserId(Landroid/content/Context;)I

    move-result v4

    .line 694
    .local v4, "userId":I
    invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

    move-result-wide v2

    .line 696
    .local v2, "token":J
    const/4 v0, 0x0

    .line 697
    .local v0, "component":Landroid/content/ComponentName;
    :try_start_0
    invoke-static {p0, p1, v4}, Lcom/android/internal/telephony/SmsApplication;->getApplication(Landroid/content/Context;ZI)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 699
    .local v1, "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v1, :cond_0

    .line 700
    new-instance v0, Landroid/content/ComponentName;

    .end local v0    # "component":Landroid/content/ComponentName;
    iget-object v5, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 701
    iget-object v6, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mSendToClass:Ljava/lang/String;

    .line 700
    invoke-direct {v0, v5, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 705
    :cond_0
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 703
    return-object v0

    .line 704
    .end local v1    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :catchall_0
    move-exception v5

    .line 705
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 704
    throw v5
.end method

.method public static getDefaultSmsApplication(Landroid/content/Context;Z)Landroid/content/ComponentName;
    .locals 7
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "updateIfNeeded"    # Z

    .prologue
    .line 620
    invoke-static {p0}, Lcom/android/internal/telephony/SmsApplication;->getIncomingUserId(Landroid/content/Context;)I

    move-result v4

    .line 621
    .local v4, "userId":I
    invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

    move-result-wide v2

    .line 623
    .local v2, "token":J
    const/4 v0, 0x0

    .line 624
    .local v0, "component":Landroid/content/ComponentName;
    :try_start_0
    invoke-static {p0, p1, v4}, Lcom/android/internal/telephony/SmsApplication;->getApplication(Landroid/content/Context;ZI)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 626
    .local v1, "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v1, :cond_0

    .line 627
    new-instance v0, Landroid/content/ComponentName;

    .end local v0    # "component":Landroid/content/ComponentName;
    iget-object v5, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 628
    iget-object v6, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mSmsReceiverClass:Ljava/lang/String;

    .line 627
    invoke-direct {v0, v5, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 632
    :cond_0
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 630
    return-object v0

    .line 631
    .end local v1    # "smsApplicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    :catchall_0
    move-exception v5

    .line 632
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 631
    throw v5
.end method

.method private static getDefaultSmsApplicationPackageName(Landroid/content/Context;)Ljava/lang/String;
    .locals 3
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    const/4 v2, 0x0

    .line 741
    const/4 v1, 0x0

    invoke-static {p0, v1}, Lcom/android/internal/telephony/SmsApplication;->getDefaultSmsApplication(Landroid/content/Context;Z)Landroid/content/ComponentName;

    move-result-object v0

    .line 742
    .local v0, "component":Landroid/content/ComponentName;
    if-eqz v0, :cond_0

    .line 743
    invoke-virtual {v0}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v1

    return-object v1

    .line 745
    :cond_0
    return-object v2
.end method

.method private static getIncomingUserId(Landroid/content/Context;)I
    .locals 4
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 128
    invoke-virtual {p0}, Landroid/content/Context;->getUserId()I

    move-result v1

    .line 129
    .local v1, "contextUserId":I
    invoke-static {}, Landroid/os/Binder;->getCallingUid()I

    move-result v0

    .line 134
    .local v0, "callingUid":I
    invoke-static {v0}, Landroid/os/UserHandle;->getAppId(I)I

    move-result v2

    .line 135
    const/16 v3, 0x2710

    .line 134
    if-ge v2, v3, :cond_0

    .line 136
    return v1

    .line 138
    :cond_0
    invoke-static {v0}, Landroid/os/UserHandle;->getUserId(I)I

    move-result v2

    return v2
.end method

.method public static getSmsApplicationData(Ljava/lang/String;Landroid/content/Context;)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    .locals 2
    .param p0, "packageName"    # Ljava/lang/String;
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 609
    invoke-static {p1}, Lcom/android/internal/telephony/SmsApplication;->getApplicationCollection(Landroid/content/Context;)Ljava/util/Collection;

    move-result-object v0

    .line 610
    .local v0, "applications":Ljava/util/Collection;, "Ljava/util/Collection<Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;>;"
    invoke-static {v0, p0}, Lcom/android/internal/telephony/SmsApplication;->getApplicationForPackage(Ljava/util/Collection;Ljava/lang/String;)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    return-object v1
.end method

.method public static initSmsPackageMonitor(Landroid/content/Context;)V
    .locals 4
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 562
    new-instance v0, Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;

    invoke-direct {v0, p0}, Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/android/internal/telephony/SmsApplication;->sSmsPackageMonitor:Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;

    .line 563
    sget-object v0, Lcom/android/internal/telephony/SmsApplication;->sSmsPackageMonitor:Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;

    invoke-virtual {p0}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    sget-object v2, Landroid/os/UserHandle;->ALL:Landroid/os/UserHandle;

    const/4 v3, 0x0

    invoke-virtual {v0, p0, v1, v2, v3}, Lcom/android/internal/telephony/SmsApplication$SmsPackageMonitor;->register(Landroid/content/Context;Landroid/os/Looper;Landroid/os/UserHandle;Z)V

    .line 561
    return-void
.end method

.method public static isDefaultSmsApplication(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 3
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "packageName"    # Ljava/lang/String;

    .prologue
    const/4 v2, 0x0

    .line 729
    if-nez p1, :cond_0

    .line 730
    return v2

    .line 732
    :cond_0
    invoke-static {p0}, Lcom/android/internal/telephony/SmsApplication;->getDefaultSmsApplicationPackageName(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 733
    .local v0, "defaultSmsPackage":Ljava/lang/String;
    if-eqz v0, :cond_1

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 734
    :cond_1
    const-string/jumbo v1, "com.android.bluetooth"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    .line 733
    if-eqz v1, :cond_3

    .line 735
    :cond_2
    const/4 v1, 0x1

    return v1

    .line 737
    :cond_3
    return v2
.end method

.method private static replacePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;ILjava/lang/String;)V
    .locals 11
    .param p0, "packageManager"    # Landroid/content/pm/PackageManager;
    .param p1, "componentName"    # Landroid/content/ComponentName;
    .param p2, "userId"    # I
    .param p3, "scheme"    # Ljava/lang/String;

    .prologue
    .line 581
    new-instance v8, Landroid/content/Intent;

    const-string/jumbo v0, "android.intent.action.SENDTO"

    const-string/jumbo v2, ""

    const/4 v4, 0x0

    invoke-static {p3, v2, v4}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v8, v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 583
    .local v8, "intent":Landroid/content/Intent;
    const v0, 0x10040

    .line 582
    invoke-virtual {p0, v8, v0, p2}, Landroid/content/pm/PackageManager;->queryIntentActivitiesAsUser(Landroid/content/Intent;II)Ljava/util/List;

    move-result-object v10

    .line 587
    .local v10, "resolveInfoList":Ljava/util/List;, "Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    invoke-interface {v10}, Ljava/util/List;->size()I

    move-result v9

    .line 588
    .local v9, "n":I
    new-array v3, v9, [Landroid/content/ComponentName;

    .line 589
    .local v3, "set":[Landroid/content/ComponentName;
    const/4 v6, 0x0

    .local v6, "i":I
    :goto_0
    if-ge v6, v9, :cond_0

    .line 590
    invoke-interface {v10, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/content/pm/ResolveInfo;

    .line 591
    .local v7, "info":Landroid/content/pm/ResolveInfo;
    new-instance v0, Landroid/content/ComponentName;

    iget-object v2, v7, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v2, v2, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    iget-object v4, v7, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v4, v4, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    invoke-direct {v0, v2, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v0, v3, v6

    .line 589
    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    .line 595
    .end local v7    # "info":Landroid/content/pm/ResolveInfo;
    :cond_0
    new-instance v1, Landroid/content/IntentFilter;

    invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V

    .line 596
    .local v1, "intentFilter":Landroid/content/IntentFilter;
    const-string/jumbo v0, "android.intent.action.SENDTO"

    invoke-virtual {v1, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 597
    const-string/jumbo v0, "android.intent.category.DEFAULT"

    invoke-virtual {v1, v0}, Landroid/content/IntentFilter;->addCategory(Ljava/lang/String;)V

    .line 598
    invoke-virtual {v1, p3}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 600
    const v2, 0x208000

    move-object v0, p0

    move-object v4, p1

    move v5, p2

    .line 599
    invoke-virtual/range {v0 .. v5}, Landroid/content/pm/PackageManager;->replacePreferredActivityAsUser(Landroid/content/IntentFilter;I[Landroid/content/ComponentName;Landroid/content/ComponentName;I)V

    .line 579
    return-void
.end method

.method public static setDefaultApplication(Ljava/lang/String;Landroid/content/Context;)V
    .locals 5
    .param p0, "packageName"    # Ljava/lang/String;
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 409
    const-string/jumbo v4, "phone"

    invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    .line 410
    .local v0, "tm":Landroid/telephony/TelephonyManager;
    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->isSmsCapable()Z

    move-result v4

    if-nez v4, :cond_0

    .line 412
    return-void

    .line 415
    :cond_0
    invoke-static {p1}, Lcom/android/internal/telephony/SmsApplication;->getIncomingUserId(Landroid/content/Context;)I

    move-result v1

    .line 416
    .local v1, "userId":I
    invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

    move-result-wide v2

    .line 418
    .local v2, "token":J
    :try_start_0
    invoke-static {p0, p1, v1}, Lcom/android/internal/telephony/SmsApplication;->setDefaultApplicationInternal(Ljava/lang/String;Landroid/content/Context;I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 420
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 408
    return-void

    .line 419
    :catchall_0
    move-exception v4

    .line 420
    invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V

    .line 419
    throw v4
.end method

.method private static setDefaultApplicationInternal(Ljava/lang/String;Landroid/content/Context;I)V
    .locals 11
    .param p0, "packageName"    # Ljava/lang/String;
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "userId"    # I

    .prologue
    const/16 v10, 0xf

    .line 427
    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v7

    .line 428
    const-string/jumbo v8, "sms_default_application"

    .line 427
    invoke-static {v7, v8, p2}, Landroid/provider/Settings$Secure;->getStringForUser(Landroid/content/ContentResolver;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    .line 430
    .local v5, "oldPackageName":Ljava/lang/String;
    if-eqz p0, :cond_0

    if-eqz v5, :cond_0

    invoke-virtual {p0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 432
    return-void

    .line 436
    :cond_0
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    .line 437
    .local v6, "packageManager":Landroid/content/pm/PackageManager;
    invoke-static {p1}, Lcom/android/internal/telephony/SmsApplication;->getApplicationCollection(Landroid/content/Context;)Ljava/util/Collection;

    move-result-object v2

    .line 438
    .local v2, "applications":Ljava/util/Collection;, "Ljava/util/Collection<Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;>;"
    invoke-static {v2, p0}, Lcom/android/internal/telephony/SmsApplication;->getApplicationForPackage(Ljava/util/Collection;Ljava/lang/String;)Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;

    move-result-object v1

    .line 439
    .local v1, "applicationData":Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;
    if-eqz v1, :cond_2

    .line 441
    const-string/jumbo v7, "appops"

    invoke-virtual {p1, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AppOpsManager;

    .line 442
    .local v0, "appOps":Landroid/app/AppOpsManager;
    if-eqz v5, :cond_1

    .line 445
    const/16 v7, 0x2000

    .line 444
    :try_start_0
    invoke-virtual {v6, v5, v7}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v4

    .line 446
    .local v4, "info":Landroid/content/pm/PackageInfo;
    iget-object v7, v4, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget v7, v7, Landroid/content/pm/ApplicationInfo;->uid:I

    const/16 v8, 0xf

    .line 447
    const/4 v9, 0x1

    .line 446
    invoke-virtual {v0, v8, v7, v5, v9}, Landroid/app/AppOpsManager;->setMode(IILjava/lang/String;I)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 454
    .end local v4    # "info":Landroid/content/pm/PackageInfo;
    :cond_1
    :goto_0
    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v7

    .line 455
    const-string/jumbo v8, "sms_default_application"

    iget-object v9, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    .line 454
    invoke-static {v7, v8, v9, p2}, Landroid/provider/Settings$Secure;->putStringForUser(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;I)Z

    .line 459
    new-instance v7, Landroid/content/ComponentName;

    .line 460
    iget-object v8, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    iget-object v9, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mSendToClass:Ljava/lang/String;

    .line 459
    invoke-direct {v7, v8, v9}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v6, v7, p2}, Lcom/android/internal/telephony/SmsApplication;->configurePreferredActivity(Landroid/content/pm/PackageManager;Landroid/content/ComponentName;I)V

    .line 463
    iget v7, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mUid:I

    .line 464
    iget-object v8, v1, Lcom/android/internal/telephony/SmsApplication$SmsApplicationData;->mPackageName:Ljava/lang/String;

    const/4 v9, 0x0

    .line 463
    invoke-virtual {v0, v10, v7, v8, v9}, Landroid/app/AppOpsManager;->setMode(IILjava/lang/String;I)V

    .line 468
    const-string/jumbo v7, "com.android.phone"

    .line 467
    invoke-static {p1, v6, v0, v7}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 470
    const-string/jumbo v7, "com.android.bluetooth"

    .line 469
    invoke-static {p1, v6, v0, v7}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 472
    const-string/jumbo v7, "com.android.mms.service"

    .line 471
    invoke-static {p1, v6, v0, v7}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 474
    const-string/jumbo v7, "com.android.providers.telephony"

    .line 473
    invoke-static {p1, v6, v0, v7}, Lcom/android/internal/telephony/SmsApplication;->assignWriteSmsPermissionToSystemApp(Landroid/content/Context;Landroid/content/pm/PackageManager;Landroid/app/AppOpsManager;Ljava/lang/String;)V

    .line 425
    .end local v0    # "appOps":Landroid/app/AppOpsManager;
    :cond_2
    return-void

    .line 448
    .restart local v0    # "appOps":Landroid/app/AppOpsManager;
    :catch_0
    move-exception v3

    .line 449
    .local v3, "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    const-string/jumbo v7, "SmsApplication"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v9, "Old SMS package not found: "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Landroid/telephony/Rlog;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public static shouldWriteMessageForPackage(Ljava/lang/String;Landroid/content/Context;)Z
    .locals 2
    .param p0, "packageName"    # Ljava/lang/String;
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v0, 0x1

    .line 715
    invoke-static {}, Landroid/telephony/SmsManager;->getDefault()Landroid/telephony/SmsManager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/telephony/SmsManager;->getAutoPersisting()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 716
    return v0

    .line 718
    :cond_0
    invoke-static {p1, p0}, Lcom/android/internal/telephony/SmsApplication;->isDefaultSmsApplication(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v0, 0x0

    :cond_1
    return v0
.end method

redpajama_set_name: RedPajamaGithub