yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] biosehnsucht:
The init's not funky, so much as it's not SysV / whatever style that Linux normally uses. It's Android init (google 'android init langauge' or something, I found it a few days ago when I was looking at init), all (?) android devices use it.

TKM isn't actually x86 only... I know this because when I still had DirecTV and was using hacked tivos (yay LBA48 and newer software hacks!) we used TKM on MIPS, and I think TKM may have been at some point even built for PPC (I think that was what the series 1 used? I forget).

I'll throw the sources on pastebin or something later if anyone wants to see them, apparently MIPS is far simpler (per the source) due to lack of kernel paging or something... found it in all my old tivo stuff, but I am late for work. It was for 2.4.x kernels I think, so not sure how much would need to be done to make it work now.

But yeah, TKM/kexec + mounting a filesystem from SD is not a bad idea, if only for bootstrapping development on the device while waiting for a real root solution.
[G2 and Desire Z Android Development] KiNG OMaR:
Does this work? Has anyone tried it?

http://www.androidpolice.com/2010/10/10/meet-superoneclick-easily-root-nearly-any-android-device-including-froyo-rockin-samsung-captivate/
[G2 and Desire Z Android Development] vi5in:
It looks like the GUI for rageagainstthecage, which is the method that gives you temp root on the G2. I haven't tried it, but I doubt it would give you permanent root (I hope I am wrong, but I'm not holding out too much hope!)
[G2 and Desire Z Android Development] Disconn3ct:
Their hack has zero impact on the BRAND NEW type of security the g2 has (hardware that is set read-only)
[G2 and Desire Z Android Development] adwinp:
The rmt_storage targets specific partitions (this is for the DHD):

service rmt_storage /sbin/rmt_storage /dev/block/mmcblk0p13 /dev/block/mmcblk0p14

user root

disabled

on property:ro.emmc=1

start rmt_storage

What about building an eMMC (in contrast to the default NAND one) flash_image and flashing a recovery with a hashed rmt_storage service?
[G2 and Desire Z Android Development] darkonc:
They can be permanently cut off NOW.

They've violated the GPL, and are subject to a permanent ban from using the software on any device, even if they release the code before the court date. The breach is repeated and intentional -- to prevent users from having access to the current version of the code. I think that the courts would see it that way. :mad:

IANAL
[G2 and Desire Z Android Development] bled82:
Here is the response i got from htc about the source code release . "I do understand how important it is to be able to use your device to the best of its capabilities.

We are not withholding the kernel; we are currently working through the legal channels that we must go through to make the kernel available to you. Each product is individually under review.

When the kernel is available, you will be able to find it on developer.htc.com. I apologize for any inconvenience you may have experienced, and thank you for your patience in this matter.

We cannot comment on whether or not HTC has blocked any customer from rooting or hacking their phone.

Rooting the phone may open the phone up to virus attacks and other un-secure activities, as well as introduce intended functionality, and as such is very difficult for us to support.

To send a reply to this message or let me know I have successfully answered your question log in to our ContactUs site using your email address and your ticket number"
[G2 and Desire Z Android Development] grankin01:
My bs-ometer just went crazy! :)

Stalling much.
[G2 and Desire Z Android Development] Corylulu:
I have had to deal with corporate level task completing before and I do realize that to get ANYTHING through a corporation you basically need to call up a board of directors and talk for 2 hours and do a bunch of paperwork just to change the color of the background on there website.

So I could imagine them being a little bit truthful on how long it takes to get stuff done, but I don't think that they aren't using that to there advantage.
[G2 and Desire Z Android Development] grankin01:
I could be wrong (has happened before :)) and I certainly understand there are a million little things on their end I am obviously unaware of but I would think in order to claim gplv2 (as was stated in the other think tank I believe) on this software they would have had to have worked out all the legalities that pertain to the software and its subsequent release before installing it on a device for the general public.
[G2 and Desire Z Android Development] HamNCheese:
Actually that's incorrect. By making changes to the original source, they are at that point bound by the license. You can't sit on it, whether the product is released or not - you are obligated to provide the source to whomever asks. Granted, there is a catch-22 in an un-released product - but technically we can ask for Desicre HD source now, since they have certainly modified mainline by now.
[G2 and Desire Z Android Development] mtrausch:
It's not *modifying* the source that matters, it is the act of *distributing* the code. Read the GPL v2 and pay extremely close attention to the details of it. If you do not distribute the compiled artifact, you absolutely do not need to convey the source. Put another way: if the device never were released, and the software never left HTC and its agents/employees/etc., then source code would never have to be conveyed.

Unfortunately, they seem to have failed to realize that they are supposed to convey the source code (or at least, have the ability to do so) the moment the binary code is released to anyone outside of their company.
[G2 and Desire Z Android Development] The_Forastero:
D=

I got my G2 today. I love it. However... this endeavor seems to be taking a bit longer than expected. Best wishes with you guys. Hopefully we'll be celebrating soon. Keep up the good work guys.
[G2 and Desire Z Android Development] funkeee:
Bickering aside, the OTA has been confirmed.
[G2 and Desire Z Android Development] hiko36:
First: OTA has been confirmed as what exactly?

Second:Source
[G2 and Desire Z Android Development] sino8r:
Yes please enough bickering... sheesh! OTA is confirmed by a user posting pics in the general section. It looks genuine to me(reflections and all) and a newer software version is listed plus new radio (thank GOD for the new radio!), added (RESTORED... I should say) wired/wireless tether, and new UMA (UMA-like... lets you use your own phone # at least unlike skype but not as solid handoffs like the devices with UMA built in) software in the ota. Take a look... http://picasaweb.google.com/art.quijada/G2#5527043907306548738

I guess the big question is... should we update or not? Can we confirm that an ota WON'T help us with root? Are we damn sure because this is an ota that is gonna be too tempting to pass up. I guess we don't have to work about any additional patches added because HTC/tmobile already think this NAND locked method is foolproof. what do you guys think?
[G2 and Desire Z Android Development] grankin01:
In case no one has noticed that update has a different kernel as well.

Maybe this is why HTC has been less than forthcoming with the source code.:confused:

Just a thought ...

Edit: Different build of same kernel
[G2 and Desire Z Android Development] hiko36:
Because they knew it was changing?
[G2 and Desire Z Android Development] sino8r:
I was about to say... the numbers were the same but rebuilt apparently

maybe that was required to allow tethering... i'd imagine..

Is this a possible exploit or not? its worth looking at a log or saving the ota at least... reveal some mystery of the kernel?

I've never rewitten or moddified a kernel, so forgive my stupidity. other parts but not a kernel...
[G2 and Desire Z Android Development] grankin01:
Hmmmm ....

That could possibly mean that they initially released the devices with "unfinished" kernel builds. Yet another reason to sit on the source code perhaps.

But all this is speculation until the devs get a hold of it and tear it to shreds to see what makes this thing tick.:D
[G2 and Desire Z Android Development] sino8r:
I hope you are correct... that does makes sense

oh yeah, for all interested... type "*#*#checkin#*#*"
[G2 and Desire Z Android Development] hiko36:
Yes but that's what these thinktanks are really about. If anyone in here knew what they were doing they'd be in the IRC channel instead of here. This is basically a knitting circle for the less experienced modders ;)
[G2 and Desire Z Android Development] sino8r:
HOW DARE YOU!!!! sorry... a bit delirious. I don't know... their log doesn't seem like they have gotten any futher than when they were in here. I guess it just boils down to the methods left to try really... and the best contender can't be tried out without the kernel source.

So far, really... I'm am dealing much better than I had previously anticipated. I do hate the darn white notif. bars and would like to remove the bloated apps plus a modded kernel for OCing would be cool. But so far, not too many flashing withdraws... kinda enjoying the G2, really.
[G2 and Desire Z Android Development] grankin01:
Well said! An idea that is never expressed is worse than useless.;)

I still have yet to receive this ota. My device still says its up to date. I'm a little weary of actually applying it once it does come available. Provided we don't have permanent root by then.:D

A side by side comparison of the source code for both builds might be worth its weight in gold if both are made available to the community.
[G2 and Desire Z Android Development] sino8r:
The checkin should push whatever update might be available but it is obviously be pushed in stages...

Yeah, we definately need to tear it apart. I asked the folks in general to contact us so we can walk them through on how to save it. If someone posted it... we can tear it up and apply it for those just wanting it early...
[G2 and Desire Z Android Development] grankin01:
Alright, I have never applied or had to worry about an ota update so I have no idea which screen/app to type this in on. I tried it on the home screen and all it did was bring up google search.:confused:

Help me out here, please. And if it is made available to me I will try and save it and upload it to XDA.:D

edit: also tried on the system update screen
[G2 and Desire Z Android Development] tankmorph:
Phone dialer
[G2 and Desire Z Android Development] grankin01:
Tried that as well but I'll give it another shot. Might have done something wrong.:rolleyes:
[G2 and Desire Z Android Development] sino8r:
just type in *#*#checkin#*#* in the dialer and wait. it should said check in succeeded in notify bar. then if it is available to you... it will pop up a window and ask update or not (obviously not in those exact words but whatever). then if anyone gets the prompt to update or not... pm me/post it here/ or look up what to do. From what I remember its just a few commands in terminal with root access that allows a copy from cache to sd.

oppsy! I type slow lol
[G2 and Desire Z Android Development] grankin01:
Sorry guys it took me a minute. I do remember doing that now. Haven't been to sleep yet. Guess its not available to me yet but i'll keep trying and will post it when I get it.:)
[G2 and Desire Z Android Development] grankin01:
By the way searched the forums and found a thread named (strangely enough) "How to save an ota update to sdcard" and it says to just click install later and it will save it to the sdcard on its own.
[G2 and Desire Z Android Development] sino8r:
well, its worth a try and then prompting the checkin later if it fails to save...
[G2 and Desire Z Android Development] grankin01:
Agreed. I'll keep trying and post when I get some results one way or another. For now its pillow time.:D
[G2 and Desire Z Android Development] sinning:
GPL enforcement

If anyone is interested in trying to force HTC to hand over the source, I've begun compiling a list of links that may be useful:

Enforcing the GPL

This is an article written by Eben Moglen, a professor at Columbia Law School, discussing enforcing the GPL. It's an interesting read and applicable to this situation.

Software Freedom Law Center

The SFLC notes on their web page that they offer no-charge services to open source developers in dealing with licensing issues. They may be willing to help scare HTC into releasing the source.

GNU License Violation Reporting

This may be the best place to start.
[G2 and Desire Z Android Development] lbcoder:
What that basically says is that you need to get someone who owns copyright to SOME PART of the kernel THAT IS SHIPPED on the device to get on board with this work against HTC.

In other words, THOUGH IT IS a violation, it isn't enforceable without the cooperation of someone who owns copyright. Mr. Torvalds would be ideal, however I doubt that he would be interested in going all out for a 3 month delay.

*** worth asking him though -- he is more approachable than most people would guess.

I would start by writing a polite email to him expressing the concerns over the source release delay.
[G2 and Desire Z Android Development] shograt:
Licensing

With the exception of brief update periods, Android has been available as open source since 21 October 2008. Google published the entire source code (including network and telephony stacks)[31] under an Apache License.[32]

With the Apache License, vendors can add proprietary extensions without submitting those back to the open source community.

That's from http://en.wikipedia.org/wiki/Android_(operating_system)

And even if it was purely GPL V2, AFAIK, if they offered to deliver the source on punch-cards sent via snail-mail, they'd be in compliance. Blame the vagueness of GPL V2.
[G2 and Desire Z Android Development] greglad007:
that gave me all my app updates, no OTA
[G2 and Desire Z Android Development] LoyalServant:
I hate to break it to you guys but someone already started complaining on the gpl-violations mailing list about this.

I think it sucks because the hints to defeating this 'anti-root' are probably there in the code, and they know they have to release it eventually.

Chances are that the documentation with the device as well as in the help menu of the device clearly extends the offer to the source code.

The GPL doesn't give time frames for release.

The law gods that frequent that list have already shot this down... that's not to say that someone here with gobs of cash can't go forum shopping and press the issue, which would take years and by then they would have posted the code.

Here is part of the chatter from the gpl-violations list:
[G2 and Desire Z Android Development] funkeee:
@loyalservant

What you quoted is a matter of opinion. In my opinion the courts would not find 90-120 days unreasonable. And as you said, by then it would be out. The process itself would take a bit of time in a large company. I think this is pointless to argue over.
[G2 and Desire Z Android Development] ipprof:
Reasonability is always defined by the circumstances

Whether 90-120 days or 15-30 days is reasonable is always indefinite and, in your words, something similar to an opinion. It depends upon the context. Three or four months might be reasonable for a product, say, that retains commercial value for 10 or 15 years, like an automobile. It certainly wouldn't be reasonable for a quart of milk that would spoil in that time. A cell phone lies somewhere between those two extremes. If cell phones--or more importantly, their software--lose their commercial value in 24 months (is that more or less correct?) I would suggest something closer to the shorter end of that continuum would be closer to the "correct" answer. Whether it would be worth it to litigate would depend upon whether it would have important consequences in other cases as well. It does seem that this is an invitation for abuse if the issue is never resolved.
[G2 and Desire Z Android Development] lbcoder:
The parts that WE ARE INTERESTED IN ARE GPLv2, specifically, any modifications to the LINUX KERNEL. There is no legal way possible in this world to relicense the linux kernel under anything LESS RESTRICTIVE (like APL, etc.). It would literally require the consent of EVERYONE owning copyright to ANY PART of the source code used. You have any idea how many people that is? Though the odd person might be ok with that, you DEFINITELY WILL NOT get everyone on board. You definitely would never be able to convince Red Hat to get on board with that one, and they own quite a lot of it.
[G2 and Desire Z Android Development] larryccf:
this argument has been an incredible waste of bandwidth - whether 90-120 days is reasonable or unreasonable, by the time it got to court (if legal action was filed) that 120 day mark would have passed months earlier

can we get back on topic, ie thinktank ?

anyone got the latest status on where we are on rooting? - i tried to follow it on cyanogen but reading software code is like reading greek to me - ain't going to happen

tks
[G2 and Desire Z Android Development] Disconn3ct:
Nothing says the copyright holders will permit them to distribute the software during that time - which means they could be liable for damages amounting to the sale price of all the linux devices htc sells in that time... yeah... that bad.. (also, the sources leaked. so its a moot point now.)

Try the new thread:

http://xdaforums.com/showthread.php?p=8523533#post8523533
[G2 and Desire Z Android Development] lbcoder:
The sources were *released*, not leaked. HTC posted to their public website, they even updated their page at developer.htc.com, they just screwed up the link target, but someone (or google) saw through it.
[G2 and Desire Z Android Development] Disconn3ct:
They released a bad link for desire z sources. Vision has a different kernel. If you look at the leaked (well, constructed/discovered) link, you'll see it is a VISION kernel, and if you look at their site, the word 'vision' doesn't appear -anywhere-.
[G2 and Desire Z Android Development] lbcoder:
As I said, they simply screwed up their web page. The target of that link is OBVIOUSLY not what they intended it to be (since down a few lines on the same page is ANOTHER link to the SAME file, but with a different SIZE shown). The file is available from their website without any weird logins required. Whether the link to it is broken or not, it is still released officially from htc.

Oh, and desirez.... is a VISION. The, as you call it, "discovered" link is the correct target for what is listed as desirez.
[G2 and Desire Z Android Development] clunk27:
HELLO G2 Source Code

http://member.america.htc.com/download/RomCode/Source_and_Binaries/vision-2.6.32-g814e0a1.tar.gz
[G2 and Desire Z Android Development] :
I got my pitchfork ready! Since t-mobile is never gonna release anything ever.......

wait a second....
[G2 and Desire Z Android Development] connoisseur:
ok, edited the .inf file and got the g2 recognized, but i dont get anything showing up under
[G2 and Desire Z Android Development] grankin01:
do you have debugging enabled on the phone? ;)
[G2 and Desire Z Android Development] NexVision:
Been running everything I can think of on my G2 and nothing so far.
[G2 and Desire Z Android Development] sino8r:
Hey man! It's nice to see a familiar face around here. Bunch of ex nexus/G1 junkies! J/k anyways, what ideas do you have? I'm no expert but know my way around some deving. Plus, I know if anyone can root this baby... it'll be you! You and Eugene really created developing for the MTS and we'd all love to see your work around here! I'll be a guinea pig! I have tried some methods myself but nothing seems to work that I know of. One guy was able to flash the g2 rom into his desire z without root so I'm betting the G2 could do it the other way around. Could that be used as an exploit? Either way thanks for helping us!

oh, I need your gtalk username. I'll help out you test some stuff. can you pm it to me? we can try it tommorow. I've got work in the morning...
[G2 and Desire Z Android Development] dcman008:
Not trying to step on anyone toes, but the G2 and the desire z roms are signed from the factory... So in theory we can flash them in their un-modified form, aka not rooted.

If you were to modify them, aka root etc. Then the signature would fail and they would no longer be able to flash. We need to get root so we can change the recovery IMG and set it to accept "test keys" then we can flash any rom that we like.
[G2 and Desire Z Android Development] wrxtc714:
I would like to help as well

I got my g2 yesterday as well and am loving it

I have experience with the G1 and nexus one

but unfortunately I don't have what it takes to find an exploit myself

my computer is set up and ready to go

and im very familiar with adb

pm me to link up so we can get this thing rooted

i'm going to be talking to Amon about a recovery image

come on guys

this is the g2 I really can't believe it isn't as big of a deal for everyone else as it is for me and the rest of you posting here. Pure android. This is what it's all about

can I get a "ROOT ROOT"

Where are all the big dogs at?
[G2 and Desire Z Android Development] Jorsher:
Not everyone has received theirs yet. I don't think it'll take long for root.
[G2 and Desire Z Android Development] ericc191:
I wish I could help more with this, but I honestly have no clue when it comes to advanced development and hacking. :\
[G2 and Desire Z Android Development] nabzilla1990:
Can't wait to put sense on this after its rooted gotta get cyan involved
[G2 and Desire Z Android Development] PsychoI3oy:
Not that I know of Cyanogen ever discovering a rooting method, a good number of #teamdouche members will be at the BBQ this weekend along with plenty other Android hackers. Rumors have flown around about [certain?] people being given G2s there, but the early rumors about the Vision were that it'd be dualcore 1.2ghz, and we know how that turned out.

I wouldn't expect anything from anyone before Tuesday or Wednesday if the hangovers are really bad.
[G2 and Desire Z Android Development] nabzilla1990:
Cool hope cyanogen gets one there
[G2 and Desire Z Android Development] connoisseur:
M

Yeah usb debugging on or off no luck getting it to show. It did install as far as windows is concerned... wait just thought of something..

Untill last night I was using the adb files from sdk1.5 where you would drop the 2 files in /system32. I updated the sdk but did not replace the files.. I'll check it later
[G2 and Desire Z Android Development] tubaking182:
install pdanet drivers, i use pdanet on my slide and that's what most needed to get adb on slide, and my G2 just worked so i would try that
[G2 and Desire Z Android Development] M9x3mos:
I would try the rageagainstcage root method

seems to be longest runing on new frg software for nexus is the only method that still working.

I haven't got my phone yet to try it myself but I would look into that.
[G2 and Desire Z Android Development] Jorsher:
Was mentioned earlier in the thread that it doesn't work.

Right now the big problem is the fact that in recovery mode, ADB shows the device "offline," and in the bootloader it doesn't show the device at all as if USB is completely disabled.
[G2 and Desire Z Android Development] tubaking182:
the problem with the rageagainstthecage method is that it kills adbd and you cannot access the device via adb until you reboot the phone.

has anyone tried that method via terminal on the phone? seems like most of the commands are run through adb shell which is the same as running on the device via a terminal.
[G2 and Desire Z Android Development] gariak:
Then how do you restart adb from the terminal? I can run it, but the rage method exploits a bug in adbd, so you ultimately need to use adb to get the root prompt.
[G2 and Desire Z Android Development] dyndragon:
oh good idea, i'll try this now. Not likely to get success though!
[G2 and Desire Z Android Development] dyndragon:
No dice. Terminal app still shows $ as prompt, and i still lose adb.