Superuser.apk, needed by all builds to protect your system against unwanted root calls. Also, when superuser.apk is build the root SU binary is placed as well.

cd ~/android/system/packages/apps
git clone -b eclair http://github.com/cyanogen/android_packages_apps_Superuser.git Superuser



after the source has been downloaded a file needs to be modified so that the AOSP SU binary will not be made.

gedit ~/android/system/system/extras/su/Android.mk


in the text box that opens remove the current text and paste in the following

ifeq ($(BUILD_ORIGINAL_SU),true)

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES:= su.c

LOCAL_MODULE:= su

LOCAL_FORCE_STATIC_EXECUTABLE := true

LOCAL_STATIC_LIBRARIES := libc

LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := debug

include $(BUILD_EXECUTABLE)

endif


all following builds will now have both Superuser.apk and Root

 
android_project/build/mod/root.txt · Last modified: 2010/06/11 13:34 by sniffle
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki