yashsingh1/xdaforums huggingface dataset:
[Android Software Development] MSF Jarvis:
No you don't. Just go to this thread : http://xdaforums.com/android/software/twrp-flags-boardconfig-mk-t3333970/page2

And download the script by [MENTION=4478781]yuweng[/MENTION] which I have linked to a few posts down the line. It will guide you through the process and [MENTION=4478781]yuweng[/MENTION]'s detailed explanation of the script and it's usage will also be helpful. Let me know if there's a problem by creating an issue at Github.
[Android Software Development] Hacker432:
Is it possible to take logs of a ROM installation?

I mean, I can't install a ROM

I flashed it with twrp but it doesn't work so I tried with sideload and it stucks at 47%

It's possible to debug the flashing process?

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] WILMANS2M:
Yes by inserting a line in the updater script which copy the recovery log to sdcard.

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software Development] MSF Jarvis:
No you cannot, because if the flashing is stuck on a line which is above the log copying one, nothing would be reported. And if the erroneous line is below, nothing would be reported.
[Android Software Development] Hacker432:
I've used twrp function "Copy log to SD"

Can't figure out how to resolve the problem

Here is the log

pastebin.com/YeRL4QHW

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] MSF Jarvis:
Remove all the lines inside the updater script that call a backuptool.sh file. This file has a syntactic error
[Android Software Development] charansai:
Can I Fix Filpped Screen Touch From Ui.XML Because My Device Does Not Have Any Source To Build
[Android Software Development] vampirefo:
No, you have to add that to boardconfig.mk
[Android Software Development] charansai:
Thxs But My Device Have No Source :)
[Android Software Development] vampirefo:
Many devices don't have source none of mine do, yet I build twrp for all of them, you just need to make a device tree and have a kernel, that you get from either recovery.img or boot.img then build your own twrp recovery.
[Android Software Development] charansai:
Can I Get Any Guide If Possible
[Android Software Development] vampirefo:
That's what this thread is, a guide.
[Android Software Development] charansai:
OK :D
[Android Software Development] Hacker432:
I think I can't simply delete it

Anyway, if I delete those lines, twrp says Error executing update-binary

I think a ota package can't be modified

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] MSF Jarvis:
It can be modified, you must have messed up while cleaning up the updater script
[Android Software Development] DarkFrenzy:
[MENTION=912474]Dees_Troy[/MENTION]

twrp for lt02ltetmo mtp is not working. pc detects it but when i try to copy or paste an item to internel or externel storage it get stucked never got successfull in transfering files

tried all the versions but its same
[Android Software Development] nailyk:
Cyanogenmod guides

Sorry for late,

When I start building twrp I use Cyanogenmod guides. There are very well detailed.

List of guides

Cyanogenmod porting guide

And obviously the first post of this thread for twrp

Good luck :)
[Android Software Development] Startrek852:
Hey, I need some help. I'm trying to compile with this commit: https://github.com/eugenesan/androi...mmit/60d80d271d3d2a1ffeca76f829e6d5a67053da80 but I can't because I'm getting this error:

external/stlport/stlport/stl/_tree.c:407: error: undefined reference to 'DataManager::mConstValues'
external/stlport/stlport/stl/_tree.c:406: error: undefined reference to 'DataManager::mConstValues'
external/stlport/stlport/stl/_tree.c:416: error: undefined reference to 'DataManager::mConstValues'
external/stlport/stlport/stl/_tree.c:422: error: undefined reference to 'DataManager::mConstValues'
collect2: error: ld returned 1 exit status
build/core/executable_internal.mk:69: recipe for target '/home/andrew/omniromtwrp5.1/out/target/product/NXA8QC116/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery' failed
make: *** [/home/andrew/omniromtwrp5.1/out/target/product/NXA8QC116/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1

Also, I compiled TWRP 3.0 for the Samsung Galaxy Light, but there's a problem. When it boots, it get stuck at a black screen for a couple of minutes, then has to be woken up with a button press. Any help?
[Android Software Development] Startrek852:
Yes it would be. What you do is take the number of blocks that /proc/partitions gives you and multiply it by 1024. For example, /proc/partitions says that the boot partition (/dev/block/mmcblk0p22) is 32768 blocks, so 32768 * 1024 = 33554432.
[Android Software Development] celoxocis:
okay. thanks alot!

oh. one last thing :)

how do i determine "BOARD_FLASH_BLOCK_SIZE := "
[Android Software Development] Startrek852:
Try using 131072.
[Android Software Development] heliusjing:
Help !after put in lunch : 11. mini_emulator_x86-userdebug

12. omni_m8-userdebug

13. omni_m8-eng

Which would you like? [aosp_arm-eng] 12

WARNING: Trying to fetch a device that's already there

Traceback (most recent call last):

File "build/tools/roomservice.py", line 319, in <module>

fetch_dependencies(device)

File "build/tools/roomservice.py", line 275, in fetch_dependencies

fetch_device(device)

File "build/tools/roomservice.py", line 287, in fetch_device

git_data = search_gerrit_for_device(device)

File "build/tools/roomservice.py", line 78, in search_gerrit_for_device

device_data = check_repo_exists(git_data, device)

File "build/tools/roomservice.py", line 58, in check_repo_exists

"exiting roomservice".format(device=device))

Exception: m8 not found,exiting roomservice

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=6.0.1

TARGET_PRODUCT=omni_m8

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

TARGET_2ND_ARCH=

TARGET_2ND_ARCH_VARIANT=

TARGET_2ND_CPU_VARIANT=

HOST_ARCH=x86_64

HOST_OS=linux

...

when I input make -j5 recoveryimage

make: *** No rule to make target '/home/open/rom/omni/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by '/home/open/rom/omni/out/target/product/m8/obj/EXECUTABLES/init_intermediates/import_includes'。 停止。

make: *** 正在等待未完成的任务....

Export includes file: external/compiler-rt/Android.mk -- /home/open/rom/omni/out/target/product/m8/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes

#### make failed to build some targets (02:54 (mm:ss)) ####

HElp me I don't know how to do .and device htc_m8 from github ,so it makes right probably
[Android Software Development] Captain_Throwback:
First off, M8 is built with the 5.1 Omni tree (with 6.0 bootable/recovery). Second, you also always want an -eng build for TWRP, not -userdebug. Finally, your specific error indicates a missing device/qcom/common repo, which you should be using from the TeamWin github.
[Android Software Development] heliusjing:
thanks very much. Can I get any guide if possible ,I mean where should I put device/qcom/common in ? In addition ,what's the meaning of the first point ?
[Android Software Development] vance74:
I have a LG G Pad 2 v497. It's rooted, but I cannot find a custom recovery. Tried the TWRP manager app and there was none for my variant. Any suggestions on how I may be able to get a custom recovery? I want to use xposed. . Your guide is way over my knowledge.
[Android Software Development] heliusjing:
When I put in make -j5 recoveryimage

In file included from device/qcom/common/init/../../../../device/htc/m8/init/init_m8.c:33:0:

system/core/init/property_service.h:31:8: error: unknown type name 'bool'

extern bool properties_initialized();

^

In file included from external/libcxx/include/string:434:0,

from system/core/init/util.h:23,

from device/qcom/common/init/../../../../device/htc/m8/init/init_m8.c:35:

external/libcxx/include/__config:463:1: error: unknown type name 'namespace'

namespace std {

^

external/libcxx/include/__config:463:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

namespace std {

^

external/libcxx/include/__config:550:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token

template <bool> struct __static_assert_test;

^

external/libcxx/include/__config:551:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token

template <> struct __static_assert_test<true> {};

^

external/libcxx/include/__config:552:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token

template <unsigned> struct __static_assert_check {};

^

external/libcxx/include/iosfwd:96:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/iosfwd:96:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstring:67:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstring:67:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstdio:141:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstdio:141:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

AND

build/core/binary.mk:783: recipe for target '/home/open/rom/omni/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_msm_intermediates/dotdot/dotdot/dotdot/dotdot/device/htc/m8/init/init_m8.o' failed

make: *** [/home/open/rom/omni/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_msm_intermediates/dotdot/dotdot/dotdot/dotdot/device/htc/m8/init/init_m8.o] Error 1

make: *** 正在等待未完成的任务....

#### make failed to build some targets (09:19 (mm:ss)) ####

so .,I try to solve it but failed,please ,I may need your help ,please
[Android Software Development] Electry:
I have managed to compile a working TWRP successfully, although only if using static busybox binary.

Whenever I compile TWRP with busybox as shared dynamic lib, my device freezes (and reboots after few secs) right after getting to the main TWRP menu.

Any idea?
[Android Software Development] MSF Jarvis:
Recovery log please. Also a logcat if you enabled it in the build.
[Android Software Development] celoxocis:
hi, i tried to compile TWRP "only" recovery for the R7Plus here = https://github.com/TeamWin/android_device_oppo_r7plusf

using the small manifest here git://github.com/lj50036/platform_manifest_twrp_omni.git

(5.1 branch)

i don't know where i went wrong i keep getting this after "brunch r7plusf"

make: *** No rule to make target `/mnt/raid5/Other/development/twrp6/out/target/product/r7plusf/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/export_includes', needed by `/mnt/raid5/Other/development/twrp6/out/target/product/r7plusf/obj/EXECUTABLES/netd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....

repo sync was smooth and i cloned the the device tree with "git clone https://github.com/TeamWin/android_device_oppo_r7plusf" in the proper directory and named them correctly.

anyone have an idea? :(

this is an "practice" build as i plan to change the BoardConfig values for a sibling-device.
[Android Software Development] Captain_Throwback:
Try uncommenting this line: https://github.com/lj50036/platform_manifest_twrp_omni/blob/twrp-5.1/default.xml#L346

repo sync and build again. If you're using the minimal repo (twrp-5.1 branch), it's possible some repos that your device requires aren't included.
[Android Software Development] celoxocis:
ok thanks that worked but it looks like im stuck at the next error:

make: *** No rule to make target `/mnt/raid5/Other/development/twrp6/out/target/product/r7plusf/obj/SHARED_LIBRARIES/libmdnssd_intermediates/export_includes', needed by `/mnt/raid5/Other/development/twrp6/out/target/product/r7plusf/obj/EXECUTABLES/netd_intermediates/import_includes'. Stop.

https://github.com/TeamWin/android_device_oppo_r7plusf showed that it was using branch 5.1 i thought it would be better to use omni branch 5.1.

as Im only interested in building the TWRP and not the entire rom i used the minimal manifest.

is there a way to switch to the full manifest without re-downloading the GBs of data i already downloaded for the minimal? (like replacing the default.xml)

if not what is the proper manifest to get a stable branch 5.1 for omni for this device to work?
[Android Software Development] Captain_Throwback:
There's nothing wrong with using the minimal manifest. As you come across errors like the one you're seeing, just look in the manifest and uncomment the corresponding repo, until you no longer get any build errors. For my devices, the existing minimal repo builds fine. If you want to use the full Omni repo, then just use the Omni manifest. You may have to --force-sync some individual repos, but you shouldn't have to sync the entire thing over again.
[Android Software Development] celoxocis:
okay thank you alot! im pretty new to this. i will try to get past the errors. already fixed the next two. now that i know where to look :)

---------- Post added at 06:57 PM ---------- Previous post was at 06:07 PM ----------

here is one i can't find which to enable in the manifest.

make: *** No rule to make target `/mnt/raid5/Other/development/twrp6/out/target/product/r7plusf/obj/STATIC_LIBRARIES/libsigchain_intermediates/export_includes', needed by `/mnt/raid5/Other/development/twrp6/out/target/product/r7plusf/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....

i have googled but i only came across some OSX thread that says. they need to use "old build tools". but im on Ubuntu 14.04 with a proper build env.

anyone have an idea?
[Android Software Development] Captain_Throwback:
https://github.com/lj50036/platform_manifest_twrp_omni/blob/twrp-5.1/default.xml#L33

as evidenced by: https://github.com/omnirom/android_art/blob/android-5.1/sigchainlib/Android.mk#L27
[Android Software Development] Ratha ITC:
There is no official TWRP recovery for my device (Redmi Note 3 MTK). Someone has already compiled it with version 3.0.0.0. And he won't update anymore. I just want to update it to the lasted version. I want to make 3.0.0.2 image for my device. Is there any easier way to compile the latest version by using something related to version 3.0.0.0? I know linux commands but I've never compiled recovery before. Please help me!
[Android Software Development] bigsupersquid:
unpack the ramdisk from the existing twrp and you can get all the files you need to build with. fstabs, *.rc, etc.
[Android Software Development] celoxocis:
Hi TWRP Team,

i have successfully compiled TWRP for a unsupported device and would like it to become "Officially" supported.

I have read in the forum what i need to send to you: http://xdaforums.com/showpost.php?p=32965381&postcount=2

My question is what is the best way to contact the TWRP Team, to send you the required files to make it official?﻿ :)

I already tested all functions including backup/restore. The debug log is clean. Except for these first line:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!

__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

But i guess thats only a minor issue :D
[Android Software Development] MSF Jarvis:
You already have 3.0.2-0 officially. Go to dl.twrp.me/kenzo.

---------- Post added at 04:05 PM ---------- Previous post was at 03:58 PM ----------

[MENTION=912474]Dees_Troy[/MENTION] is from Kansas City, USA, so you may want to join #twrp through http://webchat.freenode.net/?channel=twrp at about 3:00 PM Kansas Time. Tell him what you wrote above and give him the link to your device tree. He'll run a build for you on their server. If that works perfectly, voila! You have official TWRP support!
[Android Software Development] Startrek852:
Here's a fix for the tzdata errors: http://xdaforums.com/showthread.php?p=64850444
[Android Software Development] Ratha ITC:
Thanks for your help! I will try to compile it. :)

---------- Post added at 12:06 AM ---------- Previous post was at 12:02 AM ----------

Thanks for your help but my phone is MediaTek SoC edition with code name henessy. kenzo is Qualcomm SoC edition. What should I do?
[Android Software Development] ne0zone75:
libbatteryservice build error

Good evening,

I am currently successfully building latest TWRP for S4 mini along with OmniROM 5.0 ROM tree after having omnified CyanogenMod 12.0 sources for my target device.

I am trying to repeat the same process with OmniROM 6.0 ROM tree + CyanogenMod 13.0 but i am stuck with these fatal errors while building 'libbatteryservice'

target thumb C++: libbatteryservice <= frameworks/native/services/batteryservice/BatteryProperties.cpp
target thumb C++: libbatteryservice <= frameworks/native/services/batteryservice/BatteryProperty.cpp
frameworks/native/services/batteryservice/BatteryProperties.cpp:19:43: fatal error: batteryservice/BatteryService.h: No such file or directory
#include <batteryservice/BatteryService.h>
^
compilation terminated.
make: *** [/mnt/IHDD/DEV/Android/6.0/TWRP/sources/OmniROM/out/target/product/serrano3gxx/obj/STATIC_LIBRARIES/libbatteryservice_intermediates/BatteryProperties.o] Erreur 1
make: *** Attente des tâches non terminées....
frameworks/native/services/batteryservice/BatteryProperty.cpp:19:43: fatal error: batteryservice/BatteryService.h: No such file or directory
#include <batteryservice/BatteryService.h>
^
compilation terminated.

My CyanogenMod 13.0 S4 mini sources do have a 'libhealthd' target inside 'android_device_samsung_qcom-common'. I also replaced OmniROM 'android_frameworks_native' by OmniROM 'android_frameworks_native-caf', otherwise build is stopping early.

Thanks for your help
[Android Software Development] heliusjing:
hey ,I have compiled the twrp recoery successfully ,but not perfect ,when I flash something it will show cannot load twres/language/cn.xml ,what should I do ?,please
[Android Software Development] MSF Jarvis:
Don't need to do anything, if you don't speak Chinese, that is :silly:
[Android Software Development] heliusjing:
I am a Chinaese ,So,I wabt to know how to fix it up !
[Android Software Development] Startrek852:
Open BatteryProperty.cpp and remove that include line.
[Android Software Development] ne0zone75:
Well thank you for your answer :good:. I have made it through the opposite way : building TWRP along with CyanogenMod 13.0 ROM tree... it was quite easy and easier to try to do it for CyanogenMod 12.0 because i had too many issues with it so at that time i decided to build along with OmniROM ROM tree. It is not the best way for me anymore.

Regards
[Android Software Development] a1smkshp:
(Lg tribute 2) which device name should should i pick for this?
[Android Software Development] yuweng:
Search omnirom gerrit & you shall see this or...

Source

Typically just follow the ro.product.model & ro.product.device & if there are space then you'll need to specify it at your device_(devicename).mk

PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_MODEL="JOI 7 Lite" \ [COLOR="Blue"]<= ro.product.model[/COLOR]
TARGET_DEVICE="Sf3g_mrd5_p1_v2" [COLOR="blue"]<= ro.product.device[/COLOR]

You might need additional info, refer to here & here, additional ref here... :cowboy:
[Android Software Development] thangbk236:
Hello. I build for my lg f350 but it have err

How can I fix it
[Android Software Development] hackslash:
Hello everyone!

I was always able to compile TWRP 3.0.1 successfully using CM 12.1 sources. However, after switching to CM 13.0 and TWRP 3.0.2, my builds are failing at

No rule to make target /system/xbin/busybox

Isn't busybox compiled automatically or I have to include it in the device tree now?
[Android Software Development] lj50036:
https://github.com/CyanogenMod/android/commit/50be19e243383a442e90c7f7bed5a3842c66957b

add this line to your .repo/local_manifests/local_manifest.xml <--- .repo will be in the root of the build directory, the rest will have to be created by you.....

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="external/busybox" name="CyanogenMod/android_external_busybox" />
</manifest>

Then repo sync and it will pull it in from github....

Thx Josh
[Android Software Development] nexolight:
I'm trying to build twrp from the CM13 source. However I'm stuck at the vendor logo before the twrp logo appears. It just freezes at this point. I have no idea how to debug this. ADB is not available at this point. it must be something immediately after the init script is started... What could cause that?

I know for sure that it's not the kernel since the device boots up when I merge it with the stock boot.img ramdisk and flash it.
[Android Software Development] nexolight:
I solved it by replacing some sepolicy files in the ramdisk with the stock files.

Then I got a black screen but adb access. I solved the black screen by applying this:

https://github.com/TeamWin/Team-Win...mits/63ff59c354e9a04b4faa5f9f8c12142752d94609
[Android Software Development] abhishekr700:
Can anyone tell me how do I install mkbootimg, ummkbootimg etc (tools for boot.img) on ubuntu.
[Android Software Development] hackslash:
Clone this https://github.com/osm0sis/mkbootimg git repository.

Then execute make in the directory where the sources are cloned.
[Android Software Development] abhishekr700:
Only make or make install?

---------- Post added at 08:36 PM ---------- Previous post was at 08:36 PM ----------

Only make or make install
[Android Software Development] hackslash:
Only make (no need of make install).
[Android Software Development] a-st:
I'm facing the same issue on Z3+ Dual. What did you exactly do to fix the stuck at vendor logo issue?

Thanks in advance!
[Android Software Development] hackslash:
That's basically a patch for HiSilicon Kirin SoC (with Mali GPU) to fix the black screen issue. It doesn't gets stuck, the recovery is working (you can feel the vibrations when you touch the screen) but there is no display.
[Android Software Development] a-st:
Hi mfbcool,

I'm facing same issue as in http://xdaforums.com/showpost.php?p=66569097&postcount=1680, not the black screen issue :)
[Android Software Development] 4javier:
I want to build TWRP including its sources inside a CM12.1 (= Android 5.1) tree. The guide says I should download the latest branch of TWRP. I should choose 5.1 branch or the latest 6.0, newest but not the same version of my CM tree?
[Android Software Development] hackslash:
Go with the Android 6.0 branch regardless of the CM sources.
[Android Software Development] skaramazoo:
Vodafone Smart Tab 4G kitkat ROMs

Here is links for the ROMs, GAPPS and tools files:

http://www.mediafire.com/download/3m...enjaminwan.zip

http://www.mediafire.com/download/hd...12-pop8lte.zip

http://www.mediafire.com/download/t2...17-pop8lte.zip

http://www.mediafire.com/download/ae...410-signed.zip

http://www.mediafire.com/download/qm...410-signed.zip

more coming soon ;) ;)