Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file permission errors on hisense firmware #13

Closed
J3rr1ck opened this issue Mar 8, 2022 · 7 comments
Closed

file permission errors on hisense firmware #13

J3rr1ck opened this issue Mar 8, 2022 · 7 comments

Comments

@J3rr1ck
Copy link

J3rr1ck commented Mar 8, 2022

Hey all as stated in title on the hisense q5 I'm receiving some sort of a file error when trying to use this app.
3-08 16:23:35.520 11667 11669 E gsid : failed to create or open /data/gsi/dsu/userdata_gsi.img 03-08 16:23:35.520 11667 11669 E gsid : Could not create userdata image: /data/gsi/dsu/userdata_gsi.img 03-08 16:23:35.397 12192 12192 I chatty : uid=1000(system) com.hmct.eye.remind identical 12 lines 03-08 16:23:35.461 12192 12192 D EyeReminding: light can not show! 03-08 16:23:35.522 12498 12523 W System.err: java.io.IOException: Failed to start installation with requested size: 6964084736 03-08 16:23:35.523 12498 12523 W System.err: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:130) 03-08 16:23:35.523 12498 12523 W System.err: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:36) 03-08 16:23:35.523 12498 12523 W System.err: at android.os.AsyncTask$3.call(AsyncTask.java:378) 03-08 16:23:35.523 12498 12523 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 03-08 16:23:35.523 12498 12523 W System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289) 03-08 16:23:35.523 12498 12523 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 03-08 16:23:35.523 12498 12523 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 03-08 16:23:35.523 12498 12523 W System.err: at java.lang.Thread.run(Thread.java:919) 03-08 16:23:35.523 12498 12498 D InstallationAsyncTask: onPostExecute(), URL: file:///storage/emulated/0/Download/workspace_dsuhelper/system-squeak-arm64-ab-gapps.img.gz, result: 2

@VegaBobo
Copy link
Owner

DSU feature seems broken in your current ROM.
Are you running Android 10? if so, try set selinux to permissive, and try again.

@J3rr1ck
Copy link
Author

J3rr1ck commented Mar 14, 2022

Selinux got set to permission and system mounted rw attached is the full log.
the major point of interest would seem to be
03-13 20:05:25.867 8583 8587 E gsid : File is too fragmented, needs more than 512 extents. 03-13 20:05:25.868 8583 8587 E gsid : Failed to read fiemap of file: /data/gsi/dsu/userdata_gsi.img.0000 03-13 20:05:25.869 4270 4498 D DeviceStorageMonitorService: updateStateEx oldLevel = 0, newLevel = 0 03-13 20:05:26.036 11061 11061 I chatty : uid=1000(system) com.hmct.eye.remind identical 9 lines 03-13 20:05:26.099 11061 11061 D EyeReminding: light can not show! 03-13 20:05:26.126 3798 4685 D GNSSMGT : watchdog: PowerState[UNKOWN STATE], gps_flag[4], readcount[0], idle time = 0, HeartCount = 0 03-13 20:05:26.163 11061 11061 D EyeReminding: light can not show! 03-13 20:05:26.487 8583 8587 E gsid : failed to create or open /data/gsi/dsu/userdata_gsi.img 03-13 20:05:26.487 8583 8587 E gsid : Could not create userdata image: /data/gsi/dsu/userdata_gsi.img 03-13 20:05:26.420 11061 11061 I chatty : uid=1000(system) com.hmct.eye.remind identical 4 lines 03-13 20:05:26.483 11061 11061 D EyeReminding: light can not show! 03-13 20:05:26.494 11233 11259 W System.err: java.io.IOException: Failed to start installation with requested size: 4816601088 03-13 20:05:26.494 11233 11259 W System.err: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:130) 03-13 20:05:26.494 11233 11259 W System.err: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:36) 03-13 20:05:26.494 11233 11259 W System.err: at android.os.AsyncTask$3.call(AsyncTask.java:378) 03-13 20:05:26.494 11233 11259 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 03-13 20:05:26.494 11233 11259 W System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289) 03-13 20:05:26.495 11233 11259 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 03-13 20:05:26.495 11233 11259 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 03-13 20:05:26.495 11233 11259 W System.err: at java.lang.Thread.run(Thread.java:919) 03-13 20:05:26.496 11233 11233 D InstallationAsyncTask: onPostExecute(), URL: file:///storage/emulated/0/Download/workspace_dsuhelper/system-squeak-arm64-ab-gapps.img.gz, result: 2
logcat_dsu.txt

@VegaBobo
Copy link
Owner

You're using Android 10, right?
Android 10 seems to have this bug, fortunately it was fixed on 11, however people running Android 10 seem to be "out of luck".
I tried to fix this issue by building a custom gsid with some patches from Android 11, however, i do not have a Android 10 device to test it :\

Anyway, what Android version you're running? do you have Magisk installed? if so, i can send create a module with a custom gsid binary that may fix your issue (no clue if it will work)

@J3rr1ck
Copy link
Author

J3rr1ck commented Apr 29, 2022 via email

@VegaBobo
Copy link
Owner

VegaBobo commented May 1, 2022

Thats sad, anyway, i got a unisoc device running Android 10, and i got the same problems as you, after setting selinux to permissive, dsu just finishes silently with extents error, when using a custom gsid binary (the one i've did some changes), installation process works and finishes as well, but i cannot test if dsu is really working, because im running on locked bootloader (those unisoc seem hard to unlock without manufacture help).

If you, or someone else wants to try, ill be linking a Magisk Module (if no Magisk is avaiable, you can replace gsid binary directly into system partition, binary is inside module) module_gsid_test.zip (Android 10 ONLY)

About the changes, i've just compiled Android 10 with this:
https://android-review.googlesource.com/c/platform/system/gsid/+/1166406/

No clue if it will work, make sure to do a backup first, also, i have no idea what can go wrong, so keep caution!

@VegaBobo VegaBobo mentioned this issue Jun 4, 2022
@VegaBobo
Copy link
Owner

VegaBobo commented Oct 12, 2022

Ill be closing this as completed, DSU Sideloader v2 includes a optional Magisk module that adds a custom gsid binary, in which, may fix this Android 10 issue, i've tested installation, and seems to be working as expected (i cannot test if installation was really working because the unique device i have to test it, was one with locked bootloader).

@srihari0-0
Copy link

Is there any way to install that custom magisk module without root or any other way around. Sorry, I am new to this and i want to install this module but i don't want to root my device. I found this comment from another forum _ " if no Magisk is avaiable, you can replace gsid binary directly into system partition, binary is inside module) ". Can someone explain what it means.{ i have unlocked bootloader of my device and is running dsu in shizuku mode}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants