Author Topic: how to use adb as root user with the XDPlus ?  (Read 305 times)

romain337 (OP)

  • *
  • Posts: 30
how to use adb as root user with the XDPlus ?
« on: May 03, 2018, 11:14:52 am »
Hello,

I have decompiled system.img from the stock rom 1.10 to see what is inside in the hope to fix some controller behavior. I decompiled Gamepad.apk to see how it work too.

Gamepad.apk is writing to a file:
/sys/devices/soc/soc:[email protected]/

if you "cat" /sys/devices/soc/soc:[email protected]/mode
the value tell you what controller mode is in use (0=PS3, 1=XBOX)

But this doesn't help me do remap the keys, it is used just to swap L/R and controller mode I think.

So I digged into the filesystem and found
/usr/keylayout/Vendor_045e_Product_028e.kl
/usr/keylayout/Vendor_054c_Product_0268.kl

Those file seem to map controllers button, and I want to tweak those file to see what happen, but I need to be root I think because the filesystem is read only and don't allow me to push any files here.

There is a way to use adb as root with the XDPlus ? I really want to check if I can get rid of the bad joystick behavior (like constantly looking up in minecraft when in XBOX mode, or allow minecraft to use the DPad in PS3 mode). All is perfectly fine with the original XD.

Thank you.

[edit] I have checked the method to root the GPDXD Plus, but I would avoid to format my SDCARD since I use it as internal storage and have 50+GB of data it took 8 hours to copy all files on it.... :/
« Last Edit: May 03, 2018, 11:18:26 am by romain337 »

skelton

  • *****
  • Posts: 6842
Re: how to use adb as root user with the XDPlus ?
« Reply #1 on: May 03, 2018, 10:04:21 pm »
the joystick driver is inside the kernel. Unfortunately in ths xd plus the joystick driver is encrypted, contrary to the XD. It's better you contact GPD and let them know the issue. It's probably a simple fix, so they should change it easily.
Retired

romain337 (OP)

  • *
  • Posts: 30
Re: how to use adb as root user with the XDPlus ?
« Reply #2 on: May 04, 2018, 08:42:30 am »
Hi, thanks for the answer. I have posted on their forum about the issue a few days ago, but no answer so far. So Wait & See now...

 

Post a new topic
Post a new topic