Hex editor for Android

Mobile phones, devices. Old and new. Android, iOS, Blackberry, Symbian, anything.
User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

Can anyone recommend a good, free and ads free hex editor for Android ?

I've found this one but it can't open files larger than 20 MB :(
https://github.com/Keidan/HexViewer

Jevil7452
Posts: 37
Joined: 14 Jan 2024, 15:21
OS: Windows 7 x64 Ent
Been thanked: 20 times
Poland

Hex editor for Android

Unread post by Jevil7452 »

It might not be what you're looking for, but maybe running a command line hex editor via Termux will work?

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

Jevil7452 wrote: 23 May 2024, 21:00 command line hex editor
I'm not sure to understand what you mean :eh:

HajdaM
Posts: 4
Joined: 28 Nov 2024, 11:24
Been thanked: 1 time

Hex editor for Android

Unread post by HajdaM »

Hi, you can try BinEd hex editor, but it's a bit unrefined...
It should work for big files if you enable partial files loading in settings.

https://github.com/exbin/bined-android

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

Thanks, I'll check it out :thumbup:

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

HajdaM wrote: 28 Nov 2024, 22:50 It should work for big files if you enable partial files loading in settings.
https://github.com/exbin/bined-android
It's quite good! :)
But it looks like it can't load any file over 50 MB. A 63 MB file is loaded but the UI hangs and doesn't react to any screen touch. With a 160 MB file it resets itself to an empty new screen.
I don't have "partial loading" in the settings but "changes only". If I enable that then the app crashes again and again when trying to load a large file.

I think if you can find a way to open and edit large files then your app will be at the top :)
There are some open source hex editors like this one: https://github.com/WerWolv/ImHex
Maybe that can give you some ideas ;)

HajdaM
Posts: 4
Joined: 28 Nov 2024, 11:24
Been thanked: 1 time

Hex editor for Android

Unread post by HajdaM »

Hi, it seems you found multiple bugs there. Looks like I should have tested with bigger file than 40 MB :-| Hopefully I'll fix some of them in the future...

Also you can use ImHex in browser on your phone: https://web.imhex.werwolv.net/

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

HajdaM wrote: 02 Dec 2024, 12:33 Also you can use ImHex in browser on your phone: https://web.imhex.werwolv.net/
So it's possible to open large files. I wonder why apps won't do it since I have gigabytes of free memory and we are talking about 50-100 MB :think:

HajdaM
Posts: 4
Joined: 28 Nov 2024, 11:24
Been thanked: 1 time

Hex editor for Android

Unread post by HajdaM »

Duke wrote: 02 Dec 2024, 21:13 So it's possible to open large files. I wonder why apps won't do it since I have gigabytes of free memory and we are talking about 50-100 MB :think:
In my case, I used normal Java array allocation using heap, which seems to be heavily restricted because of older phones with small memory - which I didn't know before. There is an option to request bigger heap, but there is also an option to allocate memory outside of heap, which other apps written in C (like for example browsers) use by default.

But in changes only mode I have probably rendering bug (integer overflow) :-|

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

So the blocker is the Java limitation.
Just an idea: I wonder how media players are working because they can play files that are several GB large and even seek into them so they obviously don't entirely load them into memory but just parts.

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

In fact it's tricky. I can open a 196 MB file but only if I open it first. If I have opened some other files before then it fails. Maybe the memory is not fully released when taping on the Open menu item ?
I can also open this 196 MB file if I tap on New before opening it. However trying to open a 265 MB file always fails, it resets to an empty board.

I also miss the ability to drag the location maker on the right side for navigating faster inside the file.

HajdaM
Posts: 4
Joined: 28 Nov 2024, 11:24
Been thanked: 1 time

Hex editor for Android

Unread post by HajdaM »

I assume that basically all media players are written in C or at least the video playback part is, so they are not limited by Android runtime heap.

As for scrollbar I tried that, but was not successful - still decided to release the app to have at least some functionality available for users. I'll try to look into it again next time as well as memory allocation issues...

Well, this is my first Android app and side variant of my side project and I have got like hundreds of tasks in my task list and I'm not particularly productive programmer so don't expect much. I guess that's the thing to expect when you are dealing with free software or open source ;-)

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

I'm not blaming you at all, just reporting things trying to help you :)
Your app is very good, that's by far the best hex editor for Android I've found yet :thumbup:

User avatar
Duke
Full Moderator
Posts: 173
Joined: 16 Mar 2024, 13:32
OS: Windows 8.1 x64
Has thanked: 38 times
Been thanked: 35 times

Hex editor for Android

Unread post by Duke »

Duke wrote: 04 Dec 2024, 14:32 trying to open a 265 MB file always fails, it resets to an empty board.
With bined-android-0.2.4-SNAPSHOT.apk I was able to open this 265 MB file, well done :thumbup:

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests