View Single Post
Old 02-19-2021, 12:28 PM   #125
Gentrie
Junior Member
Gentrie began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2018
Device: Inkpad 3 First gen.
I got it to Work!

As i wrote on the Inkpad 3 event4 is needed for Button input.

When logged in with SSH write

For Forward
cat/dev/input/event4 > f.txt

Press Forward Button
ctlr+c

For Backward
cat/dev/input/event4 > b.txt

Press Backward Button
ctrl+c

Disconnect with ctlr+d

Download APKstudio to your PC
After installing go to settings/binaries follow all the links there and Download needed Binaries and Link them.

Open Lazypocketbook.apk with APkStudio when prompted decompile everything.
On the left Project window you can see the decompiled APK. Go to Smali/com/wloszynski/lazypocketbook and double click MAINACTIVITY.Smali

Search with Edit/Find f.txt
you will find this

const-string v1, "cat f.txt > /dev/input/event0"

change event0 to event4
The same with b.txt

Save changes.

On left side projects right click main root folder (Default Lazypocketboo.apk-decompiled) and Build APK

Connect your Android device copy over the just created APK.

With your Android Device Download from PlayStore APKSIGNER and sign your just transfered APK. Otherwise install will fail.

Uninstall the old APP and install the New one.
Set IP and Password

Now it should Work.
Gentrie is offline   Reply With Quote