Skip to content

Unable to run new iptsd scripts on Android shell #184

@hmtheboy154

Description

@hmtheboy154

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions