iptsd icon indicating copy to clipboard operation
iptsd copied to clipboard

Unable to run new iptsd scripts on Android shell

Open hmtheboy154 opened this issue 1 year ago • 4 comments

It seems like both iptsd-find-hidraw and iptsd-foreach can't be able to executed on Android anymore, causing our init script unable to start iptsd. I checked and it seems like the script now uses bash and ultilize some bash features. So I tried 2 method so far:

  • Force it to use Android's sh, this resulted in sh unable to find BASH_SOURCE[0]
127|Standard PC (Q35 + ICH9, 2009):/ # sh /vendor/bin/iptsd-find-hidraw                                        
/vendor/bin/iptsd-find-hidraw[17]: BASH_SOURCE[0]: parameter not set
  • Build bash on Android and then try to run the script. LineageOS has a fork of bash that is buildable on Android, I tried to edit shebang and execute the script and got this output
1|Standard PC (Q35 + ICH9, 2009):/ # iptsd-find-hidraw                                                         
/vendor/bin/iptsd-find-hidraw: line 9: //iptsd-foreach: No such file or directory

hmtheboy154 avatar Dec 21 '24 10:12 hmtheboy154

How have you gone with this one mate? Can anyone also help so tge touch screen issue gets fixed?

itmswt avatar Jan 09 '25 11:01 itmswt

I could run the IDC script via ADB root shell, but i don't know it's OK or not; at least it did not solve the "touch acts as mouse" problem :S

horvathcsabalaszlo avatar Apr 02 '25 20:04 horvathcsabalaszlo

I could run the IDC script via ADB root shell, but i don't know it's OK or not; at least it did not solve the "touch acts as mouse" problem :S

you'll only have single touch, not multi-touch. Try to touch more than 1 finger

hmtheboy154 avatar Apr 02 '25 20:04 hmtheboy154

I could run the IDC script via ADB root shell, but i don't know it's OK or not; at least it did not solve the "touch acts as mouse" problem :S

you'll only have single touch, not multi-touch. Try to touch more than 1 finger

Yes, i'll be happy with it as the touchscreen is not working good on my device in multi mode; but acting as a mouse is a bigger problem. Also, the IDC did not solve the issue that the screen functions as a mouse, not as a touch device :D

horvathcsabalaszlo avatar Apr 02 '25 20:04 horvathcsabalaszlo