lundi 17 mars 2014

[Info][Problem][Solutions?]Cross-porting topic




Hey all, sorry for my absence. Can't help personal tragedies but I take this as a bit of therapy and get my mind occupied.
I'm sure people are doing the wave now that I'm here;)

I read around in our large forum ;) of what other roms to use since we are pretty desolated except for @DeHAWK (that I had the pleasure to
work with outside XDA
). I'm very low on time and if we are going to do something about this phone there NEED to be teamwork.

Who-tf am I? Well, I'm all and nothing. I have been working with hardware, software, and then did a hell of a lot of Unix, and Android is in basic a
Linux before they boot their "tish" that I don't touch. I'm a low-level guy and I changed path totally 10 years ago but right now I said I was "rusty" in my
knowledge. Well, the rust cleaned away pretty fast and I'm now in a JW for builing specialized SoC's for companies. Nice move. So I decided to have
one leg in the both of my world since I just can't not use my HP48 and I can't just use a scalpel. It's too boring. I see all the time, "Why not do this
instead" and get the answer "We have always done it this way" and you can go back and see that the method invented was like 1932.

I've been lobbying for this forum until the @THE BOSS!! just wanted to get rid of me ;) (He IS a great guy. Loads of respect to him)

Those who knows me and knows how much work I've put into the Samsung/Knox thing know how much info I have gathered that is far fro flattering
when it comes to the Company SS. I've been called all from loony to conspiracy freak but when people know what I do in life and who I really am,
those voices about that "get your meds" stop but I'm still gladly say that I am a nobody, cause I am. I just stopped the endless arguments in the Knox
thread where people where more concerned about their warranty then their freedom.


Ok, enough about me. Just so you know that I'm not a total bull****ter.

When we finally got this hung and miserable forum I tried to get some constructiveness into all of it, because we still have big fat black holes!
And they should have been investigates months ago but my posts was scuffed to "General", so I have change in hell to get hold of people.

Because having a device specific project belongs in "General" right?
Maybe some ops finally sees this and get it that this forum will not generate a huge amount of posts and move it back, where it belongs?


I have not been idle tough and will try to summarize the findings and the problem we have with it done to this oddity of a phone.
Because there ARE still a whole bunch of them and where I was calling for teamwork but never had the chance to form one. Oh well...

I have been asking around if someone could help us and there where no developer that was the slightest interested, because the "baby"
was Note 3 and now it's S5. Face it, we are on our own and many sit, like me, on a contract with a phone we can hardly use the way
we WANT to use it.

@DeHAWK and he has been working his ssa off to get the 4.3 going. But this means that we have 2 plain vanilla roms and we have no of the nifty
code there is out there.

So basically we are on "our own" here. (And that is why teamwork is so important and that I tried to created a few months ago).


The phone itself
I have it confirmed that this phone is done on the same line as Note 3 and that is pretty logical. The sales for I9505 started to level out and a
manufacturer line isn't cheap and meanwhile they where in the midst of releasing Note 3 with big drums so they new that S4 would decline even more
since then people would wait for the "amazing" S5. But they still needed as warranty phone, and thus the I9506 came into existence. If you look at
Samsung's own pages it's really sparse with information about this phone. It's not actively sold and no big drum.

So after getting a post surgery amnesia I threw my original S4 into a concrete wall twice and when they forbid me not too I instead broke it in half
because it didn't start fast enough (probably wiping Dalvik the day before wasn't that great idea) and I wish I had some recollection of it other they
like having my hard totally in scars.

I can really warn you if the glass get's broken it really shatter. So the small parts I sat with a scalpel and mended away
(but then I'm very good with a scalpel so I didn't mind). But when I got a new phone there was no I9505 left! In my country. My salesman takes about
they wiping the shelf's free, I don't know if they or is SS did it but it was strange but hey, I could have my nifty phone back, even though my HTC
Desire is still a damn good phone!

So then I sat and thought to Knox or to Knox, that is the question, but noticed that this was was NOT the I9505 and checking it was a Snapdragon
800 and comparing the Note 3 gave me the difference in screen, memory and internal memory. Nothing more. I tested it in Antutu and was on pair
with my Note 3 (yeah, got a deal on it I wish I resisted). I was happy as a child!

But then I started "digging"

I believe that I9506 is a "tossed together" warranty phone and it's almost identical to Note 3. I can't shake that feeling away and too much
points in that direction. I've worked with so much development and you get that bone-barrow feeling or in your gut if you want. Just like sitting for
20 years on a system and you "just now" something is not right. When I worked I went every day to the computer hall just to pet my lage
"racks". And it's like cars. You can place two identical large scale computers next too them, do the exact same installation and they will differ.
No joke here. So giving "ol' Betty" a run down with the green terminal was something we all did. And I trust my "gut"-feeling.

I've seen old docs that are worried about a patient that seem fine, but their "guts" tell them no, and then they just take them to do "exploitative
surgery" and I have NEVER seen them miss something, like a beginning infection, cancer, you name it. Guts are way important!


I can't give too much "substance" why I'm so convinced but here are some:

SS needed a warranty phone, it's not SS does anything for free for you, nor are they kindred spirits.
They did this just to get rid of that manufaturer line because it was cheaper. And many like me, sit still on a contract for the S4, so they need to have
something to replace them with. If we sit long enough we might get an S5 ;) With all the goodies we found ;)

And the things we found on a tricked Note 3... Greez, could there be more references to NSA, hidden processes, code that wipe away evicende
when you Knox it and then you don't know half of it and here I think @DeHAWK can confirm that what we found made our believe into getting total
control from the outside is very much accomplished (need to change my sig). And I've seen self-updating phones, while the update was turned off so
listen to him when he tells you what to freeze because you might end up with something you don't want. YOU DON'T WANT THEIR 4.3!

Ok, drifting away. I do that often and I am the master of long posts. Something there isn't even room to reply on my PM's! ;)


So what do we make? We have an oddity on a contract that nobody cares about. This is not even a "middle phone", this is an abandoned
phone where we can hope that we get new updates after they have been manged at the new phones for a while. Or nothing at all. Who knows?

We are an exception that was created out of necessity and nothing more. Sounds sad? Yes, it is. I feel cheated in a way. I'm cut off the dev on S4
and I'm cut off the dev on Note 3.

Second thing. Looking at the rom we got shipped, the 4.2.2, does anybody feel it's a "normal" rom? Because when I bought my S4 the rom was
thought over and this one is not. It's riddled with bugs, lack parts, strange things that shouldn't been there as in a shipped rom.
I'm sure that "our" 4.3 is much more "normal" since it's a Note 3 one.

They didn't even care to turn on Knox. Any why should they? As I am 100% sure that this was the development rom that they where using for Note 3
and it "heck, we need one for that phone as well" so they shipped this. Knox turned off? Well, why should they have Knox interferare with their
prototype. We even have Qualcomm stuff when we boot it. They just hurried out this and it really feels "tossed together". They didn't put much
energy into making this phone. Believe me on that.


The main question is how far up the process the have divided the phones? Since I both I can compare at least the parts I see/check. I have not used a screwdriver yet to open them up. YET. There are of course obvious things like the screen, pen. The other is the larger internal memory and internal space. Everything else is the same. Every sensor, every thing in the diagnostic menu. SAME!

I highly doubt wasting time on I9505 ROMS. It's a wonder that the halfbroken custom recovery does. A feat!

So the older brother/sister then, Note 3, SM-N9005 is the best bet and that is what we should concentrate on!
I was very enthusiastic about about it since that seemed logical being so close and all.

If you take a partition dump you will see that the partitions align EXACTLY the same. Compare it to an I9505 and check the difference.

I think I posted them here in the beginning when we finally got this miserable forum if some op didn't move it to "General" as usual, because PIT-
files for the I9506 are as "General" as trying to mend together a rom for JUST this phone, right? Heh.
(Yeah, I'm very tired having posts moved to General without a reason and I should maybe not write this now, because Mike Channon is a really
good guy and I love arguing with him, but he wasn't the culprit in this). Let's see if this post if device specific enough...

So I started to fiddle in my enthusiasm but the first thing you try is the recovery, right. And that was a dead end. I took the last version I could find
and the latest and got really scary things on my screen. So I headed over to Philz and Co's corner to ask what was going on, and I learned
something that is VERY IMPORTANT for us. The Note 3 digitiser is so powerful it will just kill our screens!
That was aparently the case with Note 2 (and I guess the S3) and since that have higher voltages because of the pen and all it can really hurt our phones. Thank god that Philz had bult in a check for that! Else I would have to throw this phone under the sub of something. ;)

Pumping more power into the screen is just a little hardware, and if we are too close in the hardware then we are in trouble, since they have just
tuned down something but then the question is what, where and can we go around it? If it's bound to be this what is making it be that way?
Because something must steer this if they are this close and we can burn it by using their version just like that?

So that leaves one option. Software, but WHERE is that located? There are only two options. The kernel or Touchwiz itself.

Since things started to be not so good I naver had time time to investigate the differnces between the kernels that we have shipped through the joke-
site "Open source". If there is a parameter that is setting the max voltage, bingo. If there is something in Touchwiz, bootloader etc then it's BAD.

Here@bumax mentioned something. That we hade the code? Is that for the whole Touchwiz or do you mean the kernel and the thing they ship with
it, the code for the "browser"? What code is it? This is crucial.

So here was my investingation to the end, since I never got the chance to find voulenteers (that General thing again) and I know there are a lot out
here! So see this as a second try to get to bottom of it once for all!

So someone with a bit of knowledge about kernels other then me and DeHawk? I don't know what resources we have here and it would be great to
know because we can then divide the workload. Compare the kernels. What is changed? What is the difference?

If it's the Touchwiz itself, and we only have binaries that it starts with, then we are in trouble. Of course we can reverse engineer them. Anyone fluent
in ARM? But my guess it that they are stripped to the bone so we don't get any debuginfo from it but has to sit and read them raw. No framework,
nothing. That is find for one binary, but not for 50...

But let's say that we do some code and check then the screen get it's power, if we then know the binary, we can replace it because i don't think that
ANY program in Play check for the voltages (if they are not specialized for it so keep away from them).

When it comes to the open source site I call it a joke-site because you get no instructions how to compile it and even less instructions how to install it
without tripping Knox.

I tried to ask admins there and on the dev-center@SS but all I got was silence, and that is the standard case (or a mail from "Steve"). Oh, yes, I
forgot. So no help there. I will send my 49th something mail to SS and see if I get any response (once they thouoght I was asking for way to root the
phone. So smart people there at Fort Knox...)

So we need to pool things together again and see how the enthusiasm and willingness to help still are? I guess about 25% of what it was in the
beginning. Or less.

But until someone doesn't start to dissect the kernels and compare them we are stuck on square one. What that we manage to port one program?
Sorry, I think that is good, but here we want to port a rom, a kernel, a recovery, Paradroid's pie. That takes a lot of more knowledge and that is the
key here.

Have ANYONE got the sources for Philz recovery to compile clean on the I9506? I tried but I didn't get much closer.

So we have the digitiser problem and that need to be looked into, without buring our screens.

But we have the damn perfect phone. No Enforcing more in the kernel (if we don't fake one). No know. The bootloader if probably quite open.
Did anybody check for a downgrade to 4.2.1 or 4.1.1?

But then I don't know one thing. Will we need a new bootloader for KitKat? Reading about it it makes pretty big changes to the phone and over
at Note 3-section there is quite a few questions how to downgrade (that you can't). So does the bootloader need to be a special version for it?
Invesetigare! :)


Icode?
This one is tricky. When you start a system you need to initialize it. Make the CPU-work and all that. I'm not that sure that is don't with the bootloader
because many of the SoC's I with with today (I evaluate at least 10 right now) have a special part in memory (all does) that it look for instructions how
to start up. What I know is there something called Icode that is the Samsung version of just that microcode. It's rudimentary and it seldom (read
never) need to be updated. I know that at least it was accessible on the I9000 (Yeah, ages ago) and I don't know if it's still used, and how to get too it.

Another oddity!
Here Qualcomm refuses to give out technical documentation over their child that they sell! That is so strange. If you go to any other manufacturer
you simply drown in the amount of the documentation they threw at you. If you read it all there is a new chip already made!
Here I read at their board that they don't want to release any. Can you guess who probably forbid them? ;)

Because having that makes it easier to understand how the design is made and who would lose on that?

So right now I don't feel to open up my phone and solder a JTAG interface that I dout will give us more info. The only value of open them up is to see
how the board looks like but we already know they are identical.


So to conclude with rambling post. This is one a one mans job. Here we need to divide, if there is interest, and fill those black-holes with FACTS.

It's not my intention to lesser your feat @mariolcela! Far from! I think it's marvelous that we have managed to do that but I'm talking about the whole
schabang here that was started to never kicked in.

Since I have an Note 3 that I have kindly got to Teamview and having total access too and also dumped I will break my Knox and then compare what
is changed because I doubt that they will leave that indiscriminating comments behind.

Now with the S5 people will collect fingerprints for free for organisation not mentioned. Good going!

I fight for the right of privacy even for the "care more about warranty" people because it's a lot to lose here.

With just the news fresh in mind, a place in a country "vote" to be part of another and that another makes a law to engulf them? Where are we
going? Next time, should I do the same i my neighborhood? And let a country take over my municipally because we would get lower taxes?

So then, I got the ball rolling here (again), the problems and the investigations for the I9506 that should have been made 5 MONTHS ago.
If you want to do something. Raise your voice. Plan.

I offered last time to coordinate it. Don't know if I'm up too it now. We have excellent people here.
Just voice up in our little miserable corner with our freakish phone, because I believe that we CAN fill those gaps but here I see the startup and the
digitiser as the shop-stopper and that has to be investigated.

If that works, the kernel modules should be practically the same except for that damn pen that I never really found a program too use for.
It's too big to make notes, it's too small to write longer text. Writing a webpage (now why would ANYBODY feel the need to open a program, write
down the webpage and then being directed to another because it can't read a letter??). Many of us had hope not to have the pockets full with
maltreated paper blocks but maybe Note 8, with Iris-scan and blood-testing for a DNA profile?

The last famous words, if anyone want to help and make something of this phone, then push "Reply" and volunteer
(if this isn't moved to the black hole called General of course )

I wish I had time and energy because people know an a Duracell bunny on amphetamine, but I'm not up to that because I would then direct the
kernels to each single line of C but life is unfair and unkind and right now I just have court cases and sorrow in the horizon. Still upper lip, right?
Bull****. Ok, this is not about me, but just that those who knows me know I could do this but I can't at the moment. Just writing this post was
exhausting but I wanted to give you a view about what you should be careful of and what I propose, as an old fart in the business that you COULD,
if you want, take some advice from me. I'm in the corner, and I see and I do want to help, but first I need to help myself and my family, ok?



/Abs

@BOSS!! ;) Yes I AM ironic about you but if you where fair you would move the posts back to where they belong. HERE.

Your fear of "clutting" this forum has turned otherwise, right? Count the posts and let us have this miserable corner for ourselves.
We are not many for dammit. Give people a chance. Please move back my posts from the black hole of "General".
It's not the place for it and you know it. Even an op can make a mistake. Check the enthusiasm there.

Be fair and stop using General or Q&A as a trash-bins. If you ask a question about THIS devices it doesn't mean it should be placed in Q&A.
That is for general ones. Not for this device. Be fair! At least we have a chance to do something.

As much as I lobbied for this corner, maybe it's time to close it because of the lack of people doing something. I mean, we don't have even ONE
"Recognized whatever" here. Time to close maybe? (Sorry, just tired of the way my posts have been moved back and forth without any real reason)



-





Aucun commentaire:

Enregistrer un commentaire