├── .gitattributes ├── .gitignore ├── Chapter_3 ├── Creating_a_custom_device │ └── device │ │ └── irraref │ │ └── f488 │ │ ├── Android.mk │ │ ├── AndroidProducts.mk │ │ ├── BoardConfig.mk │ │ ├── full_f488.mk │ │ └── vendorsetup.sh └── Module_template_examples │ ├── template_application.mk │ ├── template_natice_exe.mk │ └── template_shared_lib.mk ├── Chapter_6 └── Android-Kitchen_by_dsixda │ ├── README │ ├── menu │ ├── original_update │ └── put_rom_here_ │ ├── scripts │ ├── a2sd_exists │ ├── about │ ├── add_apps2sd │ ├── add_apps2sd_files │ ├── add_apps2sd_to_update_script │ ├── add_bash │ ├── add_bash_to_update_script │ ├── add_busybox │ ├── add_busybox_run_parts │ ├── add_busybox_to_update_script │ ├── add_cachesd_to_update_script │ ├── add_custom_boot_anim │ ├── add_data_app │ ├── add_data_app_to_update_script │ ├── add_data_local_to_update_script │ ├── add_initd_perm_to_update_script │ ├── add_nano │ ├── add_nano_to_update_script │ ├── add_preload_symlinks_to_update_script │ ├── add_su_to_update_script │ ├── add_sysrorw_to_update_script │ ├── add_tether │ ├── adjust_mnt │ ├── app_file_to_working_folder │ ├── boot_img_tools │ ├── build_boot_img │ ├── build_boot_img_for_nand │ ├── build_boot_img_from_folder_form │ ├── build_nand_boot │ ├── build_rom │ ├── call_extract_kernel_and_modules │ ├── change_api_level │ ├── change_cmdline │ ├── change_rom_name │ ├── change_wipe │ ├── check_binaries │ ├── check_bootimg_header │ ├── check_galaxies │ ├── check_galaxy_s │ ├── check_galaxy_s2 │ ├── check_galaxy_s2x │ ├── check_galaxy_s3_common │ ├── check_galaxy_s3_exynos │ ├── check_galaxy_s4_common │ ├── check_galaxy_s4_exynos │ ├── check_galaxy_s_and_s2 │ ├── check_gnote2_common │ ├── check_if_img_yaffs │ ├── check_install_dir │ ├── check_kernel_offset │ ├── check_mt65xx_bootimg │ ├── check_multiple_working │ ├── check_no_bootimg │ ├── check_no_update_script │ ├── check_preload_symlinks │ ├── check_rom │ ├── check_which_update_binary │ ├── check_yaffs_sizes │ ├── choose_rom │ ├── choose_single_deodex │ ├── compile_simg2img │ ├── compile_unyaffs │ ├── convert_to_unix │ ├── convert_update_script │ ├── convert_updater_script │ ├── create_edify_def │ ├── data_app_exists │ ├── disable_sounds │ ├── do_deodex │ ├── do_deodex_file │ ├── do_deodex_folder │ ├── do_root │ ├── do_root_boot_img │ ├── do_zipalign │ ├── ensure_boot_extracted │ ├── ensure_nand_extracted │ ├── extract_boot_img │ ├── extract_ext3_img │ ├── extract_initramfs │ ├── extract_kernel_and_modules │ ├── fix_busybox │ ├── fix_huawei_wifi │ ├── fix_lib_modules │ ├── fix_pre_build │ ├── fix_prima_wifi │ ├── fix_update_script │ ├── fix_update_script_blanks │ ├── fix_update_script_with_features │ ├── get_api_level │ ├── get_boot_img_page_size │ ├── get_boot_img_size │ ├── get_build_prop_val │ ├── get_cmdline │ ├── get_device_name │ ├── get_edify_def_val │ ├── get_kernel_base_addr │ ├── get_kitchen_ver │ ├── get_latest_notes │ ├── get_product_board │ ├── get_product_model │ ├── get_ramdisk_addr │ ├── get_samsung_variant │ ├── get_smali_version │ ├── get_variant_or_device_name │ ├── grep_roms │ ├── img_files_to_working_folder │ ├── init_kitchen │ ├── make_backup_working │ ├── menu_advanced │ ├── menu_legacy │ ├── nano_exists │ ├── plugins │ │ ├── Batch_Deodex.plugin │ │ ├── Decompile_and_Compile_Deodexed_File.plugin │ │ ├── Extract_SGS2_CSC_from_cache.img.plugin │ │ ├── Extract_SGS2_Kernel_Initramfs.plugin │ │ ├── Extract_SGS_CSC_from_cache.rfs.plugin │ │ ├── Install_SGS2_CWM_Manager.plugin │ │ ├── ReadMe.plugin │ │ └── Sample.plugin │ ├── port_rom │ ├── porting_tools │ ├── pre_froyo_check │ ├── press_enter │ ├── prompt_build_boot │ ├── prompt_nand_type │ ├── prompt_remove_boot_extracted │ ├── prompt_show_rom_info │ ├── remove_recovery │ ├── remove_xperia_bloat │ ├── rfs_files_to_working_folder │ ├── run_plugins │ ├── set_build_prop_val │ ├── set_kernel_offset_files │ ├── set_update_name │ ├── set_working_folder_name │ ├── sext4_tar_files_to_working_folder │ ├── sgs_tar_files_to_working_folder │ ├── sgs_tarmd5_files_to_working_folder │ ├── show_boot_img_info │ ├── show_cache_warning │ ├── show_explore2fs │ ├── show_ext2explore │ ├── show_linux_reader │ ├── show_magiciso │ ├── show_rom_info │ ├── show_rooted_kernel_msg │ ├── sign_files │ ├── sign_files_in_folder │ ├── simg_ext4_files_to_working_folder │ ├── simg_files_to_working_folder │ ├── tar_file_to_working_folder │ ├── task_killer │ ├── unpack_data_img │ ├── unzip_csc │ ├── update_script_convert_menu │ ├── update_script_should_convert_back │ ├── verify_update_script │ ├── wkg_to_working_folder │ └── zip_file_to_working_folder │ └── tools │ ├── apps │ └── wireless_tether_2_0_7.apk │ ├── apps2sd_files │ ├── apps2sd_run_program │ ├── apps2sd_system │ ├── data │ │ ├── dtinstall.launch │ │ └── jit │ │ │ ├── bin │ │ │ └── dalvikvm │ │ │ └── lib │ │ │ ├── libdvm.so │ │ │ └── libnativehelper.so │ ├── move_cache_sd │ ├── system │ │ ├── bin │ │ │ ├── a2sd │ │ │ ├── apps2sd.hlp │ │ │ ├── bash │ │ │ ├── busybox.a2sd │ │ │ ├── chka2sd │ │ │ ├── dtinstall │ │ │ ├── jita2sd │ │ │ ├── launcha2sd │ │ │ ├── starta2sd │ │ │ ├── sysinit │ │ │ └── zipalign │ │ ├── etc │ │ │ └── init.d │ │ │ │ ├── 00banner │ │ │ │ ├── 01sysctl │ │ │ │ ├── 02firstboot │ │ │ │ ├── 04apps2sd │ │ │ │ └── 99complete │ │ ├── sd │ │ │ └── placeholder │ │ └── xbin │ │ │ ├── a2sd │ │ │ └── apps2sd │ └── version.txt │ ├── bash │ ├── busybox_files │ ├── busybox │ ├── installbusybox │ └── version.txt │ ├── check_data_app │ ├── deodex_files │ ├── api_level.txt │ ├── baksmali-1.4.2.jar │ ├── baksmali-2.0b4.jar │ ├── smali-1.4.2.jar │ ├── smali-2.0b4.jar │ └── use_this_version.txt │ ├── diskinternals_windows │ ├── Linux_Reader.exe │ └── version.txt │ ├── edify_defs │ ├── GT-I8150 │ ├── GT-I8160 │ ├── GT-I8160L │ ├── GT-I8160P │ ├── GT-I9000 │ ├── GT-I9001 │ ├── GT-I9070 │ ├── GT-I9100 │ ├── GT-I9100X │ ├── GT-I9103 │ ├── GT-I9300 │ ├── GT-I9300Korean │ ├── GT-I9305 │ ├── GT-I9500 │ ├── GT-I9505 │ ├── GT-N7100 │ ├── GT-S5570 │ ├── LT22i │ ├── LT29i │ ├── MT27i │ ├── PAP4500DUO │ ├── PAP4500TDUO │ ├── SCH-I535 │ ├── SCH-I545 │ ├── SCH-R970 │ ├── SGH-I317 │ ├── SGH-I337 │ ├── SGH-I337M │ ├── SGH-I747 │ ├── SGH-M919 │ ├── SGH-T889 │ ├── SGH-T999 │ ├── SPH-L710 │ ├── SPH-L720 │ ├── SPH-L900 │ ├── ST18a │ ├── ST25a │ ├── ST25i │ ├── _template │ ├── ace │ ├── amoi89_wet_jb2 │ ├── crespo │ ├── crespo4g │ ├── dlx │ ├── e1911_v77_gq2000_ov5647 │ ├── endeavoru │ ├── enrc2b │ ├── evita │ ├── evitareul │ ├── express │ ├── flyer │ ├── glacier │ ├── hwu8860 │ ├── jewel │ ├── m7 │ ├── maguro │ ├── mako │ ├── mecha │ ├── olympus │ ├── p920 │ ├── p970 │ ├── p990 │ ├── p999 │ ├── primo │ ├── primoc │ ├── pyramid │ ├── ruby │ ├── saga │ ├── shooter │ ├── speedy │ ├── streak7 │ ├── toro │ ├── vigor │ ├── ville │ ├── vision │ ├── vivo │ └── vivow │ ├── explore2fs_windows │ ├── explore2fs.exe │ └── version.txt │ ├── ext2read_windows │ ├── ext2explore.exe │ └── version.txt │ ├── extract_boot_files │ ├── extract-kernel.pl │ └── extract-ramdisk.pl │ ├── formats.txt │ ├── huawei_files │ └── split_updata.pl │ ├── liba2dp_upper.so │ ├── magiciso_windows │ ├── Setup_MagicISO.exe │ └── version.txt │ ├── mkboot │ ├── android_filesystem_config.h │ ├── bootimg.h │ ├── bootimg_mt65xx.h │ ├── mkbootfs.c │ ├── mkbootimg.c │ ├── mkbootimg_mt65xx.c │ ├── rsa.c │ ├── rsa.h │ ├── sha.c │ └── sha.h │ ├── nano_files │ ├── nano │ ├── sysro │ ├── sysrw │ └── terminfo.zip │ ├── nullBoot.img │ ├── samsung_files │ ├── create_preload_symlinks │ ├── flash_image │ ├── java.awt.jar │ ├── model_variants │ │ ├── galaxy_note2 │ │ │ ├── GT-N7100 │ │ │ │ ├── GT-N7100 │ │ │ │ ├── GT-N7105 │ │ │ │ ├── GT-N7105T │ │ │ │ ├── GT-N7108 │ │ │ │ ├── SCH-I605 │ │ │ │ └── SCH-R950 │ │ │ ├── SGH-I317 │ │ │ │ ├── SGH-I317 │ │ │ │ └── SGH-I317M │ │ │ ├── SGH-T889 │ │ │ │ ├── SGH-T889 │ │ │ │ └── SGH-T889V │ │ │ └── SPH-L900 │ │ │ │ └── SPH-L900 │ │ ├── galaxy_s │ │ │ └── GT-I9000 │ │ │ │ ├── GT-I5800 │ │ │ │ ├── GT-I8500 │ │ │ │ ├── GT-I9000 │ │ │ │ ├── GT-I9000B │ │ │ │ ├── GT-I9000M │ │ │ │ ├── GT-I9000T │ │ │ │ ├── SAMSUNG-SGH-I897 │ │ │ │ ├── SAMSUNG-SGH-I997 │ │ │ │ ├── SAMSUNG-SGH-I997R │ │ │ │ ├── SCH-I500 │ │ │ │ ├── SGH-I897 │ │ │ │ ├── SGH-I997 │ │ │ │ ├── SGH-I997R │ │ │ │ ├── SGH-T959 │ │ │ │ ├── SGH-T959V │ │ │ │ ├── SGS-T959 │ │ │ │ └── SPH-D700 │ │ ├── galaxy_s2 │ │ │ ├── GT-I9100 │ │ │ │ ├── GT-I9100 │ │ │ │ ├── GT-I9100G │ │ │ │ ├── GT-I9100M │ │ │ │ ├── GT-I9100T │ │ │ │ ├── GT-N7000 │ │ │ │ ├── GT-N7000B │ │ │ │ ├── SC-02C │ │ │ │ ├── SGH-I777 │ │ │ │ └── SPH-D710 │ │ │ └── GT-I9100X │ │ │ │ ├── GT-I9210 │ │ │ │ ├── GT-I9210T │ │ │ │ ├── SC-03D │ │ │ │ ├── SGH-I717 │ │ │ │ ├── SGH-I717D │ │ │ │ ├── SGH-I717M │ │ │ │ ├── SGH-I717R │ │ │ │ ├── SGH-I727 │ │ │ │ ├── SGH-I727R │ │ │ │ ├── SGH-I757M │ │ │ │ ├── SGH-T989 │ │ │ │ ├── SGH-T989D │ │ │ │ └── readme.txt │ │ ├── galaxy_s3 │ │ │ ├── GT-I9300 │ │ │ │ ├── GT-I9300 │ │ │ │ └── GT-I9300T │ │ │ ├── GT-I9300Korean │ │ │ │ ├── SHV-E210K │ │ │ │ ├── SHV-E210L │ │ │ │ ├── SHV-E210S │ │ │ │ └── SHW-M440S │ │ │ ├── GT-I9305 │ │ │ │ ├── GT-I9305 │ │ │ │ └── GT-I9305T │ │ │ ├── SCH-I535 │ │ │ │ ├── SCH-I535 │ │ │ │ ├── SCH-R530 │ │ │ │ └── SCH-R530U │ │ │ ├── SGH-I747 │ │ │ │ ├── SGH-I747 │ │ │ │ └── SGH-I747M │ │ │ ├── SGH-T999 │ │ │ │ ├── SGH-T999 │ │ │ │ └── SGH-T999V │ │ │ └── SPH-L710 │ │ │ │ ├── SCH-L710 │ │ │ │ └── SPH-L710 │ │ └── galaxy_s4 │ │ │ ├── GT-I9500 │ │ │ └── GT-I9500 │ │ │ ├── GT-I9505 │ │ │ └── GT-I9505 │ │ │ ├── SCH-I545 │ │ │ └── SCH-I545 │ │ │ ├── SCH-R970 │ │ │ └── SCH-R970 │ │ │ ├── SGH-I337 │ │ │ └── SGH-I337 │ │ │ ├── SGH-I337M │ │ │ └── SGH-I337M │ │ │ ├── SGH-M919 │ │ │ ├── SGH-M919 │ │ │ └── SGH-M919V │ │ │ └── SPH-L720 │ │ │ └── SPH-L720 │ ├── model_variants_readme.txt │ ├── redbend_ua │ ├── sgs2_cwm │ │ ├── CWMManager.apk │ │ └── CWM_version.txt │ ├── simg2img_files │ │ ├── ext4_utils.h │ │ ├── simg2img.c │ │ ├── sparse_crc32.c │ │ ├── sparse_crc32.h │ │ └── sparse_format.h │ └── unpack-initramfs │ ├── signapk_files │ ├── signapk.jar │ ├── testkey.pk8 │ └── testkey.x509.pem │ ├── su_files │ ├── chainfire │ │ ├── app │ │ │ └── Superuser.apk │ │ ├── bin │ │ │ └── su │ │ └── version.txt │ ├── chainsdd │ │ ├── Superuser.apk │ │ ├── cupcake-donut │ │ │ └── su │ │ ├── current │ │ │ └── su │ │ └── version.txt │ └── old │ │ ├── app │ │ └── Superuser.apk │ │ └── bin │ │ └── su │ ├── testsign.jar │ ├── unyaffs_files │ ├── unyaffs.c │ └── unyaffs.h │ ├── update_files │ ├── default_symlinks │ ├── emmc-mt65xx-update-binary │ ├── emmc-not-neon-update-binary │ ├── emmc-update-binary │ ├── mtd-update-binary │ ├── sgs2-update-binary │ ├── sgs3-update-binary │ └── update-script │ └── zipalign_files │ ├── version.txt │ ├── zipalign │ ├── zipalign.exe │ └── zipalign.mac ├── Chapter_7 ├── bash_installer_script.sh ├── template_for_binary_package │ └── Android.mk ├── template_for_sourcecode_package │ └── Android.mk └── updater_script ├── Chapter_8 └── udoo_quad_arduino_example.c ├── LICENSE.txt └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | -------------------------------------------------------------------------------- /Chapter_3/Creating_a_custom_device/device/irraref/f488/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | Include $(CLEAN_VARS) 3 | 4 | Ifneq ($(filter f488, $(TARGET_DEVICE)),) 5 | Include $(call all-makefile-unter, $(LOCAL_PATH)) 6 | Endif 7 | -------------------------------------------------------------------------------- /Chapter_3/Creating_a_custom_device/device/irraref/f488/AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | PRODUCT_MAKEFILES:= $(LOCAL_DIR)/full_f488.mk 2 | -------------------------------------------------------------------------------- /Chapter_3/Creating_a_custom_device/device/irraref/f488/BoardConfig.mk: -------------------------------------------------------------------------------- 1 | TARGET_NO_BOOTLOADER := true 2 | TARGET_NO_KERNEL := true 3 | TARGET_CPU_ABI := armeabi 4 | HAVE_HTC_AUDIO_DRIVER := true 5 | BOARD_USES_GENERIC_AUDIO := true 6 | 7 | # no hardware camera 8 | USE_CAMERA_STUB := true 9 | 10 | # CPU 11 | TARGET_ARCH_VARIANT := armv7-a-neon 12 | ARCH_ARM_HAVE_TLS_REGISTER := true 13 | -------------------------------------------------------------------------------- /Chapter_3/Creating_a_custom_device/device/irraref/f488/full_f488.mk: -------------------------------------------------------------------------------- 1 | $(call inherit-product, 2 | $(SRC_TARGET_DIR)/product/aosp_base.mk 3 | # 4 | DEVICE_PACKAGE_OVERLAY:= 5 | 6 | PRODUCT_PACKAGE+= 7 | PRODUCT_COPY_FILES+= 8 | PRODUCT_NAME:= full_f488 9 | PRODUCT_DEVICE:= f488 10 | PRODUCT_MODEL:= Android for Irarref F488 11 | -------------------------------------------------------------------------------- /Chapter_3/Creating_a_custom_device/device/irraref/f488/vendorsetup.sh: -------------------------------------------------------------------------------- 1 | add_lunch_combo full_f488-eng 2 | -------------------------------------------------------------------------------- /Chapter_3/Module_template_examples/template_application.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_MODULE_TAGS:= eng 5 | LOCAL_SRC_FILES:= $(call all-java-files-under src) 6 | LOCAL_PACKAGE_NAME:= MyApplication 7 | 8 | include $(BUILD_PACKAGE) 9 | -------------------------------------------------------------------------------- /Chapter_3/Module_template_examples/template_natice_exe.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= your_executable.c 5 | LOCAL_MODULE:= your_executable 6 | 7 | include $(BUILD_EXECUTABLE) 8 | -------------------------------------------------------------------------------- /Chapter_3/Module_template_examples/template_shared_lib.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= foo.c bar.c 5 | LOCAL_MODULE:= libmysharedlib 6 | LOCAL_PRELINK_MODULE := false # Prevent from prelink error 7 | 8 | include $(BUILD_SHARED_LIBRARY) 9 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/README: -------------------------------------------------------------------------------- 1 | 2 | Welcome to dsixda's Android Kitchen. This is a ROM customization kitchen used for Android devices made by manufacturers such as HTC, Samsung and many others. 3 | 4 | Downloading the kitchen: 5 | 6 | To get the latest (as well as older) official releases from GitHub: 7 | https://github.com/dsixda/Android-Kitchen/releases 8 | 9 | To get the latest beta release from Github (newer than official, yet to be tagged as a release): 10 | https://github.com/dsixda/Android-Kitchen/archive/master.zip 11 | 12 | 13 | A list of supported devices, as well as release notes, setup instructions and FAQ are all found here: 14 | http://forum.xda-developers.com/showthread.php?p=5626292 15 | 16 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/original_update/put_rom_here_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/original_update/put_rom_here_ -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/a2sd_exists: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd WORKING_* 12 | 13 | if [ "`find . -name a2sd`" != "" ] || [ "`find . -type d -name sd`" != "" ] 14 | then 15 | cd .. 16 | exit 1 17 | 18 | elif [ -d system/etc/init.d ] && [ "`find system/etc/init.d -name *apps2sd*`" != "" ] 19 | then 20 | cd .. 21 | exit 1 22 | 23 | else 24 | cd .. 25 | exit 0 26 | fi 27 | 28 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/add_apps2sd_files: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | cd WORKING_* 13 | 14 | echo 15 | echo "Copying necessary Apps2SD files to /data and /system folders ..." 16 | echo 17 | 18 | cp -rf ../tools/apps2sd_files/data . 19 | cp -rf ../tools/apps2sd_files/system . 20 | 21 | cd .. 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/add_bash: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | clear 12 | 13 | echo 14 | echo "----------------------------------------------------------------" 15 | echo 16 | echo "The Bash command shell is handy for command line completion when " 17 | echo "using a terminal emulator (e.g. ConnectBot) on your Android" 18 | echo "device. To start it from a shell, type: bash" 19 | echo 20 | echo "----------------------------------------------------------------" 21 | echo 22 | 23 | echo -n "Proceed with install (y/n)? (default: y): " 24 | read do_install 25 | 26 | if [ "$do_install" == "n" ] 27 | then 28 | exit 0 29 | fi 30 | 31 | echo 32 | 33 | if [ -d WORKING_* ] 34 | then 35 | echo Found working folder 36 | else 37 | echo No working folder found! 38 | exit 0 39 | fi 40 | 41 | cd WORKING_* 42 | 43 | if [ ! -d system ] 44 | then 45 | echo "No system folder found!" 46 | cd .. 47 | exit 0 48 | fi 49 | 50 | 51 | bash_path=`find . -name bash` 52 | if [ "$bash_path" == "" ] 53 | then 54 | 55 | if [ -d system/xbin ] 56 | then 57 | echo Found /system/xbin 58 | else 59 | echo Creating /system/xbin 60 | mkdir system/xbin 61 | fi 62 | 63 | echo "Adding /system/xbin/bash" 64 | cp ../tools/bash system/xbin/ 65 | else 66 | echo "Found $bash_path" 67 | fi 68 | 69 | cd .. 70 | scripts/add_bash_to_update_script 71 | 72 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/add_custom_boot_anim: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | clear 13 | 14 | echo 15 | echo "----------------------------------------------------------------" 16 | echo 17 | echo "This option allows you to use a custom boot animation in place" 18 | echo "of the default one." 19 | echo 20 | echo "After enabling this option, your boot animation should be copied" 21 | echo "under the /data/local folder as 'bootanimation.zip'." 22 | echo 23 | echo "----------------------------------------------------------------" 24 | echo 25 | 26 | echo -n "Proceed (y/n)? (default: y): " 27 | read do_install 28 | 29 | if [ "$do_install" == "n" ] 30 | then 31 | exit 0 32 | fi 33 | 34 | echo 35 | 36 | if [ -d WORKING_* ] 37 | then 38 | echo 39 | echo Working folder found 40 | cd WORKING_* 41 | else 42 | echo 43 | echo Working folder not found, you will need to create one! 44 | exit 0 45 | fi 46 | 47 | echo 48 | 49 | if [ -d data/local ] 50 | then 51 | echo /data/local already exists 52 | else 53 | echo Creating /data/local 54 | mkdir -p data/local 55 | fi 56 | 57 | if [ ! -e data/local/placeholder ] 58 | then 59 | touch data/local/placeholder 60 | fi 61 | 62 | cd .. 63 | scripts/add_data_local_to_update_script 64 | echo 65 | 66 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/add_data_app: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | if [ "$1" == "" ] 13 | then 14 | clear 15 | 16 | elif [ "$1" == "show_help" ] 17 | then 18 | 19 | clear 20 | echo 21 | echo "------------------------------------------------------------------" 22 | echo 23 | echo "Copying your apps to the /data/app folder (instead of /system/app)" 24 | echo "allows you to update them from the Android Market or to uninstall" 25 | echo "them easily from your device when you no longer want them." 26 | echo 27 | echo "------------------------------------------------------------------" 28 | echo 29 | 30 | fi 31 | 32 | if [ "$1" != "dont_ask" ] 33 | then 34 | echo -n "Proceed with /data/app feature (y/n)? (default: y): " 35 | read do_app 36 | 37 | if [ "$do_app" == "n" ] 38 | then 39 | exit 0 40 | fi 41 | fi 42 | 43 | echo 44 | 45 | if [ -d WORKING_* ] 46 | then 47 | echo Working folder found 48 | cd WORKING_* 49 | else 50 | echo Working folder not found, you will need to create one! 51 | exit 0 52 | fi 53 | 54 | if [ -d data/app ] 55 | then 56 | echo /data/app already exists 57 | else 58 | echo Creating /data/app 59 | mkdir -p data/app 60 | fi 61 | 62 | if [ ! -e data/app/placeholder ] 63 | then 64 | touch data/app/placeholder 65 | fi 66 | 67 | cd .. 68 | scripts/add_data_app_to_update_script 69 | 70 | echo 71 | echo "Finished adding /data/app" 72 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/add_initd_perm_to_update_script: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | cd WORKING_* 13 | 14 | if [ -d system/etc/init.d ] 15 | then 16 | 17 | echo 18 | echo "Checking whether update-script requires update for /system/etc/init.d ..." 19 | 20 | cd META-INF/com/google/android 21 | 22 | if [ -e update-script ] 23 | then 24 | 25 | if [ `grep -c "set_perm_recursive .*SYSTEM:etc/init.d$" update-script` == 0 ] 26 | then 27 | 28 | echo "update-script is being modified" 29 | 30 | # Look for line with set_perm_recursive of SYSTEM: 31 | grep_perm=`grep set_perm_recursive update-script | grep -m 1 "SYSTEM:[ ]*$"` 32 | 33 | if [ "$grep_perm" == "" ] 34 | then 35 | sed -i -e 's/copy_dir PACKAGE:system SYSTEM:/copy_dir PACKAGE:system SYSTEM:\nset_perm_recursive 0 0 0777 0777 SYSTEM:etc\/init.d/g' update-script 36 | else 37 | sed -i -e 's/\(set_perm_recursive[ ]*[^\ ]*[ ]*[^\ ]*[ ]*[^\ ]*[ ]*[^\ ]*[ ]*SYSTEM:[ ]*$\)/\1\nset_perm_recursive 0 0 0777 0777 SYSTEM:etc\/init.d/g' update-script 38 | fi 39 | 40 | if [ `grep -c "set_perm_recursive .*SYSTEM:etc/init.d$" update-script` == 0 ] 41 | then 42 | echo "Error: Could not find the line to update in update-script" 43 | fi 44 | 45 | else 46 | echo "update-script already has permissions set for init.d folder" 47 | fi 48 | 49 | else 50 | echo "Error: No update-script found!" 51 | fi 52 | 53 | cd ../../../.. 54 | 55 | fi 56 | 57 | cd .. 58 | scripts/fix_update_script_blanks 59 | 60 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/add_preload_symlinks_to_update_script: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd WORKING_* 12 | 13 | if [ ! -e META-INF/com/google/android/update-script ] 14 | then 15 | echo "Error: update-script not found!" 16 | cd .. 17 | exit 0 18 | fi 19 | 20 | if [ `grep -c "create_preload_symlinks" META-INF/com/google/android/update-script` != 0 ] 21 | then 22 | echo "update-script already has /preload app symlinks content" 23 | cd .. 24 | exit 0 25 | 26 | else 27 | 28 | cd META-INF/com/google/android 29 | 30 | echo "Updating update-script with /preload app symlinks entries" 31 | 32 | sed -i \ 33 | -e 's/\(copy_dir PACKAGE:system SYSTEM:\)[ ]*[\n]*/\1\nformat PRELOAD:\ncopy_dir PACKAGE:preload PRELOAD:\n/' \ 34 | -e 's/\(set_perm_recursive 0 2000 0755 0755 SYSTEM:bin\)[ ]*[\n]*/\1\nrun_program PACKAGE:create_preload_symlinks\n/' \ 35 | update-script 36 | 37 | 38 | cd ../../../.. 39 | 40 | fi 41 | 42 | cd .. 43 | scripts/fix_update_script_blanks 44 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/build_boot_img_for_nand: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | model=`scripts/get_product_model` 13 | 14 | echo 15 | echo "ro.product.model=$model" 16 | echo 17 | 18 | if [ "$model" == "HTC HD2" ] 19 | then 20 | kernel_offset=2048 21 | kernel_base=0x11800000 22 | cmd_line="no_console_suspend=0" 23 | 24 | else 25 | echo "Warning: Model not defined in kitchen. Using default values!" 26 | kernel_offset=2048 27 | kernel_base=0x11800000 28 | cmd_line="no_console_suspend=0" 29 | fi 30 | 31 | echo "Hard-coding:" 32 | echo "- kernel offset in boot.img = $kernel_offset" 33 | echo "- kernel base address = $kernel_base" 34 | echo "- command line parameter = $cmd_line" 35 | 36 | scripts/build_boot_img $kernel_offset $kernel_base $cmd_line 37 | 38 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/build_boot_img_from_folder_form: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | 13 | scripts/prompt_remove_boot_extracted 14 | mkdir BOOT-EXTRACTED 15 | 16 | cd WORKING_* 17 | cd BOOT 18 | mv RAMDISK ../../BOOT-EXTRACTED/boot.img-ramdisk 19 | mv kernel ../../BOOT-EXTRACTED/zImage 20 | 21 | base_offset=`cat base | sed -e 's/\(0x[0-9]*\)/\1/g'` 22 | cmd_line=`cat cmdline | sed -e 's/\(.*\)/\1/g'` 23 | 24 | cd .. 25 | rm -rf BOOT 26 | mv SYSTEM ../system.temp 27 | rm -rf * 28 | mv ../system.temp system 29 | cd .. 30 | 31 | platform=`scripts/get_build_prop_val ro.board.platform` 32 | 33 | if [ "$platform" == "qsd8k" ] 34 | then 35 | kernel_offset=2048 36 | 37 | elif [ "$platform" == "msm8660" ] || [ "$platform" == "s5pc110" ] || \ 38 | [ "$platform" == "msm7x30" ] 39 | then 40 | kernel_offset=4096 41 | 42 | else 43 | echo 44 | echo "Unable to determine offset of kernel (also known as page size) in boot.img." 45 | echo "If you are not going to flash this boot.img then just use the default value." 46 | echo 47 | echo -n "Please enter page size (default=4096): " 48 | read kernel_offset 49 | echo 50 | 51 | if [ "$kernel_offset" == "" ] 52 | then 53 | kernel_offset=4096 54 | fi 55 | 56 | fi 57 | 58 | scripts/build_boot_img $kernel_offset $base_offset $cmd_line 59 | 60 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/build_nand_boot: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | echo 12 | 13 | if [ -d BOOT-EXTRACTED ] 14 | then 15 | echo Found BOOT-EXTRACTED folder, checking contents ... 16 | 17 | if [ -d BOOT-EXTRACTED/boot.img-ramdisk ] 18 | then 19 | echo Found boot.img-ramdisk 20 | 21 | if [ -e BOOT-EXTRACTED/zImage ] 22 | then 23 | echo Found zImage 24 | else 25 | echo Did not find BOOT-EXTRACTED/zImage 26 | exit 0 27 | fi 28 | 29 | else 30 | echo Did not find BOOT-EXTRACTED/boot.img-ramdisk folder! 31 | exit 0 32 | fi 33 | 34 | else 35 | echo Did not find BOOT-EXTRACTED folder! 36 | exit 0 37 | fi 38 | 39 | 40 | if [ -d WORKING_* ] 41 | then 42 | echo Working folder found 43 | else 44 | echo Working folder not found! 45 | exit 0 46 | fi 47 | 48 | 49 | echo 50 | echo "Building initrd.gz ..." 51 | 52 | cd BOOT-EXTRACTED/boot.img-ramdisk 53 | find . | cpio -o -H newc | gzip > ../initrd.gz 54 | cd .. 55 | rm -rf boot.img-ramdisk 56 | 57 | cd .. 58 | cd WORKING_* 59 | 60 | if [ -e boot.img ] 61 | then 62 | echo 63 | echo "Replacing boot.img in working folder with NAND boot folder ..." 64 | rm -f boot.img 65 | fi 66 | 67 | if [ -d boot ] 68 | then 69 | echo 70 | echo "Removing old NAND boot folder ..." 71 | rm -rf boot 72 | fi 73 | 74 | mv ../BOOT-EXTRACTED boot 75 | cd .. 76 | 77 | 78 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_bootimg_header: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional parameter: 13 | # 14 | # $1 = folder name 15 | # 16 | 17 | base_dir=`pwd` 18 | 19 | if [ "$1" == "" ] 20 | then 21 | cd WORKING_* 22 | else 23 | cd $1 24 | fi 25 | 26 | # 27 | # Check for strange boot.img header 28 | # 29 | 30 | check_header=`od -A n -h -j 0 -N 8 boot.img | sed 's/ //g'` 31 | 32 | if [ "$check_header" != "4e415244494f2144" ] 33 | then 34 | 35 | echo 36 | echo "Android 'magic' header not found at start of boot.img" 37 | echo "Checking if it exists elsewhere ..." 38 | 39 | # Mac OS X adds extra spaces between the numbers! 40 | hex_offset=`od -x -A x boot.img | grep -m 1 "4e41 [ ]*5244 [ ]*494f [ ]*2144" | sed -e 's/ .*//'` 41 | 42 | if [ "$hex_offset" != "" ] 43 | then 44 | 45 | # 46 | # Remove leading bytes before the Android header 47 | # 48 | 49 | dec_offset=`printf "%d" 0x$hex_offset` 50 | echo "Android header found at offset $dec_offset" 51 | echo "Removing extra stuff before it so boot.img can be read properly ..." 52 | 53 | dd if=boot.img of=newboot.img bs=1 skip=$dec_offset 54 | rm -f boot.img 55 | mv newboot.img boot.img 56 | echo 57 | cd $base_dir 58 | exit 0 59 | 60 | else 61 | echo "Warning: Android header not found in boot.img (unsupported format)" 62 | cd $base_dir 63 | exit 1 64 | fi 65 | fi 66 | 67 | 68 | cd $base_dir 69 | exit 0 70 | 71 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxies: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | if [ "`scripts/get_samsung_variant`" != "" ] 12 | then 13 | exit 1 14 | else 15 | exit 0 16 | fi 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | model=`scripts/get_build_prop_val ro.product.model` 13 | 14 | if [ -e "tools/samsung_files/model_variants/galaxy_s/GT-I9000/$model" ] 15 | then 16 | exit 1 17 | else 18 | exit 0 19 | fi 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s2: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | model=`scripts/get_build_prop_val ro.product.model` 12 | 13 | if [ -e "tools/samsung_files/model_variants/galaxy_s2/GT-I9100/$model" ] 14 | then 15 | exit 1 16 | else 17 | exit 0 18 | fi 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s2x: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | model=`scripts/get_build_prop_val ro.product.model` 12 | 13 | if [ -e "tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/$model" ] 14 | then 15 | exit 1 16 | else 17 | exit 0 18 | fi 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s3_common: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | my_model=`scripts/get_product_model` 12 | 13 | cd tools/samsung_files/model_variants/galaxy_s3 14 | 15 | for variant_name in `ls` 16 | do 17 | for model_name in `ls $variant_name` 18 | do 19 | if [ "$model_name" == "$my_model" ] 20 | then 21 | cd ../.. 22 | exit 1 23 | fi 24 | done 25 | done 26 | 27 | cd ../../../.. 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s3_exynos: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | model=`scripts/get_build_prop_val ro.product.model` 12 | 13 | if [ -e "tools/samsung_files/model_variants/galaxy_s3/GT-I9300/$model" ] 14 | then 15 | exit 1 16 | fi 17 | 18 | if [ -e "tools/samsung_files/model_variants/galaxy_s3/GT-I9305/$model" ] 19 | then 20 | exit 1 21 | fi 22 | 23 | if [ -e "tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/$model" ] 24 | then 25 | exit 1 26 | fi 27 | 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s4_common: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2013 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | my_model=`scripts/get_product_model` 12 | 13 | cd tools/samsung_files/model_variants/galaxy_s4 14 | 15 | for variant_name in `ls` 16 | do 17 | for model_name in `ls $variant_name` 18 | do 19 | if [ "$model_name" == "$my_model" ] 20 | then 21 | cd ../.. 22 | exit 1 23 | fi 24 | done 25 | done 26 | 27 | cd ../../../.. 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s4_exynos: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2013 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | model=`scripts/get_build_prop_val ro.product.model` 12 | 13 | if [ -e "tools/samsung_files/model_variants/galaxy_s4/GT-I9500/$model" ] 14 | then 15 | exit 1 16 | fi 17 | 18 | exit 0 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_galaxy_s_and_s2: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | `scripts/check_galaxy_s` 13 | sgs=$? 14 | 15 | `scripts/check_galaxy_s2` 16 | sgs2=$? 17 | 18 | if [ "$sgs" == "1" ] || [ "$sgs2" == "1" ] 19 | then 20 | exit 1 21 | else 22 | exit 0 23 | fi 24 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_gnote2_common: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | my_model=`scripts/get_product_model` 12 | 13 | cd tools/samsung_files/model_variants/galaxy_note2 14 | 15 | for variant_name in `ls` 16 | do 17 | for model_name in `ls $variant_name` 18 | do 19 | if [ "$model_name" == "$my_model" ] 20 | then 21 | cd ../.. 22 | exit 1 23 | fi 24 | done 25 | done 26 | 27 | cd ../../../.. 28 | 29 | exit 0 30 | 31 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_if_img_yaffs: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | img_dir=$1 13 | img_file=$2 14 | 15 | if [ "$img_dir" == "" ] || [ "$img_file" == "" ] 16 | then 17 | echo "Error: check_if_img_yaffs is missing information." 18 | echo " Syntax: check_if_img_yaffs " 19 | echo 20 | exit 1 21 | fi 22 | 23 | img_path=$img_dir/$img_file 24 | 25 | if [ ! -e $img_path ] 26 | then 27 | echo "Error: $img_path not found!" 28 | echo 29 | exit 1 30 | fi 31 | 32 | echo 33 | 34 | str1=`od -A n -h -j 264 -N 4 $img_path | sed -e 's/ //g'` 35 | str2=`od -A n -h -j 269 -N 1 $img_path | sed -e 's/ //g'` 36 | 37 | if [ "$str1" == "ff00ffff" ] && [ "$str2" == "0041" ] 38 | then 39 | exit 1 40 | else 41 | exit 0 42 | fi 43 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_install_dir: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | install_dir="`pwd`" 13 | grep_result=`echo "$install_dir" | grep ".* [ ]*"` 14 | 15 | if [ "$grep_result" != "" ] 16 | then 17 | echo 18 | echo "Error: The folder name \"$install_dir\" contains the space character." 19 | echo " This will cause problems with kitchen functionality and the OS." 20 | echo " Please move the kitchen to a folder without spaces." 21 | 22 | example_dir=`echo $install_dir | sed -e 's/\([^ ]*\) .*/\1\//g' -e 's/\(.*\)\/.*\//\/\1/g' -e 's/\/\//\//g'` 23 | echo 24 | echo " For example: $example_dir/kitchen" 25 | echo 26 | 27 | echo 28 | exit 1 29 | else 30 | exit 0 31 | fi 32 | 33 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_kernel_offset: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional parameter: 13 | # 14 | # $1 = folder containing boot.img 15 | # 16 | 17 | 18 | base_dir=`pwd` 19 | 20 | if [ "$1" == "" ] 21 | then 22 | if [ ! -d WORKING_* ] 23 | then 24 | echo Working folder not found! 25 | exit 0 26 | fi 27 | 28 | cd WORKING_* 29 | working_folder=`pwd` 30 | 31 | else 32 | cd $1 33 | working_folder=`pwd` 34 | fi 35 | 36 | 37 | echo 38 | 39 | if [ -e boot.img ] 40 | then 41 | 42 | cd $base_dir 43 | dec_offset=`scripts/get_boot_img_page_size $working_folder` 44 | 45 | if [ "$dec_offset" != "" ] 46 | then 47 | 48 | if [ "$dec_offset" == "0" ] 49 | then 50 | echo "Error: kernel offset (page size) is 0" 51 | exit 1 52 | fi 53 | 54 | echo "Kernel found at offset $dec_offset in boot.img" 55 | 56 | # Check for MT65XX 57 | scripts/check_mt65xx_bootimg $working_folder $dec_offset 58 | mt65xx=$? 59 | 60 | if [ "$mt65xx" == "1" ] 61 | then 62 | type=mt65xx 63 | else 64 | type="" 65 | fi 66 | 67 | scripts/set_kernel_offset_files $dec_offset $type 68 | exit $? 69 | 70 | else 71 | echo "Error: kernel offset (page size) not found in boot.img!" 72 | exit 1 73 | fi 74 | 75 | else 76 | echo "boot.img not found!" 77 | cd $base_dir 78 | exit 1 79 | fi 80 | 81 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_mt65xx_bootimg: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has two parameters 13 | # 14 | # $1 = folder of boot.img (optional) 15 | # $2 = offset in boot.img to kernel (in decimal) (optional) 16 | # - can only be specified if $1 also specified 17 | # 18 | 19 | working_folder=$1 20 | dec_offset=$2 21 | 22 | if [ "$working_folder" == "" ] 23 | then 24 | cd WORKING_* 25 | working_folder=`pwd` 26 | cd .. 27 | 28 | if [ "$dec_offset" == "" ] 29 | then 30 | dec_offset=`scripts/get_boot_img_page_size $working_folder` 31 | fi 32 | fi 33 | 34 | 35 | base_dir=`pwd` 36 | 37 | # Check for MT65XX 38 | cd $working_folder 39 | 40 | if [ ! -e boot.img ] 41 | then 42 | cd $base_dir 43 | echo "Error: boot.img not found" 44 | exit 0 45 | fi 46 | 47 | # Location of "KERNEL" string 48 | str_offset=$(($dec_offset+8)) 49 | if [ "`od -A n -h -j $str_offset -N 6 boot.img | sed 's/ //g'`" \ 50 | == "454b4e524c45" ] 51 | then 52 | echo 53 | echo "MT65xx kernel header detected" 54 | cd $base_dir 55 | exit 1 56 | fi 57 | 58 | cd $base_dir 59 | exit 0 60 | 61 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_multiple_working: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | num_working=`ls | grep -c "^WORKING_"` 13 | if [ $num_working -gt 1 ] 14 | then 15 | echo 16 | echo "Error: You have more than one working folder created" 17 | exit 1 18 | fi 19 | 20 | exit 0 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/check_no_bootimg: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | dest_dir=$1 13 | kitchen_dir=`pwd` 14 | 15 | if [ "$dest_dir" == "" ] 16 | then 17 | cd WORKING_* 18 | dest_dir=`pwd` 19 | else 20 | cd $dest_dir 21 | fi 22 | 23 | if [ ! -e boot.img ] 24 | then 25 | 26 | echo 27 | echo "Warning: A valid boot.img is not found. You have the option to add a" 28 | echo " 'fake' boot.img so that the features of the kitchen can still" 29 | echo " function normally." 30 | echo 31 | echo " This boot.img will be automatically removed from your ROM's" 32 | echo " ZIP file when it is built." 33 | echo 34 | echo -n \ 35 | "Add boot.img (y/n)? (default: y): " 36 | 37 | read add_it 38 | echo 39 | 40 | if [ "$add_it" != "n" ] 41 | then 42 | echo "Copying null boot.img ..." 43 | cp $kitchen_dir/tools/nullBoot.img $dest_dir/boot.img 44 | else 45 | echo "Cancelled" 46 | fi 47 | 48 | cd $kitchen_dir 49 | echo 50 | fi 51 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/choose_single_deodex: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | clear 13 | 14 | 15 | echo 16 | 17 | api_level=`scripts/get_api_level` 18 | 19 | cd WORKING_* 20 | 21 | grep_cmd=`find . | grep \\.odex$ | sort -f` 22 | 23 | if [ "$grep_cmd" == "" ] 24 | then 25 | echo "Error: No files found!" 26 | cd .. 27 | scripts/press_enter 28 | exit 0 29 | fi 30 | 31 | count=0 32 | 33 | rm -f ../temp.list 34 | 35 | echo >> ../temp.list 36 | echo "All ODEX files:" >> ../temp.list 37 | echo >> ../temp.list 38 | 39 | for filename in $grep_cmd 40 | do 41 | count=$(($count+1)) 42 | 43 | # Store file names in an array 44 | file_array[$count]=$filename 45 | echo " ($count) $filename" >> ../temp.list 46 | done 47 | 48 | more ../temp.list 49 | rm -f ../temp.list 50 | 51 | echo 52 | echo -n "Enter file number (0 = cancel): " 53 | 54 | read enterNumber 55 | 56 | if [ "$enterNumber" == "0" ] 57 | then 58 | cd .. 59 | exit 0 60 | 61 | # Verify input is a number 62 | elif [ "`echo $enterNumber | sed 's/[0-9]*//'`" == "" ] 63 | then 64 | 65 | file_chosen=${file_array[$enterNumber]} 66 | 67 | if [ "$file_chosen" == "" ] 68 | then 69 | cd .. 70 | exit 0 71 | fi 72 | 73 | cd .. 74 | version=`scripts/get_smali_version` 75 | cd WORKING_* 76 | cp -f ../tools/deodex_files/baksmali-$version.jar baksmali.jar 77 | cp -f ../tools/deodex_files/smali-$version.jar smali.jar 78 | 79 | ../scripts/do_deodex_file $api_level $file_chosen system/framework 80 | result=$? 81 | rm -f *smali.jar 82 | 83 | fi 84 | 85 | 86 | cd .. 87 | scripts/press_enter 88 | 89 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/compile_simg2img: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | simg2img_file=simg2img 12 | if [ `uname | grep CYGWIN` ] 13 | then 14 | simg2img_file=$simg2img_file.exe 15 | fi 16 | 17 | if [ -e tools/samsung_files/simg2img_files/$simg2img_file ] 18 | then 19 | echo "Found $simg2img_file" 20 | else 21 | echo "Compiling simg2img ..." 22 | 23 | if [ `uname | grep CYGWIN` ] 24 | then 25 | if [ `grep -c __CYGWIN__ tools/samsung_files/simg2img_files/simg2img.c` == 0 ] 26 | then 27 | echo "(But first, adding Cygwin patch for simg2img.c)" 28 | sed -i -e '0,/#include/s//\/* dsixda patch *\/\n#if defined(__CYGWIN__)\n# define lseek64 lseek\n# define ftruncate64 ftruncate\n#endif\n\n#include/g' \ 29 | tools/samsung_files/simg2img_files/simg2img.c 30 | fi 31 | fi 32 | 33 | cd tools/samsung_files/simg2img_files 34 | gcc -c sparse_crc32.c 35 | gcc sparse_crc32.o simg2img.c -w -o simg2img 36 | rm *.o 37 | cd ../../.. 38 | 39 | if [ -e tools/samsung_files/simg2img_files/$simg2img_file ] 40 | then 41 | echo "$simg2img_file successfully compiled" 42 | else 43 | echo "Error: $simg2img_file not successfully compiled!" 44 | exit 1 45 | fi 46 | fi 47 | 48 | exit 0 49 | 50 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/compile_unyaffs: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has two optional parameters: 13 | # 14 | # $1 = folder where the image is located 15 | # $2 = image name (e.g. data.img or system.img) 16 | # 17 | # If not specified, then script assumes system.img in working folder 18 | # 19 | 20 | if [ `uname | grep CYGWIN` ] 21 | then 22 | unyaffs_file=unyaffs.exe 23 | else 24 | unyaffs_file=unyaffs 25 | fi 26 | 27 | if [ -e tools/unyaffs_files/$unyaffs_file ] 28 | then 29 | rm -f tools/unyaffs_files/$unyaffs_file 30 | fi 31 | 32 | scripts/check_yaffs_sizes $1 $2 33 | 34 | if [ "$?" == "1" ] 35 | then 36 | exit 1 37 | fi 38 | 39 | echo "Compiling unyaffs ..." 40 | cd tools/unyaffs_files 41 | gcc -o unyaffs unyaffs.c 42 | cd ../.. 43 | 44 | if [ -e tools/unyaffs_files/$unyaffs_file ] 45 | then 46 | echo unyaffs successfully compiled 47 | else 48 | echo "Error: unyaffs not successfully compiled!" 49 | exit 1 50 | fi 51 | 52 | exit 0 53 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/convert_to_unix: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | file_path=$1 12 | 13 | cat $file_path | tr -d '\r' > $file_path.temp 14 | mv -f $file_path.temp $file_path 15 | 16 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/data_app_exists: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd WORKING_* 12 | cd META-INF/com/google/android 13 | grep_data_app=`grep set_perm update-script | grep -c DATA:app` 14 | cd ../../../../.. 15 | 16 | if [ "$grep_data_app" == "0" ] 17 | then 18 | exit 0 19 | else 20 | 21 | cd WORKING_* 22 | if [ -d data/app ] 23 | then 24 | cd .. 25 | exit 1 26 | else 27 | cd .. 28 | exit 0 29 | fi 30 | fi 31 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/extract_initramfs: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | ## 12 | ## The unpack-initramfs script does not work with all zImages!! 13 | ## 14 | 15 | clear 16 | 17 | scripts/prompt_remove_boot_extracted 18 | 19 | if [ ! -d BOOT-EXTRACTED ] 20 | then 21 | 22 | if [ -d WORKING_* ] 23 | then 24 | echo 25 | echo Working folder found 26 | else 27 | echo 28 | echo Working folder not found, you will need to create one! 29 | exit 0 30 | fi 31 | 32 | initramfs_dir=BOOT-EXTRACTED 33 | mkdir $initramfs_dir 34 | 35 | cd WORKING_* 36 | 37 | if [ -e zImage ] 38 | then 39 | 40 | cp zImage ../BOOT-EXTRACTED 41 | cd .. 42 | cp tools/samsung_files/unpack-initramfs BOOT-EXTRACTED/ 43 | 44 | cd BOOT-EXTRACTED 45 | ./unpack-initramfs zImage 46 | 47 | if [ ! -e kernel ] 48 | then 49 | echo "Error: No kernel found!" 50 | fi 51 | 52 | if [ ! -d initramfs_root ] 53 | then 54 | echo "Error: No initramfs_root folder found!" 55 | else 56 | mv -f initramfs_root boot.img-ramdisk 57 | fi 58 | 59 | rm -f unpack-initramfs zImage 60 | cd .. 61 | echo 62 | 63 | else 64 | echo "Error: zImage not found!" 65 | echo 66 | cd .. 67 | echo "Removing initramfs_dir folder" 68 | rm -rf $initramfs_dir 69 | exit 0 70 | fi 71 | fi 72 | 73 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/fix_huawei_wifi: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | cd WORKING_* 13 | 14 | if [ -e system/cust/hw/default/wpa_supplicant.conf ] && \ 15 | [ ! -e /system/etc/wifi/wpa_supplicant.conf ] 16 | then 17 | 18 | echo 19 | cd system 20 | 21 | if [ -d etc ] 22 | then 23 | 24 | if [ "`find etc -maxdepth 1 -name wifi -type f`" != "" ] || [ "`find etc -maxdepth 1 -name wifi -type l`" != "" ] 25 | then 26 | echo "Removing file /system/etc/wifi" 27 | rm -f etc/wifi 28 | fi 29 | 30 | else 31 | echo "Creating folder /system/etc" 32 | mkdir etc 33 | fi 34 | 35 | if [ "`find etc -maxdepth 1 -name wifi -type d`" == "" ] 36 | then 37 | echo "Creating folder /system/etc/wifi" 38 | mkdir etc/wifi 39 | fi 40 | 41 | echo "Copying /system/cust/hw/default/wpa_supplicant.conf to /system/etc/wifi/" 42 | cp -f cust/hw/default/wpa_supplicant.conf etc/wifi/ 43 | 44 | fi 45 | 46 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/fix_prima_wifi: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd WORKING_* 12 | 13 | if [ -e system/vendor/firmware/wlan/prima/WCNSS_cfg.dat ] 14 | then 15 | 16 | if [ `grep -c WCNSS_qcom_cfg.ini META-INF/com/google/android/update-script` == 0 ] && \ 17 | [ `grep -c WCNSS_qcom_wlan_nv.bin META-INF/com/google/android/update-script` == 0 ] 18 | then 19 | echo "Adding symlinks for Prima WLAN drivers ..." 20 | 21 | rm -f system/vendor/firmware/wlan/prima/WCNSS_qcom_cfg.ini 22 | rm -f system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin 23 | 24 | sed -i \ 25 | -e 's/\(set_perm_recursive 0 0 0755 0644 SYSTEM:[ ]*$\)/symlink \/data\/misc\/wifi\/WCNSS_qcom_cfg.ini SYSTEM:vendor\/firmware\/wlan\/prima\/WCNSS_qcom_cfg.ini\n\1/g' \ 26 | -e 's/\(set_perm_recursive 0 0 0755 0644 SYSTEM:[ ]*$\)/symlink \/data\/misc\/wifi\/WCNSS_qcom_wlan_nv.bin SYSTEM:vendor\/firmware\/wlan\/prima\/WCNSS_qcom_wlan_nv.bin\n\1/g' \ 27 | META-INF/com/google/android/update-script 28 | fi 29 | fi 30 | 31 | cd .. 32 | 33 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/fix_update_script_blanks: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | # 13 | # Remove blank lines 14 | # 15 | 16 | num_working=`ls | grep -c "^WORKING_"` 17 | if [ $num_working == 1 ] 18 | then 19 | if [ -e WORKING_*/META-INF/com/google/android/update-script ] 20 | then 21 | cd WORKING_* 22 | cd META-INF/com/google/android 23 | `sed -i -e '/^$/d' update-script` 24 | cd ../../../../.. 25 | fi 26 | fi 27 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_api_level: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | if [ ! -e tools/deodex_files/api_level.txt ] 12 | then 13 | api_level=UNKNOWN 14 | else 15 | 16 | # Fix Linux issue with carriage returns 17 | sed -i -e '/^$/d' tools/deodex_files/api_level.txt 18 | api_level=`more tools/deodex_files/api_level.txt | sed 's/[ ]*$//g'` 19 | if [ "$api_level" == "" ] 20 | then 21 | api_level=UNKNOWN 22 | fi 23 | fi 24 | 25 | echo $api_level 26 | 27 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_boot_img_page_size: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | # 13 | # This script has one optional parameter: 14 | # 15 | # $1 = folder containing boot.img 16 | # 17 | 18 | base_dir=`pwd` 19 | 20 | if [ "$1" == "" ] 21 | then 22 | if [ ! -d WORKING_* ] 23 | then 24 | echo Working folder not found! 25 | exit 0 26 | fi 27 | cd WORKING_* 28 | else 29 | cd $1 30 | fi 31 | 32 | page_size=`od -A n -D -j 36 -N 4 boot.img | sed 's/ //g'` 33 | 34 | cd $base_dir 35 | echo $page_size 36 | 37 | 38 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_boot_img_size: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | # 13 | # This script has one optional parameter: 14 | # 15 | # $1 = folder containing boot.img 16 | # 17 | 18 | base_dir=`pwd` 19 | 20 | if [ "$1" == "" ] 21 | then 22 | if [ ! -d WORKING_* ] 23 | then 24 | echo Working folder not found! 25 | exit 0 26 | fi 27 | cd WORKING_* 28 | else 29 | cd $1 30 | fi 31 | 32 | 33 | boot_img_size=`ls -lh boot.img | sed -e 's/.* [ ]*\([0-9]*\.[0-9]*[MK]\) .*/\1/g'` 34 | 35 | cd $base_dir 36 | 37 | echo $boot_img_size 38 | 39 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_build_prop_val: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has two parameters: 13 | # 14 | # $1 = parameter in build.prop (mandatory) 15 | # $2 = working folder name (optional) 16 | # 17 | 18 | base_dir=`pwd` 19 | 20 | if [ "$2" == "" ] 21 | then 22 | cd WORKING_* 23 | else 24 | cd $2 25 | fi 26 | 27 | if [ ! -e system/build.prop ] 28 | then 29 | value=UNKNOWN 30 | 31 | else 32 | 33 | cd system 34 | 35 | str=^$1= 36 | grep_str=`grep -c $str build.prop` 37 | 38 | if [ $grep_str == 0 ] 39 | then 40 | value=UNKNOWN 41 | 42 | else 43 | value=`grep -m 1 $str build.prop \ 44 | | sed 's/'"$1"'=//g'` 45 | 46 | if [ "$value" == "" ] 47 | then 48 | value=UNKNOWN 49 | fi 50 | fi 51 | fi 52 | 53 | cd $base_dir 54 | 55 | echo $value 56 | 57 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_cmdline: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | if [ ! -d WORKING_* ] 13 | then 14 | echo "No working folder found!" 15 | exit 0 16 | fi 17 | 18 | cd WORKING_* 19 | 20 | if [ ! -e boot.img ] 21 | then 22 | echo "No boot.img found!" 23 | exit 0 24 | fi 25 | 26 | cmd_line=`od -A n --strings -j 64 -N 512 boot.img` 27 | 28 | echo $cmd_line 29 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_device_name: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional parameter: 13 | # 14 | # $1 = working folder name 15 | # 16 | 17 | device=`scripts/get_build_prop_val ro.product.device $1` 18 | echo $device 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_edify_def_val: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has two mandatory parameters: 13 | # 14 | # $1 = name of device 15 | # $2 = parameter in edify_defs file 16 | # 17 | 18 | device=$1 19 | param=$2 20 | 21 | base_dir=`pwd` 22 | 23 | 24 | if [ ! -e tools/edify_defs/$device ] 25 | then 26 | value=UNKNOWN 27 | 28 | else 29 | 30 | cd tools/edify_defs 31 | 32 | str=^$param= 33 | grep_str=`grep -c $param $device` 34 | 35 | if [ $grep_str == 0 ] 36 | then 37 | value=UNKNOWN 38 | 39 | else 40 | value=`grep -m 1 $param $device \ 41 | | sed 's/'"$param"'=//g'` 42 | 43 | if [ "$value" == "" ] 44 | then 45 | value=UNKNOWN 46 | fi 47 | fi 48 | 49 | cd $base_dir 50 | fi 51 | 52 | echo $value 53 | 54 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_kernel_base_addr: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | cd WORKING_* 13 | 14 | # Get offset 0xE and 0xF, then read in reverse order 15 | base_temp=`od -A n -h -j 14 -N 2 boot.img | sed 's/ //g'` 16 | 17 | # The actual 4-byte Kernel Load Address has an offset at the lower bytes, 18 | # but we want to get the base, ie. no offset. 19 | zeros=0000 20 | base=0x$base_temp$zeros 21 | 22 | cd .. 23 | 24 | echo $base 25 | 26 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_kitchen_ver: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2013 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | kitchen_ver=`more menu | grep version= | sed -e 's/version=\(.*\)/\1/g'` 12 | echo $kitchen_ver 13 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_latest_notes: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | wget -q http://bit.ly/do2GfR -O notes.html 13 | 14 | if [ "$?" == "0" ] 15 | then 16 | 17 | echo 18 | 19 | # Delete from line 1 to the line saying 'Release Notes' 20 | # Delete the range of text from " to "\n" (on the next line) 21 | # Re-format certain formatting tags (ul, li, quotes) 22 | # Grab the text between "]*>/s//\n/' \ 27 | | sed -e 's/
    /\n/g' \ 28 | | sed -e 's/
  • / - /g' \ 29 | | sed -e 's/"/"/g' \ 30 | | sed -e '/
    ]*>//g' \ 32 | | sed -e '/^$/d' \ 33 | 34 | rm -f notes.html 35 | 36 | fi 37 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_product_board: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional parameter: 13 | # 14 | # $1 = working folder name 15 | # 16 | 17 | board=`scripts/get_build_prop_val ro.product.board $1` 18 | echo $board 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_product_model: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional parameter: 13 | # 14 | # $1 = working folder name 15 | # 16 | 17 | model=`scripts/get_build_prop_val ro.product.model $1` 18 | echo $model 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_ramdisk_addr: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | cd WORKING_* 13 | 14 | temp=`od -A n -H -j 20 -N 4 boot.img | sed 's/ //g'` 15 | ramdisk_load_addr=0x$temp 16 | 17 | cd .. 18 | 19 | echo $ramdisk_load_addr 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_samsung_variant: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | my_model=`scripts/get_product_model` 12 | my_model2=`echo $my_model | sed -e 's/SAMSUNG-\(.*\)/\1/g'` 13 | 14 | cd tools/samsung_files/model_variants 15 | 16 | for device_dir in `ls` 17 | do 18 | for variant_name in `ls $device_dir` 19 | do 20 | if [ -e "$device_dir/$variant_name/$my_model" ] || \ 21 | [ -e "$device_dir/$variant_name/$my_model2" ] 22 | then 23 | echo $variant_name 24 | cd ../../.. 25 | exit 0 26 | fi 27 | done 28 | done 29 | 30 | cd ../../.. 31 | echo "" 32 | 33 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_smali_version: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | if [ ! -e tools/deodex_files/use_this_version.txt ] 12 | then 13 | ver=UNKNOWN 14 | else 15 | sed -i -e '/^$/d' tools/deodex_files/use_this_version.txt 16 | ver=`more tools/deodex_files/use_this_version.txt | sed 's/[ ]*$//g'` 17 | if [ "$ver" == "" ] 18 | then 19 | ver=UNKNOWN 20 | fi 21 | fi 22 | 23 | echo $ver 24 | 25 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/get_variant_or_device_name: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | device_name=`scripts/get_samsung_variant` 12 | 13 | if [ "$device_name" == "" ] 14 | then 15 | device_name=`scripts/get_device_name` 16 | fi 17 | 18 | echo $device_name 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/grep_roms: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd original_update 12 | 13 | grep_cmd1=`find . -maxdepth 1 -type f | grep -i \\.zip$ | sed 's/ /temp_space/g' 2>/dev/null` 14 | grep_cmd2=`find . -maxdepth 1 -type f | grep -i \\.tar$ | sed 's/ /temp_space/g' 2>/dev/null` 15 | grep_cmd3=`find . -maxdepth 1 -type f -name system.img 2>/dev/null` 16 | grep_cmd4=`find . -maxdepth 1 -type f | grep -i \\.app$ | sed 's/ /temp_space/g' 2>/dev/null` 17 | 18 | grep_cmd5=`find . -maxdepth 1 -type f -name factoryfs.img 2>/dev/null` 19 | grep_cmd6=`find . -maxdepth 1 -type f -name system.img.ext4 2>/dev/null` 20 | grep_cmd7=`find . -maxdepth 1 -type f -name factoryfs.rfs 2>/dev/null` 21 | 22 | grep_cmd8=`find . -maxdepth 1 -type f -name PDA.tar.md5 2>/dev/null` 23 | 24 | grep_cmd9=`find . -maxdepth 1 -type d | grep "\./WORKING_" | sed 's/ /temp_space/g' 2>/dev/null` 25 | 26 | grep_cmd10=`find . -maxdepth 1 -type f -name system.rfs 2>/dev/null` 27 | 28 | grep_cmd=`echo $grep_cmd1 $grep_cmd2 $grep_cmd3 $grep_cmd4 $grep_cmd5 $grep_cmd6 $grep_cmd7 \ 29 | $grep_cmd8 $grep_cmd9 $grep_cmd10 | sed -e 's/\.\///g' | sort -f` 30 | 31 | cd .. 32 | echo $grep_cmd 33 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/init_kitchen: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | chmod 755 tools/extract_boot_files/extract-*.pl 13 | chmod 755 tools/mkboot/* 14 | chmod 755 tools/unyaffs_files/* 15 | chmod 755 tools/zipalign_files/* 16 | chmod 755 tools/samsung_files/unpack-initramfs 17 | chmod 755 scripts/plugins/* 18 | chmod 755 tools/deodex_files/api_level.txt 19 | rm -f symlinks.log 20 | rm -f tools/explore2fs_windows/explore*.txt 21 | rm -f tools/ext2read_windows/ext2*.log 22 | rm -f ext2*.log 23 | rm -f sh.exe.stackdump 24 | rm -f scripts/.DS_Store 25 | rm -f tools/.DS_Store 26 | rm -f original_update/.DS_Store 27 | rm -f .DS_Store 28 | rm -f unzip.log 29 | 30 | bin_list=( mkbootfs mkbootfs.exe mkbootimg mkbootimg.exe rsa.o sha.o ) 31 | 32 | for mkboot_bin in ${bin_list[@]} 33 | do 34 | if [ -e tools/mkboot/$mkboot_bin ] 35 | then 36 | rm tools/mkboot/$mkboot_bin 37 | fi 38 | done 39 | 40 | 41 | bin_list=( unyaffs unyaffs.exe ) 42 | 43 | for unyaffs_bin in ${bin_list[@]} 44 | do 45 | if [ -e tools/unyaffs_files/$unyaffs_bin ] 46 | then 47 | rm tools/unyaffs_files/$unyaffs_bin 48 | fi 49 | done 50 | 51 | 52 | bin_list=( simg2img simg2img.exe sparse_crc32.o ) 53 | 54 | for simg_bin in ${bin_list[@]} 55 | do 56 | if [ -e tools/samsung_files/simg2img_files/$simg_bin ] 57 | then 58 | rm tools/samsung_files/simg2img_files/$simg_bin 59 | fi 60 | done 61 | 62 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/make_backup_working: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | found_working=`ls | grep "^WORKING_"` 12 | 13 | if [ "$found_working" != "" ] 14 | then 15 | 16 | echo 17 | echo "Before you proceed:" 18 | echo "The existing working folders under the main folder can be backed up" 19 | echo "to the folder 'original_update' for later use; otherwise they will be" 20 | echo "deleted." 21 | 22 | echo 23 | echo "Found the following:" 24 | echo $found_working 25 | echo 26 | echo -n "Move to original_update? (default: y): " 27 | 28 | read do_backup 29 | echo 30 | 31 | if [ "$do_backup" == "n" ] 32 | then 33 | echo "Removing ..." 34 | rm -rf WORKING_* 2>/dev/null 35 | 36 | if [ "$?" == "1" ] 37 | then 38 | exit 1 39 | fi 40 | 41 | else 42 | 43 | # Grab this value again, in case the user manually deleted the 44 | # folder after he/she was prompted 45 | found_working=`ls | grep -m 1 WORKING_` 46 | 47 | if [ "$found_working" != "" ] 48 | then 49 | 50 | # 51 | # Make backup 52 | # 53 | 54 | echo "Moving old working folders to original_update ..." 55 | mv WORKING_* original_update 2>/dev/null 56 | 57 | if [ "$?" == "1" ] 58 | then 59 | exit 1 60 | fi 61 | fi 62 | fi 63 | 64 | echo 65 | 66 | fi 67 | 68 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/nano_exists: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd WORKING_* 12 | nano_path=`find . -type f -name nano` 13 | cd .. 14 | 15 | if [ "$nano_path" == "" ] 16 | then 17 | exit 0 18 | else 19 | exit 1 20 | fi 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/plugins/Batch_Deodex.plugin: -------------------------------------------------------------------------------- 1 | 2 | echo 3 | echo "Batch De-odexer" 4 | echo "---------------" 5 | echo 6 | echo "This script will grab all the ROMs under the original_update folder," 7 | echo "de-odex them, and then move their working folders together to a" 8 | echo "new folder." 9 | echo 10 | 11 | echo -n "Proceed (y/n)? (default: y): " 12 | read do_batch 13 | echo 14 | 15 | if [ "$do_batch" == "n" ] 16 | then 17 | exit 0 18 | fi 19 | 20 | echo "---> Place your ROMs in original_update <--" 21 | 22 | scripts/press_enter 23 | grep_files=`scripts/grep_roms` 24 | 25 | if [ "$grep_files" != "" ] 26 | then 27 | 28 | scripts/make_backup_working 29 | 30 | date_str=`date '+%m%d%y_%H%M%S'` 31 | done_dir="batch_$date_str" 32 | 33 | echo 34 | echo "Creating folder $done_dir" 35 | echo 36 | mkdir $done_dir 37 | 38 | for filename in $grep_files 39 | do 40 | 41 | filename=`echo $filename | sed -e 's/\.\///g'` 42 | 43 | echo 44 | echo "=================================================================================" 45 | echo 46 | scripts/choose_rom name_given $filename 47 | scripts/do_deodex_folder "framework app" y 48 | 49 | echo 50 | echo "Moving working folder ..." 51 | mv -v WORKING_* $done_dir/WORKING_$filename 52 | echo 53 | 54 | done 55 | 56 | echo 57 | echo "=================================================================================" 58 | echo 59 | echo "Done!" 60 | echo 61 | echo "Completed folders are under $done_dir" 62 | echo 63 | 64 | else 65 | echo "Error: No ROMs found!" 66 | fi 67 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/plugins/Extract_SGS2_Kernel_Initramfs.plugin: -------------------------------------------------------------------------------- 1 | 2 | echo 3 | echo "Extract SGS2 Initramfs - by mistadman" 4 | echo "-------------------------------------" 5 | echo 6 | echo "This script will attempt to extract the initramfs (i.e. the" 7 | echo "ramdisk) from the zImage of a Samsung Galaxy S/S2 or equivalent." 8 | echo 9 | echo "This may not work with all zImages, however. You may find best" 10 | echo "results with a stock zImage." 11 | echo 12 | echo "Unfortunately there is no zImage re-packing tool because it is" 13 | echo "dependent on your OS. The best way to re-pack would be to" 14 | echo "download the kernel source code and toolchain for your device" 15 | echo "and build a zImage using those resources." 16 | echo 17 | 18 | echo -n "Proceed (y/n)? (default: y): " 19 | read do_extract 20 | echo 21 | 22 | if [ "$do_extract" == "n" ] 23 | then 24 | exit 0 25 | fi 26 | 27 | 28 | clear 29 | 30 | date_str=`date '+%m%d%y_%H%M%S'` 31 | initramfs_dir=initramfs_$date_str 32 | 33 | echo 34 | echo "Creating folder `pwd`/$initramfs_dir ..." 35 | mkdir $initramfs_dir 36 | 37 | echo 38 | echo "---> Place zImage into the folder mentioned above <--" 39 | 40 | scripts/press_enter 41 | 42 | cd $initramfs_dir 43 | 44 | if [ -e zImage ] 45 | then 46 | 47 | cp ../tools/samsung_files/unpack-initramfs . 48 | 49 | ./unpack-initramfs zImage 50 | 51 | if [ ! -e kernel ] 52 | then 53 | echo "Error: No kernel found!" 54 | fi 55 | 56 | if [ ! -d initramfs_root ] 57 | then 58 | echo "Error: No initramfs_root folder found!" 59 | fi 60 | 61 | rm zImage 62 | rm unpack-initramfs 63 | cd .. 64 | echo 65 | echo "Contents of $initramfs_dir:" 66 | echo 67 | echo "`ls -l $initramfs_dir`" 68 | 69 | 70 | else 71 | echo "Error: zImage not found!" 72 | echo 73 | cd .. 74 | echo "Removing $initramfs_dir folder" 75 | rm -rf $initramfs_dir 76 | exit 0 77 | fi 78 | 79 | 80 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/plugins/Install_SGS2_CWM_Manager.plugin: -------------------------------------------------------------------------------- 1 | 2 | echo 3 | echo "SGS2 ClockworkMod Manager by Chainfire" 4 | echo "--------------------------------------" 5 | echo 6 | echo "This script will install the ClockworkMod Manager app for the" 7 | echo "Samsung Galaxy S2. This is required if you need the custom" 8 | echo "recovery menu and you are not using the CF-Root zImage (which" 9 | echo "would have installed the app automatically)." 10 | echo 11 | echo "NOTE: You'll still need a custom/rooted kernel for this app" 12 | echo "to run." 13 | echo 14 | 15 | echo -n "Proceed (y/n)? (default: y): " 16 | read do_cwm 17 | echo 18 | 19 | if [ "$do_cwm" == "n" ] 20 | then 21 | exit 0 22 | fi 23 | 24 | 25 | if [ -d WORKING_* ] 26 | then 27 | echo 28 | echo Working folder found 29 | else 30 | echo 31 | echo Working folder not found, you will need to create one! 32 | exit 0 33 | fi 34 | 35 | 36 | scripts/check_galaxy_s2 37 | if [ "$?" != "1" ] 38 | then 39 | echo "Error: ROM is not compatible" 40 | exit 0 41 | fi 42 | 43 | 44 | cwm_file=CWMManager.apk 45 | 46 | cd WORKING_* 47 | 48 | res=`find . -name $cwm_file` 49 | if [ "$res" != "" ] 50 | then 51 | echo "$res already found" 52 | cd .. 53 | exit 0 54 | fi 55 | 56 | cd .. 57 | scripts/add_data_app dont_ask 58 | cd WORKING_* 59 | 60 | echo 61 | echo "Copying app ..." 62 | cp -v ../tools/samsung_files/sgs2_cwm/$cwm_file data/app/ 63 | cd .. 64 | 65 | echo 66 | echo "Done" 67 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/plugins/ReadMe.plugin: -------------------------------------------------------------------------------- 1 | 2 | echo 3 | echo "To create your own plugins:" 4 | echo "" 5 | echo " - They need to be shell scripts. See the files under the 'scripts'" 6 | echo " folder for shell scripting examples." 7 | echo 8 | echo " - Your shell script must have a file name that ends with '.plugin'." 9 | echo " Ensure the name does not have any spaces in it. " 10 | echo 11 | echo " e.g. HelloWorld.plugin" 12 | echo 13 | echo " - Copy your plugin script to this folder: /scripts/plugins" 14 | echo 15 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/plugins/Sample.plugin: -------------------------------------------------------------------------------- 1 | 2 | echo 3 | echo Just a sample 4 | echo 5 | 6 | if [ -d WORKING_* ] 7 | then 8 | echo Found working folder 9 | else 10 | echo No working folder found! 11 | exit 0 12 | fi 13 | 14 | cd WORKING_* 15 | echo `pwd` 16 | echo 17 | ls -lrt 18 | cd .. 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/porting_tools: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | clear 13 | 14 | while : 15 | do 16 | 17 | clear 18 | 19 | echo 20 | echo "Porting" 21 | echo "-------" 22 | echo 23 | echo "WARNING: The porting option is only experimental and for advanced" 24 | echo "users only. The scripts use a general set of rules for porting a" 25 | echo "ROM, so additional steps may need to be performed manually by the" 26 | echo "user for the ROM to be ported properly." 27 | echo 28 | echo "If you are new to ROM development, then do not use this option" 29 | echo "until you have built some basic (non-ported!) ROMs and have" 30 | echo "understood how they work!" 31 | echo 32 | echo "Enter a choice:" 33 | echo 34 | 35 | echo " a = Port ROM from another device" 36 | echo " e = Extract kernel and modules from another ROM" 37 | echo " x = Exit" 38 | echo 39 | echo -n "? " 40 | 41 | read enterLetter 42 | 43 | if [ "$enterLetter" == "a" ] 44 | then 45 | scripts/port_rom 46 | 47 | if [ "$?" == "1" ] 48 | then 49 | continue 50 | fi 51 | 52 | elif [ "$enterLetter" == "e" ] 53 | then 54 | scripts/call_extract_kernel_and_modules 55 | elif [ "$enterLetter" == "x" ] 56 | then 57 | exit 0 58 | else 59 | echo "Invalid option" 60 | continue 61 | fi 62 | 63 | scripts/press_enter 64 | 65 | done 66 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/pre_froyo_check: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | android_os=`scripts/get_build_prop_val ro.build.version.release` 13 | 14 | if [[ `echo $android_os | grep -c "^1\."` -gt 0 || \ 15 | `echo $android_os | grep -c "^2\.1"` -gt 0 || \ 16 | `echo $android_os | grep -c "^2\.0"` -gt 0 ]] 17 | then 18 | exit 1 19 | else 20 | 21 | if [ "$android_os" == "UNKNOWN" ] 22 | then 23 | exit 2 24 | fi 25 | 26 | exit 0 27 | fi 28 | 29 | 30 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/press_enter: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | echo 12 | echo "Press Enter to continue" 13 | read enterKey 14 | 15 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/prompt_build_boot: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | clear 12 | 13 | 14 | if [ ! -d WORKING_* ] 15 | then 16 | echo No working folder found! 17 | exit 0 18 | fi 19 | 20 | if [ -d BOOT-EXTRACTED ] 21 | then 22 | echo 23 | echo "---------------------------------------------------------------" 24 | echo 25 | echo "Ensure your BOOT-EXTRACTED folder has the kernel and ramdisk" 26 | echo "files that you need." 27 | echo 28 | echo "Kernel = zImage (sometimes referred to as boot.img-kernel)" 29 | echo "Ramdisk = boot.img-ramdisk folder" 30 | echo 31 | echo "---------------------------------------------------------------" 32 | echo 33 | echo "These files will be re-packed into a boot.img that will be" 34 | echo "copied to your current working folder." 35 | echo 36 | echo "---------------------------------------------------------------" 37 | echo 38 | echo -n " " 39 | read enterKey 40 | fi 41 | 42 | 43 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/prompt_nand_type: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | nand=false 13 | 14 | cd WORKING_* 15 | if [ -e boot.img ] 16 | then 17 | 18 | cd .. 19 | cmd_line=`scripts/get_cmdline` 20 | 21 | if [ "$cmd_line" == "dsixda NAND" ] 22 | then 23 | nand=true 24 | original_type=boot.img 25 | fi 26 | 27 | elif [ -d boot ] && [ -e boot/initrd.gz ] && [ -e boot/zImage ] 28 | then 29 | nand=true 30 | original_type="boot folder" 31 | cd .. 32 | 33 | else 34 | cd .. 35 | fi 36 | 37 | 38 | if [ "$nand" == "true" ] 39 | then 40 | 41 | echo 42 | echo "NAND ROM detected (checked $original_type). Choose a number:" 43 | echo 44 | echo " 1 = Build ROM with /boot folder (e.g. for MAGLDR bootloader)" 45 | echo " 2 = Build ROM with boot.img (e.g. For cLK bootloader)" 46 | echo 47 | echo -n "? (default=1) " 48 | 49 | read enter_option 50 | echo 51 | 52 | # 53 | # Use /boot folder in ROM 54 | # 55 | if [ "$enter_option" != "2" ] 56 | then 57 | 58 | if [ "$original_type" == "boot.img" ] 59 | then 60 | echo "Converting boot.img to a boot folder ..." 61 | scripts/ensure_boot_extracted no_clear 62 | scripts/build_nand_boot 63 | else 64 | echo "The /boot folder already exists, no changes required" 65 | fi 66 | 67 | # 68 | # Use boot.img in ROM 69 | # 70 | else 71 | echo "Converting boot.img to a proper boot.img for flashing ..." 72 | scripts/ensure_boot_extracted no_clear 73 | scripts/build_boot_img_for_nand 74 | fi 75 | 76 | fi 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/prompt_remove_boot_extracted: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | if [ -d BOOT-EXTRACTED ] 13 | then 14 | echo 15 | echo "Warning: Folder 'BOOT-EXTRACTED' already exists, may cause conflict." 16 | echo -n " It is recommended to remove it. Remove (y/n)? (default: y): " 17 | 18 | read remove_it 19 | echo 20 | 21 | if [ "$remove_it" != "n" ] 22 | then 23 | echo "Removing" 24 | rm -rf BOOT-EXTRACTED 25 | else 26 | echo "Warning: Using existing BOOT-EXTRACTED folder" 27 | fi 28 | 29 | echo 30 | fi 31 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/prompt_show_rom_info: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | echo 13 | echo -n "Would you like to view this ROM's info (y/n)? (default: y): " 14 | 15 | read proceed_show 16 | if [ "$proceed_show" != "n" ] 17 | then 18 | scripts/show_rom_info 19 | fi 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/remove_xperia_bloat: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | cd WORKING_* 12 | working_dir=`pwd` 13 | 14 | app_dir=system/etc/product/applications 15 | 16 | if [ -d $app_dir ] 17 | then 18 | 19 | apk_files=`find $app_dir -name *.apk` 20 | 21 | if [ "$apk_files" != "" ] 22 | then 23 | echo 24 | echo "These are the Sony 'bloatware' apps found in $app_dir:" 25 | echo 26 | for apk in $apk_files 27 | do 28 | echo $apk 29 | done 30 | 31 | echo 32 | echo -n "Delete these files from your working folder (y/n)? (default: y): " 33 | 34 | read do_delete 35 | echo 36 | 37 | if [ "$do_delete" != "n" ] 38 | then 39 | rm -vf $apk_files 40 | fi 41 | fi 42 | fi 43 | 44 | cd .. 45 | 46 | 47 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/set_build_prop_val: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has three parameters: 13 | # 14 | # $1 = parameter in build.prop (mandatory) 15 | # $2 = value we want to set the parameter to (mandatory) 16 | # $3 = working folder name (optional) 17 | # 18 | 19 | base_dir=`pwd` 20 | return_val=0 21 | 22 | if [ "$3" == "" ] 23 | then 24 | cd WORKING_* 25 | else 26 | cd $3 27 | fi 28 | 29 | if [ -e system/build.prop ] 30 | then 31 | 32 | cd system 33 | 34 | if [ "`grep -m 1 $1= build.prop`" ] 35 | then 36 | 37 | echo "Setting $1=$2 in build.prop" 38 | sed -i -e 's/\('"$1"'=\).*$/\1'"$2"'/g' build.prop 39 | 40 | else 41 | echo "NOTE: No reference to $1 found in build.prop, so we won't modify the file" 42 | return_val=1 43 | fi 44 | 45 | else 46 | echo "WARNING: build.prop not found!" 47 | return_val=1 48 | fi 49 | 50 | 51 | cd $base_dir 52 | exit $return_val 53 | 54 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/set_update_name: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one mandatory argument 13 | # 14 | # $1 = current name of update file (with extension) 15 | # 16 | 17 | filename=$1 18 | 19 | echo 1>&2 20 | echo "The new ROM will be named $filename" 1>&2 21 | echo -n "Change the name (y/n)? (default: n): " 1>&2 22 | 23 | read change_it 24 | echo 1>&2 25 | 26 | if [ "$change_it" == "y" ] 27 | then 28 | echo -n "Enter a new name: " 1>&2 29 | read newname 30 | 31 | echo 1>&2 32 | 33 | filename=`echo $newname | sed -e 's/ /_/g'` 34 | 35 | if [ "$filename" == "" ] 36 | then 37 | filename=$1 38 | fi 39 | 40 | has_zip=`echo $filename | grep -ic "\.zip"` 41 | if [ $has_zip == 0 ] 42 | then 43 | filename="$filename.zip" 44 | fi 45 | 46 | fi 47 | 48 | echo $filename 49 | 50 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/set_working_folder_name: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional argument 13 | # 14 | # $1 = "kernel_only" or "name_given" 15 | # 16 | 17 | date_str=`date '+%m%d%y_%H%M%S'` 18 | working_dir=WORKING_$date_str 19 | 20 | if [ "$1" != "kernel_only" ] && [ "$1" != "name_given" ] 21 | then 22 | 23 | echo 1>&2 24 | echo "The new working folder will be named $working_dir" 1>&2 25 | echo -n "Change the name (y/n)? (default: n): " 1>&2 26 | 27 | read change_it 28 | echo 1>&2 29 | 30 | if [ "$change_it" == "y" ] 31 | then 32 | 33 | name_is_set=no 34 | 35 | while [ $name_is_set == no ] 36 | do 37 | echo -n "Enter a new name (using this prefix): WORKING_" 1>&2 38 | read newname 39 | 40 | newname=`echo $newname | sed -e 's/ /_/g'` 41 | working_dir="WORKING_$newname" 42 | 43 | if [ -d original_update/$working_dir ] 44 | then 45 | echo "Error: Same name already exists under original_update folder" 1>&2 46 | echo 1>&2 47 | else 48 | name_is_set=yes 49 | fi 50 | 51 | done 52 | fi 53 | fi 54 | 55 | echo $working_dir 56 | 57 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/show_cache_warning: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has two optional arguments: 13 | # 14 | # $1 = file name (cache.img/cache.rfs/cache.img.ext4/etc.) 15 | # 16 | 17 | 18 | if [ "$1" == "" ] 19 | then 20 | cache_file=cache.img 21 | else 22 | cache_file=$1 23 | fi 24 | 25 | echo 26 | echo "Warning: No $cache_file found. You can unpack this file separately" 27 | echo "by running the plugin script in the kitchen's Advanced menu options." 28 | echo "If your device doesn't use a CSC, then just ignore this message." 29 | echo 30 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/show_explore2fs: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | img_dir=$1 13 | img_file=$2 14 | 15 | dos_path=`cygpath -wp $img_dir` 16 | 17 | echo 18 | echo "####################################################################" 19 | echo 20 | echo " READ INSTRUCTIONS BELOW TO EXTRACT FILES FROM $img_file:" 21 | echo 22 | echo " 1) When Explore2fs appears, use 'File->Open Image File' to open:" 23 | echo " $dos_path\\$img_file" 24 | echo 25 | echo " 2) After it loads, right-click on the hard disk icon in the left" 26 | echo " frame, and select Export Directory" 27 | echo 28 | echo " 3) Select $dos_path" 29 | echo 30 | echo " 4) Wait for extraction to finish and then close Explore2fs" 31 | echo 32 | echo "####################################################################" 33 | echo 34 | 35 | tools/explore2fs_windows/explore2fs.exe & 36 | 37 | echo 38 | echo ">>>> PERFORM THE STEPS ABOVE BEFORE PRESSING ENTER! <<<<" 39 | echo 40 | 41 | scripts/press_enter 42 | 43 | 44 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/show_ext2explore: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | 12 | img_dir=$1 13 | img_file=$2 14 | 15 | dos_path=`cygpath -wp $img_dir` 16 | 17 | echo 18 | echo "#####################################################################" 19 | echo 20 | echo " READ INSTRUCTIONS BELOW TO EXTRACT FILES FROM $img_file:" 21 | echo 22 | echo " 1) Ignore the 'Cannot Read Disk' warning dialog (press 'OK') if it" 23 | echo " appears!" 24 | echo 25 | echo " 2) When Ext2Explore appears, use 'File->Open Image' to open:" 26 | echo " $dos_path\\$img_file" 27 | echo 28 | echo " 3) After it loads, right-click on the new icon displayed in the left" 29 | echo " frame, and select Save" 30 | echo 31 | echo " 4) Select $dos_path" 32 | echo 33 | echo " 5) Wait for extraction to finish and then close Ext2Explore" 34 | echo 35 | echo "#####################################################################" 36 | echo 37 | 38 | tools/ext2read_windows/ext2explore.exe & 39 | 40 | echo 41 | echo ">>>> PERFORM THE STEPS ABOVE BEFORE PRESSING ENTER! <<<<" 42 | echo 43 | 44 | scripts/press_enter 45 | 46 | 47 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/show_rooted_kernel_msg: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2011 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | echo 12 | echo "NOTE: Ensure you use a rooted kernel (zImage), such as CF-Root, which" 13 | echo "allows flashing of custom ROMs. If you instead decide to flash a" 14 | echo "stock kernel then you must use Odin afterwards to flash back a rooted" 15 | echo "kernel." 16 | echo 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/scripts/update_script_should_convert_back: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # 3 | # Copyright (c) 2012 - dsixda (dislam@rocketmail.com) 4 | # 5 | # Android Kitchen is 100% free. This script file is intended for personal 6 | # and/or educational use only. It may not be duplicated for monetary 7 | # benefit or any other purpose without the permission of the developer. 8 | # 9 | ############################################################################ 10 | 11 | # 12 | # This script has one optional parameter: 13 | # 14 | # $1 = ignore_msg 15 | # 16 | 17 | 18 | base_dir=`pwd` 19 | cd WORKING_* 20 | 21 | if [ ! -e META-INF/com/google/android/update-script ] 22 | then 23 | echo "Warning: No update-script found" 24 | cd .. 25 | exit 0 26 | fi 27 | 28 | cd META-INF/com/google/android 29 | 30 | if [ "`grep package_extract_file update-script`" != "" ] || \ 31 | [ "`grep TMP: update-script`" != "" ] || \ 32 | [ "`grep \"format yaffs2\" update-script`" != "" ] || \ 33 | [ "`grep \"format ext\" update-script`" != "" ] 34 | then 35 | 36 | if [ "$1" == "" ] 37 | then 38 | echo 39 | echo "NOTE: update-script must be converted to an updater-script before" 40 | echo " flashing." 41 | fi 42 | 43 | cd $base_dir 44 | exit 1 45 | 46 | else 47 | 48 | cd $base_dir 49 | device_name=`scripts/get_device_name` 50 | scripts/check_galaxies 51 | galaxy=$? 52 | 53 | if [ -e tools/edify_defs/$device_name ] || [ "$galaxy" == "1" ] 54 | then 55 | 56 | if [ "$1" == "" ] 57 | then 58 | echo 59 | echo "NOTE: This device ($device_name) requires an updater-script" 60 | fi 61 | 62 | exit 1 63 | fi 64 | 65 | exit 0 66 | fi 67 | 68 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps/wireless_tether_2_0_7.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps/wireless_tether_2_0_7.apk -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/apps2sd_run_program: -------------------------------------------------------------------------------- 1 | run_program PACKAGE:data/dtinstall.launch 2 | delete SYSTEM:bin/dtinstall 3 | delete DATA:dtinstall.launch 4 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/apps2sd_system: -------------------------------------------------------------------------------- 1 | set_perm 0 0 0777 SYSTEM:bin/a2sd 2 | set_perm 0 0 0777 SYSTEM:etc/init.d/00banner 3 | set_perm 0 0 0777 SYSTEM:etc/init.d/01sysctl 4 | set_perm 0 0 0777 SYSTEM:etc/init.d/02firstboot 5 | set_perm 0 0 0777 SYSTEM:etc/init.d/04apps2sd 6 | set_perm 0 0 0777 SYSTEM:etc/init.d/99complete 7 | set_perm 0 0 0777 SYSTEM:bin/launcha2sd 8 | set_perm 0 0 0777 SYSTEM:bin/starta2sd 9 | set_perm 0 0 0777 SYSTEM:bin/jita2sd 10 | set_perm 0 0 0777 SYSTEM:bin/chka2sd 11 | set_perm 0 0 0777 SYSTEM:bin/zipalign 12 | set_perm 0 0 0777 SYSTEM:bin/sysinit 13 | set_perm 0 0 0777 SYSTEM:bin/bash 14 | set_perm 0 0 0777 SYSTEM:bin/busybox.a2sd 15 | set_perm 0 0 0644 SYSTEM:bin/apps2sd.hlp 16 | set_perm 0 0 0777 SYSTEM:xbin/a2sd 17 | set_perm 0 0 0777 SYSTEM:bin/dtinstall 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/dtinstall.launch: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | /system/bin/bash /system/bin/dtinstall 3 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/jit/bin/dalvikvm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/jit/bin/dalvikvm -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/jit/lib/libdvm.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/jit/lib/libdvm.so -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/jit/lib/libnativehelper.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/data/jit/lib/libnativehelper.so -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/move_cache_sd: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | /system/xbin/busybox mkdir /system/sd/dalvik-cache 4 | /system/xbin/busybox chmod 777 /system/sd/dalvik-cache 5 | /system/xbin/busybox cp /data/dalvik-cache/* /system/sd/dalvik-cache 6 | /system/xbin/busybox rm -rf /data/dalvik-cache 7 | /system/xbin/busybox ln -s /system/sd/dalvik-cache /data/dalvik-cache 8 | echo x > /data/.dalvikcache 9 | 10 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/bash -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/busybox.a2sd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/busybox.a2sd -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/sysinit: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | export PATH=/sbin:/system/sbin:/system/bin:/system/xbin 4 | /system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d 5 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/zipalign: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/bin/zipalign -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/etc/init.d/00banner: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # 3 | # Print startup info 4 | # 5 | /system/bin/busybox.a2sd echo "Welcome to Android `getprop ro.build.version.release` / `getprop ro.modversion`"; 6 | /system/bin/busybox.a2sd echo ""; 7 | /system/bin/busybox.a2sd echo " Powered by _____ _______"; 8 | /system/bin/busybox.a2sd echo " | \ | "; 9 | /system/bin/busybox.a2sd echo " | | | "; 10 | /system/bin/busybox.a2sd echo " | | | "; 11 | /system/bin/busybox.a2sd echo " | | | "; 12 | /system/bin/busybox.a2sd echo " |____/ | "; 13 | /system/bin/busybox.a2sd echo " Darktremor Apps2SD"; 14 | exit; 15 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/etc/init.d/01sysctl: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | sysctl -p 3 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/etc/init.d/02firstboot: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # execute any postinstall script then kill it 3 | if [ -e /data/firstboot.sh ]; 4 | then 5 | /system/bin/busybox.a2sd "[ ] Executing firstboot.sh"; 6 | logwrapper /system/bin/bash /data/firstboot.sh; 7 | /system/bin/busybox.a2sd rm -f /data/firstboot.sh; 8 | fi; 9 | 10 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/etc/init.d/99complete: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | sync; 4 | setprop cm.filesystem.ready 1; 5 | setprop dc.filesystem.ready 1; 6 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/system/sd/placeholder: -------------------------------------------------------------------------------- 1 | Placeholder File 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/apps2sd_files/version.txt: -------------------------------------------------------------------------------- 1 | Darktremor Apps2SD version 2.7.5.2 + fix -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/bash -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/busybox_files/busybox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/busybox_files/busybox -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/busybox_files/installbusybox: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | cd /system/xbin 3 | ./busybox --install -s /system/xbin 4 | 5 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/busybox_files/version.txt: -------------------------------------------------------------------------------- 1 | BusyBox 1.20.2 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/check_data_app: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | # Replaces 'delete DATA:app' in update-script. 4 | # Fixes issue caused when /data/app is apps2sd symlink. 5 | 6 | find_cmd=`find data -name app -type l -maxdepth 1` 7 | 8 | if [ "$find_cmd" != "" ] 9 | then 10 | chmod 777 /data/app 11 | rm -f /data/app 12 | fi 13 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/api_level.txt: -------------------------------------------------------------------------------- 1 | 17 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/baksmali-1.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/baksmali-1.4.2.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/baksmali-2.0b4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/baksmali-2.0b4.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/smali-1.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/smali-1.4.2.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/smali-2.0b4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/smali-2.0b4.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/deodex_files/use_this_version.txt: -------------------------------------------------------------------------------- 1 | 1.4.2 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/diskinternals_windows/Linux_Reader.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/diskinternals_windows/Linux_Reader.exe -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/diskinternals_windows/version.txt: -------------------------------------------------------------------------------- 1 | DiskInternals Linuxs Reader version 2.0 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I8150: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy W GT-I8150 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p15 13 | cache_mnt=\/dev\/block\/mmcblk0p16 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p17 16 | sdcard_mnt=\/dev\/block\/mmcblk0p28 17 | 18 | fix_boot=yes 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I8160: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy Ace 2 GT-I8160 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p3 13 | cache_mnt=\/dev\/block\/mmcblk0p4 14 | boot_mnt=\/dev\/block\/mmcblk0p15 15 | data_mnt=\/dev\/block\/mmcblk0p5 16 | sdcard_mnt=\/dev\/block\/mmcblk0p8 17 | 18 | fix_boot=yes 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I8160L: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy Ace 2 GT-I8160L 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p3 13 | cache_mnt=\/dev\/block\/mmcblk0p4 14 | boot_mnt=\/dev\/block\/mmcblk0p15 15 | data_mnt=\/dev\/block\/mmcblk0p5 16 | sdcard_mnt=\/dev\/block\/mmcblk0p8 17 | 18 | fix_boot=yes 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I8160P: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy Ace 2 GT-I8160P (NFC version) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p3 13 | cache_mnt=\/dev\/block\/mmcblk0p4 14 | boot_mnt=\/dev\/block\/mmcblk0p15 15 | data_mnt=\/dev\/block\/mmcblk0p5 16 | sdcard_mnt=\/dev\/block\/mmcblk0p8 17 | 18 | fix_boot=yes 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9000: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy S GT-I9000 3 | 4 | change_mnt=yes 5 | 6 | param1=yaffs2 7 | param2=MTD 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/stl9 13 | cache_mnt=\/dev\/block\/stl11 14 | boot_mnt=\/dev\/block\/bml7 15 | data_mnt=\/dev\/block\/mmcblk0p2 16 | sdcard_mnt=\/dev\/block\/mmcblk0p1 17 | 18 | modem_mnt=\/dev\/block\/bml12 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9001: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy S Plus GT-I9001 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p15 13 | cache_mnt=\/dev\/block\/mmcblk0p16 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p17 16 | sdcard_mnt=\/dev\/block\/mmcblk0p28 17 | 18 | fix_boot=yes 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9070: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy S Advance 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p3 12 | cache_mnt=\/dev\/block\/mmcblk0p4 13 | boot_mnt=\/dev\/block\/mmcblk0p15 14 | data_mnt=\/dev\/block\/mmcblk0p5 15 | sdcard_mnt=\/dev\/block\/mmcblk0p8 16 | 17 | modem_mnt=\/dev\/block\/mmcblk0p2 18 | 19 | preload_mnt=\/dev\/block\/mmcblk0p9 20 | 21 | fix_boot2=yes 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9100: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy S2 GT-I9100 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p9 13 | cache_mnt=\/dev\/block\/mmcblk0p7 14 | boot_mnt=\/dev\/block\/mmcblk0p5 15 | data_mnt=\/dev\/block\/mmcblk0p10 16 | sdcard_mnt=\/dev\/block\/mmcblk0p11 17 | preload_mnt=\/dev\/block\/mmcblk0p12 18 | 19 | modem_mnt=\/dev\/block\/mmcblk0p8 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9100X: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy S2 (Non-Exynos variants) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p24 13 | cache_mnt=\/dev\/block\/mmcblk0p26 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p25 16 | sdcard_mnt=\/dev\/block\/mmcblk0p28 17 | preload_mnt=\/dev\/block\/mmcblk0p27 18 | 19 | fix_boot2=yes 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9103: -------------------------------------------------------------------------------- 1 | # Samsung Galaxy R GT-I9103 2 | 3 | change_mnt=yes 4 | 5 | param1=ext4 6 | param2=EMMC 7 | 8 | param1_sdcard=vfat 9 | param2_sdcard=MTD 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p2 12 | cache_mnt=\/dev\/block\/mmcblk0p3 13 | boot_mnt=\/dev\/block\/mmcblk0p9 14 | data_mnt=\/dev\/block\/mmcblk0p6 15 | sdcard_mnt=\/dev\/block\/mmcblk0p4 16 | 17 | fix_boot3=yes 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9300: -------------------------------------------------------------------------------- 1 | 2 | # International Samsung Galaxy S3 GT-I9300 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p9 13 | cache_mnt=\/dev\/block\/mmcblk0p8 14 | boot_mnt=\/dev\/block\/mmcblk0p5 15 | data_mnt=\/dev\/block\/mmcblk0p12 16 | sdcard_mnt=??? 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p7 19 | 20 | fix_boot2=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9300Korean: -------------------------------------------------------------------------------- 1 | 2 | # International Samsung Galaxy S3 GT-I9300 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p9 13 | cache_mnt=\/dev\/block\/mmcblk0p8 14 | boot_mnt=\/dev\/block\/mmcblk0p5 15 | data_mnt=\/dev\/block\/mmcblk0p12 16 | sdcard_mnt=??? 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p7 19 | 20 | fix_boot2=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9305: -------------------------------------------------------------------------------- 1 | 2 | # International LTE Samsung Galaxy S3 GT-I9305 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p13 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p16 16 | sdcard_mnt=??? 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p10 19 | 20 | fix_boot2=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9500: -------------------------------------------------------------------------------- 1 | 2 | # Exynos-based Samsung Galaxy S4 GT-I9500 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p20 13 | cache_mnt=\/dev\/block\/mmcblk0p19 14 | boot_mnt=\/dev\/block\/mmcblk0p9 15 | data_mnt=\/dev\/block\/mmcblk0p21 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p13 19 | 20 | fix_boot2=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-I9505: -------------------------------------------------------------------------------- 1 | 2 | # International Qualcomm-based Samsung Galaxy S4 GT-I9505 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-N7100: -------------------------------------------------------------------------------- 1 | 2 | # International Samsung Galaxy Note II GT-N7100 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p13 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p16 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p10 19 | 20 | fix_boot=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/GT-S5570: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy Mini 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p9 13 | cache_mnt=\/dev\/block\/mmcblk0p7 14 | boot_mnt=\/dev\/block\/mmcblk0p5 15 | data_mnt=\/dev\/block\/mmcblk0p10 16 | sdcard_mnt=\/dev\/block\/mmcblk0p11 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p8 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/LT22i: -------------------------------------------------------------------------------- 1 | 2 | # Sony Xperia LT22i 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p10 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p9 15 | data_mnt=\/dev\/block\/mmcblk0p11 16 | sdcard_mnt=\/dev\/block\/mmcblk0p14 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/LT29i: -------------------------------------------------------------------------------- 1 | 2 | # Sony Xperia LT29i 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p12 13 | cache_mnt=\/dev\/block\/mmcblk0p13 14 | boot_mnt=\/dev\/block\/mmcblk0p4 15 | data_mnt=\/dev\/block\/mmcblk0p14 16 | sdcard_mnt=\/dev\/block\/mmcblk0p15 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/MT27i: -------------------------------------------------------------------------------- 1 | 2 | # Sony Xperia MT27i 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p10 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p9 15 | data_mnt=\/dev\/block\/mmcblk0p11 16 | sdcard_mnt=\/dev\/block\/mmcblk0p14 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/PAP4500DUO: -------------------------------------------------------------------------------- 1 | change_mnt=yes 2 | 3 | param1=ext4 4 | param2=EMMC 5 | 6 | param1_sdcard=vfat 7 | param2_sdcard=MTD 8 | 9 | sys_mnt=\/dev\/block\/mmcblk0p3 10 | cache_mnt=\/dev\/block\/mmcblk0p4 11 | boot_mnt=\/dev\/bootimg 12 | data_mnt=\/dev\/block\/mmcblk0p5 13 | sdcard_mnt=\/dev\/block\/mmcblk1p1 14 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/PAP4500TDUO: -------------------------------------------------------------------------------- 1 | change_mnt=yes 2 | 3 | param1=ext4 4 | param2=EMMC 5 | 6 | param1_sdcard=vfat 7 | param2_sdcard=MTD 8 | 9 | sys_mnt=\/dev\/block\/mmcblk0p3 10 | cache_mnt=\/dev\/block\/mmcblk0p4 11 | boot_mnt=\/dev\/bootimg 12 | data_mnt=\/dev\/block\/mmcblk0p5 13 | sdcard_mnt=\/dev\/block\/mmcblk1p1 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SCH-I535: -------------------------------------------------------------------------------- 1 | 2 | # Verizon Samsung Galaxy S3 SCH-I535 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p14 13 | cache_mnt=\/dev\/block\/mmcblk0p17 14 | boot_mnt=\/dev\/block\/mmcblk0p7 15 | data_mnt=\/dev\/block\/mmcblk0p15 16 | sdcard_mnt=\/dev\/block\/mmcblk0p11 17 | 18 | fix_boot2=yes 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SCH-I545: -------------------------------------------------------------------------------- 1 | 2 | # Verizon Samsung Galaxy S4 SCH-I545 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot2=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SCH-R970: -------------------------------------------------------------------------------- 1 | 2 | # Cricket/C Spire/MetroPCS/US Cellular Samsung Galaxy S4 SCH-R970 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot2=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-I317: -------------------------------------------------------------------------------- 1 | 2 | # AT&T Galaxy Note II SGH-I317 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p13 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p16 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p10 19 | 20 | fix_boot=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-I337: -------------------------------------------------------------------------------- 1 | 2 | # AT&T Samsung Galaxy S4 SGH-I337 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/platform\/msm_sdcc.1\/by-name\/boot 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-I337M: -------------------------------------------------------------------------------- 1 | 2 | # Bell/Telus/Rogers Samsung Galaxy S4 SGH-I337M 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot2=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-I747: -------------------------------------------------------------------------------- 1 | 2 | # AT&T Samsung Galaxy S3 SGH-I747 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p14 13 | cache_mnt=\/dev\/block\/mmcblk0p17 14 | boot_mnt=\/dev\/block\/mmcblk0p7 15 | data_mnt=\/dev\/block\/mmcblk0p15 16 | sdcard_mnt=??? 17 | 18 | fix_boot=yes 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-M919: -------------------------------------------------------------------------------- 1 | 2 | # T-Mobile Samsung Galaxy S4 SGH-M919 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot2=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-T889: -------------------------------------------------------------------------------- 1 | 2 | # T-Mobile Samsung Galaxy Note II SGH-T889 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p13 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p16 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p10 19 | 20 | fix_boot=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SGH-T999: -------------------------------------------------------------------------------- 1 | 2 | # T-Mobile Samsung Galaxy S3 SGH-T999 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p14 13 | cache_mnt=\/dev\/block\/mmcblk0p17 14 | boot_mnt=\/dev\/block\/mmcblk0p7 15 | data_mnt=\/dev\/block\/mmcblk0p15 16 | sdcard_mnt=??? 17 | 18 | fix_boot2=yes 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SPH-L710: -------------------------------------------------------------------------------- 1 | 2 | # Sprint Samsung Galaxy S3 SPH-L710 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p14 13 | cache_mnt=\/dev\/block\/mmcblk0p17 14 | boot_mnt=\/dev\/block\/mmcblk0p7 15 | data_mnt=\/dev\/block\/mmcblk0p15 16 | sdcard_mnt=??? 17 | 18 | fix_boot2=yes 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SPH-L720: -------------------------------------------------------------------------------- 1 | 2 | # Sprint Samsung Galaxy S4 SPH-L720 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p16 13 | cache_mnt=\/dev\/block\/mmcblk0p18 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p2 19 | 20 | fix_boot2=yes 21 | 22 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/SPH-L900: -------------------------------------------------------------------------------- 1 | 2 | # Sprint Samsung Galaxy Note II SPH-L900 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p13 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p8 15 | data_mnt=\/dev\/block\/mmcblk0p17 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | modem_mnt=\/dev\/block\/mmcblk0p10 19 | 20 | fix_boot=yes 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/ST18a: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/ST25a: -------------------------------------------------------------------------------- 1 | 2 | # Sony Xperia ST25a 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p10 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p9 15 | data_mnt=\/dev\/block\/mmcblk0p11 16 | sdcard_mnt=\/dev\/block\/mmcblk0p14 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/ST25i: -------------------------------------------------------------------------------- 1 | 2 | # Sony Xperia ST25i 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p10 13 | cache_mnt=\/dev\/block\/mmcblk0p12 14 | boot_mnt=\/dev\/block\/mmcblk0p9 15 | data_mnt=\/dev\/block\/mmcblk0p11 16 | sdcard_mnt=\/dev\/block\/mmcblk0p14 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/ace: -------------------------------------------------------------------------------- 1 | 2 | # HTC Desire HD 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=\/dev\/block\/mmcblk0p27 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p26 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/amoi89_wet_jb2: -------------------------------------------------------------------------------- 1 | # Amoi N828 2 | 3 | change_mnt=yes 4 | 5 | param1=ext4 6 | param2=EMMC 7 | 8 | param1_sdcard=vfat 9 | param2_sdcard=MTD 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p3 12 | cache_mnt=\/dev\/block\/mmcblk0p4 13 | data_mnt=\/dev\/block\/mmcblk0p5 14 | sdcard_mnt=\/dev\/block\/mmcblk0p6 15 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/crespo: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Nexus S 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_cache=yaffs2 10 | param2_cache=MTD 11 | 12 | param1_sdcard=vfat 13 | param2_sdcard=MTD 14 | 15 | sys_mnt=\/dev\/block\/platform\/s3c-sdhci.0\/by-name\/system 16 | cache_mnt=\/dev\/block\/mtdblock4 17 | boot_mnt=??? 18 | data_mnt=\/dev\/block\/platform\/s3c-sdhci.0\/by-name\/userdata 19 | sdcard_mnt=\/dev\/block\/platform\/s3c-sdhci.0\/by-name\/media 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/crespo4g: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Nexus S 4G 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_cache=yaffs2 10 | param2_cache=MTD 11 | 12 | param1_sdcard=vfat 13 | param2_sdcard=MTD 14 | 15 | sys_mnt=\/dev\/block\/platform\/s3c-sdhci.0\/by-name\/system 16 | cache_mnt=\/dev\/block\/mtdblock4 17 | boot_mnt=??? 18 | data_mnt=\/dev\/block\/platform\/s3c-sdhci.0\/by-name\/userdata 19 | sdcard_mnt=\/dev\/block\/platform\/s3c-sdhci.0\/by-name\/media 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/dlx: -------------------------------------------------------------------------------- 1 | 2 | # HTC Droid DNA 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p32 13 | cache_mnt=\/dev\/block\/mmcblk0p33 14 | boot_mnt=\/dev\/block\/mmcblk0p19 15 | data_mnt=\/dev\/block\/mmcblk0p34 16 | sdcard_mnt=\/dev\/block\/mmcblk0p35 17 | 18 | fix_boot3=yes 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/e1911_v77_gq2000_ov5647: -------------------------------------------------------------------------------- 1 | change_mnt=yes 2 | 3 | 4 | param1=ext4 5 | param2=EMMC 6 | 7 | param1_sdcard=vfat 8 | param2_sdcard=MTD 9 | 10 | sys_mnt=\/dev\/block\/mmcblk0p3 11 | cache_mnt=\/dev\/block\/mmcblk0p4 12 | data_mnt=\/dev\/block\/mmcblk0p5 13 | sdcard_mnt=\/dev\/block\/mmcblk0p6 14 | 15 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/endeavoru: -------------------------------------------------------------------------------- 1 | 2 | # HTC One X 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p12 12 | cache_mnt=\/dev\/block\/mmcblk0p13 13 | boot_mnt=\/dev\/block\/mmcblk0p4 14 | data_mnt=\/dev\/block\/mmcblk0p15 15 | sdcard_mnt=\/dev\/block\/mmcblk1p14 16 | 17 | fix_boot=yes 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/enrc2b: -------------------------------------------------------------------------------- 1 | 2 | # HTC One X+ International 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p12 12 | cache_mnt=\/dev\/block\/mmcblk0p13 13 | boot_mnt=\/dev\/block\/mmcblk0p4 14 | data_mnt=\/dev\/block\/mmcblk0p14 15 | 16 | fix_boot=yes 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/evita: -------------------------------------------------------------------------------- 1 | # HTC One XL 2 | 3 | change_mnt=yes 4 | 5 | param1=ext4 6 | param2=EMMC 7 | 8 | param1_sdcard=vfat 9 | param2_sdcard=MTD 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p33 12 | cache_mnt=\/dev\/block\/mmcblk0p34 13 | boot_mnt=\/dev\/block\/mmcblk0p21 14 | data_mnt=\/dev\/block\/mmcblk0p35 15 | sdcard_mnt=\/dev\/block\/mmcblk0p36 16 | 17 | fix_boot3=yes 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/evitareul: -------------------------------------------------------------------------------- 1 | 2 | # HTC One X+ AT&T 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p16 12 | cache_mnt=\/dev\/block\/mmcblk0p17 13 | boot_mnt=\/dev\/block\/mmcblk0p4 14 | data_mnt=\/dev\/block\/mmcblk0p18 15 | 16 | fix_boot=yes 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/express: -------------------------------------------------------------------------------- 1 | 2 | # HTC Evo View 4G 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p26 13 | cache_mnt=\/dev\/block\/mmcblk0p31 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p30 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/flyer: -------------------------------------------------------------------------------- 1 | 2 | # HTC Flyer 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=??? 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p29 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/glacier: -------------------------------------------------------------------------------- 1 | 2 | # HTC myTouch 4G 3 | 4 | change_mnt=yes 5 | 6 | fix_boot=yes 7 | 8 | param1=ext3 9 | param2=EMMC 10 | 11 | param1_sdcard=vfat 12 | param2_sdcard=MTD 13 | 14 | sys_mnt=\/dev\/block\/mmcblk0p25 15 | cache_mnt=\/dev\/block\/mmcblk0p27 16 | boot_mnt=\/dev\/block\/mmcblk0p22 17 | data_mnt=\/dev\/block\/mmcblk0p26 18 | sdcard_mnt=\/dev\/block\/mmcblk1p1 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/hwu8860: -------------------------------------------------------------------------------- 1 | # Huawei U8860 2 | # 3 | # Need modify the updater-script manually before Build ROM from working folder: 4 | # change: 5 | # assert(package_extract_file("boot.img", "/tmp/boot.img"), 6 | # write_raw_image("/tmp/boot.img", "boot"), 7 | # delete("/tmp/boot.img")); 8 | # to: 9 | # mount("vfat", "EMMC", "/dev/block/mmcblk0p1", "/cust"); 10 | # package_extract_file("boot.img", "/cust/image/boot.img"); 11 | # unmount("/cust"); 12 | 13 | change_mnt=yes 14 | 15 | sys_mnt=\/dev\/block\/mmcblk0p12 16 | cache_mnt=\/dev\/block\/mmcblk0p6 17 | boot_mnt=\/dev\/block\/mmcblk0p1 18 | data_mnt=\/dev\/block\/mmcblk0p13 19 | sdcard_mnt=\/dev\/block\/mmcblk0p14 20 | 21 | param1=ext4 22 | param2=EMMC 23 | 24 | param1_sdcard=vfat 25 | param2_sdcard=MTD 26 | 27 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/jewel: -------------------------------------------------------------------------------- 1 | # Jewel HTC EVO 4G LTE 2 | 3 | change_mnt=yes 4 | 5 | sys_mnt=\/dev\/block\/mmcblk0p35 6 | cache_mnt=\/dev\/block\/mmcblk0p36 7 | boot_mnt=\/dev\/block\/mmcblk0p21 8 | data_mnt=\/dev\/block\/mmcblk0p37 9 | sdcard_mnt=\/dev\/block\/mmcblk0p38 10 | 11 | param1=ext4 12 | param2=EMMC 13 | 14 | param1_sdcard=vfat 15 | param2_sdcard=EMMC 16 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/m7: -------------------------------------------------------------------------------- 1 | 2 | # HTC One (M7) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p35 12 | cache_mnt=\/dev\/block\/mmcblk0p36 13 | data_mnt=\/dev\/block\/mmcblk0p37 14 | boot_mnt=?? 15 | sdcard_mnt=?? 16 | 17 | 18 | fix_boot=yes 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/maguro: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy Nexus (GSM/HSPA+) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=HSMMC 8 | 9 | sys_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/system 10 | cache_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/cache 11 | boot_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/boot 12 | data_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/userdata 13 | sdcard_mnt=??? 14 | 15 | fix_boot3=yes 16 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/mako: -------------------------------------------------------------------------------- 1 | 2 | # LG Nexus 4 (GSM/HSPA+) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | sys_mnt=\/dev\/block\/mmcblk0p21 10 | cache_mnt=\/dev\/block\/mmcblk0p22 11 | boot_mnt=\/dev\/block\/mmcblk0p6 12 | data_mnt=\/dev\/block\/mmcblk0p23 13 | sdcard_mnt=??? 14 | 15 | fix_boot=yes 16 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/mecha: -------------------------------------------------------------------------------- 1 | 2 | # HTC Thunderbolt 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=\/dev\/block\/mmcblk0p27 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p26 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/olympus: -------------------------------------------------------------------------------- 1 | 2 | # Motorola Atrix 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | use_cache_not_tmp=yes 13 | 14 | sys_mnt=\/dev\/block\/mmcblk0p12 15 | cache_mnt=\/dev\/block\/mmcblk0p15 16 | boot_mnt=\/dev\/block\/mmcblk0p11 17 | data_mnt=\/dev\/block\/mmcblk0p16 18 | sdcard_mnt=\/dev\/block\/mmcblk0p18 19 | webtop_mnt=\/dev\/block\/mmcblk0p13 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/p920: -------------------------------------------------------------------------------- 1 | 2 | # LG Optimus 3D 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p7 13 | cache_mnt=\/dev\/block\/mmcblk0p10 14 | boot_mnt=??? 15 | data_mnt=\/dev\/block\/mmcblk0p8 16 | sdcard_mnt=\/dev\/block\/mmcblk0p15 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/p970: -------------------------------------------------------------------------------- 1 | 2 | # LG Optimus Black 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p8 13 | cache_mnt=\/dev\/block\/mmcblk0p10 14 | boot_mnt=\/dev\/block\/mmcblk0p3 15 | data_mnt=\/dev\/block\/mmcblk0p9 16 | sdcard_mnt=\/dev\/block\/mmcblk0p16 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/p990: -------------------------------------------------------------------------------- 1 | 2 | # LG Optimus 2X 3 | 4 | change_mnt=yes 5 | 6 | fix_boot=yes 7 | 8 | param1=ext3 9 | param2=EMMC 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p1 12 | cache_mnt=\/dev\/block\/mmcblk0p2 13 | boot_mnt=\/dev\/block\/mmcblk0p5 14 | data_mnt=\/dev\/block\/mmcblk0p8 15 | sdcard_mnt=\/dev\/block\/mmcblk0p9 16 | 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/p999: -------------------------------------------------------------------------------- 1 | 2 | # LG Optimus G2X 3 | 4 | change_mnt=yes 5 | 6 | fix_boot=yes 7 | 8 | param1=ext3 9 | param2=EMMC 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p1 12 | cache_mnt=\/dev\/block\/mmcblk0p2 13 | boot_mnt=\/dev\/block\/mmcblk0p5 14 | data_mnt=\/dev\/block\/mmcblk0p7 15 | sdcard_mnt=\/dev\/block\/mmcblk0p8 16 | 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/primo: -------------------------------------------------------------------------------- 1 | 2 | # HTC One V 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p25 12 | cache_mnt=??? 13 | boot_mnt=\/dev\/block\/mmcblk0p22 14 | data_mnt=\/dev\/block\/mmcblk0p26 15 | sdcard_mnt=??? 16 | 17 | fix_boot=yes 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/primoc: -------------------------------------------------------------------------------- 1 | 2 | # HTC One V (CDMA) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p25 12 | cache_mnt=??? 13 | boot_mnt=\/dev\/block\/mmcblk0p22 14 | data_mnt=\/dev\/block\/mmcblk0p26 15 | sdcard_mnt=??? 16 | 17 | fix_boot=yes 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/pyramid: -------------------------------------------------------------------------------- 1 | 2 | # HTC Sensation 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p22 13 | cache_mnt=\/dev\/block\/mmcblk0p24 14 | boot_mnt=\/dev\/block\/mmcblk0p20 15 | data_mnt=\/dev\/block\/mmcblk0p23 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/ruby: -------------------------------------------------------------------------------- 1 | # HTC Amaze 4G 2 | 3 | change_mnt=yes 4 | 5 | param1=ext4 6 | param2=EMMC 7 | 8 | param1_sdcard=vfat 9 | param2_sdcard=MTD 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p29 12 | cache_mnt=\/dev\/block\/mmcblk0p30 13 | boot_mnt=\/dev\/block\/mmcblk0p22 14 | data_mnt=\/dev\/block\/mmcblk0p31 15 | sdcard_mnt=\/dev\/block\/mmcblk1p1 16 | 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/saga: -------------------------------------------------------------------------------- 1 | 2 | # HTC Desire S 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=\/dev\/block\/mmcblk0p27 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p26 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/shooter: -------------------------------------------------------------------------------- 1 | # HTC Evo 3D 2 | 3 | change_mnt=yes 4 | 5 | param1=ext4 6 | param2=EMMC 7 | 8 | param1_sdcard=vfat 9 | param2_sdcard=MTD 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p23 12 | cache_mnt=\/dev\/block\/mmcblk0p25 13 | boot_mnt=\/dev\/block\/mmcblk0p21 14 | data_mnt=\/dev\/block\/mmcblk0p24 15 | sdcard_mnt=\/dev\/block\/mmcblk1p1 16 | 17 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/speedy: -------------------------------------------------------------------------------- 1 | 2 | # HTC Evo Shift 4G 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p26 13 | cache_mnt=\/dev\/block\/mmcblk0p28 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p27 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/streak7: -------------------------------------------------------------------------------- 1 | 2 | # Dell Streak 7 3 | 4 | change_mnt_dell=yes 5 | 6 | param_system=ext2 7 | param_cache=ext3 8 | param_data=ext3 9 | 10 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/toro: -------------------------------------------------------------------------------- 1 | 2 | # Samsung Galaxy Nexus (CDMA/LTE) 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=HSMMC 8 | 9 | sys_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/system 10 | cache_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/cache 11 | boot_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/boot 12 | data_mnt=\/dev\/block\/platform\/omap\/omap_hsmmc.0\/by-name\/userdata 13 | sdcard_mnt=??? 14 | 15 | fix_boot3=yes 16 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/vigor: -------------------------------------------------------------------------------- 1 | 2 | # HTC Rezound 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p29 13 | cache_mnt=\/dev\/block\/mmcblk0p36 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p35 16 | sdcard_mnt=\/dev\/block\/mmcblk0p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/ville: -------------------------------------------------------------------------------- 1 | # HTC One S 2 | 3 | change_mnt=yes 4 | 5 | param1=ext4 6 | param2=EMMC 7 | 8 | param1_sdcard=vfat 9 | param2_sdcard=MTD 10 | 11 | sys_mnt=\/dev\/block\/mmcblk0p33 12 | cache_mnt=\/dev\/block\/mmcblk0p34 13 | boot_mnt=\/dev\/block\/mmcblk0p21 14 | data_mnt=\/dev\/block\/mmcblk0p35 15 | sdcard_mnt=\/dev\/block\/mmcblk0p36 16 | 17 | fix_boot3=yes 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/vision: -------------------------------------------------------------------------------- 1 | 2 | # HTC Vision / Desire Z / T-Mobile G2 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=\/dev\/block\/mmcblk0p27 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p26 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/vivo: -------------------------------------------------------------------------------- 1 | 2 | # HTC Incredible S 3 | 4 | change_mnt=yes 5 | 6 | param1=ext3 7 | param2=MMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=\/dev\/block\/mmcblk0p27 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p26 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/edify_defs/vivow: -------------------------------------------------------------------------------- 1 | 2 | # HTC Droid Incredible 2 3 | 4 | change_mnt=yes 5 | 6 | param1=ext4 7 | param2=EMMC 8 | 9 | param1_sdcard=vfat 10 | param2_sdcard=MTD 11 | 12 | sys_mnt=\/dev\/block\/mmcblk0p25 13 | cache_mnt=\/dev\/block\/mmcblk0p27 14 | boot_mnt=\/dev\/block\/mmcblk0p22 15 | data_mnt=\/dev\/block\/mmcblk0p26 16 | sdcard_mnt=\/dev\/block\/mmcblk1p1 17 | 18 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/explore2fs_windows/explore2fs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/explore2fs_windows/explore2fs.exe -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/explore2fs_windows/version.txt: -------------------------------------------------------------------------------- 1 | Explore2fs version 1.08 beta 9 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/ext2read_windows/ext2explore.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/ext2read_windows/ext2explore.exe -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/ext2read_windows/version.txt: -------------------------------------------------------------------------------- 1 | Ext2Explore version 2.2.71 (although About screen says 2.1) 2 | 3 | http://sourceforge.net/projects/ext2read/ -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/extract_boot_files/extract-kernel.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -W 2 | 3 | use strict; 4 | use bytes; 5 | use File::Path; 6 | 7 | die "did not specify boot img file\n" unless $ARGV[0]; 8 | 9 | my $bootimgfile = $ARGV[0]; 10 | 11 | my $slurpvar = $/; 12 | undef $/; 13 | open (BOOTIMGFILE, "$bootimgfile") or die "could not open boot img file: $bootimgfile\n"; 14 | binmode(BOOTIMGFILE); 15 | my $bootimg = ; 16 | close BOOTIMGFILE; 17 | $/ = $slurpvar; 18 | 19 | 20 | my($bootMagic, $kernelSize, $kernelLoadAddr, $ram1Size, $ram1LoadAddr, $ram2Size, $ram2LoadAddr, $tagsAddr, $pageSize, $unused1, $unused2, $bootName, $cmdLine, $id) = 21 | unpack('a8 L L L L L L L L L L a16 a512 a8', $bootimg); 22 | 23 | $pageSize = 2048; 24 | my($kernel) = substr($bootimg, $pageSize, $kernelSize); 25 | 26 | open (KERNELFILE, ">zImage"); 27 | binmode(KERNELFILE); 28 | print KERNELFILE $kernel or die; 29 | close KERNELFILE; 30 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/extract_boot_files/extract-ramdisk.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -W 2 | 3 | use strict; 4 | use bytes; 5 | use File::Path; 6 | 7 | die "did not specify boot img file\n" unless $ARGV[0]; 8 | 9 | my $bootimgfile = $ARGV[0]; 10 | 11 | my $slurpvar = $/; 12 | undef $/; 13 | open (BOOTIMGFILE, "$bootimgfile") or die "could not open boot img file: $bootimgfile\n"; 14 | binmode(BOOTIMGFILE); 15 | my $bootimg = ; 16 | close BOOTIMGFILE; 17 | $/ = $slurpvar; 18 | 19 | 20 | my($bootMagic, $kernelSize, $kernelLoadAddr, $ram1Size, $ram1LoadAddr, $ram2Size, $ram2LoadAddr, $tagsAddr, $pageSize, $unused1, $unused2, $bootName, $cmdLine, $id) = 21 | unpack('a8 L L L L L L L L L L a16 a512 a8', $bootimg); 22 | 23 | $pageSize = 2048; 24 | 25 | my($kernelAddr) = $pageSize; 26 | my($kernelSizeInPages) = int(($kernelSize + $pageSize - 1) / $pageSize); 27 | 28 | my($ram1Addr) = (1 + $kernelSizeInPages) * $pageSize; 29 | 30 | my($ram1) = substr($bootimg, $ram1Addr, $ram1Size); 31 | 32 | my $compressformat = "gz"; 33 | my $compressprogram = "gzip -d -c"; 34 | 35 | if (substr($ram1, 0, 2) eq "\x1F\x8B") 36 | { 37 | $compressformat = "gz"; 38 | $compressprogram = "gzip -d -c"; 39 | } 40 | elsif (substr($ram1, 0, 2) eq "\x02\x21") 41 | { 42 | $compressformat = "lz4"; 43 | $compressprogram = "lz4c -d"; 44 | } 45 | else{ 46 | die "The boot image does not appear to contain a valid gzip or lz4 file"; 47 | } 48 | 49 | open (RAM1FILE, ">$ARGV[0]-ramdisk.cpio.$compressformat"); 50 | binmode(RAM1FILE); 51 | print RAM1FILE $ram1 or die; 52 | close RAM1FILE; 53 | 54 | if (-e "$ARGV[0]-ramdisk") { 55 | rmtree "$ARGV[0]-ramdisk"; 56 | print "\nremoved old directory $ARGV[0]-ramdisk\n"; 57 | } 58 | 59 | mkdir "$ARGV[0]-ramdisk" or die; 60 | chdir "$ARGV[0]-ramdisk" or die; 61 | system ("$compressprogram ../$ARGV[0]-ramdisk.cpio.$compressformat | cpio -i"); 62 | system ("rm -f ../$ARGV[0]-ramdisk.cpio.$compressformat"); 63 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/formats.txt: -------------------------------------------------------------------------------- 1 | 2 | ---------------------------------------------------------------------- 3 | 4 | The format for each ROM must be one of the following: 5 | 6 | - system.img + optional boot.img/lib.img (e.g. stock ROM or Nandroid) 7 | - ZIP file for a custom ROM (e.g. update.zip) 8 | - ZIP file containing *.img (e.g. stock rom.zip) 9 | - ZIP file containing shipped ROM in SYSTEM + BOOT folder format 10 | - Working folder made with this kitchen (e.g. WORKING_old_rom) 11 | 12 | Other formats: 13 | 14 | Samsung Galaxy S: 15 | - factoryfs.rfs + optional cache.rfs/zImage 16 | - PDA.tar.md5 + optional CSC.tar.md5/PHONE.tar.md5 17 | - PDA.tar + optional CSC.tar/PHONE.tar 18 | - TAR/ZIP file containing the above 19 | 20 | Samsung Galaxy S Plus: 21 | - system.img.ext4 + optional cache.img.ext4/boot.img 22 | - TAR/ZIP file containing the above 23 | 24 | Samsung Galaxy SII: 25 | - factoryfs.img + optional hidden.img/cache.img/zImage 26 | - system.img.ext4 + optional cache.img.ext4/boot.img 27 | - TAR/ZIP file containing the above 28 | - system.ext4.tar + optional boot.img (Nandroid backup) 29 | 30 | Samsung Galaxy SIII / Galaxy Note II / Galaxy S4 31 | - system.img.ext4 + optional tomb.img.ext4/cache.img.ext4/boot.img 32 | - system.img + optional cache.img/boot.img/modem.bin 33 | - system.img.ext4 + optional cache.img/boot.img/modem.bin 34 | - TAR/ZIP file containing the above 35 | - system.ext4.tar + optional boot.img (Nandroid backup) 36 | 37 | Samsung - untested devices (e.g. Galaxy Mini): 38 | - system.rfs + optional csc.rfs/boot.img 39 | - TAR/ZIP file containing the above 40 | 41 | Huawei: 42 | - APP file from Huawei software update (e.g. UPDATE.APP) 43 | 44 | ---------------------------------------------------------------------- 45 | 46 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/liba2dp_upper.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/liba2dp_upper.so -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/magiciso_windows/Setup_MagicISO.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/magiciso_windows/Setup_MagicISO.exe -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/magiciso_windows/version.txt: -------------------------------------------------------------------------------- 1 | MagicISO 5.5.281 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/nano_files/nano: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/nano_files/nano -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/nano_files/sysro: -------------------------------------------------------------------------------- 1 | busybox mount -o ro,remount /system 2 | 3 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/nano_files/sysrw: -------------------------------------------------------------------------------- 1 | busybox mount -o rw,remount /system 2 | 3 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/nano_files/terminfo.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/nano_files/terminfo.zip -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/nullBoot.img: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/nullBoot.img -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/create_preload_symlinks: -------------------------------------------------------------------------------- 1 | #!/system/bin/mksh 2 | 3 | # 4 | # By dsixda 5 | # Originally created for Galaxy S2 and its variants 6 | # 7 | 8 | mount -o remount rw /system 9 | cd /preload/symlink/system/app 10 | 11 | # Can't create array with /sbin/sh, hence we use mksh 12 | apk_list=( `ls | grep .apk` ) 13 | odex_list=( `ls | grep .odex` ) 14 | items=${apk_list[*]}" "${odex_list[*]} 15 | 16 | for item in ${items[@]} 17 | do 18 | ln -s /preload/symlink/system/app/$item /system/app/$item 19 | done 20 | 21 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/flash_image: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/flash_image -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/java.awt.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/java.awt.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7100: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7100 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7105: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7105 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7105T: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7105T -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7108: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/GT-N7108 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/SCH-I605: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/SCH-I605 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/SCH-R950: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/GT-N7100/SCH-R950 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-I317/SGH-I317: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-I317/SGH-I317 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-I317/SGH-I317M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-I317/SGH-I317M -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-T889/SGH-T889: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-T889/SGH-T889 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-T889/SGH-T889V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SGH-T889/SGH-T889V -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SPH-L900/SPH-L900: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_note2/SPH-L900/SPH-L900 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I5800: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I5800 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I8500: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I8500 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000B: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000B -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000M -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000T: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/GT-I9000T -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SAMSUNG-SGH-I897: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SAMSUNG-SGH-I897 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SAMSUNG-SGH-I997: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SAMSUNG-SGH-I997 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SAMSUNG-SGH-I997R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SAMSUNG-SGH-I997R -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SCH-I500: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SCH-I500 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-I897: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-I897 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-I997: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-I997 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-I997R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-I997R -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-T959: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-T959 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-T959V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGH-T959V -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGS-T959: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SGS-T959 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SPH-D700: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s/GT-I9000/SPH-D700 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100G: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100G -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100M -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100T: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-I9100T -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-N7000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-N7000 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-N7000B: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/GT-N7000B -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/SC-02C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/SC-02C -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/SGH-I777: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/SGH-I777 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/SPH-D710: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100/SPH-D710 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/GT-I9210: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/GT-I9210T: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SC-03D: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717D: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717D -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717M -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I717R -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I727: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I727 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I727R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I727R -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-I757M: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-T989: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-T989D: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/SGH-T989D -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s2/GT-I9100X/readme.txt: -------------------------------------------------------------------------------- 1 | This folder is for Qualcomm-based variants of the Samsung Galaxy S2 (like the AT&T Skyrocket), so that the kitchen will recognize your device as a newer Galaxy S2. The ROMs normally consist of system.img.ext4, cache.img.ext4 and boot.img. 2 | 3 | In your /system/build.prop file there is a parameter called ro.product.device. The value of this parameter will be used as the name of the file to be placed in this folder. This file can be empty; the kitchen will not read its contents. 4 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300/GT-I9300: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300/GT-I9300 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300/GT-I9300T: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300/GT-I9300T -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHV-E210K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHV-E210K -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHV-E210L: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHV-E210L -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHV-E210S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHV-E210S -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHW-M440S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9300Korean/SHW-M440S -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9305/GT-I9305: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9305/GT-I9305 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9305/GT-I9305T: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/GT-I9305/GT-I9305T -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SCH-I535/SCH-I535: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SCH-I535/SCH-I535 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SCH-I535/SCH-R530: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SCH-I535/SCH-R530 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SCH-I535/SCH-R530U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SCH-I535/SCH-R530U -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-I747/SGH-I747: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-I747/SGH-I747 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-I747/SGH-I747M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-I747/SGH-I747M -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-T999/SGH-T999: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-T999/SGH-T999 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-T999/SGH-T999V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SGH-T999/SGH-T999V -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SPH-L710/SCH-L710: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SPH-L710/SCH-L710 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SPH-L710/SPH-L710: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s3/SPH-L710/SPH-L710 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/GT-I9500/GT-I9500: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/GT-I9500/GT-I9500 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/GT-I9505/GT-I9505: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/GT-I9505/GT-I9505 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SCH-I545/SCH-I545: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SCH-I545/SCH-I545 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SCH-R970/SCH-R970: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SCH-R970/SCH-R970 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-I337/SGH-I337: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-I337/SGH-I337 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-I337M/SGH-I337M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-I337M/SGH-I337M -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-M919/SGH-M919: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-M919/SGH-M919 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-M919/SGH-M919V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SGH-M919/SGH-M919V -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SPH-L720/SPH-L720: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants/galaxy_s4/SPH-L720/SPH-L720 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/model_variants_readme.txt: -------------------------------------------------------------------------------- 1 | Under the "tools/samsung_files/model_variants" folder, each sub-folder represents a variant name. Each of these sub-folders contains blank files representing different model names that share this variant's properties. 2 | 3 | Each variant (sub-folder) name has its mount points defined in a file under the "tools/edify_defs" folder. 4 | 5 | e.g. 6 | 7 | tools/samsung_files/model_variants/galaxy_s2 folder: 8 | 9 | - contains the GT-I9100 variant sub-folder 10 | 11 | - this GT-I9100 variant has properties that are common to the following models (represented by files inside this folder): 12 | - GT-I9100 13 | - GT-I9100G 14 | - GT-I9100M 15 | - GT-N7000 16 | - etc... 17 | 18 | - the mount points are defined in the file tools/edify_defs/GT-I9100 (same name as the above sub-folder) 19 | 20 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/redbend_ua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/redbend_ua -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/sgs2_cwm/CWMManager.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/sgs2_cwm/CWMManager.apk -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/sgs2_cwm/CWM_version.txt: -------------------------------------------------------------------------------- 1 | ClockworkMod Manager v3.0 by Chainfire 2 | For Samsung Galaxy S2 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/samsung_files/simg2img_files/sparse_crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | u32 sparse_crc32(u32 crc, const void *buf, size_t size); 18 | 19 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/signapk_files/signapk.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/signapk_files/signapk.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/signapk_files/testkey.pk8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/signapk_files/testkey.pk8 -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/signapk_files/testkey.x509.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEqDCCA5CgAwIBAgIJAJNurL4H8gHfMA0GCSqGSIb3DQEBBQUAMIGUMQswCQYD 3 | VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g 4 | VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE 5 | AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe 6 | Fw0wODAyMjkwMTMzNDZaFw0zNTA3MTcwMTMzNDZaMIGUMQswCQYDVQQGEwJVUzET 7 | MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G 8 | A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p 9 | ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI 10 | hvcNAQEBBQADggENADCCAQgCggEBANaTGQTexgskse3HYuDZ2CU+Ps1s6x3i/waM 11 | qOi8qM1r03hupwqnbOYOuw+ZNVn/2T53qUPn6D1LZLjk/qLT5lbx4meoG7+yMLV4 12 | wgRDvkxyGLhG9SEVhvA4oU6Jwr44f46+z4/Kw9oe4zDJ6pPQp8PcSvNQIg1QCAcy 13 | 4ICXF+5qBTNZ5qaU7Cyz8oSgpGbIepTYOzEJOmc3Li9kEsBubULxWBjf/gOBzAzU 14 | RNps3cO4JFgZSAGzJWQTT7/emMkod0jb9WdqVA2BVMi7yge54kdVMxHEa5r3b97s 15 | zI5p58ii0I54JiCUP5lyfTwE/nKZHZnfm644oLIXf6MdW2r+6R8CAQOjgfwwgfkw 16 | HQYDVR0OBBYEFEhZAFY9JyxGrhGGBaR0GawJyowRMIHJBgNVHSMEgcEwgb6AFEhZ 17 | AFY9JyxGrhGGBaR0GawJyowRoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE 18 | CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH 19 | QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG 20 | CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAJNurL4H8gHfMAwGA1Ud 21 | EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAHqvlozrUMRBBVEY0NqrrwFbinZa 22 | J6cVosK0TyIUFf/azgMJWr+kLfcHCHJsIGnlw27drgQAvilFLAhLwn62oX6snb4Y 23 | LCBOsVMR9FXYJLZW2+TcIkCRLXWG/oiVHQGo/rWuWkJgU134NDEFJCJGjDbiLCpe 24 | +ZTWHdcwauTJ9pUbo8EvHRkU3cYfGmLaLfgn9gP+pWA7LFQNvXwBnDa6sppCccEX 25 | 31I828XzgXpJ4O+mDL1/dBd+ek8ZPUP0IgdyZm5MTYPhvVqGCHzzTy3sIeJFymwr 26 | sBbmg2OAUNLEMO6nwmocSdN2ClirfxqCzJOLSDE4QyS9BAH6EhY6UFcOaE0= 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainfire/app/Superuser.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainfire/app/Superuser.apk -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainfire/bin/su: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainfire/bin/su -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainfire/version.txt: -------------------------------------------------------------------------------- 1 | SuperSU v0.99 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/Superuser.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/Superuser.apk -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/cupcake-donut/su: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/cupcake-donut/su -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/current/su: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/current/su -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/chainsdd/version.txt: -------------------------------------------------------------------------------- 1 | ChainsDD Superuser 3.1.3 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/old/app/Superuser.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/old/app/Superuser.apk -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/old/bin/su: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/su_files/old/bin/su -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/testsign.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/testsign.jar -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/emmc-mt65xx-update-binary: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/emmc-mt65xx-update-binary -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/emmc-not-neon-update-binary: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/emmc-not-neon-update-binary -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/emmc-update-binary: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/emmc-update-binary -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/mtd-update-binary: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/mtd-update-binary -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/sgs2-update-binary: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/sgs2-update-binary -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/sgs3-update-binary: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/sgs3-update-binary -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/update_files/update-script: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # Generated by dsixda's Android Kitchen 4 | # xda-developers.com 5 | # 6 | 7 | show_progress 0.1 0 8 | format SYSTEM: 9 | copy_dir PACKAGE:system SYSTEM: 10 | 11 | set_perm_recursive 0 0 0755 0644 SYSTEM: 12 | set_perm_recursive 0 2000 0755 0755 SYSTEM:bin 13 | set_perm 0 3003 06755 SYSTEM:bin/ip 14 | set_perm 0 3003 02750 SYSTEM:bin/netcfg 15 | set_perm 0 3004 02755 SYSTEM:bin/ping 16 | set_perm 0 2000 06750 SYSTEM:bin/run-as 17 | set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluetooth 18 | set_perm 0 0 0755 SYSTEM:etc/bluetooth 19 | set_perm 1000 1000 0640 SYSTEM:etc/bluetooth/auto_pairing.conf 20 | set_perm 3002 3002 0444 SYSTEM:etc/bluetooth/blacklist.conf 21 | set_perm 1000 1000 0640 SYSTEM:etc/bluetooth/auto_pair_devlist.conf 22 | set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluez 23 | set_perm 0 0 0755 SYSTEM:etc/bluez 24 | set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf 25 | set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks 26 | set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh 27 | set_perm 0 0 0544 SYSTEM:etc/install-recovery.sh 28 | set_perm_recursive 0 0 0755 0555 SYSTEM:etc/ppp 29 | set_perm_recursive 0 2000 0755 0644 SYSTEM:vendor 30 | set_perm_recursive 0 2000 0755 0755 SYSTEM:vendor/bin 31 | set_perm_recursive 0 2000 0755 0644 SYSTEM:vendor/etc 32 | set_perm 0 0 0644 SYSTEM:vendor/etc/gps.xml 33 | set_perm_recursive 0 0 0755 0644 SYSTEM:vendor/firmware 34 | set_perm 0 2000 0755 SYSTEM:vendor/firmware 35 | set_perm 0 2000 0755 SYSTEM:vendor/lib 36 | set_perm 0 2000 0755 SYSTEM:vendor/lib/egl 37 | set_perm 0 2000 0755 SYSTEM:vendor/lib/hw 38 | 39 | set_perm_recursive 0 2000 0755 0755 SYSTEM:xbin 40 | show_progress 0.1 10 41 | 42 | show_progress 0.2 0 43 | write_raw_image PACKAGE:boot.img BOOT: 44 | show_progress 0.2 10 45 | 46 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/version.txt: -------------------------------------------------------------------------------- 1 | ZipAlign - Android SDK R21.0.1 2 | -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/zipalign: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/zipalign -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/zipalign.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/zipalign.exe -------------------------------------------------------------------------------- /Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/zipalign.mac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learning-Embedded-Android-N-Programming/0001e9b10d81b73697f37c1485ac1d1f0f4e54be/Chapter_6/Android-Kitchen_by_dsixda/tools/zipalign_files/zipalign.mac -------------------------------------------------------------------------------- /Chapter_7/bash_installer_script.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | FD=$2 3 | ui_print() { 4 | echo -n -e "ui_print $1\n" > /proc/self/fd/$FD 5 | echo -n -e "ui_print\n" > /proc/self/fd/$FD 6 | } 7 | 8 | set_perm() { 9 | chown $1:$2 $4 10 | chmod $3 $4 11 | } 12 | 13 | ui_print "- Mounting /system" 14 | mount /system 15 | ui_print "- Installing BusyBox" 16 | unzip -o "$3" busybox -d /system/xbin 17 | ui_print "- Setting right permissions -" 18 | set_perm 0 2000 0755 /system/xbin/busybox 19 | ui_print "- Symlinking BB applets" 20 | for i in $(/system/xbin/busybox --list); do 21 | busybox ln -sf busybox "/system/xbin/$i" 22 | done 23 | ui_print "- Unmounting /system" 24 | umount /system 25 | ui_print "- BusyBox Installation complete -" 26 | -------------------------------------------------------------------------------- /Chapter_7/template_for_binary_package/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | include $(CLEAR_VARS) 3 | LOCAL_MODULE_TAGS := optional 4 | LOCAL_MODULE := < your app folder name > 5 | LOCAL_SRC_FILES := < app apk filename > 6 | LOCAL_MODULE_CLASS := APPS 7 | LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) 8 | include $(BUILD_PREBUILT) 9 | -------------------------------------------------------------------------------- /Chapter_7/template_for_sourcecode_package/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | # Build all java files in the java subdirectory 5 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 6 | 7 | # Name of the APK to build 8 | LOCAL_PACKAGE_NAME := LocalPackage 9 | 10 | # Tell it to build an APK 11 | include $(BUILD_PACKAGE) 12 | -------------------------------------------------------------------------------- /Chapter_7/updater_script: -------------------------------------------------------------------------------- 1 | ui_print("Edify Script for binary installation"); 2 | ui_print("Flashing a binary"); 3 | show_progress(0.700000, 0); 4 | ui_print("mounting /system"); 5 | mount("ext4", "EMMC", "/dev/block/system", "/system"); 6 | ui_print(""); 7 | ui_print("Installing binary"); 8 | package_extract_dir("system", "/system"); 9 | ui_print("unmounting system"); 10 | unmount("/system"); 11 | ui_print("unmounted system"); 12 | ui_print("Operations completed!"); 13 | -------------------------------------------------------------------------------- /Chapter_8/udoo_quad_arduino_example.c: -------------------------------------------------------------------------------- 1 | #include "variant.h" 2 | #include 3 | #include 4 | #define LED_PIN 13 5 | 6 | // Accessory descriptor. It's how Arduino identifies itself toAndroid. 7 | char descriptionName[] = "ArduinoADK"; 8 | char modelName[] = "UDOO_ADK"; 9 | 10 | // Arduino Accessory name (Need to be the same defined in the Android App) 11 | char manufacturerName[] = "Packt"; 12 | 13 | // Manufacturer (Need to be the same defined in the Android App) 14 | char versionNumber[] = "1.0"; 15 | 16 | // version (Need to be the same defined in the Android App) 17 | 18 | char serialNumber[] = "1"; 19 | char url[] = "http://www.packtpub.com"; 20 | // If there isn't any compatible app installed, Android suggest to visit this url 21 | USBHost Usb; 22 | ADK adk(&Usb, manufacturerName, modelName, descriptionName, versionNumber, url, serialNumber); 23 | 24 | #define RCVSIZE 128 25 | uint8_t buf[RCVSIZE]; 26 | uint32_t bytesRead = 0; 27 | 28 | void setup() { 29 | Serial.begin(115200); 30 | pinMode(LED_PIN, OUTPUT); 31 | delay(500); 32 | Serial.println("Starting..."); 33 | } 34 | 35 | void loop() { 36 | Usb.Task(); 37 | if (adk.isReady()) { 38 | adk.read(&bytesRead, RCVSIZE, buf);// read data into buf variable 39 | if (bytesRead > 0) { 40 | if (parseCommand(buf[0]) == 1) {// compare received data 41 | // Received "1" - turn on LED 42 | digitalWrite(LED_PIN, HIGH); 43 | } else if (parseCommand(buf[0]) == 0) { 44 | // Received "0" - turn off LED 45 | digitalWrite(LED_PIN, LOW); 46 | } 47 | } 48 | } else { 49 | digitalWrite(LED_PIN , LOW); // turn off light 50 | } 51 | delay(10); 52 | } 53 | // the characters sent to Arduino are interpreted as ASCII, we decrease 48 to return to ASCII range. 54 | uint8_t parseCommand(uint8_t received) { 55 | return received - 48; 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Packt Publishing 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | # Learning Embedded Android N Programming 5 | 6 | This is the code repository for [Learning-Embedded-Android-N-Programming] (https://www.packtpub.com/application-development/learning-embedded-android-programming?utm_source=github&utm_medium=repository&utm_campaign=9781785282881), published by Packt. It contains all the supporting project files necessary to work through the book from start to finish. 7 | 8 | ## Hardware and Software Requirements 9 | 10 | * A fast Internet Connection (minimum 2 Mbps) 11 | * About 200 gb of free space on HD 12 | * A computer system having minimum 3.0GHz CPU and 4GB of RAM 13 | 14 | 15 | ## Related Embedded Android books and videos 16 | 17 | * [Android Native Development Kit Cookbook] (https://www.packtpub.com/application-development/android-native-development-kit-cookbook?utm_source=github&utm_medium=repository&utm_campaign=9781849691505) 18 | * [Android Application Testing Guide] (https://www.packtpub.com/application-development/android-application-testing-guide?utm_source=github&utm_medium=repository&utm_campaign=9781849513500) 19 | * [Building Android Games with OpenGL ES [Video]] (https://www.packtpub.com/game-development/building-android-games-opengl-es-video?utm_source=github&utm_medium=repository&utm_campaign=9781783286133) 20 | 21 | 22 | ### Download a free PDF 23 | 24 | If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
    Simply click on the link to claim your free PDF.
    25 |

    https://packt.link/free-ebook/9781785282881

    --------------------------------------------------------------------------------