Sad for Android!

This is where the BIN Hackers and definition junkies discuss the inner workings of the EEC code and hardware. General tuning questions do not go here. Only technical/hardware-specific/code questions and discussions belong here.

Moderators: cgrey8, EDS50, Jon 94GT, 2Shaker

Post Reply
motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Sad for Android!

Post by motorhead1991 » Tue Dec 25, 2018 3:44 am

Alright.... I guess now is a good a time as ever to announce the project I've been working on...
Screenshot_Sad_for_Android_20181225-014425.png
Screenshot_Sad_for_Android_20181225-014425.png (59.42 KiB) Viewed 1623 times
Since most of us do things on the go, why not disassemble binaries on the device in your pocket?

S4A Video

Combining my two growing skillsets, I created a simple Java interface for Android devices (currently works on 8.0+), and it's nearly ready for release.

Things left to do:
- fix the "about" button behaviour
- fix the "sad" binary for Android (unexpected behaviour)
- push a toast message when a file doesn't exist
- auto-create a dir file from "msg"
- clean up the UI to make it more appealing (and theme friendly)
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Mon Jan 07, 2019 10:45 am

No real news except that it builds with Android Studio now, and should also build with the AOSP source. It also works on Android P, but I need to work on legacy compatibility.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
tvrfan
Tuning Addict
Posts: 409
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: Sad for Android!

Post by tvrfan » Tue Jan 08, 2019 1:56 pm

Good stuff !!

Does it still use my 'C' code (compiled) with a Java front end ??

I ask as I'm completely ignorant of Android and 'smart device' type OSes, being one of those ex-tech types that has a phone for actually *talking* to people and nothing else. But I do know Android is based on Linux.

I did wonder about other languages which are more portable for/from desktops, like Python or Java.... or something else?

I know Java is very C++ like. so shouldn't be all that hard for me to change/learn.
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Tue Jan 08, 2019 4:39 pm

tvrfan wrote:
Tue Jan 08, 2019 1:56 pm
Good stuff !!

Does it still use my 'C' code (compiled) with a Java front end ??

I ask as I'm completely ignorant of Android and 'smart device' type OSes, being one of those ex-tech types that has a phone for actually *talking* to people and nothing else. But I do know Android is based on Linux.

I did wonder about other languages which are more portable for/from desktops, like Python or Java.... or something else?

I know Java is very C++ like. so shouldn't be all that hard for me to change/learn.
It does, actually. If you look at the open "Pull request" you'll see all the modifications I made to the code (It wasn't much). It actually cross compiled pretty cleanly, I just need to figure out why it doesn't accept a direct command (vs doing it in two steps).
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

caish
Gear Head
Posts: 9
Joined: Fri Mar 08, 2019 4:42 pm

Re: Sad for Android!

Post by caish » Fri Mar 08, 2019 10:17 pm

THis is the sort of thing I joined the forum for.
I don't use Windows. (Linux) but was thinking of putting an android based stereo in my Focus,
would be great to have a complete tuning suite, I know this is not that but shows basis it could be done/ built...
Thanks

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Tue Mar 12, 2019 12:20 pm

caish wrote:
Fri Mar 08, 2019 10:17 pm
THis is the sort of thing I joined the forum for.
I don't use Windows. (Linux) but was thinking of putting an android based stereo in my Focus,
would be great to have a complete tuning suite, I know this is not that but shows basis it could be done/ built...
Thanks
I'm working on communicating with tuning hardware currently. Most apps that can cost money currently.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

caish
Gear Head
Posts: 9
Joined: Fri Mar 08, 2019 4:42 pm

Re: Sad for Android!

Post by caish » Thu Mar 14, 2019 7:07 pm

I wouldn't grip paying $20 for an actual working app, not one that is basically an alpha stage of development, a stable beta with upgrade to version 1.0 when finished, sure...

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Sun Jun 16, 2019 2:25 am

TVRfan's code compiles perfectly fine as a library, meaning I should be able to merge it into the Android system easily, as soon as I figure out how :grin:

I would make more progress on this, but my server puts out a ton of heat, so I'm restricted to wintertime and nighttime use.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Mon Jun 24, 2019 10:37 pm

I think it works finally! Sweet! Now time to Integrate it...
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Tue Jun 25, 2019 10:19 am

motorhead1991 wrote:
Mon Jun 24, 2019 10:37 pm
I think it works finally! Sweet! Now time to Integrate it...
False hope I'm afraid. What I constructed appears to be an executable binary and not a library like I intended. It does work the way I want it to though, finally, but Android is moving away from app-specific executables.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
cgrey8
Administrator
Posts: 10681
Joined: Fri Jun 24, 2005 5:54 am
Location: Acworth, Ga (Metro Atlanta)
Contact:

Re: Sad for Android!

Post by cgrey8 » Tue Jun 25, 2019 12:44 pm

motorhead1991 wrote:
Tue Jun 25, 2019 10:19 am
...Android is moving away from app-specific executables.
What are they moving to?
...Always Somethin'

89 Ranger Supercab, 331 w/GT40p heads, ported Explorer lower, Crane Powermax 2020 cam, 1.6RRs, FMS Explorer (GT40p) headers, Slot Style MAF, aftermarket T5 'Z-Spec', 8.8" rear w/3.27s, Powertrax Locker, Innovate LC-1, GUFB, Moates QuarterHorse tuned using BE&EA

Member V8-Ranger.com

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Tue Jun 25, 2019 12:48 pm

cgrey8 wrote:
Tue Jun 25, 2019 12:44 pm
motorhead1991 wrote:
Tue Jun 25, 2019 10:19 am
...Android is moving away from app-specific executables.
What are they moving to?
Upon further reading, it still looks like executables are fine provided they're not loaded to "/data/data/". If they're native to the app ("/data/app") newer ROMs will allow it for now.

Personally, I'd sooner finish converting it to a library so it can be integrated in Java apps and the like.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

motorhead1991
Regular
Posts: 150
Joined: Tue Nov 21, 2017 2:32 am

Re: Sad for Android!

Post by motorhead1991 » Wed Jun 26, 2019 1:50 pm

All right so, I've managed to make the app work on devices as new as Android P, but I have not figured out how to make it specific to the processor type since the binary used is compiled for most common devices. There's some java tricks you have to do in order to get in the binary you need to the top level in order to access it, and it's not well documented.

I am insanely close to the first release though.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest