Building LineageOS for NVidia Shield TV - Shield Android TV Q&A, Help & Troubleshooting
Hello,
I'm trying to build LineageOS for NVidia Shield TV following steps described here: wiki.lineageos.org/devices/foster/build
But I'm having 2 problems:
1- 'breakfast foster' fails, I get an error that file "vendor/nvidia/shield/foster.mk" does not exist. I double checked & there's no "nvidia" directory under "vendor", from where can I get it?
2- There's no "extract-files.sh" in directory "/device/nvidia/foster", so I won't be able to extract proprietary blobs
Extract files was added back in for the 15.1 branch. However, until official builds roll out, that isn't very useful. So, you need a copy of proprietary vendor repo. They're around, if you look. I'm working on a script to build that repo from the official nvidia git site, stock recovery images, etc. Just haven't finished it yet... Once I get that all pulled together, anyone will be able to generate that repo on the fly (if not particularly quickly).
Steel01 said:
Extract files was added back in for the 15.1 branch. However, until official builds roll out, that isn't very useful. So, you need a copy of proprietary vendor repo. They're around, if you look. I'm working on a script to build that repo from the official nvidia git site, stock recovery images, etc. Just haven't finished it yet... Once I get that all pulled together, anyone will be able to generate that repo on the fly (if not particularly quickly).
Click to expand...
Click to collapse
@Steel01
Any update on this, please?
I downloaded source and tried to build, i need to Extracting proprietary. But it is not possible. Got error. I tried both, from Extracting proprietary blobs from block-based OTAs.
Code:
https://wiki.lineageos.org/extracting_blobs_from_zips.html#extracting-proprietary-blobs-from-block-based-otas
Still build not starting. I have 16bg ram, i5 intel &SSD.
Code:
~/android/lineage/device/nvidia/foster$ ./extract-files.sh ~/android/system_dump/
Cleaning output directory (./../../../vendor/nvidia/foster/proprietary)..
Extracting 242 files in ./proprietary-files.txt from /home/harkaman/android/system_dump/:
- /system/etc/firmware/bcm4350.hcd
!! file not found in source
- /system/etc/firmware/gm20b/NETB_img.bin
!! file not found in source
- /system/etc/firmware/gm20b/acr_ucode.bin
!! file not found in source
- /system/etc/firmware/gm20b/fecs.bin
!! file not found in source
- /system/etc/firmware/gm20b/fecs_sig.bin
!! file not found in source
- /system/etc/firmware/gm20b/gpccs.bin
!! file not found in source
- /system/etc/firmware/gm20b/gpmu_ucode.bin
!! file not found in source
- /system/etc/firmware/gm20b/gpmu_ucode_desc.bin
!! file not found in source
- /system/etc/firmware/gm20b/gpmu_ucode_image.bin
!! file not found in source
- /system/etc/firmware/gm20b/gpu2cde.bin
!! file not found in source
- /system/etc/firmware/gm20b/pmu_bl.bin
!! file not found in source
- /system/etc/firmware/gm20b/pmu_sig.bin
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvdec020.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvdec020_ns.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvdec020_prod.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvdec_bl020.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvdec_bl020_prod.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvdec_bl_no_wpr020.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvenc050.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_nvjpg010.fw
!! file not found in source
- /system/etc/firmware/tegra21x/nvhost_tsec.fw
!! file not found in source
- /system/etc/firmware/tegra21x/vic04_ucode.bin
!! file not found in source
- /system/etc/firmware/tegra21x_xusb_firmware
!! file not found in source
- /system/etc/firmware/tegra_xusb_firmware
!! file not found in source
- /system/etc/hdcpsrm/hdcp1x.srm
- /system/etc/hdcpsrm/hdcp2x.srm
- /system/etc/hdcpsrm/hdcp2xtest.srm
- /system/vendor/app/eks2/eks2.dat
!! file not found in source
- /system/vendor/bin/eks2_client
!! file not found in source
- /system/vendor/bin/glgps_nvidiaTegra2android
!! file not found in source
- /system/vendor/bin/gps_select.sh
!! file not found in source
- /system/vendor/bin/pbc2
!! file not found in source
- /system/vendor/bin/rm_ts_server
!! file not found in source
- /system/vendor/bin/run_ss_status.sh
!! file not found in source
- /system/vendor/bin/ss_status
!! file not found in source
- /system/vendor/bin/tlk_daemon
!! file not found in source
- /system/vendor/bin/ussrd
!! file not found in source
- /system/vendor/firmware/adsp.elf
!! file not found in source
- /system/vendor/firmware/fw_bcmdhd.bin
!! file not found in source
- /system/vendor/firmware/libnvaecfx.elf
!! file not found in source
- /system/vendor/firmware/nvaacdec.elf
!! file not found in source
- /system/vendor/firmware/nvadma.elf
!! file not found in source
- /system/vendor/firmware/nvapm.elf
!! file not found in source
- /system/vendor/firmware/nvavp_aacdec_ucode.bin
!! file not found in source
- /system/vendor/firmware/nvavp_aud_ucode.bin
!! file not found in source
- /system/vendor/firmware/nvavp_mp3dec_ucode.bin
!! file not found in source
- /system/vendor/firmware/nvavp_os_0ff00000.bin
!! file not found in source
- /system/vendor/firmware/nvavp_os_8ff00000.bin
!! file not found in source
- /system/vendor/firmware/nvavp_os_eff00000.bin
!! file not found in source
- /system/vendor/firmware/nvavp_os_f7e00000.bin
!! file not found in source
- /system/vendor/firmware/nvavp_vid_ucode.bin
!! file not found in source
- /system/vendor/firmware/nvavp_vid_ucode_alt.bin
!! file not found in source
- /system/vendor/firmware/nvmp3dec.elf
!! file not found in source
- /system/vendor/firmware/nvoice.elf
!! file not found in source
- /system/vendor/firmware/nvram_darcy_a00.txt
!! file not found in source
- /system/vendor/firmware/nvram_foster_e_4354.txt
!! file not found in source
- /system/vendor/firmware/nvram_foster_e_antenna_tuned_4354.txt
!! file not found in source
- /system/vendor/firmware/nvram_loki_e_4354.txt
!! file not found in source
- /system/vendor/firmware/nvram_loki_e_antenna_tuned_4354.txt
!! file not found in source
- /system/vendor/firmware/nvspkprot.elf
!! file not found in source
- /system/vendor/firmware/nvsrc.elf
!! file not found in source
- /system/vendor/lib/egl/libEGL_tegra.so
!! file not found in source
- /system/vendor/lib/egl/libGLESv1_CM_tegra.so
!! file not found in source
- /system/vendor/lib/egl/libGLESv2_tegra.so
!! file not found in source
- /system/vendor/lib/hw/audio.primary.tegra.so
!! file not found in source
- /system/vendor/lib/hw/camera.tegra.so
!! file not found in source
- /system/vendor/lib/hw/gralloc.tegra.so
!! file not found in source
- /system/vendor/lib/hw/hdmi_cec.tegra.so
!! file not found in source
- /system/vendor/lib/hw/hwcomposer.tegra.so
!! file not found in source
- /system/vendor/lib/hw/memtrack.tegra.so
!! file not found in source
- /system/vendor/lib/hw/pbc.tegra.so
!! file not found in source
- /system/vendor/lib/hw/vulkan.tegra.so
!! file not found in source
- /system/vendor/lib/libaffinitydaemon.so
!! file not found in source
- /system/vendor/lib/libcuda.so
!! file not found in source
- /system/vendor/lib/libfirmwareupdate.so
!! file not found in source
- /system/vendor/lib/libglcore.so
!! file not found in source
- /system/vendor/lib/libgov_boot.so
!! file not found in source
- /system/vendor/lib/libgov_camera.so
!! file not found in source
- /system/vendor/lib/libgov_force.so
!! file not found in source
- /system/vendor/lib/libgov_generic.so
!! file not found in source
- /system/vendor/lib/libgov_gpucompute.so
!! file not found in source
- /system/vendor/lib/libgov_graphics.so
!! file not found in source
- /system/vendor/lib/libgov_il.so
!! file not found in source
- /system/vendor/lib/libgov_spincircle.so
!! file not found in source
- /system/vendor/lib/libgov_tbc.so
!! file not found in source
- /system/vendor/lib/libgov_ui.so
!! file not found in source
- /system/vendor/lib/libhidraw.so
!! file not found in source
- /system/vendor/lib/liblota.so
!! file not found in source
- /system/vendor/lib/libmllite.so
!! file not found in source
- /system/vendor/lib/libmplmpu.so
!! file not found in source
- /system/vendor/lib/libnvRSCompiler.so
!! file not found in source
- /system/vendor/lib/libnvRSDriver.so
!! file not found in source
- /system/vendor/lib/libnvaudiofx.so
!! file not found in source
- /system/vendor/lib/libnvavp.so
!! file not found in source
- /system/vendor/lib/libnvblit.so
!! file not found in source
- /system/vendor/lib/libnvcam_imageencoder.so
!! file not found in source
- /system/vendor/lib/libnvcamerahdr_v3.so
!! file not found in source
- /system/vendor/lib/libnvcameranrr.so
!! file not found in source
- /system/vendor/lib/libnvcamerautils.so
!! file not found in source
- /system/vendor/lib/libnvcamlog.so
!! file not found in source
- /system/vendor/lib/libnvcontrol_jni.so
!! file not found in source
- /system/vendor/lib/libnvcpl.so
!! file not found in source
- /system/vendor/lib/libnvcudautils.so
!! file not found in source
- /system/vendor/lib/libnvddk_2d_v2.so
!! file not found in source
- /system/vendor/lib/libnvddk_vic.so
!! file not found in source
- /system/vendor/lib/libnvfnet.so
!! file not found in source
- /system/vendor/lib/libnvfnetstoredefog.so
!! file not found in source
- /system/vendor/lib/libnvfnetstorehdfx.so
!! file not found in source
- /system/vendor/lib/libnvglsi.so
!! file not found in source
- /system/vendor/lib/libnvgr.so
!! file not found in source
- /system/vendor/lib/libnvhwc_service.so
!! file not found in source
- /system/vendor/lib/libnvisp_v3.so
!! file not found in source
- /system/vendor/lib/libnvmm.so
!! file not found in source
- /system/vendor/lib/libnvmm_audio.so
!! file not found in source
- /system/vendor/lib/libnvmm_camera_v3.so
!! file not found in source
- /system/vendor/lib/libnvmm_contentpipe.so
!! file not found in source
- /system/vendor/lib/libnvmm_msaudio.so
!! file not found in source
- /system/vendor/lib/libnvmm_parser.so
!! file not found in source
- /system/vendor/lib/libnvmm_utils.so
!! file not found in source
- /system/vendor/lib/libnvmm_writer.so
!! file not found in source
- /system/vendor/lib/libnvmmlite.so
!! file not found in source
- /system/vendor/lib/libnvmmlite_audio.so
!! file not found in source
- /system/vendor/lib/libnvmmlite_image.so
!! file not found in source
- /system/vendor/lib/libnvmmlite_utils.so
!! file not found in source
- /system/vendor/lib/libnvmmlite_video.so
!! file not found in source
- /system/vendor/lib/libnvodm_imager.so
!! file not found in source
- /system/vendor/lib/libnvoice.so
!! file not found in source
- /system/vendor/lib/libnvomx.so
!! file not found in source
- /system/vendor/lib/libnvomxadaptor.so
!! file not found in source
- /system/vendor/lib/libnvomxilclient.so
!! file not found in source
- /system/vendor/lib/libnvos.so
!! file not found in source
- /system/vendor/lib/libnvparser.so
!! file not found in source
- /system/vendor/lib/libnvrm.so
!! file not found in source
- /system/vendor/lib/libnvrm_gpu.so
!! file not found in source
- /system/vendor/lib/libnvrm_graphics.so
!! file not found in source
- /system/vendor/lib/libnvrmapi_tegra.so
!! file not found in source
- /system/vendor/lib/libnvtnr.so
!! file not found in source
- /system/vendor/lib/libnvtvmr.so
!! file not found in source
- /system/vendor/lib/libnvvicsi_v3.so
!! file not found in source
- /system/vendor/lib/libnvwsi.so
!! file not found in source
- /system/vendor/lib/liboemcrypto.so
!! file not found in source
- /system/vendor/lib/libopencv24_tegra.so
!! file not found in source
- /system/vendor/lib/libphs.so
!! file not found in source
- /system/vendor/lib/libprotobuf-cpp-lold.so
!! file not found in source
- /system/vendor/lib/librm31080.so
!! file not found in source
- /system/vendor/lib/librm_ts_service.so
!! file not found in source
- /system/vendor/lib/libscf.so
!! file not found in source
- /system/vendor/lib/libsensors.hal-drivers.nvs.so
!! file not found in source
- /system/vendor/lib/libsensors.hal.nvs.so
!! file not found in source
- /system/vendor/lib/libshieldtech.so
!! file not found in source
- /system/vendor/lib/libtbb.so
!! file not found in source
- /system/vendor/lib/libtlk_secure_hdcp_up.so
!! file not found in source
- /system/vendor/lib/libtsec_wrapper.so
!! file not found in source
- /system/vendor/lib/libtsechdcp.so
!! file not found in source
- /system/vendor/lib/libussrd.so
!! file not found in source
- /system/vendor/lib/libw.so
!! file not found in source
- /system/vendor/lib/mediadrm/libwvdrmengine.so
!! file not found in source
- /system/vendor/lib/nvshieldtech.so
!! file not found in source
- /system/vendor/lib/para_10_02_00_20.so
!! file not found in source
- /system/vendor/lib/para_10_02_00_a0.so
!! file not found in source
- /system/vendor/lib/para_10_02_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_03_00_20.so
!! file not found in source
- /system/vendor/lib/para_10_03_00_a0.so
!! file not found in source
- /system/vendor/lib/para_10_03_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_04_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_04_00_c0.so
!! file not found in source
- /system/vendor/lib/para_10_05_00_c0.so
!! file not found in source
- /system/vendor/lib/para_10_06_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_07_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_08_00_20.so
!! file not found in source
- /system/vendor/lib/para_10_08_00_a0.so
!! file not found in source
- /system/vendor/lib/para_10_08_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_09_00_c0.so
!! file not found in source
- /system/vendor/lib/para_10_09_01_c0.so
!! file not found in source
- /system/vendor/lib/para_10_09_02_c0.so
!! file not found in source
- /system/vendor/lib/para_10_0a_00_b0.so
!! file not found in source
- /system/vendor/lib/para_10_0b_00_a0.so
!! file not found in source
- /system/vendor/lib/touch_para_10.so
!! file not found in source
- /system/vendor/lib64/egl/libEGL_tegra.so
!! file not found in source
- /system/vendor/lib64/egl/libGLESv1_CM_tegra.so
!! file not found in source
- /system/vendor/lib64/egl/libGLESv2_tegra.so
!! file not found in source
- /system/vendor/lib64/hw/gatekeeper.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/gps.brcm.so
!! file not found in source
- /system/vendor/lib64/hw/gralloc.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/hdmi_cec.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/hwcomposer.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/keystore.v0.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/keystore.v1.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/memtrack.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/pbc.tegra.so
!! file not found in source
- /system/vendor/lib64/hw/sensors.default.api_v1.4.mpl530.nvs.so
!! file not found in source
- /system/vendor/lib64/hw/vulkan.tegra.so
!! file not found in source
- /system/vendor/lib64/libaffinitydaemon.so
!! file not found in source
- /system/vendor/lib64/libcuda.so
!! file not found in source
- /system/vendor/lib64/libfirmwareupdate.so
!! file not found in source
- /system/vendor/lib64/libglcore.so
!! file not found in source
- /system/vendor/lib64/libgov_boot.so
!! file not found in source
- /system/vendor/lib64/libgov_camera.so
!! file not found in source
- /system/vendor/lib64/libgov_force.so
!! file not found in source
- /system/vendor/lib64/libgov_generic.so
!! file not found in source
- /system/vendor/lib64/libgov_gpucompute.so
!! file not found in source
- /system/vendor/lib64/libgov_graphics.so
!! file not found in source
- /system/vendor/lib64/libgov_il.so
!! file not found in source
- /system/vendor/lib64/libgov_spincircle.so
!! file not found in source
- /system/vendor/lib64/libgov_tbc.so
!! file not found in source
- /system/vendor/lib64/libgov_ui.so
!! file not found in source
- /system/vendor/lib64/libhidraw.so
!! file not found in source
- /system/vendor/lib64/liblota.so
!! file not found in source
- /system/vendor/lib64/libmllite.so
!! file not found in source
- /system/vendor/lib64/libmplmpu.so
!! file not found in source
- /system/vendor/lib64/libnvRSCompiler.so
!! file not found in source
- /system/vendor/lib64/libnvRSDriver.so
!! file not found in source
- /system/vendor/lib64/libnvblit.so
!! file not found in source
- /system/vendor/lib64/libnvcontrol_jni.so
!! file not found in source
- /system/vendor/lib64/libnvcpl.so
!! file not found in source
- /system/vendor/lib64/libnvddk_vic.so
!! file not found in source
- /system/vendor/lib64/libnvglsi.so
!! file not found in source
- /system/vendor/lib64/libnvgr.so
!! file not found in source
- /system/vendor/lib64/libnvhwc_service.so
!! file not found in source
- /system/vendor/lib64/libnvos.so
!! file not found in source
- /system/vendor/lib64/libnvrm.so
!! file not found in source
- /system/vendor/lib64/libnvrm_gpu.so
!! file not found in source
- /system/vendor/lib64/libnvrm_graphics.so
!! file not found in source
- /system/vendor/lib64/libnvrmapi_tegra.so
!! file not found in source
- /system/vendor/lib64/libnvwsi.so
!! file not found in source
- /system/vendor/lib64/libphs.so
!! file not found in source
- /system/vendor/lib64/libsensors.fusion.mpl530.nvs.so
!! file not found in source
- /system/vendor/lib64/libsensors.hal-drivers.nvs.so
!! file not found in source
- /system/vendor/lib64/libsensors.hal.nvs.so
!! file not found in source
- /system/vendor/lib64/libsensors.prefusion.mpl530.nvs.so
!! file not found in source
- /system/vendor/lib64/libshieldtech.so
!! file not found in source
- /system/vendor/lib64/libtlk_secure_hdcp_up.so
!! file not found in source
- /system/vendor/lib64/libtsec_wrapper.so
!! file not found in source
- /system/vendor/lib64/libtsechdcp.so
!! file not found in source
- /system/vendor/lib64/libussrd.so
!! file not found in source
- /system/vendor/lib64/mediadrm/libwvdrmengine.so
!! file not found in source
- /system/vendor/lib64/nvshieldtech.so
!! file not found in source
- /system/app/LeanbackIme/LeanbackIme.apk
Checking if system is odexed and locating boot.oats...
- /system/priv-app/LeanbackLauncher/LeanbackLauncher.apk
- /system/priv-app/SetupWraith/SetupWraith.apk
!! file not found in source
- /system/vendor/app/NvCPLSvc/NvCPLSvc.apk
!! file not found in source
- /system/vendor/app/NvShieldTech/NvShieldTech.apk
!! file not found in source
Related
itsutils updated src/mk.bat file
Hi itsme or whoever is looking after itsutils, I've been trying to compile itsutils (with some changes to pnewbootloader) and realised that mk.bat has not been updated for a while. I made changes to mk.bat so that at least pnewbootloader.exe compiles. I've added more targets for the build all target from src/Makefile even though there are some .cpp missing (from http://nah6.com/~itsme/cvs-xdadevtools/itsutils/src/). I hope you find it useful. Kid. PS the .txt extention is so that the file is accepted as attachment
Rom Diamond v1.2 , i can' t open jpg files!
Help please. After upgrading ROM diamond v1.2 i cant' open any jpg files . Error : Make sure the path and filename is correct and all the required libraries are available . Maybe i must download more libraries ? Where can i download ? Please somebody help me.Poor me.
I have the same problem. Also when I try to open a jpeg file with acdsee, acdsee crashes When opening in file explorer I get the error asking for libraries.
[Utility][Tool]baksmali/smali
- What is baksmali/smali? smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. The syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.) The names "smali" and "baksmali" are equivalents of "assembler" and "disassembler" respectively. - Author of the tool JesusFreke - Why we need it? Android apk and jar files will include java classes to execute certain functionality. With baksmali, you will be able to disassemble the java classes into editable form (smalis) so you can do your editing and modding involving java script. Once you done changing, you need to assemble all classes to a readable form for android, i.e, classes.dex and here comes the role of assembler (Smali). Since we have apk manager, do we still need this tool? Yes and No!!! Because some apk managers even if they do support jar files but once they decompile smalis, they will remove some lines (.line, .parameter, ...etc) which are in my opinion are useful to locate some codes. So the choice is yours. - What does this tool do? Simply it baksmali classes.dex of android apk and jar files into editable form (smalis) to do your changes; then assemble it back (smali). - Will it affect apk and jar original signature? No, it will preserve original signature. - Got problem? During assembling (smali), you may got error message. You can check log file to locate what is wrong that make the manager stop assembling the file or post the log file for developers to look into it. - What are the steps to work with this tool? Run Baksmali_tool.bat file, this will create all needed folders in the first run. 1. Put android apk or jar file in "put-file-here" folder. If Current-file status is set to None, then either you need to set a file in option #3 or you forget putting valid file in "put-file-here" folder. 2. When Current-file status is set to your file, you can disassemble its classes.dex by option #1. 3. Classout folder with name of file project will be created in "project" folder; make your changes there. 4. If finished your changes, assemble classout folder by option #2. 5. If everything is OK, a new file will be created in "finish" folder with tag (Modded_) in its name, push it to your device by option #3 if it was system apk or jar; and if it was non system apk file, install it by option #4. - Latest stable version Latest stable baksmali/smali version: 2.2.2 (30.10.2017) baksmali v. 2.2.2 - Download (bitbucket.org) smali v. 2.2.2 - Download (bitbucket.org) baksmali/smaly previous versions - Download (bitbucket.org) - Latest beta version Latest beta baksmali/smali version: - Changelog baksmali/smali wiki and changelog (github) - Where can I download latest source code? You can visit baksmali/smali source page (github) and you can download the latest smali and baksmali code versions. - Special Thanks to XDA Portal Team Special thanks to XDA Portal Team for featuring this utility XDA Portal Team ..
hi m8, thanks for this nice tool will try it next time I make a new theme sent from my G-Note
great work majd keep it up
no credit to the author of smali/baksmali? :/
iBotPeaches said: no credit to the author of smali/baksmali? :/ Click to expand... Click to collapse I think the authers are these guys ([email protected], [email protected], JesusFr.. @gmail.com) from project page.. aren't they??? if so I will update OP
majdinj said: I think the authers are these guys ([email protected], [email protected], JesusFr.. @gmail.com) from project page.. aren't they??? if so I will update OP Click to expand... Click to collapse Yes, thats the same person. I'd just put JesusFreke, as thats his username.
Version 1.1 is online
version 1.2 is online some bugs fixed
Grate dev, Great tool...tnx majdini:fingers-crossed:
What a great idea to simplify life ^^. Thanks majdinj.
majdinj said: Backsmali / Smali Manager What is Backsmali / Smali? smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. The syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.) The names "smali" and "baksmali" are equivalents of "assembler" and "disassembler" respectively. Why we need it? Android apk and jar files will include java classes to execute certain functionality. With backsmali, you will be able to disassemble the java classes into editable form (smalis) so you can do your editing and modding involving java script. Once you done changing, you need to assemble all classes to a readable form for android, i.e, classes.dex and here comes the role of assembler (Smali). Since we have apk manager, do we still need this tool? Yes and No!!! Because some apk managers even if they do support jar files but once they decompile smalis, they will remove some lines (.line, .parameter, ...etc) which are in my opinion are useful to locate some codes. So the choice is yours. What does this tool do? Simply it backsmali classes.dex of android apk and jar files into editable form (smalis) to do your changes; then assemble it back (smali). Will it affect apk and jar original signature? No, it will preserve original signature. Got problem? During assembling (smali), you may got error message. You can check log file to locate what is wrong that make the manager stop assembling the file or post the log file for developers to look into it. What are the steps to work with this manager? Run Backsmali_tool.bat file, this will create all needed folders in the first run.. 1. Put android apk or jar file in "put-file-here" folder. If Current-file status is set to None, then either you need to set a file in option #3 or you forget putting valid file in "put-file-here" folder. 2. When Current-file status is set to your file, you can disassemble its classes.dex by option #1. 3. Classout folder with name of file project will be created in "project" folder; make your changes there. 4. If finished your changes, assemble classout folder by option #2. 5. If everything is OK, a new file will be created in "finish" folder with tag (Modded_) in its name, just rename it to its original name and push it to your device; don't forget to fix permissions as well. If backsmali and smali code are outdated, what to do? Just visit codes owner page, and download the latest smali and backsmali code versions and put them in "tools" folder (make sure to rename them to baksmali and smali without version number) Future development? Feel free to report any bugs or suggestion to improve upcoming releases :good: Download - Backsmali-Manager_v1.2 @ 11/June/2013 (The most recent one) - Backsmali-Manager_v1.1 @ 7/June/2013 (old) - Backsmali-Manager_v1 @ 6/June/2013 (old) Change-log: @ 11/June/2013 (v1.2): - Fixed bug of file path in Read Log option. - Fixed number 10 file that was not shown in Set Current-file option. @ 7/June/2013 (v1.1): - Deleting the folder and file in project and finish folder of same project name before backsmali or smali (no more overlapping :fingers-crossed. - Added Read log file functionality in the main menu. - Ability to open classout folder after backsmali. - Ability to open finish folder after smali. - Ability to renamed finished modded file to its original name. - Neat smali and compression processing (i.e, hidden processing ). - Fixed set Current-file option to visualize only apk and jar files. @ 6/June/2013 (v1.0): - First release of Backsmali / smali manager Click to expand... Click to collapse i don't know how to start editing this smali file
badagila said: i don't know how to start editing this smali file Click to expand... Click to collapse Editing smali means to modify your jar or apk file to do certain new function, check the second thread in my signature in OP... you will find a lot editing tutorials of smalis of some android apps :laugh:
majdinj said: Editing smali means to modify your jar or apk file to do certain new function, check the second thread in my signature in OP... you will find a lot editing tutorials of smalis of some android apps :laugh: Click to expand... Click to collapse ok dude thanks
Hi, your work is featured here: http://ajqi.com/baksmali-smali-manager-windows-tool/ Keep it up!
VERY NICE! Good Work.. I dont know much about smali backsmali.. but one confusion.. Is this tool also applicable if the files (apks or jars) we want to modify are odexed?
OJ said: Good Work.. I dont know much about smali backsmali.. but one confusion.. Is this tool also applicable if the files (apks or jars) we want to modify are odexed? Click to expand... Click to collapse No, actually classes.dex are made from the odex files. If files are odexed, then there will be no classes.dex in apks or jar files. That's why it won't be applicable then
Version 1.3 is online Change log: - Added adb push finished file to device system partition (for system files). - Ability to choose whether to reboot device after pushing files to device. - Added adb install finished apk (for non-system files). - Adjustable Java heap memory size. - Adjustable finished file compression level. - Updated Smali and Backsmali codes (date 15/6/2013).
@ 23/June/2013 (v1.4): - Added Pull apk or jar From Android Device to the main menu. - Added zipaligning process during Smali (better RAM management). - Fixed apk installing process (added signing process step for installing apk process). - Added direct link to this xda page in update option. - More script polishing...
@ 29/June/2013 (v1.5-FINAL): - Fixed adb remount bug for some ROMs in push option. - Baksmali argument is updated; now you can choose whether to baksmali with x argument (retain .line, .parameter, .prologue, and .local) or b argument (remove .line, .parameter, .prologue, and .local).
Hi, i've XP&Backsmali / Smali Manager v1.5 and i want baksmali framework.jar but i got error message(attachment) I think wrong is slash (should be a backslash) the same error is after i select 1(baksmali*)and then x and Y or --------------------------------------------------------------and then b and Y *baksmali or backsmali?
[TOOL][GUI][Reverse engineer] Decompile APK to JAR Full Decompile :: One Click
Reverse engineer "Perfect software" , managed to convert apk to a jar file and decompile it using JD(via dex2jar) The program uses 3 tools (apktool.jar, dex2jar.bat, jad.exe) I've updated all lib/scripts ,apktool.jar 1.5.2, dex2jar 0.0.9.15 in attach you will find Fragment.apk I've tested with this tool and works fully !!,look on OutPut_Fragment.zip to see the result Download: DeCompileAPK.zip To Start Works on Windows7/8 1. Scan dir for “apk” file or look for the file with “APK File Directory”. Scan has a “subfolders” flag ,in the “Options” tab. 2. Double click on the found file it will be transferred to the “APK File Directory”. 3. Write or look for the output directory. Leaving this line empty will put all the project output files under the directory “OutPut” where this program is executed. If there is an output directory name, a directory “OutPut_” + APK file name will be created. 3. Press the Decompile KEY. 4. All Dos messages will be seen in the “Decompile OutPut” panel. 5. It will be shown also in the “Edit log” panel. 6. The log can be edited and printed. 7. A java file editor is included. Scan project files, Scan any directory or open any file. NOTE : USE ONLY ENGLISH CHARACTERS FOR FILE NAMES ! Credit and Thanks ! Tool Dev Website: http://www.limelect.com/android/
Reversed for new stuff
anyone tell us how it works with him?
codexc said: anyone tell us how it works with him? Click to expand... Click to collapse no download link to test
ActionBarSherlock & ViewPagerIndicator
Hi. I am trying to use ViewPagerIndicator & ActionBarSherlock in one package. But I get a famous error : "R can't be resolved to a type." To fix it I have done the following tricks : 1- I have copied the android-support-v4.jar from my project to ABS & VPI's libs folder. 2- I have deleted the jar from my project. But yet it's not working & has the problems. Can anybody help me ? Thanks in advanced.
torpedo mohammadi said: Hi. I am trying to use ViewPagerIndicator & ActionBarSherlock in one package. But I get a famous error : "R can't be resolved to a type." To fix it I have done the following tricks : 1- I have copied the android-support-v4.jar from my project to ABS & VPI's libs folder. 2- I have deleted the jar from my project. But yet it's not working & has the problems. Can anybody help me ? Thanks in advanced. Click to expand... Click to collapse If you are developing with eclipse, go to project properties, -> android , notice the bottom section there something like add library, add the ABS bin folder there. Thus it creates a dependancy to another library project instead of copying jar. Was it setup that way in ur project? As it needs reference to the R file and Res folder in those library (ABS).
torpedo mohammadi said: Hi. I am trying to use ViewPagerIndicator & ActionBarSherlock in one package. But I get a famous error : "R can't be resolved to a type." To fix it I have done the following tricks : 1- I have copied the android-support-v4.jar from my project to ABS & VPI's libs folder. 2- I have deleted the jar from my project. But yet it's not working & has the problems. Can anybody help me ? Thanks in advanced. Click to expand... Click to collapse You got an "R can't be resolved to a type." error ... SO ... all you have to do is first check if any of your XML Files have any errors in them .. And then do a Make Clean ... The error should now disappear ... :fingers-crossed:
Eclipse or Android Studio? If Eclipse, do you have Build-Tools installed? If Android Studio, which version are you using? Sent from my GT-S5830M using Tapatalk 2
I have done all these. (Using last adt bundle) But again android.support.v4.ViewPager can't be solved. Can anybody help me ? Thanks.