yashsingh1/xdaforums huggingface dataset:
[Xperia Play Android Development] RoboticBuddy:
Oh, did not see that, thanks!

And I can confirm that Dead Space does not work with the Touchpad.

R800i. 'Nuff said.
[Xperia Play Android Development] farenheith:
Actually I just put it because you asked for a mirror :P
[Xperia Play Android Development] Lordomn:
Has anyone tried this on Paranoid android yet? I tried cm9 v1.0 but it gave me a bootloop.
[Xperia Play Android Development] farenheith:
Probably Paranoid need his own modded framework :/

If you send me the original paranoid framework I can do the changes for you, but you'll need to test yourself, because I can't flash another ROM right now
[Xperia Play Android Development] farenheith:
I don't know why... the answers goes twice xD
[Xperia Play Android Development] Lordomn:
Dumb question but how do I send it. I can't seem to add attachment here.
[Xperia Play Android Development] farenheith:
Wel... You can get it from the paranoid zip, on the folder system/framework and well.. there's many ways... you can attach on your post, you can upload to some site and give the link. Your choice :P
[Xperia Play Android Development] Lordomn:
Hope this is the right one.

https://www.box.com/shared/x6wv4hc66hr0i68gmqrn
[Xperia Play Android Development] minipot:
What's the success of this fix? How's peoples experience with this fix? Im desperate to move back to jb I just love how fast and fluid it is.
[Xperia Play Android Development] farenheith:
looks right. I'll give you some feedback when I finish

Sorry.

JB not have the best performance with touchpads... there is a lag problem when you use the touchpad that you can feel generally in apps that not use NDK (C++) to read the touchpad events, like FPSe, Lara croft and GTA III. Some games have a good response, but the general best experience you'll have is in the CM9 and CM9 based ROMs. You can try AOKP-ICS. Many people said that this ROMs is very smooth, the smoothest ICS, actually. I'm testing it right now and I'm experiencing very good responsive too.
[Xperia Play Android Development] Lordomn:
He's right. Aokp is great. I'm testing out paranoid android atm its nice too but lots to change to get set up right.
[Xperia Play Android Development] jimmyvau:
I'm using CM9.1 FXP 142 with a swap partition on my SD and v6 supercharger and it is awesome. I've played through a few levels of Max Payne, shadow gun and MC3 and haven't experienced any lag in any of them.
[Xperia Play Android Development] farenheith:
Okay then, the lines I saw on the framework match with the CM9 one. This does not means that the framework is equal because I didn't compare every file. But maybe your problem was storage space. Maybe the ROM is filling almost the entire system partition. Because of that, you'll need to do one of those methods:

METHOD ONE:

copy manually the new framework.jar to /system/framework. First, delete the old one that you'll find there, then, try to paste the new one. Use some file manager with root permissions of your choice to do that, or use ADB.

Now, change the permissions of the file to 644 (rw-r--r--).

Finally, don't forget to edit your build.prop as is instructed on the OP, and to install the touchpadactivator.apk to games like max payne work.

METHOD TWO:

On your computer, edit the flashable zip of the ROM replacing the framework.jar on the /system/framework folder and replacing the build.prop to a edited one (according to the instructions on the OP). Finally, reflash the new zip following the instructions of the paranoid installation.

BE CAREFUL

The best is if you take a look on the system partition space available. You can do that using the following commands on adb:

adb shell (to open a "linux console mode")

df (this command will show info about all partitions and system folders)

Take a look on the available space of the /system. The difference between the edited framework.jar and the old one is almost irrelevant, (more or less 250 kb), but is better if you have at least 1 mb left on the /system. You can have storage problems with space left higher than the framework size (you can have it if you have 8 MB, or even 10 MB), but with this space you'll don't have any problem with the method two.

The new framework.jar is attached, please test it and give me some feedback. If you get some FC, please try to send me a logcat. you don't need to do a factory reset!
[Xperia Play Android Development] Lordomn:
OK I just manually added after removing old one. Already changed build.prop rebooted into recovery fixed permissions & booted fine. Ran mc3 only fc first time. I force stopped in manage apps. Ran again it started perfect. Now I have a new ROM to use.
[Xperia Play Android Development] farenheith:
Thanks a lot for the feedback. It's very common some games fc if the data was downloaded before apply the build.prop. MC3 is fine for you, what is nice, If some game keeping FC. try to clean the game data and download again :)
[Xperia Play Android Development] Lordomn:
No prob. By the way Paranoid Android is so sick. I think that games would run better on this ROM. Only my opinion tho.
[Xperia Play Android Development] farenheith:
I was looking the Mark's thread and found this post:

Well... The king of fighters and galaxy on Fire 2 have gamepad problems... maybe edit the framework-res.apk can be the solution to this! Anyone using the last version of Mark's ROM can confirm if the gamepad on Galaxy on Fire 2 is working?
[Xperia Play Android Development] CosmicDan:
The full source of 4.0.3 and 2.3.3 are given to everyone lol. You don't even have to register to download the source tarballs.
[Xperia Play Android Development] farenheith:
Doesn't matter if it's not a Mark exclusive, it's even better :)

The point is: the framework-res.apk can change the gamepad detection in some games? If yes, then the Galaxy on Fire 2 and The king of fighters maybe can be fixed by changing something on it.

About some affirmations of Mark, I never believe in it :P
[Xperia Play Android Development] CosmicDan:
These games might actually check for a hard-coded resource to verify they are on Play? Wow that's dodgy programming.
[Xperia Play Android Development] farenheith:
It's very common. Many games try to use the setProcessPositionEvent method. If they succeed, then the device is an Xperia Play. I just can't understand how some games can have problems with buttons! It's ridiculous...

edit: two games, actually :P
[Xperia Play Android Development] CosmicDan:
I don't understand. There is no code in framework-res.apk, only resources. Like layouts, values and graphics. If something is looking here for certain string/layout to determine Xperia Play, I just think that's silly.
[Xperia Play Android Development] farenheith:
The dev instructions is updated!

Now, the post have a detailed step by step to mod the framework to the fix V 1.0.

The fix is virtually finished. I think the code we have now will no long be changed. But as some games (The king of fighters and Galaxy on Fire 2) doesn't recognize the gamepad, then probably we'll add other changes to the fix as soon as we find what is missed from the GB framework.
[Xperia Play Android Development] MilkyJoePD:
I did what was said on CM10 137 with CLASSCY kernel. The touchpad activator doesn't do anything. Is this a combination of ROM and kernel problem?

I've used it on a different ROM and it worked.
[Xperia Play Android Development] farenheith:
The touchpad activator doesn't need of kernel features... two things can make the activator doesn't work:

root problems: the app needs root permissions

Implementations of the mod: If the mod is not implemented or there's some problem with the evaluation of the mod.touchpad.activated property (this evaluation is did by the added lines of the dispatchGenericMotionEvent method)
[Xperia Play Android Development] MilkyJoePD:
The app is granted SU rights.

Give me 2 minutes, I'm about to flash the zip again...
[Xperia Play Android Development] farenheith:
But I didn't understand. Did you make the changes on the framework.jar or the ROM author did it?
[Xperia Play Android Development] MilkyJoePD:
I changed my build.prop and flashed the 1.0 zip. That's it.
[Xperia Play Android Development] farenheith:
I see... the CM10 zip was untested... looks like I need to review the source... but... maybe you'll get other problems... the ROM author said that he changed the framework.jar itself (for other reasons)
[Xperia Play Android Development] MilkyJoePD:
No problem. I haven't tested any games yet, just the switcher app.
[Xperia Play Android Development] farenheith:
Well... the only problem I found on the code was the indentation of one line XD. I don't think it's a problem on the smali code, unless it's like COBOL.

But what happens when you use the activator? The label didn't change or when you touch the touchpads the coords doesn't appear on the screen?
[Xperia Play Android Development] MilkyJoePD:
It switches but no coordinates appear.
[Xperia Play Android Development] MilkyJoePD:
What permissions should it have? After flashing I get these:
[Xperia Play Android Development] mehdi.moha:
can you please update the version for Mr.Dan's "Australia miui "
[Xperia Play Android Development] farenheith:
Owner must have RW, group R and others R... But if you had permission problems, then you couldn't event boot the phone as this file is essential to the ROM. Maybe the CM10 framework is breaking the touchpad support on CLASSCY ROM. In this case, the best is to modify the original framework from CLASSCY. I tried to download the ROM and flash on my phone but I get stuck on the kernel logo (Version 0.5.1). Can you send me the original framework.jar from the ROM? I can change it for you and you do another test.

I also want to ask you to do another test: change the behavior to always activated on the app, close it, kill it and open again. Look if the behavior is still ALWAYS ACTIVATED.

CosmicDan put the fix himself on the ROM, and it's already the lastest version
[Xperia Play Android Development] MilkyJoePD:
That's strange because it booted with the odd permissions, but when I manually replaced the framework.jar file and set permissions correctly it wouldn't boot. I'm on CM10 137 by the way, I'm using the CLASSCY kernel because audio after call is fixed.

I'll try the test soon. If you need any files uploaded I'll do that later also.
[Xperia Play Android Development] farenheith:
mmm... Now I get it... you're using CLASSCY kernel and CM10 137 ROM. In this case it's looks like a root problem, really, or something else that prevent the app to change the touchpad behavior. You can do another thing:

add to the build.prop this:

mod.touchpad.activated=1

Then, reboot the phone. The permissions setted by the app is not persistent. When you reboot the phone, it'll always come back to apps side activation or to the value manually inserted on the build.prop.

After reboot the phone, open the touchpad activator and just touch the touchpads to see if the coords will appear.

I'll flash the CM10 myself then as soon I come back home.
[Xperia Play Android Development] thi3um:
what do you want us to test, mark v2 with which fix ? ics mark touchpad fix or touchpad fix in attached file?

OK only icsmark is not a flashable zip so i guess it is this one.
[Xperia Play Android Development] farenheith:
The Mark's fix don't need tests. The only thing I did in this file is insert the always activated option, and I now this one is working.

What you guys can test is every other fix, Of course,if it's compatible with your current ROM.

And guys, I emailed 'The king of fighters' and 'Galaxy on Fire 2' devs, asking how they access the gamepad, so we can fix the custom ROM to work with they games, The first one never replied me. The second one... well, they send me a reply, saying that they not support custom ROMs. Too bad... at least they replied us.

But it's so sad that position from some game devs... We don't need a real fix on the game... the time spent on it will be minimal in their sides... they only need to pass for us a little info and we do the hard part... They will loose nothing with it... will only gain more customers... but well... too sad...
[Xperia Play Android Development] thi3um:
Fxp 142 cm10, apply fix v1.0 mod build prop = stuck to splash 1 after reboot
[Xperia Play Android Development] farenheith:
Please, do a test to me. Check the storage space of the system partition. You can do this via adb, with the following commands:

adb shell

df

Then, tell me the space available on the /system
[Xperia Play Android Development] thi3um:
I have turn back to dan's rom :(

All that I can said is that I was using Fxp 142 kernel, mini gapps linked in your thread, and touchpad fix jb 1.0

I'll try again another day, not home

---------- Post added at 08:54 PM ---------- Previous post was at 08:20 PM ----------

I have turn back to dan's rom :(

All that I can said is that I was using Fxp 142 kernel, mini gapps linked in your thread, and touchpad fix jb 1.0

I'll try again another day, not home
[Xperia Play Android Development] karma123:
i try the CM10 one

i put here the framework.jar
[Xperia Play Android Development] farenheith:
I did the changes on your framework.jar. Can you test it, and give me a feedback, please?

here is the new one

Also, if something goes wrong, can you send me the logcat?
[Xperia Play Android Development] cj360:
Ah so that's for JB aokp then? I'll upload one for ics aokp as well.
[Xperia Play Android Development] farenheith:
You can try the modified CM9 framework as well and, If you get bootloops, then reflash the framework.jar of the AOKP and send it to me and I do the changes for you

Edit: Oh, you'll upload? I read it wrong xD. But maybe the CM9 one already work
[Xperia Play Android Development] NeWCuLTKiNG:
The cm10 framework.jar gave me a bootloop on cm10 fxp138 anyone get it to boot for them
[Xperia Play Android Development] farenheith:
Actually the CM10 one was untested until now. Can you send me a logcat to help me fix it?

Edit: Actually I found an issue, but I'm unable to test this version right now, so I don't know if it's ok...

I already update the fixed, one you can download it here, but I think it's better if you send me the logcat to make sure
[Xperia Play Android Development] NeWCuLTKiNG:
I'm not near a PC right now
[Xperia Play Android Development] farenheith:
Well... I read on the CM10 thread a guy saying that he got the camera working with the app 'Camera ICS'... So, I'll try it later. I'm not feeling well for upload a untested version anyway
[Xperia Play Android Development] karma123:
Again Bootloop i'm noob so if u can guide me how to do a logcat i can help
[Xperia Play Android Development] NeWCuLTKiNG:
I tried the new one boot loop again thanks I'll check back later if someone can send log
[Xperia Play Android Development] farenheith:
When you fone start to boot use the adb, with this command:

adb shell logcat > /data/logcat.txt

If you get some error message, wait a few seconds and try again. It will be connected if it give no return.

Wait a while, like 20 seconds, I think is enough, and press ctrl+c

Finally, use the command adb pull /data/logcat.txt

I read in many places you can do the same just with the command adb logcat > logcat.txt. In this case you don't need to pull the file after, because it's already writed on the PC.

If you are on Windows, execute the cmd in administrator mode, just to be sure you'll have permissions to write on the folder

EDIT: But dude, I'll test it myself. I didn't want to flash a other ROM right now, but I didn't like of upload this untested version. I hope it would works easily, but as it don't, I'll test it and upload again.
[Xperia Play Android Development] NeWCuLTKiNG:
Thanks so much. I believe you will find cm10 better and won't want to go back
[Xperia Play Android Development] farenheith:
hahahah I already tested the CM10 sometimes and I do think it's better. But I need the camera, unfortunatelly, and I couln't get it working on the times I tried
[Xperia Play Android Development] karma123:
Here is the logcat
[Xperia Play Android Development] farenheith:
mmmm.... is the same I'm getting here :/. The funny thing is that the logcat does not have nothing about the framework.jar... maybe the jb test some signature, or maybe is something about the permissions... I'll do some tests and if someone knows what could be please tell me :P
[Xperia Play Android Development] santiis2010:
How this work?

Is the same that my fix for touchpads?

Because my fix is included on CM9.1 nightly and works fine in many emulators and the gamepad works great in all games (Real Footbal 2012, PES 2012, GTA 3, NOVA 3, Asphalt 6 and 7, Virtua Tennis) on CM9.1 and CM10

Im a noob :p and i try to write fine in english and im trying to understand this things of touchpads D:
[Xperia Play Android Development] farenheith:
Actually no.

I did a mention about your fix on the OP. You fix edit the build.prop, what is good. Some games need the right name for the device to activate the touchpad support. But, still some games will not work just with that. You can try the Lara Croft and the guardian of light, that is from where I started.

But I have to say... You have opened three threads about the same thing. The edition of the build.prop was knew before. If you take a look into the AOKP thread, you'll see that wedgess did some flashable zip that do the same thing, a sometime ago. Actually, with this wedgess fix I learned about the build.prop edition.

You can read the OP to understand what I did better, there I already answer your question.
[Xperia Play Android Development] santiis2010:
yes i make 3 threads haha sorry :P

Well thanks i will read latter :laugh:
[Xperia Play Android Development] CosmicDan:
The build.prop changes do not fix touchpads for all games. It fixes the O/back button issue in all games though.

When markphyton released his ICS ROM it had full touchpad support, he also had a guide which already involved the build.prop changes that you and many others had mentioned months before. It also involved copying some random files from GB to the ROM. I tried this on CM9 but it had no effect to fix touchpads, that was when I learned that it's a Sony framework issue where many games seem to be doing some custom class calling/checking to verify that it's running on a Sony framework, probably to protect itself from activating on other "touchpad-like" devices that are not the Xperia Play.

With this information, farenheith managed to get this framework patch working in a matter of a few days. Brilliant work really, he did what I tried for weeks and never could. The Lara Croft game I think is what helped a lot here, because it has good log-output behavior. Whereas I was testing with other games that didn't have verbose log output.

Anywho, has anyone found a game that this fix does not work on yet? I am yet to test Dungeon Defenders and Asphalt 6 (the only two paid games I have that use touchpad that didn't work before).
[Xperia Play Android Development] gopin:
Do you think you could mod Stock Neo L .479 fw?

I can send you the framework.jar if u want. (the rom is odexed though)

Thanks!
[Xperia Play Android Development] clivejefferies:
Did you guys manage to get onlive working?

---------- Post added at 08:48 PM ---------- Previous post was at 08:45 PM ----------

Could you also do a fix for the jj hybrid ics by sechko as it is the best ics Rom?
[Xperia Play Android Development] farenheith:
The zip is not replacing the framework.jar, I don't know why... I did not flashed the gapps.. I replaced the file using Es file explorer and did this commands to set the permissions via adb:

chmod 644 /system/framework/framework.jar
chown root.root /system/framework/framework.jar

With this, the fix worked.

So... I'll update the instructions to JB... maybe is something wrong on the script... I'll take a look on this too...
[Xperia Play Android Development] farenheith:
I didn't understood your question about the online working.

The fix to the 'best ICS ROM' jj hybrid ICS I'll not do it... My time is short now because I need to finish some work and I think I did enough versions of the fix. As it is very stable and tested, I think the ROMs developer should consider embed the fix on his ROMs, like CosmicDan did.

Also, the instructions is updated now, so everyone with a little time available can implement this fix on the framework to other ROMs.

Maybe in another moment I can do some other versions, but I'll not promise nothing and I really want to concentrate the work on the CM9/CM10 framework.
[Xperia Play Android Development] igor_anta:
He was asking about Onlive, the stream gaming service. Just popping up to clear the dilemma :)

Good job with the fix, congrats.
[Xperia Play Android Development] farenheith:
ahhahahahaha....

I'm a dumb*ss... xD

I don't know this service, really... But I think this is not the place for the question :P
[Xperia Play Android Development] clivejefferies:
Onlive worked with touchpad on gb, but not on ics.
[Xperia Play Android Development] farenheith:
I see... Sorry I did not understand the question at all xD...

I thought you mean that the onlive itself did not work on ICS...

Well, maybe the touchpad will work with the fix... maybe you need to set to the always activated behavior to it.

This service is not available on my country, so I can't test it and I really don't knew nothing about it until now :/

But... you play the games over stream, right? So... the touchpad implementation depends of the game, isn't that right? Or the onlive do some kind of interface to replicate commands that the game need?

Edit:

I did some research... the OnLive client implement the Xperia play touchpads using NDK. So, probably, the changes on the framework.jar will not affect it. But, the changes on the build.prop maybe works.

If not... well, maybe it'll work on the MarkPhyton ROM, and will be clear that we need an mod on some system .so

I really want to test it myself, but I'm unable to it... the app is not available on my country, so, I need to know the answer for that questions with the help of someone.
[Xperia Play Android Development] ravid1323:
quastion

someone know which version apk of backstab will work on ics?
[Xperia Play Android Development] thi3um:
it is not the right thread for that kind of question.
[Xperia Play Android Development] farenheith:
The only thing I can tell is that I download the backstab from the play store, tested the touchpads and works.
[Xperia Play Android Development] farenheith:
I updated the instructions to apply the fix on the JB.

Please, interested guys take a look... for some reason the fix isn't replacing the framework.jar. I thought that was for storage problems, but I tested myself and it's not looks like... I'll try to figure out what is wrong as soon as I can. For now, who want to get the fix working on JB must do the instructions described.
[Xperia Play Android Development] minipot:
I know this has probably been asked before but how does this work with gameloft games shadowgun and riptide gp?
[Xperia Play Android Development] thi3um:
voila
[Xperia Play Android Development] farenheith:
Guys...

Star Batallion, a game that comes with the Stock GB, is not recognizing the touchpads on CM9, even with the fix.

I did analyze the game files I found out that it's using NDK to access the touchpad. So, there to possibilities:

* The game is testing an unmet condition

* There's some NDK method to acess the touchpads not present on CM9

This is really hard to figure out :/... I'm doing binary searchs on the .so file of the game to try to discover. If someone have some idea tell us. Also, if someone can test t on Markphyton ROM would be great
[Xperia Play Android Development] solomon4400:
Sorry for offtopicnessness lol but yo doesn't your wife get a little bit restless when you doing all this?
[Xperia Play Android Development] farenheith:
lol,She still my fianceé, and I live in Brazil, she in Argentina :P.

When we see each other I spent I my free time with her, this is it... She'll come here on december so... until there, I do some research like that :P
[Xperia Play Android Development] cotda:
The fix for ICS AOKP causes a boot loop - Sehko AOKP Hybrid rom.

Keep up the good work :D