Closed Bug 952936 Opened 11 years ago Closed 9 years ago

Use CAF's platform/system/core's repository to make B2G binaries executable

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

Attachments

(1 file)

To produce valid FOTA packages, we need to augment the permissions defined in Android. This is already done in https://github.com/mozilla-b2g/platform_system_core/commit/542d1f59dc331b472307e5bd043101d14d5a3a3e.
This commit is not in the master branch of the repository.
Assignee: nobody → lissyx+mozillians
Code Aurora's repo has it:

commit b04108af99dd58340fea878079640bc4943e6b3e
Author: Indrajeet Kumar <ikumar@codeaurora.org>
Date:   Fri Sep 20 08:21:48 2013 -0700

    filesystem_config: Mark /system/b2g programs executable
    
    Change-Id: Ie1f6d079214da7acc0c8f776db24b6465a12d1c9

diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index 8289561..3139d9f 100755
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -180,6 +180,9 @@ static struct fs_path_config android_dirs[] = {
 ** and will allow partial matches.
 */
 static struct fs_path_config android_files[] = {
+    { 00775, AID_ROOT,      AID_ROOT,      "system/b2g/b2g" },
+    { 00775, AID_ROOT,      AID_ROOT,      "system/b2g/updater" },
+    { 00775, AID_ROOT,      AID_ROOT,      "system/b2g/plugin-container" },
     { 00440, AID_ROOT,      AID_SHELL,     "system/etc/init.goldfish.rc" },
     { 00550, AID_ROOT,      AID_SHELL,     "system/etc/init.goldfish.sh" },
     { 00550, AID_ROOT  ,    AID_SYSTEM,    "system/etc/init.qcom.sdio.sh" },
alex@portable-alex:~/codaz/Mozilla/b2g/caf_hamachi_platform_system_core$
Summary: Use mozilla-b2g/platform_system_core to make B2G binaries executable → Use CAF's platform/system/core's repository to make B2G binaries executable
Please find attached a link to the github pull request that makes use of b2g_ics_1.2 revision for ICS-based devices.

After applying and testing for Inari, the updater-script contains the correct permissions for a FOTA package built:
set_perm_recursive(0, 0, 0755, 0644, "/system/b2g");
set_perm(0, 0, 0775, "/system/b2g/b2g");
set_perm(0, 0, 0775, "/system/b2g/plugin-container");
set_perm(0, 0, 0775, "/system/b2g/updater");
Attachment #8351228 - Flags: review?(mwu)
b2g_ics_1.2 can *only* be used for CAF based devices. Devices which are inherently AOSP need a local fork, but we're not actually supporting any ICS devices based off AOSP.
(In reply to Michael Wu [:mwu] from comment #4)
> b2g_ics_1.2 can *only* be used for CAF based devices. Devices which are
> inherently AOSP need a local fork, but we're not actually supporting any ICS
> devices based off AOSP.

Aren't Leo and Inari CAF-based ?

Whatever the solution, we need to fix the header defining the permissions.
Yeah. In general, commercial devices can take this update, nexus and emulator can not.
(In reply to Michael Wu [:mwu] from comment #6)
> Yeah. In general, commercial devices can take this update, nexus and
> emulator can not.

Since we are not supporting Nexus devices and that producing updates for the emulator does not make a lot of sense, that should be okay.
Attachment #8351228 - Flags: review?(mwu)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: