Got errors when building omni rom from source for d802 - Omni Q&A

I was trying to build Omni rom for my lg g2(d802)
I add this in my local manifest
Code:
<manifest>
<project path="vendor/lge" name="TheMuppets/proprietary_vendor_lge" remote="github" revision="cm-11.0" />
</manifest>
Then type repo sync. Then brunch d802.
But I got stopped and show the messages below
Code:
Export includes file: system/core/libsync/Android.mk -- /home/fatminmin/omni/out/target/product/d802/obj/SHARED_LIBRARIES/libsync_intermediates/export_includes
make: *** No rule to make target `/home/fatminmin/omni/out/target/product/d802/obj/SHARED_LIBRARIES/libqdMetaData_intermediates/export_includes', needed by `/home/fatminmin/omni/out/target/product/d802/obj/SHARED_LIBRARIES/libgui_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
What should I do to fix this problem?

FatMinMin said:
I was trying to build Omni rom for my lg g2(d802)
I add this in my local manifest
Code:
<manifest>
<project path="vendor/lge" name="TheMuppets/proprietary_vendor_lge" remote="github" revision="cm-11.0" />
</manifest>
Then type repo sync. Then brunch d802.
But I got stopped and show the messages below
Code:
Export includes file: system/core/libsync/Android.mk -- /home/fatminmin/omni/out/target/product/d802/obj/SHARED_LIBRARIES/libsync_intermediates/export_includes
make: *** No rule to make target `/home/fatminmin/omni/out/target/product/d802/obj/SHARED_LIBRARIES/libqdMetaData_intermediates/export_includes', needed by `/home/fatminmin/omni/out/target/product/d802/obj/SHARED_LIBRARIES/libgui_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
What should I do to fix this problem?
Click to expand...
Click to collapse
I don't think the d802 is a supported device. The fact that you're using the wrong blobs repo is clear evidence of that.
If you're trying to bring up an unsupported device, you're going to need a bit more independence than this. (seriously, your issue can be resolved by grepping through the source code and looking at the Makefiles. Yes it's time consuming, but if you want to be a maintainer, patience and troubleshooting skills are critical, and you only learn by doing. This stuff is NOT easy for ANYONE, if you're expecting bringup of a new device to be anything other than
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
, you're in for a nasty surprise.)

Related

[HELP REQUIRED] Translating QQ Desktop Pro (QQ桌面 Pro) FCs

I'm translating QQ Desktop Pro from Chinese to English using the UziTech Android Translator. I have successfully translated the strings.xml, but when it's reinstalled onto the device it force closes with this error:
ActivityThread | E: android.view.InflateException: You must specify a valid layout reference. The layout ID @layout/app_vertical_list is not valid.
(From CatLog)
The app_vertical_list.xml mentioned looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.tencent.launcher.VerticalAppLayout android:id="@id/all_apps_v" android:paddingLeft="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="70.0dip" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.tencent.qqlauncher">
<com.tencent.launcher.AllAppsListView android:id="@id/applistview" android:background="#00000000" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="20.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:listSelector="#00000000" android:cacheColorHint="#00000000" android:divider="@drawable/ic_list_dividing_line" />
<com.tencent.launcher.LetterListView android:id="@id/MyLetterListView01" android:background="#00000000" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_alignParentTop="true" android:layout_alignParentRight="true" launcher:textColor="#ffffffff" launcher:textSize="12.0sp" launcher:startPadding="10.0dip" launcher:endPadding="10.0dip" launcher:rightPadding="3.0dip" />
<TextView android:textSize="30.0sp" android:gravity="center" android:id="@id/TextView_CenterChar" android:background="@drawable/bg_hitchar" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" style="\@style/app_list_hitchar" />
<com.tencent.launcher.DrawerTextView android:id="@id/drag_cache_view" android:visibility="invisible" android:layout_width="72.0dip" android:layout_height="80.0dip" style="\@style/DrawerIcon.Portrait" />
</com.tencent.launcher.VerticalAppLayout>
(I've also attached the original XML in a zipped xml)
And the r.java decompiled from the classes.dex looks like this (screenshot):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've also attached the zipped source files, as it's too big to post.
Any ideas on why it force closes? I have successfully translated the Tencent Desktop (MIUI / iPhone style launcher with no app drawer) but want to translate this one. I'll post the other one soon.
Bump
Sent from my GT540 using XDA App
Quinny899 said:
Bump
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
Is it QQ launcher pro?
then do i guess you or someone just is done with it.
https://market.android.com/details?id=com.tencent.qqlauncher&feature=search_result ...
They've just updated it in English. Well, I guess PROJECT CLOSED
Sent from my GT540 using XDA App

[GUIDE][KK]How To Fix Big "Back" Soft Key Button

Hey guys.well as you all know some of us have trouble when applying custom theme on 4.4 [KK] and for some reason the back softkey button size is bigger than usual.so i wondered around some place and finding for a similar problem and i found a way.so i decide to share it to you guys in hope that it may also help you..
OK.Lets Go.
1.Decompile your SystemUI.apk (Make a backup 1st!!!)
2.Navigate to res/layout/navigation_bar.xml and open it with notepad++ or other editing tool.
3.Delete
Code:
android:scaleType="center"
From
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
4.Save it and recompile ur SystemUI.apk then put it back where it belong
5.Reboot.Done
Screenshots :
Before
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After
I found the solution on @whitemamba original thread (http://forum.xda-developers.com/showthread.php?t=2452822) but i decide to remade it for [KK] as the data in the nav_bar.xml has been changed a little.
Credits :
 @whitemamba for the original thread
Thank me if it helps
Finally you get fix that..great :fingers-crossed:
Levered said:
Finally you get fix that..great :fingers-crossed:
Click to expand...
Click to collapse
Not a new news buddy. But ok. Good.
From My Xperia Z With XDA App
Rajeev said:
Not a new news buddy. But ok. Good.
From My Xperia Z With XDA App
Click to expand...
Click to collapse
yup..
Rajeev said:
Not a new news buddy. But ok. Good.
From My Xperia Z With XDA App
Click to expand...
Click to collapse
Thanks!

[Guide]Replace Holo theme with DeviceDefault (Sony Theme)

Hello everyone, as we all here like Sony style I decided to get rid of AOSP Holo theme and bring up Sony's style in place of it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
APK Tool. I recommend you to use VTS
Text editor like Notepad++
First decompile you framework-res.apk from /system/framework/
Go to /res/values/styles.xml
Find: <style name="Theme.Holo" parent="@style/Theme"> and replace it with: <style name="Theme.Holo2" parent="@style/Theme">
Find: <style name="Theme.Holo.Light" parent="@style/Theme.Light"> and replace it with: <style name="Theme.Holo2.Light" parent="@style/Theme.Light">
Find <style name="Theme.DeviceDefault" parent="@style/Theme.Holo"> and replace it with: <style name="Theme.DeviceDefault" parent="@style/Theme.Holo2">
Find <style name="Theme.DeviceDefault.Light" parent="@style/Theme.Holo.Light"> and replace it with: <style name="Theme.DeviceDefault.Light" parent="@style/Theme.Holo2.Light">
Add this to the end:
Code:
<style name="Theme.Holo" parent="@style/Theme.DeviceDefault" />
<style name="Theme.Holo.Light" parent="@style/Theme.DeviceDefault.Light" />
To be like this:
Recompile your framework-res.
Create flashable zip and flash it with recovery.
Reboot and enjoy.
Tell me if worked with you :good:
Click to expand...
Click to collapse
Thanks for the tutorial.
naheel azawy said:
Hello everyone, as we all here like Sony style I decided to get rid of AOSP Holo theme and bring up Sony's style in place of it.
Requirements:
APK Tool. I recommend you to use VTS
Text editor like Notepad++
Click to expand...
Click to collapse
nice

[java] How to add 3D Touch/App shortcut To Android App [Easy Guide][16/9/2017

In this tutorial we are going to learn how to add app shortcut to android app( like iphone’s 3d touch).
Into your app from scratch using android studio.
Requirements
-working Brain
-android studio /eclipse
-basic knowledge of android programming(not Required )
lets get started
Step -1
Add this in androidmanifest.xml
PHP:
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
After this
PHP:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
It should look like this after adding the code
PHP:
<activity
android:name=".MainActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
Now Create New XML file inside res/xml/ (if there is no folder names xml then create one )
Name the file as shortcuts.xml
and paste this inside
PHP:
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="myshortcut"
android:enabled="true"
android:icon="@drawable/shortcut"
android:shortcutShortLabel="@string/my_shortcut"
android:shortcutLongLabel="@string/ my_shortcut "
android:shortcutDisabledMessage="@string/ my_shortcut _disabled">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="YourPackageName" for example com.pankaj.rai
android:targetClass="YourActivityName"/> for example com.pankaj.rai.mainactivity
<categories android:name="android.shortcut.conversation"/>
</shortcut>
</shortcuts>
Add this value to res/value/strings.xml
PHP:
<string name="my_shortcut">Your shortcut name</string>
<string name="my_shortcut_disabled">shortcut is disabled</string>
Add icon in res/drawable
Name it shortcut
And it should look like this
PHP:
Shortcut.png
There you go guys now you have 3 shortcut in you app.
Result
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ps: 3D touch/app shortcut will only work in android 7.X.X or above
if you have any doubt about this tutorial please let me know
source:developer.android.com
Reserved
Reserved for future post

Recyclerview constraints don't work - help??

Android Studio 3.2
I've got a recycler view. The fields inside each item are ignoring constraints that were set.
1. I believe the internal cell of the recycler is not the width of the recycler.
2. Right and End constraints are apparently being ignored.
It looks to me like the Right/End constraints are ignored because the parent width of the internal ConstraintLayout is not the full width of the recycler.
I have the width set at 380 but had it at "match_parent".
I get the same result either way.
How can I get the spinner and the Date all the way over to the right side?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
adapter code
Code:
// Create new views (invoked by the layout manager)
@Override
public TestAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.stlse, null);
return new ViewHolder(view);
}
recyclerview xml
Code:
<android.support.v7.widget.RecyclerView
android:id="@+id/StatusListRecycler"
android:layout_width="380dp"
android:layout_height="410dp"
android:layout_marginTop="50dp"
android:layout_marginBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/txTitle" />
internal cell xml as set in myAdapter.ViewHolder onCreateViewHolder
Code:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/stlse"
android:tag="stlse_layout"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/stlse_name"
android:text="Manager"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Spinner
android:id="@+id/stlse_status"
android:prompt="@string/dropdown_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginRight="8dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent" />
<TextView
android:id="@+id/stlse_date"
android:text="Date"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginRight="8dp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/stlse_name" />
</android.support.constraint.ConstraintLayout>

Resources