Skip to content

Update OtgUtils.java add pull #271

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

Merged
merged 2 commits into from
May 7, 2025
Merged

Conversation

efraimzz
Copy link
Contributor

@efraimzz efraimzz commented May 6, 2025

Only you need to delete 8 bytes before every 65536 bytes (1000 in Hex) (- data) (and delete the last 8 bytes (- done))
And Add ui for this option

efraimzz added 2 commits May 7, 2025 00:00
Only you need to delete 8 bytes before every 65536 bytes (1000 in Hex) (- data) (and delete the last 8 bytes (- done))
@DP-Hridayan
Copy link
Owner

So for the UI, can you tell me how the push or pull will work according to the code you have written!
How do I need to execute it exactly!

@DP-Hridayan DP-Hridayan self-assigned this May 7, 2025
@DP-Hridayan DP-Hridayan self-requested a review May 7, 2025 06:28
@efraimzz
Copy link
Contributor Author

efraimzz commented May 7, 2025

for your otg fragment

pull
new OtgUtils.Pull(adbConnection, new File(localpath), remotepath).execute(handler);
you need to delete 8 bytes before 65536 bytes. you need to do a code for it

push
new OtgUtils.Push(adbConnection, new File(localpath), remotepath).execute(handler);

install
new OtgUtils.Push(adbConnection, new File(localpathapp), "/data/local/tmp/tmp.apk").execute(handler);
Check if done, (you will be able to do this with the handler)
cmd="chmod 777 /data/local/tmp/tmp.apk";
cmd+="\npm install -r /data/local/tmp/tmp.apk";
stream = adbConnection.open("shell:");
stream.write((cmd+"\n").getBytes("UTF-8"));
check if the install is success

Add an adapter that gets the files on the remote with ls...
you can add progress according to read or write

@DP-Hridayan
Copy link
Owner

Ok thanks for the explanation. I will try it.

@DP-Hridayan DP-Hridayan merged commit 0afa216 into DP-Hridayan:master May 7, 2025
1 check passed
@efraimzz efraimzz deleted the patch-3 branch May 7, 2025 20:04
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

Successfully merging this pull request may close these issues.

2 participants