Homebrew HANS source code now publicly available!

Mrrraou

Well-Known Member
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,364
Country
France
So I've read the code really fast on my phone, and from what I read, HANS abuses of svcMapMemoryBlock functions to patch apps service calls (nim, fs, etc) and the code.bin. However, I don't really know how it does that. I will read the source again on my computer.

--------------------- MERGED ---------------------------

I would generally be surprised if that happens.

Technically it is, if you're able to replace (maybe any) images or, alter things within the game/app.
Arbitrary code = kernel
So no, it's not. It's code remplacement and romfs redirecting.

--------------------- MERGED ---------------------------

Booting ROMs with HANS will never happen.
 
D

Deleted User

Guest
I don't know about that but what I do know is that HANS doesn't load a game or app when you either change app within an app or change firmware modes (like when selecting 'Nintendo DS' whilst in Download Play [which is supposed to bring it to the ol' DS download play] launched via HANS or when attempting to access the system update utility in the settings also launched by HANS).
WHAT? didn't understand any of what ya said... please explain yourself.
You're right I just use Gateway, emunand, ninjhax, and ironhax and they seem to do everything I want. There is a thread about hans shortcuts but it doesn't say what hans is. I'm guessing it's just another homebrew launcher or cfw.
hans is a homebrew for loading 3ds games with cool features-such as screenshot with home-button, romhacks, save manipulation and more. gateway does it by itself,but on newer versions we cant use gateway and similar things so we need HANS to run romhacks.... and its the best homebrew 'cause it gives you a lot of possibilities... recently we got the source of HANS so every1 is hyped
 

NodePoint

  
Member
Joined
Sep 29, 2015
Messages
164
Trophies
0
Location
that was a lie -- actually somewhere in europe
XP
168
Country
United States
So I've read the code really fast on my phone, and from what I read, HANS abuses of svcMapMemoryBlock functions to patch apps service calls (nim, fs, etc) and the code.bin. However, I don't really know how it does that. I will read the source again on my computer.

--------------------- MERGED ---------------------------


Arbitrary code = kernel
You should know what I mean. Not really talking about touching kernels here.
 

LeifEricson

Coming Soon™
Member
Joined
Jun 22, 2012
Messages
234
Trophies
0
Age
26
Location
New York, USA
Website
www.youtube.com
XP
499
Country
United States
So I've read the code really fast on my phone, and from what I read, HANS abuses of svcMapMemoryBlock functions to patch apps service calls (nim, fs, etc) and the code.bin. However, I don't really know how it does that. I will read the source again on my computer.

If you'd like to help me out (or lead me in the right direction) of trying to figure out how to modify the home button "patch," that'd be great.
 

Mrrraou

Well-Known Member
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,364
Country
France
Just want to point out that the following file contains the code for changing the clock rate and whatnot. It also seems to also be the screen that appears when HANS is launched.
https://github.com/smealum/HANS/blob/master/source/r5.c
Perhaps people who are interested could get diggin' there.
I was looking at it and really nothing interesting in it, it just handles the GUI, the boot and the config save
 

Cornholio309

Well-Known Member
Member
Joined
Jun 23, 2013
Messages
202
Trophies
0
Age
26
XP
280
Country
United States
So then smea was hiding nothing of value?

Not surprising since smea is against piracy, and also made a tweet stating that there wasn't anything of significant value inside of HANS other than what it already offers to the user normally.

I'd still love for somebody to try and modify HANS though to allow DS booting, but I'm not sure how realistic that is (didn't quite understand @RainCode's reply to me earlier).
 
  • Like
Reactions: BurningDesire

Mrrraou

Well-Known Member
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,364
Country
France
So then smea was hiding nothing of value?
I don't think so, but I'll analyze the source
Not surprising since smea is against piracy, and also made a tweet stating that there wasn't anything of significant value inside of HANS other than what it already offers to the user normally.

I'd still love for somebody to try and modify HANS though to allow DS booting, but I'm not sure how realistic that is (didn't quite understand @RainCode's reply to me earlier).
It won't be possible as the DS mode is totally different from the 3DS mode. (switching to ARM7 and shutting down ARM11)
 

Cornholio309

Well-Known Member
Member
Joined
Jun 23, 2013
Messages
202
Trophies
0
Age
26
XP
280
Country
United States
It won't be possible as the DS mode is totally different from the 3DS mode. (switching to ARM7 and shutting down ARM11)

That's a bit of a shame, since if I could boot DS titles, I'd literally have no reason (or mostly no reason) to use the normal home menu.

Could it somehow be possible to make an app that tries to launch a DS game like the 3DS normally handles it? I apologize if this is a tired out question or it's a bit vague, but I'm curious if something like this could be made so I can just stick with themehax without having to hold down my L button to boot into the normal menu to play Tetris DS.
 
  • Like
Reactions: Deleted-236924

Mrrraou

Well-Known Member
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,364
Country
France
That's a bit of a shame, since if I could boot DS titles, I'd literally have no reason (or mostly no reason) to use the normal home menu.

Could it somehow be possible to make an app that tries to launch a DS game like the 3DS normally handles it? I apologize if this is a tired out question or it's a bit vague, but I'm curious if something like this could be made so I can just stick with themehax without having to hold down my L button to boot into the normal menu to play Tetris DS.
I don't think it's possible.
 

froggestspirit

D/P/Pt Demix Guy
Member
Joined
Jul 28, 2011
Messages
1,277
Trophies
1
XP
1,542
Country
United States
Once again, no retail apps have the ability to install or remove system apps. eShop does all it's business by feeding nim a valid ticket and then nim does the installing iirc. No, you can't alter this to downgrade, because you'd need to remove system apps, which goes back to what I said before.
what if we could edit the part that checks the version of the titles, so that it ovewrites newer ones with older ones, instead of vise versa? Im not an expert in 3DS technicalities, but i have done my fair share of ASM editing
 

Mrrraou

Well-Known Member
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,364
Country
France
what if we could edit the part that checks the version of the titles, so that it ovewrites newer ones with older ones, instead of vise versa? Im not an expert in 3DS technicalities, but i have done my fair share of ASM editing
yeah but we need to get enough permissions for that
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Skelletonike @ Skelletonike: No idea what that is tbh, is that like the iso or something?