[SOLVED/patch included] vncserver for android: need help patching kernel - Hero, G2 Touch Android Development

edit: problem solved, patch attached. i also made an update.zip with the new kernel, see here.
there is a vncserver for android out there. so far it works fine, but there is no keyboard or mouse control for the host (android). this being a kernel limitation it can be patched. unluckily for us the patch is available only for the magic kernel version 2.6.23, not for the hero kernel version 2.6.27. i would kindly ask all the developers out there to have a look at the links below, and at least comment about the possibility to "port" (don't know the right expression) the patch to the heros kernel, or teknologists version. i can do the compiling and testing myself, just need someone to have a look at the patch, this is way beyond my skills for now. just compiled the teknologist kernel successfully, as my first compiled kernel ever!
the vncserver project
the patch
htc kernel source
teknologist kerne git
thank you in advance.

i think i managed to apply the patch manually, once i looked into it it turned out that there where only a few lines in 3 files, plus one completely new file, so it seemed pretty easy. yet to be tested, but first i figure out why the kernel won't boot at all, not even with teks sources...
so stay tuned for the kkernel, with full vnc support!

kendong2 said:
i think i managed to apply the patch manually, once i looked into it it turned out that there where only a few lines in 3 files, plus one completely new file, so it seemed pretty easy. yet to be tested, but first i figure out why the kernel won't boot at all, not even with teks sources...
so stay tuned for the kkernel, with full vnc support!
Click to expand...
Click to collapse
I thought Tek's kernel was based on the GSM hero kernel, not the CDMA one, which might be one of the reasons.

thecodemonk said:
I thought Tek's kernel was based on the GSM hero kernel, not the CDMA one, which might be one of the reasons.
Click to expand...
Click to collapse
uhm, i have only the gsm hero, no cdma in germay...
anyway, i forgot the --base 0x19200000 in my script, so the boot.img was faulty. it is working now, fbvncserver recieves keyboard inputs, but mouse does not do anything
maybe i can figure that out somehow, already posted in google code of the project.
i will release an update.zip this afternoon, containing the kernel and fbvncserver for easy installation, but now i gotta get some sleep

kendong2 said:
i will release an update.zip this afternoon, containing the kernel and fbvncserver for easy installation, but now i gotta get some sleep
Click to expand...
Click to collapse
who needs sleep anyway here's the kkernel-1.0
could one of the mods please set a [SOLVED] in front of the titel? if i am supposed to do this myself please tip me of how, i don't get it...

Great work. Will you share the Patch ?
kendong2 said:
could one of the mods please set a [SOLVED] in front of the titel? if i am supposed to do this myself please tip me of how, i don't get it...
Click to expand...
Click to collapse
You can do it editing your first post

i will, was going to do it tonight anyway, please be patient for a few more hours...

Lox_Dev said:
Great work. Will you share the Patch ?
You can do it editing your first post
Click to expand...
Click to collapse
patch is there. thx, i think i forgot to click on "go advanced" when i tried...

kendong2 said:
patch is there. thx, i think i forgot to click on "go advanced" when i tried...
Click to expand...
Click to collapse
Great thks a lot for the patch. I'll apply it to next community kernel release.

There's a fork of android-vnc that works without patching, android-vnc-server (both kbde and touch events).

rejser said:
There's a fork of android-vnc that works without patching, android-vnc-server (both kbde and touch events).
Click to expand...
Click to collapse
lol although it makes my work on the patch completely obsolete it sounds really good. i will look into that this evening, thanks for the hint.
nevertheless, it was interesting to find out how kernel-compiling and cross-compiling works, i actually had fun doing it

too bad, doesn't work for me
console output shows that keys are received, but no action

rejser said:
There's a fork of android-vnc that works without patching, android-vnc-server (both kbde and touch events).
Click to expand...
Click to collapse
thx for the hint, doesn't work for me either though... gonna try it with another kernel, but not before next week, having the gf over the weekend... no kernel baking then

Related

Team-Villain ROM Kernel Updates (optional)

For anyone who doesn't look at the VillainROM forums often, I thought I'd post the updated kernels I have made for some of the ROMs.
More to follow, and this is OPTIONAL, and at your own risk. It should fix green camera issue.
http://www.villainrom.co.uk/viewtopic.php?f=24&t=662
(I post a link off-site to save me updating too many places and missing one. Just click the links to download - you don't need to be registered)
Flash these like any update.zip
P
This is behnaam's Ben#8 kernel (sorry, I forgot, as I typed this up as i was leaving the house)
Can I use this kernel with VanillaEclair? Or only for Villain stuff only?
villainrom 5.5.0 - no green on camera CONFIRMED - working for me.
thanks
Dude, you made my day. A camera fix exactly on the day of my first outdoor dance festival.
I was on Chronos but moving back to villain as we speak.
Thanks a lot m8
are those OC enabled?
anon2122 said:
For anyone who doesn't look at the VillainROM forums often, I thought I'd post the updated kernels I have made for some of the ROMs.
More to follow, and this is OPTIONAL, and at your own risk. It should fix green camera issue.
http://www.villainrom.co.uk/viewtopic.php?f=24&t=662
(I post a link off-site to save me updating too many places and missing one. Just click the links to download - you don't need to be registered)
Flash these like any update.zip
P
Click to expand...
Click to collapse
Would be nice if u told where the kernel came from
Just tried the Villain 5.5 version on BeHero+1.2........failed.
reboot all the time...
so sad....
behnaam said:
Would be nice if u told where the kernel came from
Click to expand...
Click to collapse
Yeah. 'BenKernel8-signed.zip' said enough..
So, we allready have a thread for this new kernel.
behnaam said:
Would be nice if u told where the kernel came from
Click to expand...
Click to collapse
Corrected post. Sorry mate I did it as i was literally leaving the house
rankjie said:
Just tried the Villain 5.5 version on BeHero+1.2........failed.
reboot all the time...
so sad....
Click to expand...
Click to collapse
These are made up ONLY for Villain folks. Sorry It isn't compatible with other ROMs
thanks, confirm remove green in camera, and phone response is more fast
Sent from my HTC Hero using the XDA mobile application powered by Tapatalk
Is there a new kernel for Vanillain3.0 (CyanogenMod5)
Cheers
Demologic said:
Is there a new kernel for Vanillain3.0 (CyanogenMod5)
Cheers
Click to expand...
Click to collapse
Yeah. I am just finishing packaging it just now folks. Bear with me. I'll also do one for Slide
rrhg said:
thanks, confirm remove green in camera, and phone response is more fast
Sent from my HTC Hero using the XDA mobile application powered by Tapatalk
Click to expand...
Click to collapse
Don't thank me - thank behnaam. I just repackaged his kernel and module. He is the one who fixed this. I just 'borrowed' it
Thanks . good work
anon2122 said:
Yeah. I am just finishing packaging it just now folks. Bear with me. I'll also do one for Slide
Click to expand...
Click to collapse
Sorry to quote oneself, but Vanillain is now up.
See http://www.villainrom.co.uk/viewtopic.php?f=24&t=662
I will do SlideVillain now
Anyone managed to get the OC Patch up and running on it?i know benhaam was waiting for toastcfh to pass it over?
Added SlideVillain 1.1.0 kernel to the original link (http://www.villainrom.co.uk/viewtopic.php?f=24&t=662)
can seem to get past the lock screen with the patch
The touch screen does not seem to function
Should i try a wipe
Any ideas
Demologic said:
can seem to get past the lock screen with the patch
The touch screen does not seem to function
Should i try a wipe
Any ideas
Click to expand...
Click to collapse
Sorry, which ROM are you using? Try pressing menu to unlock?
EDIT: These kernels make games playable, as behnaam has fixed the performance issue when your finger touches the screen tested on benchmark, and mike has tried some games

Goldfish 2.6.29 Kernel Sources.

Hi,
As promised some time ago: http://www.multiupload.com/0ELOUB4X6A
The 2.6.29 sources I have been using to compile the kernel.
Happy downloading.
Thanks a lot for this.
No worries. Hopefully the GPL police will stop annoying me
thanks, very nice
Thanks for share.
btw, what patch did you done in this src?
felata: diff it with vanilla sources...
feeyo: as i'm one of called by You as "gpl cops" - i'll try to stop annoying You
thanks for yours contribution!
essential files are missing....this *might be* goldfish sources, but it definitely wasnt patched for the hero..
?
What's the point in that file?
Just pull a head from http://android.git.kernel.org/?p=kernel/msm.git;a=shortlog;h=refs/heads/android-msm-2.6.32
adwinp said:
?
What's the point in that file?
Just pull a head from http://android.git.kernel.org/?p=kernel/msm.git;a=shortlog;h=refs/heads/android-msm-2.6.32
Click to expand...
Click to collapse
WHAT?!? does that say .32 kernel? What is this?
bonesy said:
WHAT?!? does that say .32 kernel? What is this?
Click to expand...
Click to collapse
AOSP mainstream kernel, however we cant use it without heavy patching, because HTC phones need proprietary libraries that only HTC has.
blackplatypus said:
AOSP mainstream kernel, however we cant use it without heavy patching, because HTC phones need proprietary libraries that only HTC has.
Click to expand...
Click to collapse
Those drivers you can pull out of your phone easily.
Feeyo said:
Those drivers you can pull out of your phone easily.
Click to expand...
Click to collapse
Nope.
He was referring to the board-hero etc.

[DEV] Froyo Compile for HTC

Hi guys,
I have fully compiled the Froyo Sources based on HTC Hero proprietary drivers.
Please note this is for the devs only and still needs some work to get working correctly.
I am sure any of the more experienced devs can do something with this
Download: http://www.multiupload.com/JPHT98SRD5
oh good news, what things are working(wifi, bleutooth...)?
wow, U R da man
is it only 36MB?
liljom said:
wow, U R da man
is it only 36MB?
Click to expand...
Click to collapse
Well, I suppose it is so light because it is just the /system partition and the boot.img, with no update-script and /data. Also, it doesn't have HTC apps, so...
Arasthel said:
Well, I suppose it is so light because it is just the /system partition and the boot.img, with no update-script and /data. Also, it doesn't have HTC apps, so...
Click to expand...
Click to collapse
and it is not even signed
I can not flash it
could somebody sign it?
liljom said:
and it is not even signed
I can not flash it
could somebody sign it?
Click to expand...
Click to collapse
Dude what dont you understand from my text in first post? DEV ONLY.
It needs some work. It will not boot up anyhow.
Feeyo said:
Hi guys,
I have fully compiled the Froyo Sources based on HTC Hero proprietary drivers.
Please note this is for the devs only and still needs some work to get working correctly.
I am sure any of the more experienced devs can do something with this
Download: http://www.multiupload.com/JPHT98SRD5
Click to expand...
Click to collapse
not working correctly doesn't mean that it doesn't work at all.
I understood, that it is for devs.
I just wanted to try it, even without working mic and so on. It is fun : )
But thank you very much for your work. I love your work. I use Cronos 1.7.1 right now, and it is an excellent work ; )
Feeyo said:
Dude what dont you understand from my text in first post? DEV ONLY.
It needs some work. It will not boot up anyhow.
Click to expand...
Click to collapse
In medicine that's called an addiction. In this case it's Flashophillia.
liljom said:
not working correctly doesn't mean that it doesn't work at all.
I understood, that it is for devs.
I just wanted to try it, even without working mic and so on. It is fun : )
But thank you very much for your work. I love your work. I use Cronos 1.7.1 right now, and it is an excellent work ; )
Click to expand...
Click to collapse
Well it does not boot up fully as it has some framework *.jar deps missing. I am sure some of the devs out here can fix that easily. and get it boot up correctly.
slovoflud said:
In medicine that's called an addiction. In this case it's Flashophillia.
Click to expand...
Click to collapse
lol
what kernel are you using?
Feeyo said:
Well it does not boot up fully as it has some framework *.jar deps missing. I am sure some of the devs out here can fix that easily. and get it boot up correctly.
Click to expand...
Click to collapse
great
can't wait
Great work Feeyo!
Froyo on Hero would be so awesome!
Are you not attempting it then Feeyo?
bonesy said:
Are you not attempting it then Feeyo?
Click to expand...
Click to collapse
Yes I am. But the more devs we have the faster/better it will be.
Sweet Thanks Feeyo, I will see what I can make of this
... freeyo <3 and thanks for all your work :-D

[28.04.2012][DEV] Kernel source codes [RELEASED] Virtuous-S4A-2

primou-ics-3.0.16-e45af48.tar.gz
primou-ics-3.0.16-e361aa7.tar.gz
http://www.htcdev.com/devcenter/downloads
my github: HERE
kernel for test: HERE
V2:
- patched to 3.0.30
great news for the HTC One V-community?
mrmad23 said:
great news for the HTC One V-community...
Click to expand...
Click to collapse
Ya... only when we have developer for One V but I don't see any yet. We don't even have a custom recovery
well, it could be a starting point...
I can compile some good kernels,
but I will need testers since I do not have the device..
Whatsay??
Adi_Pat said:
I can compile some good kernels,
but I will need testers since I do not have the device..
Whatsay??
Click to expand...
Click to collapse
Please do... I will test it for sure.
ckpv5 said:
Please do... I will test it for sure.
Click to expand...
Click to collapse
Me too! Thanks.
Sent from my HTC One V using xda premium
Ok, I am downloading the sources now.. Will update you'll ..
I won't make a new thread till the kernel boots, I am mainly a Samsung dev so i am a bit new to HTC.. Anyways ..
Ill give you'll test kernels !
EDIT: The sources are downloaded , Exploring a few things, if time permits I will post a test build tonight or tomorrow early morning!
Cheers !
Someone please send me the kernel in stock ROM
One more thing, pull out a working config for me.
adb pull proc/config.gz
Adi_Pat said:
Someone please send me the kernel in stock ROM
One more thing, pull out a working config for me.
adb pull proc/config.gz
Click to expand...
Click to collapse
I'll upload in a short while
Here you go....
mdeejay said:
primou-ics-3.0.16-e45af48.tar.gz
primou-ics-3.0.16-e361aa7.tar.gz
http://www.htcdev.com/devcenter/downloads
Click to expand...
Click to collapse
will you make ics with sense for dhd fully functional with this kernel source????
i was waiting for fully function android 4.0 with sense...... but there was no ROM as of now.....
now only you are the ray of hope
ckpv5 said:
I'll upload in a short while
Here you go....
Click to expand...
Click to collapse
Ah! Thanks, now give me some time, I'll come up with something
Having some issue extracting initramfs from zImage, I am getting an empty directory.
Adi_Pat said:
Ah! Thanks, now give me some time, I'll come up with something
Click to expand...
Click to collapse
Take your time... will check this thread tomorrow...
Adi_Pat said:
Ah! Thanks, now give me some time, I'll come up with something
Having some issue extracting initramfs from zImage, I am getting an empty directory.
Click to expand...
Click to collapse
hey adi_pat,what say abt a little bit of company from me,eh?
Bring it on! One of my best fellow devs!
I got compiled zImage and modules, but I am not getting this initramfs thing.. Its usually built into zImage..
EDIT: Someone please test the compiled zImage and let me know
PS: Its a plain compiled kernel, let me know if it is booting.
Hello, i saw that you guys got source and thought that maybe an article on the XDA Portal would help get you guys some more dev support.
Link!
http://www.xda-developers.com/android/htc-one-v-ruu-and-kernel-source-released/
I wrote about the RUU as well Hope it helps!
can someone start cm9 port ?
To build CM9 you need to have a device tree which takes a while
Sent from my Desire S
n1kolaa said:
can someone start cm9 port ?
Click to expand...
Click to collapse
Can someone please test the kernel ? Without prompt user feedback how will we continue development ?
Testers please keep your stock kernel handy as a backup.
Adi_Pat said:
Can someone please test the kernel ? Without prompt user feedback how will we continue development ?
Testers please keep your stock kernel handy as a backup.
Click to expand...
Click to collapse
Downloaded the test kernel but I can only test and give feedback in next 9 hrs when I'm at home
Meantime, any info what we can expect from the test kernel ? Or you want to know if it boots ok ?
ckpv5 said:
Downloaded the test kernel but I can only test and give feedback in next 9 hrs when I'm at home
Meantime, any info what we can expect from the test kernel ? Or you want to know if it boots ok ?
Click to expand...
Click to collapse
Yeah I just need to know if it boots..
I'll go slow..

Source release for Huawei Nova/Nova PLUS

Huawei has finally uploaded the opens source code for all of our devices (the 3 hardware versions).
I have reuploaded it to Google Drive for easier download.
Grab them here : https://goo.gl/DiAj78
Wooooowwww, if that's the sources all is getting great now. Xelfmade, make or phone great again ?
So anybody have the original download link?
Great news! I Assume custom roms etc will become available now once people have built them?
You can get the original downlaods from here : http://consumer.huawei.com/en/opens...Type=openSourceSoftware&pageSize=10&curPage=1
Just search Nova. The download speed was a tad slow.
Huh, i was asking them several times over the past days about the sources. Pleasent coincidence.
Thanks for posting this. Let the fun part begin
Grarak said:
Thanks for posting this. Let the fun part begin
Click to expand...
Click to collapse
Can you PM me? I would like to work with you..
I would like to help, too!
Someone already working on changing of original rom? I'm thinking about trying to modify it for myself.
merlin21 said:
Someone already working on changing of original rom? I'm thinking about trying to modify it for myself.
Click to expand...
Click to collapse
Look this by @Grarak
https://twitter.com/Grarak/status/828231440441700354
pasmadferit said:
Look this by @Grarak
https://twitter.com/Grarak/status/828231440441700354
Click to expand...
Click to collapse
Oh wow Nice! My variant is the CAN-L01 one.
Probably it will work for any variant, even chinese ones.
But my problem is not the rom itself, is the kernel. I'm wanting to learn to mod and compile kernel just for this, as Nova kernel is awful to tweak.
Vinnom said:
Probably it will work for any variant, even chinese ones.
But my problem is not the rom itself, is the kernel. I'm wanting to learn to mod and compile kernel just for this, as Nova kernel is awful to tweak.
Click to expand...
Click to collapse
I know that it will probably work for all variants it's just cool to see my one used as a base for a custom rom.
Do you guys have any guides how to apply these stock roms to unrooted phone? i want to get rid of the carrier crap that's why thinking to apply the stock rom. Thanks.

Categories

Resources