yashsingh1/xdaforums huggingface dataset:
[Android Software Development] divineBliss:
You wanted to say something in English? :)
[Android Software Development] Ibuprophen:
That's the members signature line referring to the Tapatalk app on that specific device.

I can see that this member was just building up a Post Count.

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software Development] ante0:
Try make adbd then make recoveryimage.

That fixes the error for me....

Although I too need help.

My built recovery comes without theme (twrp folder in recovery image, tw_theme is set in BoardConfig) so I end up in the basic, Cwm looking, recovery which can't do much.

fs_mgr gives errors, it can't find etc/recovery.fstab (it's there) and can't mount/find bootdevice/misc.

This is using 8.1 and 8.0 omni tree and minimal. 7.1 tree builds and boots fine.

Not sure why this happens.
[Android Software Development] Wajdi Muhtadi:
How do i only build adbd
[Android Software Development] ante0:
'make adbd'
[Android Software Development] Pons:
Sounds like your busybox is not a full installation.
[Android Software Development] bigsupersquid:
I did specify a way to do it in that case.
[Android Software Development] juliusssss:
Sorry :(

I haven't found config.gz in proc folder.
[Android Software Development] bigsupersquid:
ugh. not all kernel have that enabled, especially stock. Not too surprising they'd hide the kernel config if they won't release source code either

sorry.
[Android Software Development] juliusssss:
I type this as root into terminal:

dmesg | grep SELinux
SELinux: Initializing
SELinux: Starting in permissive mode
SELinux: Registering netfilter hooks

The kernel support SELinux, no?
[Android Software Development] MasterAwesome:
To check if it supports selinux type getenforce in terminal.
[Android Software Development] juliusssss:
I type getenforce and it says disable.

My device has android 4.3 and it support SELinux but only permissive and not enforced.

I have compiled again, now it works, i believe, but i can't see anything. :rolleyes:
[Android Software Development] MasterAwesome:
First build a working CWM this will ensure youve got all the partitions right and you can get to building TWRP.You have to use the following flags

TARGET_USE_CUSTOM_LUN_FILE_PATH := #adb shell find /sys -name lun
TW_BRIGHTNESS_PATH := #/sys/class/backlight/"some_name"/brightness
RECOVERY_GRAPHICS_USE_LINELENGTH := true #If your stock recovery has something called graphics.c import it into ramdisk of recovery using your device makefile

Regards

MasterAwesome
[Android Software Development] juliusssss:
Hi MasterAwesome,

I added the flags and now it works, but i have a lot of errors, as you say, with the partitions

E: invalid block device on ' /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait' , 'ext4' , 68

The same with all partitions

E: unabe to locate storage partition for storing settings file
Updating partition details...
E: Unmount: Unable to find partition for path '/system'
E: Unmount: Unable to find partition for path '/data'
E: Unmount: Unable to find partition for path '/cache'
Full Selinux support is present
E: unabe to locate '/external_sd' for usb storage mode

I have a CWM that it's working on my device but it's in chinese. I used their recovery.fstab.

What can i do?

Thanks. Greetings.
[Android Software Development] MasterAwesome:
Grab your mount points from /proc/mounts. And add it to your recovery fstab.

Regards

MasterAwesome
[Android Software Development] bigsupersquid:
I have source that was working on my device as of the Feb 12 commits. (ede51c528e5cebc7f1930d5c9da541e7d11c0138)

//edit: nvm, figured out where the issue lies.

When I pull in current source, it still builds and runs, but loops (flashes, splash screen, repeat) instead of opening the UI.

had to learn to git merge --no-commit. ugh. cherry-picking seems less destructive
[Android Software Development] reS28raM:
Hi, I am compiling omni 4.4 nightlies so everytime I get a recovery.img but I noticed that this TWRP version number is always one version back compared to the official version so what the deal is, version number get updated on official builds only but nevertheless the latest bugfixes are already included into this image, right?
[Android Software Development] juliusssss:
I grab the mount points but i have the same errors with the partitions. I take recovery.fstab from stock recovery and the same :(

I'm going crazy :silly: I don't know what i have to do. :confused:

Greetings.
[Android Software Development] MasterAwesome:
send me /proc/mounts /proc/dumchar_info /proc/partition
[Android Software Development] juliusssss:
Finally i compiled a TWRP for my device and it works. Only don't work internal storage and mount usb as storage.

Thanks to all.
[Android Software Development] papsi177:
Charger service

Hi) What about charger service on TWRP? I compiled v2.7.1.0, add to twrp.rc all needed for charger service, added the image directory to res..And if i turn off a phone and plug it to charger..i see only phone bootlogo, it is not going to charger animations) And i think it not started to charge) And if i compile just CWM recovery (all the some-boardconfig, init.rc, resources. Only source is for CWM) all is working fine) What can be wrong? And one more bug that i have on TRWP. If i wipe cache, it is wiped internal storage too..Can some body help me?
[Android Software Development] DoxMAZz:
how to port TWRP without compiling
[Android Software Development] MasterAwesome:
You can't unless the 2 devices are basically clones of each other.
[Android Software Development] mythi:
how to exclude recvery from being built with latest omni source
[Android Software Development] DoxMAZz:
If i have two devices with almost same specs like Processor, Ram, Display, then how to port
[Android Software Development] Razz...:
I have had an unofficial TWRP 3.0.2 for my device Gionee F103.It runs well everything is fine.....So my question is can i get official support for my device?

If yes how?
[Android Software Development] _that:
That's not TWRP then - TWRP doesn't work without a theme and there is no CWM-like default theme for TWRP.
[Android Software Development] ante0:
You are correct. I'm not sure what recovery this is:

Android Recovery

Huawei/omni_hi3660/hi3660

8.1.0/OPM.171019.021/andrea03202341

eng/test-keys

Use volume up/down and power

Reboot to bootloader

Apply update from ADB

Apply update from SD card

Wipe data/dactory reset

and so on...

It looks like the Android system recovery HTC used in the old devices (Not sure what they use now tbh).

But it was solved by git cloning android_bootable_recovery and replace bootable/recovery.

Same with busybox.

Not sure what's up, but it's not syncing everything it's supposed to. Maybe 'repo' is at fault?
[Android Software Development] lordlord6:
alcatel u5 and xiaomi mi max2

does anyone has done twrp for alcatel u5 and xiaomi mi max2? there is no official support yet :)
[Android Software Development] poppy22:
[MENTION=912474]Dees_Troy[/MENTION]

I would like to ask why I would not compile the vold_decrypt module when compiling my recovery with this device tree, which leads to data it does not decrypt.

Can you help me to see where the problem is?

device tree：

https://github.com/sabpprook/android_device_htc_ocm

Thanks [MENTION=4375068]sabpprook[/MENTION]
[Android Software Development] dorianpb:
anyone?
[Android Software Development] ashyx:
It's no good just posting the output. We need to see your device tree.

Also if you're building twrp for a Tracfone or Verizon device it's a waste of time as these devices come with locked bootloaders.
[Android Software Development] dorianpb:
Here is my device tree. Sorry for not including it earlier!

My phone model is sm-s727vl, i took the sm-j700p tree and edited it.

https://drive.google.com/open?id=1hoFX5ee7nCHn8bGfb4kc6vIPfryIad-y (rename to .zip and then open)
[Android Software Development] tonosatria:
Ok
[Android Software Development] dorianpb:
could anyone please help me diagnose my problem?
[Android Software Development] freddienuxx:
Hello guys I would like to build twrp recovery for Lenovo tab 4 10 plus tb-x704v LTE us version thx. What do I need to do? Again thx in advance. I'm going nuts great tablet but no custom recovery lol
[Android Software Development] romish:
did you read the last line ? it says right there it can't find your boot.img

ninja: error: '/home/dorianpb/twrp/out/target/product/j7popltetfnvzw/boot.img', needed by '/home/dorianpb/twrp/out/target/product/j7popltetfnvzw/ramdisk-recovery.cpio', missing and no known rule to make it
[Android Software Development] dorianpb:
I know it says that, i just dont know why or how to fix it. if you look in y devic tree, you will see a .mk that is suppose to build the boot.img.
[Android Software Development] ashyx:
TARGET_USES_UNCOMPRESSED_KERNEL := true

but then also?

BOARD_KERNEL_IMAGE_NAME	:= Image.gz

You shouldn't need either of those flags, so I'd get rid.

I'd also build as - eng not - userdebug

Also just so you know, even if it compiles it wont work unless you can find someway of unlocking the bootloader.
[Android Software Development] romish:
Who don't you post your mk files.. what does it say for custom board bootimg ? It should be a path

---------- Post added at 04:12 PM ---------- Previous post was at 04:06 PM ----------

I don't think you need to build it. The Lenovo 4 is supported so I'm sure someone has built it already and is floating around somewhere. If you do have to build it, it looks pretty easy since all the files are there, but you need to download a lot and be familiar with github. AOSP etc..

I would say just find a prebuilt because your build is going to be any different.
[Android Software Development] JamesBott:
hello developers,

i have a question.

my new phone is Honor 9 Lite. i found FHMate10Tool (root this phone) and chinese twrp "honor-lld".

this twrp work with NOT backup/restore "data", end with ERROR 255. (i think is decrypt/encrypt)

if my thinking right : i dont know

background : i am learning english by writing (and google-translating).

my first-life (work) is ending (my age = 66) and my second-life (happy-time) is beginning.

i have experiences: many year android (all my phones: cwm/twrp and custom-rom LOS or RR if available;

my PC is linux, laptop is Win7 (for Tool's run on Win); in first-life work in Win-domain, programming with delphi.

(so that you can form an opinion)

have anyone a tip "twrp compiling for beginners" (setup environment and first steps...) [linux]

bevor you answer : can i learning this in 1..2 month then "yes but..."

or learning in 1..2 year then "leave it, you will make too much"

why do i want to do that

- i need input for my brain, so it stays young

- i love the community. over year's i only download. now i hope, i can give a little bit return.

---------

second planning

if the answer "leave it..." : can anyone compile twrp for this phone

i help whit my phone as test-device

i help with execute command in phone

example:

-adb shell

-su

-cat...

---------

i hope for "yes but..."

i saw my next phone : Huawei P20 Lite (to buy in 6..9 month), and then the game starts again

P.S.

i have from Honor 9 Lite OTA-update "LLD-L31 8.0.0.127(C432) FULL" in my xda-thread for other user made available

i have extract from this update "recovery_ramdis.img and system.img", can allways reflash. the risk is minimal

i have test system.img from other devices, nothing work, reflash stock and phone work!
[Android Software Development] dorianpb:
Thank you for responding! I build as -eng and got rib of both of those flags, it still gives me the same error!
[Android Software Development] ashyx:
Did you do

source ./build/envsetup.sh

before doing lunch?
[Android Software Development] dorianpb:
Yes
[Android Software Development] romish:
Does anyone have a fix for a non touch working TWRP . The ports I have tried all bring up the interface with no touch capability. I believe this is from the screen being multi touch and the only fix would be to hack the kernel. Can someone at least disprove this so I don't end up pulling my hair out.

---------- Post added at 03:12 AM ---------- Previous post was at 03:10 AM ----------

Those flags mean nothing.. what's the custom board name in the mk file ?
[Android Software Development] blakegriplingph:
Regarding the official status of fan/developer made ports, exactly how do I submit one for approval? Got one made for the Nabi SE on my Github repo.
[Android Software Development] _that:
Try to catch Dees_Troy or bigbiff on IRC (freenode #twrp), or mailto:bigbiff@teamw.in .
[Android Software Development] _that:
How to debug touch issues: https://xdaforums.com/showpost.php?p=71400973&postcount=2884
[Android Software Development] blakegriplingph:
There, just sent Biff an email, thanks!
[Android Software Development] ashyx:
[MENTION=4878287]_that[/MENTION] just a question, but is there a reason why TeamWin don't just use a submission form, rather than freenode and boinging emails back and forth, which I find a bit contrived tbh?
[Android Software Development] ashyx:
TBH this seems to be an issue with building with the latest Omni 8.1 branch as it compiles fine under android 6.0 branch.

As a work around you can copy the boot.img into the target directory - out/target/product/j7popltetfnvzw and it should build.
[Android Software Development] dorianpb:
Thank you for all of your help! I’ll try to compile under the 6.0 branch, is there a way i can “run” the .mk fuile that makes the boot img?
[Android Software Development] ashyx:
Which .mk file?

The boot.img will build automatically under Android 6.0 branch.

As a workaround for branch 8.1 you can add the following to omni_j7popltetfnvzw.mk

PRODUCT_COPY_FILES += \

device/samsung/j7popltetfnvzw/boot.img:boot.img

Put the boot.img in your source directory.
[Android Software Development] _that:
I don't see the advantage of a form, but there is a contact form on the web site, which should also work for submitting new ports. I also don't see what's contrived about sending emails. If there are any questions about a submission, there must be _some_ way of communication anyway.
[Android Software Development] romish:
Thanks I'm almost there.. I have no mention of tpd in recovery.log but I when I adb shell the non-touch-twrp I do have the output with hexdump.

Does this mean that it's just matter of setting a flag in twrp or do I have to patch the kernel to comment out the disabling ?

Interestingly the other touches like philz and ctr working with touch, are they not using the kernel ?
[Android Software Development] freddienuxx:
thx yeah i loooked every where cant find a build anywhere! there are builds for international versions not for usa
[Android Software Development] romish:
Have you tried just booting in to one ? like this https://androidfilehost.com/?fid=889964283620772280
[Android Software Development] _that:
That sounds like your touch device working, but TWRP not understanding its events. This is unusual, try to build TWRP with the event logging flag, run it, touch the screen (and move around a little bit, remember the rough position and direction), and read/post your recovery.log (check the reported coordinates).
[Android Software Development] Goayandi:
I successfully built and fixed TWRP for Mi Pad 3 (Codename: cappu) a while ago. I think it should become an official version since there is no more bug left.

Manufacturer: Xiaomi

Device: cappu

Model: Mi Pad 3

Tree: https://github.com/Goayandi/android_twrp_xiaomi_cappu

Built using minimal omni-tree and precompiled kernel. I'll include kernel source after i fixed them.

Thank you very much!
[Android Software Development] Qiangong2:
Is there any change in the guide when you use linaro-gcc instead of androideabi-gcc?
[Android Software Development] ashyx:
For what, building the kernel?
[Android Software Development] Qiangong2:
Yes
[Android Software Development] ashyx:
No doesn't matter.
[Android Software Development] blakegriplingph:
Noob question, but how do you embed a modified theme and/or language files to the recovery?
[Android Software Development] _that:
Read gui/Android.mk - define TW_CUSTOM_THEME in your board file or modify gui/theme before building.
[Android Software Development] blakegriplingph:
Alright, thanks! :)
[Android Software Development] poppy22:
[MENTION=912474]Dees_Troy[/MENTION]

Hello Dees_Troy

I'm using https://github.com/minimal-manifest-twrp to compile HTRP for HTC U11+, but I'm having a problem now and hopefully I can get your help.

I use fastboot to brush into my compiled TWRP, but it cannot mount the data partition.

device tree：https://github.com/poppy1/android_device_htc_ocm/tree/twrp

logs：

View attachment 4466099

View attachment 4466100
[Android Software Development] ashyx:
The /data partition will be encrypted. You haven't included any crypto blobs in your device tree.
[Android Software Development] poppy22:
So what do I need to do? Thank you
[Android Software Development] ashyx:
I would check another recent HTC device tree, to get an idea of what you need.
[Android Software Development] poppy22:
The HTC U11+ is an upgraded version of the HTC U11 with almost the same configuration. But U 11 does not support Treble

This is a U11 device tree：

https://github.com/CaptainThrowback/android_device_htc_ocn
[Android Software Development] freddienuxx:
That's for tab 4 8 inch but will try

Sent from my Pixel 2 XL

---------- Post added at 04:26 AM ---------- Previous post was at 03:53 AM ----------

Ok I just tried it and when do command fast boot twrp it get stuck on downloading boot.img! No dice

Sent from my Pixel 2 XL
[Android Software Development] romish:
Are you sure you have the methods and commands correct before you even go about finding or compiling the right twrp.. I don't think you'll have any luck compiling because it does require a lot of downloads and a degree of knowledege. You'd be much better off to find the closest twrp to your device and diagnose where it fails from there on.

I would boot twrp, not flash it, so if there is something wrong you can just power down and yout stock recovery is untouched. from that point you can easily port one before compiling..

to boot the twrp type

fastboot -c "lge.kcal=0|0|0|x" boot path-to-your-twrp.img

then report back what happens. it will either boot the twrp or return an error or blank screen.. all of those can help you diagnose and get to the next step.
[Android Software Development] freddienuxx:
Ok will try. I really appreciate your help. Will report back in few hrs
[Android Software Development] The_Walking_Playground:
Hi,

You should ask in the thread with the working U11+ TWRP: https://xdaforums.com/htc-u11/development/unofficial-htc-u11-twrp-recovery-t3706264/post74543656. You should also note the warning about actually allowing TWRP to decrypt the device that's mentioned in the OP there.

TWP

Hi,

Newer HTC devices use "vold decrypt", which uses the blobs in /system and/or /vendor to decrypt the device. No blobs need to be included in the device tree with this method.

TWP
[Android Software Development] poppy22:
But I use the current device tree to compile recovery. Then flash my phone, it can not read data data.need to wipe userdata or you will get data encrypted message when reboot to system。I want to solve this problem
[Android Software Development] The_Walking_Playground:
Hi,

If you can compile TWRP successfully, then you have no more need of this thread. It would make more sense to work with the other devs working on the same TWRP and with the same device. That's why I recommend posting in the thread I linked, in your device forum.

TWP
[Android Software Development] freddienuxx:
i got a message here is a screen shot
[Android Software Development] freddienuxx:
i got a error when i put in that command here is a screenshot
[Android Software Development] divineBliss:
Do you have a space between fastboot and "-c.." ? It doesn't look like it.
[Android Software Development] freddienuxx:
ok got a another error message FAILED (data transfer failure (unknown error

---------- Post added at 12:10 AM ---------- Previous post was at 12:08 AM ----------

no im a kook wil try again
[Android Software Development] dcrin3:
You are using powershell.

You should be typing

.\adb.exe

followed by the parameters.

Or type 'adb' followed by the 'tab' key to autocomplete just like in linux/unix.
[Android Software Development] freddienuxx:
ok i did that and this what comes back
[Android Software Development] freddienuxx:
yup

---------- Post added at 12:27 AM ---------- Previous post was at 12:23 AM ----------

what does that mean?
[Android Software Development] romish:
In the first error you had fastboot -c as one word.. so that's why it didn't work ..

the second error is strange. what is this power shell. I use linux and have never seen that before.

are you in fastboot mode ? which is done by pressing vol up or down while powering up.

first confim you are in fastboot mode, by typing fastboot devices ... and there should be a reply.. like Phone name + serial no#

fastboot devices

if you are not in fastboot mode but do have ADB, just type adb devices , and then adb reboot bootloader

adb devices

adb reboot bootloader
[Android Software Development] divineBliss:
Response from fastboot devices was shown in the screenshot

https://xdaforums.com/showpost.php?p=76139501&postcount=3841

Are you expecting something different?
[Android Software Development] romish:
I'm replying to the previous post which I was quoted.

---------- Post added at 12:41 AM ---------- Previous post was at 12:37 AM ----------

I don't have your device but on mine that means oem locked,, so I had to go in the settings --> about device --> tap the build number a bunch of times until it says you're a developer, then in the new developer menu enable OEM unlock. this is for MTK , not sure what your devices is or if this is the method but you can give it a try.
[Android Software Development] ibub:
I don't have oem unlock listed in developer options in my Sammy j3 nougat. Does that mean it's unlocked, or they just didn't provide the option?
[Android Software Development] freddienuxx:
Ok adb is good USB drivers are up to date I was able to unlock my devices with fastboot commands. Also keep in mind this the twrp builds for my Lenovo tab 4 10 plus Lte isn't for my device. I was hoping that x-tb-704l and xtb807v would work. Maybe it's giving me that error because it's not for my device? Hey least I tried lol. I really appreciate you knowledge,and help. Thank you [MENTION=9048569]romish[/MENTION]
[Android Software Development] romish:
So what is the final error ? It's normal if it reboots to a blank screen, that means there is hope and a good chance you only have to port. It does seem like you made progress and at lest understand the concept but I'm curious what the final error was ?
[Android Software Development] freddienuxx:
The final error was the last screen shot I sent you.. error:failure unknown
[Android Software Development] romish:
that's a boot lock... just to confirm you went to about - turned on enable oem, rebooted to fastboot and typed the following

fastboot devices

fastboot oem unlock (then VOL up)

fastboot -c. boot etc...
[Android Software Development] jhc1:
correct everything is unlocked.
[Android Software Development] blakegriplingph:
Oh and what about edited language strings and such?
[Android Software Development] _that:
They are part of the theme.
[Android Software Development] Clamor:
[MENTION=4878287]_that[/MENTION] or [MENTION=912474]Dees_Troy[/MENTION] have you ever seen something like this? This is TWRP build on 7.1 branch for a tablet (landscape theme), any UI modifying flags aren't working.
[Android Software Development] _that:
I've never seen something like this. Looks like a problem with addressing the framebuffer. Read the relevant parts of the log.
[Android Software Development] Clamor:
This TWRP is for Asus Transformer device. FB is kernel part, it might not work properly on new 3.4 kernel and 3.1 kernel. But official TWRP works with both kernels fine. I'll provide some logs if needed.