Compile Android Build

Well, i did manage to make an .apk by using the command
gradlew assembledebug

but when i try to install to the android devices i have, it says there is a problem parsing the package...
 
msmalik681

have tested the punchman build you made (4.4.2_test.apk) & the older androids have that parsing error, or the mising ld something error if i re-make them with apk editor studio.

the only android set where it works is on the newest android.
the older android devices can run OpenBOR 3.0 4100 APK 1.3.3 fine, & the graphics are displayed well, so im wondering if there is a way to customize it or "fuse" them

Another issue i found is this:
i also tested a custom demo based on the nightslashers mod, but the way it displays the game seems wrong...
on one hand it eats away a chunk of the screen, on the other, it makes things have the wrong aspect ratio (circles look like ovals)

 
I think the phrasing issue was on android 6.0+ there was some permissions needed i fixed it in a later commit.
 
oldyz im on win7 and i compiled fine back then but it needs specific java version the one im mentioning earlier, not newest one
version 8, dont ask why
 
I am aware bWWd

this version does not seem to work with the older androids, the punchman demos, nor the builds i made, work with the older systems.

when i analyse them using apk editor studio , it says:
minimum SDK  16 (4.1.x - Jelly Bean)
Target SDK        28 (9.0 - Pie)

ON the other hand the  android openBOR that works well with the older systems (OpenBOR-4100-1.3.3-debug.apk ) has this:
minimum SDK 10 (2.3.3 - 2.3.7 - Gingerbread)
Target SDK 0 (none)


I would like to try & see if i can "merge" them or find out how to implement paks with version 4100-1.3.3.

Another thing that i would like to try is an APK that injects the paks direclty in to your Openbor directory of the android systems, this way the hassle of navigating android file systems for users is eliminated -
 
If you want to play with the source code in your own space thats fine i can not stop you.

The offical android port is working bwwd  and myself have compiled offical apk's that are live to download on the app store.

The minimum sdk and target sdk are restrictions in place by the android NDK.  What version of android are you running and what is the device?

Can you explain what you mean  about injecting the pak file directly I have already made this feature.
 
msmalik681 said:
Can you explain what you mean  about injecting the pak file directly I have already made this feature.

Well, i don't intend to de-rail the thread & i may open another one  because i think it may be best as a separate project...

but here it goes - There is 3 options for Android Users (the third does not exist)
One: install the OpenBor APK & then download & place your PAKs using the computer, or Android file browser - I hate to say this, but i have seen a lot of casual Android users struggle with this approach & for some Android devices, you have to use 3rd party tools to manage your files OR another source of problems are Android devices that cannot be managed with a PC/mac

Option 2 - Make each Module for android a stand-alone APK (your current solution)- with this option, casual users don't have to rely on 3rd party tools , just download the APK for the module you want to play - BUT this approach - if im not mistaken, does not allow you to add more paks - & it has the potential of saturating your system with a lot of redundant files
- A necessary evil - of course - if the module is a commercial release OR
If you are a "Neat freak" like me - who likes to keep each game module as a separate "entity"
(custom Icons, etc)

Option 3 - PAK INJECTOR or PAK INSTALLER APK - this option is for users that already have OpenBor already installed - all it does is to enable users to download an APK that "searches" for the default OPENBOR "paks" file folder & "pastes" a new PAK file inside it - with this option all you have to do is download, install, open the regular openbor app & find the new Module on the list. No connecting to the PC, no 3rd party file browsers -
useful for users who are on a plane, train, hospital or the DMV - is you stumble on a new module that has this option all you have to do is download & "paste" the new PAK & play
 
oldyz youre being lazy, we already can do apk with pak inside which installs eveything fine and nice, with custom icons and all.
Research.Mohammed had very good info how to do it, i made already like 3 games with pak inside using this method.You just swap icons and name of the game then replace paks
There was an issue about pak being over 50mb but its solved now.
One thing that we cant do at the moment is implementing ads , it requires somseone who knows SDL on android.
yure making this too complicated, it should just install paks like any other games on android in own separate folder.
Also dont fight iwth some new version, compile the one that worked.
It works on my pixel 2 xL with android 8
 
bWWd said:
oldyz youre being lazy, we already can do apk with pak inside which installs eveything fine and nice, with custom icons and all.
Research.Mohammed had very good info how to do it, i made already like 3 games with pak inside using this method.You just swap icons and name of the game then replace paks
There was an issue about pak being over 50mb but its solved now.
One thing that we cant do at the moment is implementing ads , it requires somseone who knows SDL on android.
yure making this too complicated, it should just install paks like any other games on android in own separate folder.

I forgot to add: the 3rd option is good for people who are using older androids & Older Openbor for android builds At the moment....
& you have to remember that some old modules require older versions.

anyway that 3rd option is  useful for people who

A: have older Systems
B: don't want/can't use Google play (so no 3rd party apps to browse your files) &
C:  have no PC or MAC to explore & manage their files
 
Sorry for the delay on this answer:

msmalik681 said:
What version of android are you running and what is the device?

the devices are:

Android versions
4.0.3
2.3.5


& i have tested the older build i mentioned earlier (OpenBOR-4100-1.3.3-debug) on even older androids & they all run Nighslashers &  a bunch of other classics fine...

Also , you have to remember that part of my intention is for this is to make those older android systems useful , at least for emulator & openbor gaming -
there are some systems that can't even have access to the play store anymore, but they can run a lot of things fine.
So anything that can help install  things directly with apk is very useful, because even older browsers can access this forum , or filesharing websites, so people who are not so lucky (poor & 3rd world people) but who can at the very least connect to wifi, can download the modules they want & open/install them from their browsers direclty....
 
oldyz OK so you are no longer having problems compiling the android build so if you have anything more to say make a new post.

The only good thing that came from this coversation is I made a mistake the NDK we use can compile back to API 14 (Ice Cream Sandwich 4.0.1) I thought it was API 16 so I will update this on my next commit.

As for supporting legacy android devices I would love to do that but to move forward with the android build we had to drop support for anything older then 4.0.1 so if you want to use the new android apk on a old device I suggest your search on XDA Forums for newer custom firmware for your old device or find a way to compile for older API I will not support you with that as I just do not have the time.
 
I have spent 4 hours trying to compile openbor.I've been out of luck.I have followed the instructions wery carefully.The only difference was java and android command tools version are updated.And there was no ndk-bundle file.Please help.
 
when i made my build , it took me about an hour to download the files. (& that is after figuring out the the directory structure has to be "respected" now)
that & then figuring out what else to do took another 2 (the java step version issue)

for quicker experimentation, & what i ended up doing was to edit an already compiled build of your Punch-man game using APK Editor Studio v1.3.1
(that, and the fact that Nighslashers is 350 MB, & it will never be for sale....)

https://qwertycube.com/apk-editor-studio/download/

So i think that for users who have slow downloads, it would be convenient to share the best & latest punchman build so people can edit it using APK editor for their own "non-commercial" Modules....
PS:

if im not mistaken , the APK can be edited using WInrar or Winzip too

 
read my comments in this topic, i documented every step on win7 and it compiled,dont do it on your own or with newest files , use exatly the same ones i mention.one variable that would break it is them changing tools online sp you have to doextra seaeches if thats the case
 
use opensource nasa decryptors or decipher my posts with the aid of alan turing decipher methods for enigma and itll be fine, i did it and you can too.
 
Back
Top Bottom