Last active
November 21, 2016 13:15
-
-
Save murano500k/4561850436a53db2d48ed7ab049e9ab0 to your computer and use it in GitHub Desktop.
create flashable ota package from img aosp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOCAL_PATH := $(call my-dir) | |
| include $(CLEAR_VARS) | |
| LOCAL_MODULE_TAGS := optional | |
| LOCAL_SRC_FILES := $(call all-java-files-under, src) \ | |
| src/training/gl/android/com/mysytemapp/IMyService.aidl | |
| LOCAL_PACKAGE_NAME := ToastApk | |
| LOCAL_CERTIFICATE := platform | |
| LOCAL_SDK_VERSION := current | |
| include $(BUILD_PACKAGE) | |
| include $(call all-makefiles-under,$(LOCAL_PATH)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]' | |
| mkdir ~/.android-certs | |
| for x in releasekey platform shared media; do \ | |
| ./development/tools/make_key ~/.android-certs/$x "$subject"; \ | |
| done | |
| make dist | |
| ./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs out/dist/aosp_hammerhead-target_files-eng.artem.zip out/dist/signed2.zip | |
| ./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey out/dist/signed2.zip out/dist/signed-ota.zip | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /media/artem/hddgl/aosp6/frameworks/base/core/java/android/os/IMyService.aidl | |
| /media/artem/hddgl/aosp6/frameworks/base/services/java/com/android/server/MyService.java | |
| /media/artem/hddgl/aosp6/frameworks/base/services/java/com/android/server/SystemServer.java | |
| try { | |
| Slog.i(TAG, "MyService"); | |
| ServiceManager.addService("MyService", new MyService(context)); | |
| } catch (Throwable e) { | |
| Slog.e(TAG, "Failure starting TestService Service", e); | |
| } | |
| /* | |
| * open frameworks/base/Android.mk and add following line | |
| */ | |
| ... | |
| core/java/android/os/IPowerManager.aidl \ | |
| core/java/android/os/IMyService.aidl \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment