tags:

views:

72

answers:

2

This seems like the answer would be no, but does anyone know if it is possible to build a custom app into a custom-built version of Android and then load that apk file onto a different device? Obviously, if you make changes to the OS and then rely on them in your app, you can't, but assuming you use the source as-is (or the appropriate version) from the repo can it be done?

If you can, you could theoretically link against things that are otherwise considered to be hidden in the SDK, right? Or am I completely off base here?

Thanks, Chris

A: 

nothing prevents you build an apk from sources of your app and put it on the market. But if your app uses private methods, i assume via reflection, i would expect things not gonna work in certain version.

Alex Volovoy
+1  A: 

You can always call private methods via reflection, but in general, this is a very bad idea. Handset vendors are free to change anything not in the SDK, so there is a big chance your app will not work on certain devices. However, if you only want the app to work only on one device, or only on one special version of the OS, hack away :)

Erich Douglass
Excellent, this is intended for a 'research/developer' application so I have no problems saying, 'you might have to fight with this for a while' :)
Chris Thompson