[Sources] CWM Based Recovery On-Screen Touch Navigation Controls [Team UtterChaos]

mb-14

Senior Member
Nov 21, 2010
195
364
0
Pune
Hi the workaround, specifically for tablets, is to make the buttons align in vertical manner to the right hand side of device... We have implemented the code in such a way that the developer needs to only edit the default_recovery_ui.c file... Specifically the function which returns the locations of objects to be drawn...

We have already implemented it in recovery for HTC FLYER and kindle fire.... U can check the screenshots by following the links to those threads from my signature below...

We will try n post the sources soon for tablets we worked on...

Sent from my HTC Flyer P510e using XDA App
Thanks dude,was able to align icons in vertical manner, but had to change ui.c to get precise touch input.Your code is easy to understand:).Almost any type of icon layout can be implemented.(im thinkin GBA emulator style).:D
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
Thanks dude,was able to align icons in vertical manner, but had to change ui.c to get precise touch input.Your code is easy to understand:).Almost any type of icon layout can be implemented.(im thinkin GBA emulator style).:D
Yes I know thats why we shared the sources with the community... ;)

Btw all of the credit goes to Napstar for coding it... I only kept bugging him with feature requests and final cleaning up the code to make it more readable and general :p

Sent from my LT15i using XDA App
 
  • Like
Reactions: squadzone

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
current work-in-progress version:


we have released it for testing for Xperia ARC, PLAY users...


there are some minor glitches but we are sorting them out ;)
 

GSLEON3

Retired Senior Moderator
HTC...

Hey guys,

I was working on a TWRP2 recovery for the HTC Holiday (Vivid), was having to many issues with testing & soft bricks, something in the GUI code not playing nice with Rezound/Vivid & newer HTC devices.

I'd like to take another stab using the CWM source. Could you please hook me up with the Flyer Source & binary so I can go through it & see how close it is to HTC phone devices?

I'd really appreciate it.
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
Hey guys,

I was working on a TWRP2 recovery for the HTC Holiday (Vivid), was having to many issues with testing & soft bricks, something in the GUI code not playing nice with Rezound/Vivid & newer HTC devices.

I'd like to take another stab using the CWM source. Could you please hook me up with the Flyer Source & binary so I can go through it & see how close it is to HTC phone devices?

I'd really appreciate it.

yes of course i will post the sources we used for Flyer either as a tar ball or push them to git... they are not completely clean but u will get an idea of what can be done...

as for the binary u can get it from:
http://forum.xda-developers.com/showthread.php?t=1413915

Very cool and excellent work guys!

I would like to port this to Teclast p76ti. Where can I get the sources for tablet?

yesterday i pushed the Kindle Fire recovery sources here:
https://github.com/DooMLoRD/CWM-Recovery-Modded-Kindle-Fire

u can try those directly as those are generic one for most landscape devices... just read thru the ui.c file to update the dimensions if required...
 
  • Like
Reactions: KillerKink

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
Thanks! Forked.

Is this the active development tree that I can pull the latest changes?
its my personal dev. tree... but yes all changes (atleast for that device) will be pushed there...


btw Kindle Fire requires special reboot commands, that why i have created wrappers for reboot commands:
/sbin/reboot_system
/sbin/reboot_recovery
/sbin/reboot_fastboot

just create/modify those files in the ramdisk and use the reboot commands required for ur device...
 

KillerKink

Senior Member
Sep 29, 2010
121
57
0
its my personal dev. tree... but yes all changes (atleast for that device) will be pushed there...


btw Kindle Fire requires special reboot commands, that why i have created wrappers for reboot commands:
/sbin/reboot_system
/sbin/reboot_recovery
/sbin/reboot_fastboot

just create/modify those files in the ramdisk and use the reboot commands required for ur device...
I see. I managed to get it to run with the 4 soft buttons on the right and the touch does get registered. However, the coordinate are out so it only register the down key. Trying to figure out why.

Does this tree only show the 4 white soft buttons? Your video seem to be way more polish.

 
Last edited:

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
I see. I managed to get it to run with the 4 soft buttons on the right and the touch does get registered. However, the coordinate are out so it only register the down key. Trying to figure out why.

Does this tree only show the 4 white soft buttons? Your video seem to be way more polish.
yes the sources currently uploaded are for on-screen navigation buttons only...

we r still actively working on the full touch recovery u see in the video... there are some glitches... we r working on fixing them
 

KillerKink

Senior Member
Sep 29, 2010
121
57
0
yes the sources currently uploaded are for on-screen navigation buttons only...

we r still actively working on the full touch recovery u see in the video... there are some glitches... we r working on fixing them
ok. Let me know if you need alpha tester though. I wouldnt mind. :)

---------- Post added at 04:12 PM ---------- Previous post was at 03:36 PM ----------

ok, have to make the following adjustment for the key to be correctly registered.

int position = key->y*4;

I am using y coordinate instead of x and the mouse resolution is only 1/4 of the screen resolution.
 

KillerKink

Senior Member
Sep 29, 2010
121
57
0
many thanks for your wonderful work. I have managed to get a working version of cwm with touch support. I have put a link back here on my thread.
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
Are you planning on porting this to ics any time soon?
we do plan to port it but the core recovery, even for ICS is the same, there only change being the LUN file for the latest USB gadget, once u update that in device defconfig the USB mounting in recovery will start working for ICS kernels...



many thanks for your wonderful work. I have managed to get a working version of cwm with touch support. I have put a link back here on my thread.
glad to hear that! but which device? tablet/phone?
 

clienthax

Senior Member
Jul 29, 2010
188
52
0
we do plan to port it but the core recovery, even for ICS is the same, there only change being the LUN file for the latest USB gadget, once u update that in device defconfig the USB mounting in recovery will start working for ICS kernels...





glad to hear that! but which device? tablet/phone?
i managed to get most of it done, but the problem is the minui stuff, its changed ALOT from gingerbread to ics
ev_get isnt even a method anymore
 

KillerKink

Senior Member
Sep 29, 2010
121
57
0
we do plan to port it but the core recovery, even for ICS is the same, there only change being the LUN file for the latest USB gadget, once u update that in device defconfig the USB mounting in recovery will start working for ICS kernels...





glad to hear that! but which device? tablet/phone?
Teclast p76ti (7" capacitive tablet). I have only used your two commits to port to the latest cyanogen recovery branch(cwm v5.0.2.8).

currently I only use it for rom update so I have not tested the other feature of cwm but it should work.
 

clienthax

Senior Member
Jul 29, 2010
188
52
0
is there any specific reason u are using the ICS branch?
yes, im using it because i have a rom that builds with the recovery image for my phone, i found the commit to the ics branch that changed all of miniui etc and changed it back to the old way, but it keeps all the bug fixs etc from later versions
Now to test :D
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,196
39,697
263
Pune
Hey guys,

I was working on a TWRP2 recovery for the HTC Holiday (Vivid), was having to many issues with testing & soft bricks, something in the GUI code not playing nice with Rezound/Vivid & newer HTC devices.

I'd like to take another stab using the CWM source. Could you please hook me up with the Flyer Source & binary so I can go through it & see how close it is to HTC phone devices?

I'd really appreciate it.
here u go.... the sources for Flyer are attached...
 

Attachments