Homebrew Suggestion APK to NSP/XCI converter

Deleted member 191657

Well-Known Member
Newcomer
Joined
Aug 10, 2009
Messages
87
Trophies
0
XP
1,315
Country
Italy
I love how everyone just points out that it's impossible (or rather impractical) and nobody really cares to explain why.

The main factor here is that the Switch runs the Horizon kernel (which is loosely based on FreeBSD) and all the code and games "talk" to it through proprietary Nintendo code. (The majority of the code is written in C and derivatives)

Android applications on the other hand run on Linux through a Java Virtual Machine. (The majority of the code is written in Java).

Now, porting a Java Virtual Machine on Horizon is theoretically possible, even if it's difficult and tedious. But that would not be enough since ART (they still use ART, right?) is not a standard one and heavy modifications (which will be on an entirely different level of difficulty) would have to be done in order to run it under Horizon.

Now, sorry for any inaccuracies in my explanation but I wanted it to be as simple as possible.

If you really want this to happen it would be easier to port Android on its own on the Switch the same way Lakka was ported. It will not be easy, but it's feasible. Keep in mind that there is not really a point in this, since a powerful android phone or tablet can be yours for very little money nowadays.
 
  • Like
Reactions: JonJaded

ghjfdtg

Well-Known Member
Member
Joined
Jul 13, 2014
Messages
1,360
Trophies
1
XP
3,281
Country
I'll make you an apk-to-nsp converter once you make me a lead-to-gold converter.
Fun fact: It's possible to convert materials similar to gold into gold. But it requires so much anergy to pull this off that it would not be worth it.

It's similar here. You don't just convert apk into nsp/xci. Your best bet is waiting for an Android port.

Edit:
The main factor here is that the Switch runs the Horizon kernel (which is loosely based on FreeBSD) and all the code and games "talk" to it through proprietary Nintendo code. (The majority of the code is written in C and derivatives)

Not true. The only FreeBSD part used is the network stack. The remaining was rewritten from the 3DS.
 
Last edited by ghjfdtg,

ElConsolero

Well-Known Member
Member
Joined
Jan 22, 2014
Messages
110
Trophies
0
Age
52
XP
1,110
Country
Gambia, The
I think this would help bring games that are typically asscoited with moble hardware to switch, would be a fun idea could even open up running sheild tv games on the switch.

You dont need any converter. Just rename .xci/.nsp to .apk and everything is fine! If you are not able to rename it, we will build up a team and deliver you an easy to use tool!

Seriously, I am not sure if you only want to "dominate" or just troll around...

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

it was just a thought i didnt really expect much

Like now the rest from us from you...
 

2Siralv

Well-Known Member
Member
Joined
May 12, 2018
Messages
103
Trophies
0
Age
28
XP
531
Country
Canada
God, you people.....

An APK is a container. It's not an MP3 or something, it is a container of files. Among those files are binaries. For Android. Which the Switch does not run.

No, there will never be an 'Apk to NSP converter'. That wouldn't achieve anything. You'd still have binaries for a DIFFERENT OPERATING SYSTEM. Jesus.....

What is theoretically possible is booting Android on the Switch. With a sufficient level of hardware control (which we have) and extensive work, one could port the Android variant* from the Nvidia Shield TV (which features a Tegra X1) to the Switch. But I'd say that occurring is unlikely - it's just a lot of work & doesn't really appeal to the FOSS crowd the way that straight Linux does.

*By variant I am referring to the patches/drivers Nvidia wrote to get Android up and running on their SOC. As opposed to grabbing AOSP and starting the work of getting it running on the Switch SOC from scratch. Having Nvidia's patch set(s) helps a lot.
Would something like parrot os or kali be able to run on switch
 

EliseZeroTwo

Well-Known Member
Newcomer
Joined
Sep 14, 2018
Messages
47
Trophies
0
XP
414
Country
United Kingdom
APK actually would work to be converted, since it's just a zip file. Rename the .apk to .zip and you can unpack it on any system.
iu


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

i could make something that converts the apk to a valid XCI or NSP, i mean it wouldnt run but hey... you got what your asking for technically. APK repackaged into an NSP or XCI
 

jakkal

Well-Known Member
Member
Joined
Apr 27, 2018
Messages
2,303
Trophies
1
Age
44
XP
3,982
Country
United States
APK actually would work to be converted, since it's just a zip file. Rename the .apk to .zip and you can unpack it on any system.

And do you know the file structure of an apk?
First you have to learn how to convert .smali to whatever the switch compatible file is. This
iu


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

i could make something that converts the apk to a valid XCI or NSP, i mean it wouldnt run but hey... you got what your asking for technically. APK repackaged into an NSP or XCI
lol yeah i didnt get his post either
 

Dominator211

JFK's Jelly Donut
OP
Member
Joined
Oct 15, 2016
Messages
1,818
Trophies
0
Location
The LaCrosse Field
XP
3,342
Country
United States
I see that original poster is 15 years old.

I was asking questions like that when I was 15. In a mean time I learned that life (universe) is crual :D

Similar question:
Can you write a homebrew that converts my granny into a car?
it's because of questions like these that I pay my internet plan.

thank you!
expertise post: 8346169 said:
You can't just port stuff like that without source code. Like I said, you're bored

I'm not just sitting here and getting ridiculed on how it wont work. why dont we just shut it down. Im sorry, i dont understand how code works, my area of experize is in computer repair. I understand it can get quite repetitive but don't you think I get that in my industry as well. But you don't see me screaming at grannies because they don't know how to check their email. It's not just me but anyone who writes a thread like this. they get bashed for what? being uninformed. It's not everyone on this thread but just some. I'm not going at anyone in particular including the people I tagged its just airing my frustrations. I mean I have to deal with jerks in school saying things to my face, but it's another thing when adults some of which are from different countries just bash people for being uninformed. Call me whatever say this is whatever I've given up.
 

ScarletDreamz

[Debug Mode]
Member
Joined
Feb 16, 2015
Messages
3,967
Trophies
1
Location
/dev/sda1
XP
4,380
Country
United States
It's like asking for a *.deb (Linux) to *.msi converter (Windows).
This is Somehow possible.
Knowing that the .deb is just 2 .tar files, onw with the data files, and another with the meta/information etc etc.

Msi files can be also extracted, so pretty much it is possible tl make a .deb to msi. and vice versa.
 

mss1988

Active Member
Newcomer
Joined
Jul 25, 2018
Messages
44
Trophies
0
Age
36
XP
986
Country
France
Come on bro, I'm not bashing you.

I said that I was asking similar questions when I was your age.

You shouldn't take things that hard.
 

Sonansune

Well-Known Member
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
Canada
i think if the title is something like "possibility? - apk from android to nsp/xci on switch" this.
ppl would be a little nicer to explain to u....


anyway, just dont suggest anything in any area u not familiar with.
u can ask why, but not suggest.... only embarrass yourself.
 

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
I'm not just sitting here and getting ridiculed on how it wont work. why dont we just shut it down. Im sorry, i dont understand how code works, my area of experize is in computer repair. I understand it can get quite repetitive but don't you think I get that in my industry as well. But you don't see me screaming at grannies because they don't know how to check their email. It's not just me but anyone who writes a thread like this. they get bashed for what? being uninformed. It's not everyone on this thread but just some. I'm not going at anyone in particular including the people I tagged its just airing my frustrations. I mean I have to deal with jerks in school saying things to my face, but it's another thing when adults some of which are from different countries just bash people for being uninformed. Call me whatever say this is whatever I've given up.
Welcome to the tech scene. It's literally like this anywhere because a semblance of common sense is assumed. These kinds of threads translate to "can I stick a fork in my toaster and make popcorn?". If you're ignorant on a subject, educate yourself. You're not bashed for being uninformed, but for being uninitiated.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,788
Trophies
1
Age
44
XP
6,519
Country
Germany
just 2 .tar files, onw with the data files, and another with the meta/information etc
Which is far from providing anything runnable for Windows or am I wrong?
Vice versa as a MSI file installs (and registers) a Windows binary (+ libs + program files) which can't be launched under Linux (apart from WINE).
 

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,777
Trophies
2
Age
48
Location
Japan
XP
3,677
Country
United States
Closed minded fools. Not saying it will happen, but are you even paying attention to what you’re saying? .n64 or .nes, or .d64 are also binaries meant for a specific cpu and OS. There are Android emulators like https://www.bignox.com/
:blink:

Edit: Re-read the title. Ok, the answer really is no, but only because it would be far easier to simply run the apk as is, in an emulator.
 
Last edited by urherenow,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: how are you doing @K3Nv2