Welcome, Guest. Please Login or Register
MyECU main site
  Welcome to our forum.
  HomeHelpSearchLoginRegister  
 
Pages: 1 ... 8 9 10 11 
Send Topic Print
Optimiser for Android (Read 136688 times)
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #135 - 07/26/14 at 12:42:29
 
Thanks for the update, LOS, I will try that tomorrow, and let you know how it went.
Back to top
 

44 1/2 degrees North,  1036m up.
 
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #136 - 07/27/14 at 08:29:51
 
Hi again, I tried the suggestion from LOS, and here is what I have found: I moved the .apk file to the SD card, uninstalled the MyECU app, deleted the MyECU folder, and then installed MyECU from the SD card.  I ended up with a MyECU folder in both the SD card and the internal folder, and the app still logs to the internal folder, so I think the best option is if allowing the "move to SD card" is not too difficult for Cliff to implement. 

As to the app crashing in Springfield, it was evidently my fault.  I had turned off the engine to take a break, and when I turned the ignition on again, I immediately started the bluetooth and then tried to do the update.  Evidently, the Map was not loaded, and that caused the app to crash.  Since I had set the logging options to NOT retain old logs, the information was then lost when I restarted the app.  Lesson learned...

Back to top
 

44 1/2 degrees North,  1036m up.
 
IP Logged
 
YaBB Administrator
YaBB Administrator
*****
Offline


I love YaBB!

Posts: 679
The Land of YaBB
Re: Optimiser for Android
Reply #137 - 07/27/14 at 11:55:41
 
This is not an official release but has
android:installLocation="auto" which should allow moving the SD

You shouldn't really be storing more than a few 10s of MB on your device and in the scheme of things this is a negligible part of your 8G.
If space is really tight, it may be better to move other apps to the SD card.
Back to top
« Last Edit: 07/27/14 at 11:57:37 by YaBB Administrator »  

Optimiser.apk (102 KB | 406 )

The Administrator.
WWW  
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #138 - 07/27/14 at 15:09:38
 
Thanks, Cliff, I will try it tomorrow.  Also, I found another way to do it using ADB, which is available in my Linux machine.  I will let you know about both of them.f
Back to top
 

44 1/2 degrees North,  1036m up.
 
IP Logged
 
LOS
YaBB Newbies
*
Offline


90 Cali IIIFFI 949cc,MyP8
MkV,BT,LC-1,Android Opt

Posts: 32
Helsinki, Finland
Gender: male
Re: Optimiser for Android
Reply #139 - 07/27/14 at 16:44:37
 
COnewbie wrote on 07/27/14 at 08:29:51:
Hi again, I tried the suggestion from LOS, and here is what I have found: I moved the .apk file to the SD card, uninstalled the MyECU app, deleted the MyECU folder, and then installed MyECU from the SD card.  I ended up with a MyECU folder in both the SD card and the internal folder, and the app still logs to the internal folder, so I think the best option is if allowing the "move to SD card" is not too difficult for Cliff to implement. 

As to the app crashing in Springfield, it was evidently my fault.  I had turned off the engine to take a break, and when I turned the ignition on again, I immediately started the bluetooth and then tried to do the update.  Evidently, the Map was not loaded, and that caused the app to crash.  Since I had set the logging options to NOT retain old logs, the information was then lost when I restarted the app.  Lesson learned...




It may have worked if you had deleted the MyEcu folder from the internal folder.
The later Android versions may also be more tight with security.
But fortunately it has worked for me because I  really have lack of space.
Back to top
« Last Edit: 07/27/14 at 17:33:47 by LOS »  
 
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #140 - 07/28/14 at 10:52:11
 
Cliff: thanks for the new version.  I have moved the app to my SD card.  However, the original problem remains: the MyECU folder where the log files reside is still in the device folder, not the SD card.  I understand what you are saying, but an 8GB Samsung tablet has a lot of BLOATWARE installed on it by default, which is why I installed the SD card originally.  I will take your advice and make sure I clean out old log files on a regular basis, and try to move some of the BLOATWARE to the SD card.  One of the old log files I have is 6.6MB, however, and looking at the elevation and RPM readings, I would guess it is from a trip to Bend, OR, 35mi away. 

1) Based on that, I would guess that the file I lost from the trip to Springfield, 140mi away, would be much, much larger.  Maybe it crashed the app because it was too big?

2) Since the Mk VII runs twice as fast, does it also log twice as much data?

LOS: I am running Android 4.2.2, and it was tricky to get around the security, but I was finally able to use Android Developer Bridge to set the default install location to SD card, but as I said, the MyECU folder still ended up in the device folder.  As a result, I reset the default location back to Auto, so as not to cause problems with updates or new installations.  Thanks for your efforts to help, anyway.
Back to top
 

44 1/2 degrees North,  1036m up.
 
IP Logged
 
YaBB Administrator
YaBB Administrator
*****
Offline


I love YaBB!

Posts: 679
The Land of YaBB
Re: Optimiser for Android
Reply #141 - 07/28/14 at 12:08:26
 
Just looked at the code and this is what I use to get the path


           mPublicPath = Environment.getExternalStoragePublicDirectory("MyECU");
           mPublicPath.mkdirs();


According to the docs this is all that is required. It could be something specific to the device
Back to top
 

The Administrator.
WWW  
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #142 - 07/28/14 at 12:38:52
 
Yeah, it looks right, but I found the following info:
http://stackoverflow.com/questions/17215466/environment-getexternalstoragedirect...

and this:

http://stackoverflow.com/questions/5453708/android-how-to-use-environment-getext...

So, I think there must be a problem with the symlink in my Tab 2.  I will try to get a look at that.
Back to top
« Last Edit: 07/28/14 at 12:45:55 by COnewbie »  

44 1/2 degrees North,  1036m up.
 
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #143 - 07/30/14 at 03:18:47
 
It looks like I can't set extSDcard as my default location without rooting my tablet; the option is greyed out.  I'll have to think about that for awhile. 

BTW, Cliff, I certainly don't want to have a special version.  Maintaining special versions is a nightmare.

I did some research using ADB, and found that the app is located in /mnt/asec/.  Is that where it should be if it were installed on the SD card?

Where would it be if it were installed internally?

Also, sdcard0 is a link to /storage/emulated/legacy/ .  Is that what you expected, Cliff?

Do you think I can just create a link from ./MyECU/ on /storage/emulated/legacy/ to /storage/extSdCard/MyECU/ ?  I am asking because I have no experience with Android before now.  If it is workable, I will post what I did to make it happen.
Back to top
« Last Edit: 07/30/14 at 12:16:32 by COnewbie »  

44 1/2 degrees North,  1036m up.
 
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #144 - 07/31/14 at 12:18:14
 
COnewbie wrote on 07/30/14 at 03:18:47:
Do you think I can just create a link from ./MyECU/ on /storage/emulated/legacy/ to /storage/extSdCard/MyECU/ ?  I am asking because I have no experience with Android before now.  If it is workable, I will post what I did to make it happen.


Just for grins I tried to create that link, but apparently Android doesn't like links across devices, although I read somewhere that you can do this as root.  I tried to accomplish that from the ADB shell, with no success, so it looks like the only option is to root the tablet.  I'm still thinking about that.

I have been reading in
https://developer.android.com/guide/topics/data/data-storage.html#filesInternal
and it looks like I need Android 4.4.2 on my tablet, so the question is:

Do I wait for Samsung to get around to the update, or root my tablet and install it myself? 

Still weighing risks vs benefits.
Back to top
« Last Edit: 08/01/14 at 07:05:39 by COnewbie »  

44 1/2 degrees North,  1036m up.
 
IP Logged
 
YaBB Administrator
YaBB Administrator
*****
Offline


I love YaBB!

Posts: 679
The Land of YaBB
Re: Optimiser for Android
Reply #145 - 08/29/14 at 07:31:39
 
I've updated the Android Optimiser manual - http://www.myecu.biz/MyECU/AndroidOptimiser/AndroidOptimiser.pdf
Back to top
 

The Administrator.
WWW  
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: Optimiser for Android
Reply #146 - 08/29/14 at 08:29:43
 
COnewbie wrote on 07/31/14 at 12:18:14:
COnewbie wrote on 07/30/14 at 03:18:47:
Do you think I can just create a link from ./MyECU/ on /storage/emulated/legacy/ to /storage/extSdCard/MyECU/ ?  I am asking because I have no experience with Android before now.  If it is workable, I will post what I did to make it happen.

Just for grins I tried to create that link, but apparently Android doesn't like links across devices, although I read somewhere that you can do this as root.  I tried to accomplish that from the ADB shell, with no success, so it looks like the only option is to root the tablet.  I'm still thinking about that.


Are you talking about UNIX links, that you do with "ln"? In that case "ln -s /storage/extSdCard/MyECU /storage/emulated/legacy" should work fine. But maybe I misunderstand the problem completely  Shocked
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
sign216
Full Member
***
Offline



Posts: 176
Re: Optimiser for Android
Reply #147 - 08/29/14 at 22:34:41
 
YaBB Administrator wrote on 08/29/14 at 07:31:39:
I've updated the Android Optimiser manual - http://www.myecu.biz/MyECU/AndroidOptimiser/AndroidOptimiser.pdf


Thank you.  It's always good to have a reference.
Back to top
 
 
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #148 - 08/30/14 at 03:03:19
 
Hi Raz,
     Yes, I tried the Unix link, but it didn't work.  It turns out that Android is based on Linux, and has a lot of the Linux functions, but linking across hardware devices doesn't seem to work, at least in the case of the Samsung Tab.  I will try your suggestion just in case I got the syntax wrong.

Cliff, thanks for the manual update.
Back to top
 

44 1/2 degrees North,  1036m up.
 
IP Logged
 
COnewbie
Full Member
***
Offline


97 Sport1100i My16M MkVII
2 LC-1s

Posts: 120
Central Oregon, USA
Gender: male
Re: Optimiser for Android
Reply #149 - 09/05/14 at 04:32:18
 
Just to be sure, I tried the link command again.  Here is the link command and the result:

ln -s /storage/extSdCard/MyECU /storage/emulated/legacy/MyECU                                <
link failed Cross-device link
Back to top
 

44 1/2 degrees North,  1036m up.
 
IP Logged
 
Pages: 1 ... 8 9 10 11 
Send Topic Print