Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681382yIs it possible: yes
Is it wise: dafuq you using a phone to do builds for?
Because I can't be bothered explaining how to do this, because o don't recommend it unless you have a physical keyboard...
See: https://gist.github.com/VirajKanse/... -
You use the NDK: https://developer.android.com/ndk to cross-compile C/C++ stuff for Android. The main point of that is building libraries that need maximum performance.
-
@iArrow In theory, you can build anything with that. For a rootkit, you'd have to use some exploit to get root rights in the first place.
The NDK programming model is just like any other Linux. You know, with pthreads and stuff if using C, or the STL provided equivalents if using C++.
However, the store does not allow apps that start arbitrary executables - only those that are provided in the app's APK itself. That's not a limitation of Android, but of Google's store conditions.
You'd read up in the NDK's documentation itself to figure out how to use it, depending also on what your intended build chain is. But it's based on Clang, so not difficult. -
iArrow692y@Ohiorenua
Thanks that sweet of you, mainly I will focus of JS based framework (JS) since I might test these apps for security issues & they told me that I need to have JS experience, but I really needs to try it, I mean why not! -
Yes, it's possible. But since Android UI APIs (widgets) are developed at a higher level, when creating a C or C++ application on Android, you will design it as if it were a game.
Take a look at https://marmaladegamestudio.com//, they have a UI Builder https://github.com/marmalade/...
Related Rants
Can I build apps in Android devices using only C/C++ ? I mean is possible? I heard it is, but how that can be achieved? Can someone explain!
question
c
coding
os
cpp
android