Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Dexter_nlb
Old
#1  
Dexter_nlb's Avatar
Senior Member - OP
Thanks Meter 4361
Posts: 5,306
Join Date: Feb 2009

 
DONATE TO ME
Arrow [FIX] Tnt mod based orientation fix for games

Weeds2000 fixed the orientation on our Folio100 to work with games like Asphalt5 and now its possible to play, although graphics are still kinda messed up. but other games like the 3d tilt works nearly perfect now too.

you might find it useful, and VEGAn mod might be able to include this as my FolioTntMod is based of the TNT framework...

Find the download patch i made for our folio in this thread.
it also include a full 360 rotation fix, if you need it :)

As we all share the same Tegra2 platform and can nearly swap experience here, im posting this to share the fixes weeds2000 made for us...

Hope you find it useful..

Note:
The patch i made might actually work fine as update.zip on your tablet as well, or might need minor adjust to install, but let g tablet modders fix this if needed.
at least now you know its available.
Remember to press THANKS, if you liked my help or builds.
Hardware: Galaxy Note II * LG Optimus 4X * Elocity A7 * HTC Flyer/Wifi * ASUS TF201/Prime
LG Optimus 4X HD - 4X ClockWorkMod - O4X CustoNexus - O4X Sense4
HTC Flyer - ICSSense OneXXL -Flyer JellyBean * Tattoo - TatFroyoSense * Elocity A7 - ElocityMod
The Following User Says Thank You to Dexter_nlb For This Useful Post: [ Click to Expand ]
 
roebeet
Old
(Last edited by roebeet; 29th December 2010 at 03:53 PM.)
#2  
roebeet's Avatar
Senior Member
Thanks Meter 1402
Posts: 3,472
Join Date: Jul 2010
Location: Pennsylvania
Thank you! One question - do you know what file(s) were altered for the 360 rotation fix? Was it a lib file, for example?

EDIT: Also, to any other modders looking at this, the system.img is a ext2 filesystem image, NOT a yaffs2 image.
Android devices: ASUS Transformer, Notion Ink Adam, Cowon D3
 
rushless
Old
#3  
Senior Member
Thanks Meter 70
Posts: 1,885
Join Date: Jan 2008
Quote:
Originally Posted by roebeet View Post
Thank you! One question - do you know what file(s) were altered for the 360 rotation fix? Was it a lib file, for example?

EDIT: Also, to any other modders looking at this, the system.img is a ext2 filesystem image, NOT a yaffs2 image.
Roeby wan Kanobi, is this something that could work and be added to TnT Lite? My Clockwork back up just completed
 
roebeet
Old
#4  
roebeet's Avatar
Senior Member
Thanks Meter 1402
Posts: 3,472
Join Date: Jul 2010
Location: Pennsylvania
Yes, I can package it as a supplement - I just need to know what to package.

Getting my dev unit ready with TnT Lite 3.1.2. There's also a new music player apk I need to test out.
Android devices: ASUS Transformer, Notion Ink Adam, Cowon D3
 
rushless
Old
(Last edited by rushless; 29th December 2010 at 04:23 PM.)
#5  
Senior Member
Thanks Meter 70
Posts: 1,885
Join Date: Jan 2008
Quote:
Originally Posted by roebeet View Post
Yes, I can package it as a supplement - I just need to know what to package.

Getting my dev unit ready with TnT Lite 3.1.2. There's also a new music player apk I need to test out.
This could be another watershed update Also- with the accelerometer corrected, folks will be getting exercise by holding up the G while playing games

added:

Perhaps the one extra update that would be nice is a DSP manager so dB level or gain increases can be made. Modders released a DSP manager on the Incredible that allows increases to 3.5mm and speaker output. Hardware based EQ too.

Perhaps being too picky, but louder speakers would be nice.
 
stanglx
Old
#6  
Senior Member
Thanks Meter 26
Posts: 225
Join Date: Dec 2010
Did you see.. they provided the SOURCE!!!!! This is what we need!

Quote:
Originally Posted by roebeet View Post
Yes, I can package it as a supplement - I just need to know what to package.

Getting my dev unit ready with TnT Lite 3.1.2. There's also a new music player apk I need to test out.
 
rothnic
Old
#7  
rothnic's Avatar
Senior Member
Thanks Meter 277
Posts: 810
Join Date: Aug 2010
What does the patch change? Would is break things when the application developer fixes the orientation code in their game.

We saw this problem fixed in the application in the Gallery 3D application by google, not in framework. http://android-developers.blogspot.c...s-another.html
 
Dexter_nlb
Old
#8  
Dexter_nlb's Avatar
Senior Member - OP
Thanks Meter 4361
Posts: 5,306
Join Date: Feb 2009

 
DONATE TO ME
Quote:
Originally Posted by roebeet View Post
Yes, I can package it as a supplement - I just need to know what to package.
okay here are some details.
the framework.jar modified comes from this file: update-smb_a1002-3338-user.zip

the library should be generic, but is required for the gsensor/rotation/orientation fix as part of the new framework.jar changes.

the 2 primary folders in the framework.jar changed are /android/hardware /android/view

you should be able to easily spot the differences in filesizes..

do note: there is another change android\os\Environment.smali as i modified it to work with /mnt/sdcard and /mnt/sdcard/sdcard-disk0 and /mnt/usbdisk-disk0 for compatibility with folio mount functionality.
here is the "vold" also different but works fine with the tap'n'tap framework.
remember that /etc/vold.fstab needs changed to support the more new mount devices if you wish to use that one too.

360 rotation fix is in android\view\WindowOrientationListener$SensorEvent ListenerImpl.smali
orientation fix is
android\hardware\SensorManager*.smali

but again, the framework.jar is Tap'n'Tap based, so works directly on top of r3338 edition.. and i made a patch in my section with just framework + lib files included.
Remember to press THANKS, if you liked my help or builds.
Hardware: Galaxy Note II * LG Optimus 4X * Elocity A7 * HTC Flyer/Wifi * ASUS TF201/Prime
LG Optimus 4X HD - 4X ClockWorkMod - O4X CustoNexus - O4X Sense4
HTC Flyer - ICSSense OneXXL -Flyer JellyBean * Tattoo - TatFroyoSense * Elocity A7 - ElocityMod
 
Dexter_nlb
Old
#9  
Dexter_nlb's Avatar
Senior Member - OP
Thanks Meter 4361
Posts: 5,306
Join Date: Feb 2009

 
DONATE TO ME
Quote:
Originally Posted by rothnic View Post
We saw this problem fixed in the application in the Gallery 3D application by google, not in framework. http://android-developers.blogspot.c...s-another.html
No, as far as i understand, weeds2000 only made the hardware swap sensor reading, so now it acts like a portrait mobile phone, where our Tegra2 has the chip rotated once 90degree.
Remember to press THANKS, if you liked my help or builds.
Hardware: Galaxy Note II * LG Optimus 4X * Elocity A7 * HTC Flyer/Wifi * ASUS TF201/Prime
LG Optimus 4X HD - 4X ClockWorkMod - O4X CustoNexus - O4X Sense4
HTC Flyer - ICSSense OneXXL -Flyer JellyBean * Tattoo - TatFroyoSense * Elocity A7 - ElocityMod
 
rothnic
Old
#10  
rothnic's Avatar
Senior Member
Thanks Meter 277
Posts: 810
Join Date: Aug 2010
Quote:
Originally Posted by Dexter_nlb View Post
No, as far as i understand, weeds2000 only made the hardware swap sensor reading, so now it acts like a portrait mobile phone, where our Tegra2 has the chip rotated once 90degree.
Hmm, so it does a 90 degree rotation. And the device is still a default landscape device. We definitely need to make sure there are no negative effects on games that utilize the acceleromether and worked fine before.

I would assume that the android developers would recommend making this change to framework, instead of handling it in applications if there weren't implications.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more