yashsingh1/xdaforums huggingface dataset:
[Android] HritikSH:
As stated in the guide(Mentioned Previously) I followed when I flashed recovery.img the phone never goes to recovery mode and boots normally

---------- Post added at 12:47 PM ---------- Previous post was at 12:46 PM ----------

That's what I am asking sir how to make it from scratch
[Android] MZO:
Try flashing the recovery in boot partition. Take a backup of kernel before you do and keep fastboot in hand so you can reflash kernel
[Android] HritikSH:
I flashed recovery.img using an app called Rashr but it's not working.

And do I really need to make recovery.img when I am creating a device tree?
[Android] Albe96:
So you want a guide to make device tree?

You don't really have to work hard.Just search for a similar device's tree in github.Then create a new repository and do create files which they did.But don't forget to make changes with your device specs.And about the vendor files in device tree you have to add from your system..

I hope you got it.

---------- Post added at 01:02 PM ---------- Previous post was at 01:01 PM ----------

Not really,I think you need to do some trick with boot.img anyway maiking tree frim scratch is the best idea in my opinion.
[Android] HritikSH:
I have got one device tree for Wiko Rainbow which has same spec as of my device but how can I check if the tree I created is right or wrong.

Thanks for prompt response [MENTION=7334959]Albe96[/MENTION] and [MENTION=6304619]MZO[/MENTION]
[Android] matteo0026:
This didn't work. (I yet talked to you about this but I want to have some other users that can help me)
[Android] kozmo21:
You needed to cherry pick a commit in package/apps/PhoneCommon to get it to work before today. It has since been merged, so just do another sync and it should build fine.
[Android] Alviss2108:
My rom get this error when boot

01-01 00:00:13.335 329 329 I ServiceManager: service 'media.resource_manager' died
01-01 00:00:13.335 329 329 I ServiceManager: service 'media.audio_flinger' died
01-01 00:00:13.335 329 329 I ServiceManager: service 'media.player' died

How can i fix it?

I build Cyanogenmod Rom 13 for Samsung E500H device.
[Android] DodoGTA:
Attach the full logcat or GTFO
[Android] Alviss2108:
My logcat is posted here
[Android] FSadino:
Hello all,

I never had this error before and I need some opinions. My custom build failed because recovery.img partition is to small and I can increase it like I did here: https://github.com/FSadino/android_...mmit/48a75cb8d3095e8d861ca2b5588a50a62b58a91d

My question is, if I increase recovery size partition do I have to decrease any other partition?

Thanks in advanced
[Android] pix106:
What is the exact error you get?

The size in boardconfig is used to check, when building, if the recovery image will fit the recovery partition, not to resize partitions

I suppose it's actually the opposite : your recovery image is too big to fit your recovery partition size. You'll have to make it lighter to fit partition, removing some features from your recovery.
[Android] FSadino:
I didn't save the error and I'm not at home. What you said make sense. The strange is that I don't change anything on recovery files...
[Android] NepoRood:
If you're not flashing the recovery, the "Partition Size" can be whatever. Or non-existent, for that matter ;)
[Android] FSadino:
Yes I don't flash recovery from my custom build, I just want that build finish sucessfull
[Android] pix106:
Then just comment recovery partition size in your boardconfig, so it's not checked.
[Android] FSadino:
It's even more practical :) thanks
[Android] HritikSH:
Guys I have built a device tree from other device that is Wiko Rainbow for my A99 how do I check if the tree I built is correct or not.
[Android] NepoRood:
Try doing a test build of boot or recovery images, I recommend building a recovery first, if you don't have one...
[Android] Alviss2108:
My rom can not boot sucessfully.

This is my logcat https://hastebin.com/wovugasiyu.vbs.

Can anyone know what problem is?
[Android] spookcity138:
F art : art/runtime/jni_internal.cc:497] JNI FatalError called: frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:478: Unable to construct file descriptor table. 01-01 00:02:30.431 371 371 F art : art/runtime/barrier.cc:90] Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count 01-01 00:02:30.431 371 371 F art : art/runtime/runtime.cc:366] Runtime aborting --- recursively, so no thread-specific detail! 01-01 00:02:30.431 371 371 F art : art/runtime/runtime.cc:366] --------- beginning of crash 01-01 00:02:30.431 371 371 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 371 (main)

Followed by the backtrace. I can't help much with the error sorry,but it's fairly clear what is causing the problem. Perhaps someone else can or do some searching.
[Android] Alviss2108:
Thank for your help. I will research about this but not much information.
[Android] nicesoni_ash:
I don't have a direct problem with building process but one of the bash script, envsetup.sh. As my build machine supports colors, It should display build successful or failure messages in green or red color however it's in normal black and white colors.

Script is here, line #1651. Can anyone suggest me what could be wrong as I can't find anything wrong with the script itself.

Thanks.
[Android] Michael24884:
Does it male a difference? The result is still the same.
[Android] Alviss2108:
Thank you very much.. libandroid_runtime.so is error, when i replace this lib my rom boot sucessfully.
[Android] spookcity138:
Great! I'm glad you got it working.
[Android] nicesoni_ash:
No, it doesn't and yes the result is same. It's just something I want to understand.

Sent from my "1+2" powered by Delight Oreo

Compiled by myself
[Android] Arjun KalyanRam:
I built Android 7.1.2 Viper OS v3.1 For moto X (ghost) from another rom's source ,the build is successful and it works good but i am having camera hals issues . i don't have any knowledge about it can anyone tell how to fix this problem!!
[Android] YedanyXD:
The error come from the other source
[Android] Arjun KalyanRam:
I know am asking how to fix it !
[Android] Nonta72:
You've probably used outdated sources.
[Android] arghyac35:
I was trying to compile AOSPA for Lenovo P2, and I am getting this error... can anyone help me out with this?

Traceback (most recent call last):
File "build/tools/roomservice.py", line 64, in <module>
dependencies = json.loads(open(dependencies_json_path, 'r').read())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 5 column 3 (char 97)

** Roomservice failure for: 'pa_kuntao'
[Android] Arjun KalyanRam:
the phone does not have a latest source because there is no developer currently working on this device so i thought i could continue !!
[Android] Nonta72:
According to this thread, Camera is indeed broken in LOS 14.1/based. Unfortunately I cannot help much here. I haven't worked on SD since 2014.

You can try to figure out the camera model and then refer to a device with the same camera chip. All you have to do then is to refer to the sources of that device (hopefully updated to 7.x).
[Android] aoleary:
Adding Lockscreen Weather issue

Hi.

I want to add Lockscreen Weather via Omnijaws to DU 11.7.2.

I get the following error when I try to build:

packages/apps/Settings/res/xml/du_settings_lockscreen.xml:13: error: Error: No resource found that matches the given name (at 'title' with value '@string/lockscreen_title').

This is the relevant file:

?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 Nitrogen Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
[B][COLOR="Red"] android:title="@string/lockscreen_title"[/COLOR][/B]
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">

<Preference
android:key="lockscreen_weather"
android:title="@string/lock_screen_weather_settings_title"
android:fragment="com.android.settings.fragments.LockScreenWeatherSettings" />

</PreferenceScreen>

Which I modified from this commit: https://github.com/nitrogen-project...mmit/7995b3d1a5be4aed70d63224ffba44b6a7ab2388

The corresponding path to the above commit in DU is: https://github.com/DirtyUnicorns/android_packages_apps_Settings/tree/n7x/res/xml

What do I need to correct?
[Android] nicesoni_ash:
Just add an entry in your res/values/strings.xml file for lockscreen_title.

Sent from my "1+2" powered by Delight Oreo

Compiled by myself
[Android] aoleary:
Thanks for that.

I now get an error at 94%, again which I do not know how to resolve. Do you mind have a look?

[ 94% 1274/1339] build /home/antoin/DU/out/target/common/obj/APPS/Settings_intermediates/with-local/classes.dex
FAILED: /home/antoin/DU/out/target/common/obj/APPS/Settings_intermediates/with-local/classes.dex
......
......
......
Building with Jack: /home/antoin/DU/out/target/common/obj/APPS/Settings_intermediates/with-local/classes.dex
ERROR: /home/antoin/DU/packages/apps/Settings/src/com/android/settings/fragments/LockScreenWeatherSettings.java:37: The import com.android.internal.logging.nano cannot be resolved
ERROR: /home/antoin/DU/packages/apps/Settings/src/com/android/settings/fragments/LockScreenWeatherSettings.java:39: The import com.android.settings.development cannot be resolved
ERROR: /home/antoin/DU/packages/apps/Settings/src/com/android/settings/fragments/LockScreenWeatherSettings.java:42: The import com.nitrogen cannot be resolved
ERROR: /home/antoin/DU/packages/apps/Settings/src/com/android/settings/fragments/LockScreenWeatherSettings.java:79: MetricsProto cannot be resolved to a variable
ERROR: /home/antoin/DU/packages/apps/Settings/src/com/android/settings/fragments/LockScreenWeatherSettings.java:95: DevelopmentSettings cannot be resolved
[ 94% 1274/1339] build /home/antoin/DU/out/target/common/obj/APPS/SettingsProvider_intermediates/with-local/classes.dex
Building with Jack: /home/antoin/DU/out/target/common/obj/APPS/SettingsProvider_intermediates/with-local/classes.dex
[ 95% 1274/1339] build /home/antoin/DU/out/target/common/obj/JAVA_LIBRARIES/android-support-v17-preference-leanback-api21_intermediates/classes.jack
Building with Jack: /home/antoin/DU/out/target/common/obj/JAVA_LIBRARIES/android-support-v17-preference-leanback-api21_intermediates/classes.jack
[ 95% 1274/1339] build /home/antoin/DU/out/target/common/obj/APPS/StatementService_intermediates/with-local/classes.dex
Building with Jack: /home/antoin/DU/out/target/common/obj/APPS/StatementService_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (22:15 (mm:ss)) ####

antoin@OL:~/DU$

Here is the

link

to the full LockScreenWeatherSettings.java file I created.

I am so close. Would really appreciate your help to go the whole way :)
[Android] nicesoni_ash:
You are importing something that doesn't exist or have a different name in your build. Make sure they exist, look for these files from where you are cherry-picking this commit.

Sent from my "1+2" powered by Delight Oreo

Compiled by myself
[Android] aoleary:
So each "Import" line refers to a specific file or does it refer to a class/code in another file??
[Android] nicesoni_ash:
A class has a full name which comprises of the package name and the class name. If you need to use a class in your code, you need to give the compiler the full name of the class.So, you use an import statement.

Sent from my "1+2" powered by Delight Oreo

Compiled by myself
[Android] DJKristy:
I want to build lineage is for Asus z010d. But the phone has two variants sd615 and sd410.

Checked github for device tree and found some repository. So is it possible to build for both variants using one device tree
[Android] Albe96:
Mmm...ofcource not! You can't build with one tree..you have to build it separetely..

fix the selinux denials..
[Android] DiamondJohn:
If the devices are similar in the right way, it may be possible. A few years back, there use to be a build for msm8960 common for Motorola devices. As the main difference between a few devices was the touch drivers, the ROM zip basically flashed the same for all devices, and then based on the specific device, applied the specific touch drivers for that device.
[Android] WannaDonna:
I have tried every possible way of make and i still get the same error. I am compiling viperOS and its my first rom.
[Android] spookcity138:
Viper uses mka poison not mka bacon.
[Android] WannaDonna:
I got this new error

ninja: Entering directory `.'
ninja: error: '/home/gunwant2012/viper/out/target/product/tomato/system/lib64/libfmjni.so', needed by '/home/gunwant2012/viper/out/target/product/tomato/system/priv-app/FMRadio/FMRadio.apk', missing and no known rule to make it
make: *** [build/core/ninja.mk:167: ninja_wrapper] Error 1
make: Leaving directory '/home/gunwant2012/viper'
[Android] HritikSH:
I am building CyanogenMod 11 for Micromax A99 it has Mtk 6582 chipset what make command should I use.

Make backon

Brunch A99

Make poison

Or what?

Can anyone please tell me how it's determined which make command we should use.

PS: I tried make backon but it did not give me a flashable zip, then I flashed it by taking another roms flashable zip's Meta-Inf but the phone is stuck at boot logo
[Android] karthik km:
Can anyone help me with this ?

Thanks in advance

[ 5% 1446/28072] build /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk

FAILED: /bin/bash -c "(echo "target Export Resources: framework-res (/home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)" ) && (mkdir -p /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/ ) && (touch /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/zipdummy ) && ((cd /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/ && jar cf package-export.apk zipdummy) ) && (zip -qd /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk zipdummy ) && (rm /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/zipdummy ) && (/home/wolverine/Desktop/CANDY/candy/out/host/linux-x86/bin/aapt package -u -x --private-symbols com.android.internal -z --pseudo-localize -M frameworks/base/core/res/AndroidManifest.xml -S device/wingtech/wt88047/overlay/frameworks/base/core/res/res -S frameworks/base/core/res/res -A frameworks/base/core/res/assets --min-sdk-version 25 --target-sdk-version 25 --product default --version-code 25 --version-name 7.1.2 --skip-symbols-without-default-localization -F /home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk )"

target Export Resources: framework-res (/home/wolverine/Desktop/CANDY/candy/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)

warning: string 'candidates_style' has no default translation.

warning: string 'gsm_alphabet_default_charset' has no default translation.

warning: string 'wfcSpnFormat' has no default translation.

frameworks/base/core/res/res/values/symbols.xml:1171: error: Symbol 'default_wallpaper' declared with <java-symbol> not defined
[Android] Arjun KalyanRam:
Use hastebin to show error send the full log !
[Android] Roybabu:
is there any way to fix this

https://hastebin.com/qakilemero.sql

[ 91% 32038/34937] target Executable: rild (/home/roybabu/aicp/out/target/product/harpia/obj/EXECUTABLES/rild_intermediates/LINKED/rild)

FAILED: /home/roybabu/aicp/out/target/product/harpia/obj/EXECUTABLES/rild_intermediates/LINKED/rild

/bin/bash -c "prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -pie -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,-rpath-link=/home/roybabu/aicp/out/target/product/harpia/obj/lib /home/roybabu/aicp/out/target/product/harpia/obj/lib/crtbegin_dynamic.o /home/roybabu/aicp/out/target/product/harpia/obj/EXECUTABLES/rild_intermediates/rild.o -Wl,--whole-archive /home/roybabu/aicp/out/target/product/harpia/obj/STATIC_LIBRARIES/librilutils_static_intermediates/librilutils_static.a -Wl,--no-whole-archive /home/roybabu/aicp/out/target/product/harpia/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a /home/roybabu/aicp/out/target/product/harpia/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a /home/roybabu/aicp/out/target/product/harpia/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a /home/roybabu/aicp/out/target/product/harpia/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--no-fix-cortex-a8 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined /home/roybabu/aicp/out/target/product/harpia/obj/lib/libcutils.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/libdl.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/liblog.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/libril.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/libc++.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/libdl.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/libc.so /home/roybabu/aicp/out/target/product/harpia/obj/lib/libm.so -o /home/roybabu/aicp/out/target/product/harpia/obj/EXECUTABLES/rild_intermediates/LINKED/rild /home/roybabu/aicp/out/target/product/harpia/obj/lib/crtend_android.o"

hardware/ril/rild/rild.c:153: error: undefined reference to 'RIL_setServiceName'

hardware/ril/rild/rild.c:229: error: undefined reference to 'rilc_thread_pool'

hardware/ril/rild/rild.c:180: error: undefined reference to 'ril_service_name'

hardware/ril/rild/rild.c:180: error: undefined reference to 'ril_service_name_base'

clang.real: error: linker command failed with exit code 1 (use -v to see invocation)

[ 91% 32043/34937] ld /home/roybabu/aicp/out/soong/.intermediates/external/llvm/libLLVM/android_arm_armv7-a-neon_cortex-a53_shared_core/libLLVM.so

ninja: build stopped: subcommand failed.

06:45:03 ninja failed with: exit status 1

make: *** [build/core/main.mk:21: run_soong_ui] Error 1

make: Leaving directory '/home/roybabu/aicp'

#### make failed to build some targets (01:28:01 (hh:mm:ss)) ####
[Android] HritikSH:
I have build a the CyanogenMod 11 for Micromax A99 but its stuck at boot logo (not boot animation). So I want to know how can I take logcat to solve the error because adb logacat gives waiting for device.

I know that we have to modify init.rc but how?

Please help me guys....
[Android] pix106:
Did you build a "eng" variant ? Or userdebug ?

Eng has adb at boot time
[Android] :
I am new to ROM compilation and this is my first

Attempt..

I tried the following command

". build/envsetup.sh "

And got the following

" Including sdk/bash_completion/ADB.bash "

Please let me know how to fix

Sorry in advance if this has been answered already
[Android] HritikSH:
Yes I have build a eng variant but its not going upto boot animation that's why I guess I am not able to use ADB. Correct me if I am wrong.
[Android] Jithin0801:
I have doubt I have dual booted with windows, I partitioned 50gb and installed ubuntu in it. Now the space for /home is 50gb and i can access my hdd drives which in 1tb in total. now the doubt is that shall i use that hdd(1tb) or should i increase the space of /home to 200gb?
[Android] Alviss2108:
I built aosp 5.1.1 source for device samsung e500h.

When i flash rom in twrp recovery it show error

E:unknown command [log]
E:unknown command [log]

it's my recovery log : https://hastebin.com/romosusudo.sql

My updater-script : https://hastebin.com/emowukovok.sql
[Android] FSadino:
Missing "vendorsetup.sh" on device tree
[Android] HritikSH:
I have now followed this guide

https://android.stackexchange.com/questions/55674/how-can-i-enable-adbd-during-boot-on-cyanogenmod

But still no luck.

I was getting in the terminal as in pic

So does that mean I have do something with udev rules.

But previously my phone was working properly with ADB.

Please help me what should I do..
[Android] FSadino:
Google: Adding udev rules for USB debugging Android devices
[Android] HritikSH:
But my device was working properly before then why this happend.

Sorry if this is a newbie question.

Edit: Okay so now I have updated udev rules can see the device in adb devices. I can even access shell from recovery but not from the stuck boot screen. And adb logcat do not work niether in recovery nor on stuck boot screen. It gives following error:

exec /system/bin/sh failed no such file or directory
[Android] DodoGTA:
Those errors that you posted are safe to ignore
[Android] Alviss2108:
But my rom can not boot anything. The rom went to odin mode not boot to system.
[Android] pix106:
"boot time" is not "bootanimation"...

Forget about bootanimation, there's probably work to do before it can show.

Add lines in your system.prop to enable adb at boot time, such as :

ro.secure=0

ro.adb.secure=0
[Android] :
Which means I have to sync the device tree once more right
[Android] FSadino:
The updater-script you have shown doesn't even have instructions to install the ROM...

---------- Post added at 09:04 AM ---------- Previous post was at 08:59 AM ----------

If you already have device tree, you should have that file already
[Android] :
OK thanks for spending you valuable time for me.. [MENTION=2516309]fsandin[/MENTION]o
[Android] HritikSH:
I have added all the lines as mentioned in the stack exchange page but still no luck.

Now I can get logs in recovery but to get those I have to mount my system by using the mount option in twrp. But when I try to take logs on stuck boot logo screen it gives me error.

exec /system/bin/sh not found
[Android] Alviss2108:
This updater-script is auto gen when i build rom? what should i do to install rom?
[Android] FSadino:
You should need to touch updater-script, something is wrong in your build. What are you trying to build? Show me your room service.xml
[Android] Alviss2108:
i build base aosp 5.1.1.

This is my room service

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="github"
fetch="https://github.com/" />

<!-- Device repos -->
<project path="device/samsung/e53g" name="MSM8916-Samsung/android_device_samsung_e53g" revision="cm-13.0" remote="github"/>
<project path="device/samsung/msm8916" name="MSM8916-Samsung/android_device_samsung_msm8916-common" revision="cm-12.1" remote="github"/>

<!-- Vendor -->
<project path="vendor/samsung" name="MSM8916-Samsung/proprietary_vendor_samsung" revision="cm-12.1" remote="github"/>

<!-- Common device repos -->
<project path="device/samsung/qcom-common" name="TheWhisp/android_device_samsung_qcom-common" revision="cm-12.1" remote="github"/>
<project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" revision="cm-12.1" remote="github"/>
</manifest>

but i have to modify in device source tree to complete build.
[Android] FSadino:
You are building aosp with cm13 and cm12 repos...
[Android] Alviss2108:
I know that but i fix some variable to compile with aosp source. I cant find any aosp repo for this device