Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#11525 - [RaaA] load librockbox.so from sdcard

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Sunday, 08 August 2010, 10:03 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Tuesday, 07 September 2010, 15:26 GMT+2
Task Type Patches
Category Bootloader
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Release 3.6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This patch is a WIP to load librockbox and libmisc from the sdcard instead of the application dir and apk.
The point of this is so we can have one apk which is tiny and works on all android devices which then downloads the build for that screen size (and to make updating easier for users)

This version just looks for librockbox.so in the /sdrcard/rockbox dir and loads it if found, otherwise it loads the one from the .apk Ideally it will look for a rockbox.zip which gets extracted instead.

This obviously isnt ready, only putting it up so I dont lose it
   loadfromsd.patch (2.1 KiB)
 android/src/org/rockbox/RockboxService.java |   40 ++++++++++++++++++++++++++--
 1 file changed, 38 insertions(+), 2 deletions(-)

This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Tuesday, 07 September 2010, 15:26 GMT+2
Reason for closing:  Rejected
Comment by Jonathan Gordon (jdgordon) - Monday, 09 August 2010, 16:32 GMT+2
This isnt quite working but alot closer to what I'd like...

if /sdcard/rockbox/rockbox.zip exists and is newer than the extracted files it will ask if you want to unzip it before starting the service. It will also ask on first install if you want to "download" the files (which right now does nothing).

rockbox.zip is the zip from make zip (which now has librockbox.so in it)

The splash screen system is all wierd (blame android!) I'm not having much luck stopping rockbox loading untill the user answers the dialog. Also it isnt crashing when I expect it to (i.e first load with no rockbox.zip file) and amazingly loads rockbox! (from where? NFI!)
   bootfromsd.diff (11.2 KiB)
 android/src/org/rockbox/RockboxActivity.java |   45 ++++++++---
 android/src/org/rockbox/RockboxService.java  |   66 +---------------
 android/src/org/rockbox/RockboxUpdater.java  |  107 +++++++++++++++++++++++++++
 tools/buildzip.pl                            |   16 ++--
 4 files changed, 154 insertions(+), 80 deletions(-)

Comment by Jonathan Gordon (jdgordon) - Tuesday, 10 August 2010, 11:37 GMT+2
ALMOST working properly.
The attached apk hopefully works... apply the patch and do a build for your target, do make zip then copy that zip to /sdcard/rockbox then run the apk
   loadfromsd.1.patch (12.7 KiB)
 android/src/org/rockbox/RockboxActivity.java |   45 +++++++----
 android/src/org/rockbox/RockboxService.java  |   79 ++-----------------
 android/src/org/rockbox/RockboxUpdater.java  |  110 +++++++++++++++++++++++++++
 tools/configure                              |    6 -
 tools/buildzip.pl                            |   16 ++-
 uisimulator/common/io.c                      |    2 
 6 files changed, 164 insertions(+), 94 deletions(-)

   Rockbox.apk (21.5 KiB)

Loading...