Open joaopa00 opened 3 years ago
A fresh install gives the clue of the problem. But I do not know how to solve it. In fact, there is a problem when trying to unpack the data.tar.gz file... log.TXT Have a look at line 3180. So, all the files needed to setup the server are unavailable.
Any idea to fix that? Thanks in advance....
OK! After spending several hours, I managed to compile XServer to dig into the problem. It is pretty clear, but I do no know how to fix it. Any idea? The problem is in the file gfx.c, function unpackFiles Unpacking data: data.tar.gz I/XSDL ( 5568): fname /data/data/x.org.server/files/busybox tar xvfz -C /data/data/x.org.server/files I/XSDL ( 5568): archive data.tar.gz I/XSDL ( 5568): POPEN OK
Xserver install process tries to write in the folder /data/data/x.org.server/files through the command tar. But for this, one needs to have rights of writing into this folder. Only root can do. data.gz
Any way to fix that?
Workaround for those who have the problem: 0)Install Xserver (in Linux) 1) Download the attached file 2) In a terminal: adb push data.gz sdcard/Download 3)adb shell 4)cd sdcard/Download 5)mv data.gz data.tar.gz 6)su 7)tar xvfz data.tar.gz -C /data/data/x.org.server/files
That should be the app private directory, it's writable for the app, but you cannot view it from adb shell without su or run-as command.
On Wed, 15 Dec 2021, 21:24 joaopa00, @.***> wrote:
OK! After spending several hours, I managed to compile XServer to dig into the problem. It is pretty clear, but I do no know how to fix it. Any idea? The problem is in the file gfx.c, function unpackFiles Unpacking data: data.tar.gz I/XSDL ( 5568): fname /data/data/x.org.server/files/busybox tar xvfz -C /data/data/x.org.server/files I/XSDL ( 5568): archive data.tar.gz I/XSDL ( 5568): POPEN OK
Xserver install process tries to write in the folder /data/data/x.org.server/files through the command tar. But for this, one needs to have rights of writing into this folder. Only root can do.
Any way to fix that?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pelya/xserver-xsdl/issues/147#issuecomment-995122236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABF5QFFNLP5NQ2YQSLAH4TURDTQRANCNFSM5I5WWB6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
It is strange. At first, everything looks normal. Butsoon, data.tar.gz is read, but nothing is written I/XSDL ( 2994): POPEN OK I/XSDL ( 2994): FREAD 0 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 4 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 8 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 12 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 16 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 20 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 24 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 28 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 32 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 36 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 40 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 44 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 48 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 52 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 56 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 60 READ 4096 I/XSDL ( 2994): Write 4096 I/XSDL ( 2994): FREAD 64 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 68 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 72 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 76 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 80 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 84 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 88 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 92 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 96 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 100 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 104 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 108 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 112 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 116 READ 4096 I/XSDL ( 2994): Write 0 I/XSDL ( 2994): FREAD 120 READ 4096 I/XSDL ( 2994): Write 0
And so on, until data.tar.gz is completely read.
Had the exact same problem just now.
I changed to corresponding user (had to use su
because apk wasn't marked debuggable) and then did:
cd /data/data/x.org.server
rm -rf files
while ! mv files/*.tar.gz ./; do :; done # "Catch" the archive before it gets deleted
# Now, while the above is running, start XSDL, see it fail, and close it.
rm -rf files
mkdir files
chmod 771 files # Restore the permissions that the dir had before removal.
tar -xf *.tar.gz -C files # Extract manually (!)
After that ran XSDL again, and X started successfully.
Seems that untarring fails somehow, while system-provided busybox tar
does the job just fine.
Might be worth noting that that was on an ancient Android 5.1 (CM12.1 specifically), might have something to do with that.
Checked with both equally ancient stock busybox and a fresh one, both extract the archive just fine.
XSDL is 1.20.51 (from ApkPure, because I'm lazy)
Edit: The same happens with extra fonts (90mb .tar.gz), and the same solution helps.
XSDL fails to open. Here is the logcat . Looks like XSDL complains about keyboard. What can be done? Thanks in advance for your help. log.txt ?