deviato / DroidPPPwn

PPPwn_cpp for Android + App Frontend [needs rooted device]
82 stars 2 forks source link

pppwn: no such file or directory #18

Closed playadog closed 1 month ago

playadog commented 1 month ago

I'm launching it on an Android TV box. DroidPPPwn v1.2 Screenshot_20240221-223407

deviato commented 1 month ago

Can you try if this works? DroidPPPwn-1.2-debug.zip

alfky12 commented 1 month ago

I'm launching it on an Android TV box. DroidPPPwn v1.2 Screenshot_20240221-223407

Because there is double slash at /lib//pppwn just like v1.0

deviato commented 1 month ago

There's no double slash in the code, it is added by your android environment. However, try the version that I linked before (I also just updated the release section), now I removed every "shell" reference calling the executable by fully hardcoded path.

playadog commented 1 month ago

I didn't get a folder /data/data/it.deviato.droidpppwn/. Do I need to create the folder myself? What files should I put there? Screenshot_20240222-024529

deviato commented 1 month ago

I didn't get a folder /data/data/it.deviato.droidpppwn/. Do I need to create the folder myself? What files should I put there? Screenshot_20240222-024529

This is really strange. What kind of device and android version do you own? I tested the unpacking script also in very old devices like tv stick with rockchip rk3188 chipset and android 4.4, and it worked. However... the internal structure must be like the one that you see in picture, /data/data/it.deviato.droidpppwn/lib. Inside of it there must be all the files extracted from the archive ppppw.jar (is a zip). Then you will have 3 files, one for each architecture. This are fake libsXXX.so to trick the install system, in reality they are zip too. In your case you will have to extract libv8a.so in the same folder.

playadog commented 1 month ago

Device is Tanix W2, Android 11.

alfky12 commented 1 month ago

Can you try if this works? DroidPPPwn-1.2-debug.zip

Not work. No such file or directory, even though they actually exist.

Error: IMG_8260

Files and directory exist: IMG_8261

The directory /data/data/it.deviato.droidpppwn/lib is a symlink (is that a correct term?) to /data/app/blablabla/it.deviato.droidpppwn-blablabla/lib/arm. But droidpppwn doesn't execute it properly, so it looks for the pppwn file in the /lib/ folder when it should be in /lib/arm/

Sorry bad english, i'm using google translate.

deviato commented 1 month ago

Can you try if this works? DroidPPPwn-1.2-debug.zip

Not work. No such file or directory, even though they actually exist.

Error: IMG_8260

Files and directory exist: IMG_8261

The directory /data/data/it.deviato.droidpppwn/lib is a symlink (is that a correct term?) to /data/app/blablabla/it.deviato.droidpppwn-blablabla/lib/arm. But droidpppwn doesn't execute it properly, so it looks for the pppwn file in the /lib/ folder when it should be in /lib/arm/

Sorry bad english, i'm using google translate.

Please open a terminal (TermOne Plus on Play store if you don't have one), and post the output of this commands su ls -l /data/data/it.deviato.droidpppwn/lib

alfky12 commented 1 month ago

@deviato IMG_8265

deviato commented 1 month ago

and if you try this? su ls -l /data/data/it.deviato.droidpppwn/lib/pppwn

alfky12 commented 1 month ago

IMG_8266 @deviato

alfky12 commented 1 month ago

Wait wait, i’m so sorry, i was revert it back to v1.1. I will install v1.2 and report back. @deviato

deviato commented 1 month ago

Wait wait, i’m so sorry, i was revert it back to v1.1. I will install v1.2 and report back. @deviato

I forgot one thing: try this commands leaving DroidPPPwn open in background

alfky12 commented 1 month ago

I forgot one thing: try this commands leaving DroidPPPwn open in background

DroidPPPwn v1.2 open in background, start active. IMG_8268

deviato commented 1 month ago

So it's seeing the file, why it doesn't do the same in the app? It's calling the same path... And if you run directly with: su /data/data/it.deviato.droidpppwn/lib/pppwn

alfky12 commented 1 month ago

So it's seeing the file, why it doesn't do the same in the app? It's calling the same path... And if you run directly with: su /data/data/it.deviato.droidpppwn/lib/pppwn

No such file or directory IMG_8270

deviato commented 1 month ago

It does see it, but it doesn't see when you try to execute. Try with this pre-release DroidPPPwn-1.2.1-debug.zip

alfky12 commented 1 month ago

You know what, I change pppwn file with “donor” file, and it work. IMG_8271

I’ll try v1.2.1 next.

alfky12 commented 1 month ago

Same error in v1.2.1

IMG_8272

I think the culprit is pppwn file.

deviato commented 1 month ago

Yes, I think it's a problem of different architecture reported incorrectly. Can you tell me the output of these commands? su cat /proc/cpuinfo uname -a

alfky12 commented 1 month ago

IMG_8273

deviato commented 1 month ago

I can't see the first line, try with this please: su cat /proc/cpuinfo | grep Proc Can you pass me the donor file also?

(However, from what I can see, your kernel is armv8l (32bit), but the binary chosen by installer is 64bit armv8a version (I think)

playadog commented 1 month ago

It looks like I have the same data. 11 22 33

alfky12 commented 1 month ago

I can't see the first line, try with this please: su cat /proc/cpuinfo | grep Proc Can you pass me the donor file also?

(However, from what I can see, your kernel is armv8l (32bit), but the binary chosen by installer is 64bit armv8a version (I think)

IMG_8275

My tv box processor is amlogic s905x4 pppwn.zip

deviato commented 1 month ago

Proc is with capital first letter

playadog commented 1 month ago

44 TV Box Tanix W2, processor is amlogic s905w2.

deviato commented 1 month ago

Hi, can you open a terminal and pass me the output of this commands? getprop ro.product.cpu.abi getprop ro.product.cpu.abilist

playadog commented 1 month ago

55

deviato commented 1 month ago

Tanix W2, Android 11.

Thank you. As I thought, it's an armv8 but with 32bit instructions or os, reported wrongly. On the next build I will use this new method to detect arch.

deviato commented 1 month ago

Can you try if this new version works? DroidPPPwn-1.2.1-debugnew

alfky12 commented 1 month ago

Can you try if this new version works? DroidPPPwn-1.2.1-debugnew

Works well, just a bit longer to hen. Oh and can you make the net interface selectable using the remote control?

IMG_8283

IMG_8284

playadog commented 1 month ago

Can you try if this new version works? DroidPPPwn-1.2.1-debugnew

It works. Thank you!

deviato commented 1 month ago

Ooh, finally!