[Request] Ask help for recompiling LegacyIncallUI.apk (Lollipop) - Galaxy Note 3 Themes and Apps

Hello all dear,
I have problem recompling LegacyIncallUI.apk (ver.: Note3 Lollipop NL8) with apktool 2.0.0 (RC3/RC4)
Here is the error log:
----------------------------------------------------------------------------------------------------------------
E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\res\values\arrays.xml:63: error: Error: No resource found that matches the given name (at '^index_0' with value '@android:string/APKTOOL_DUMMY_06c2').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Philippe\AppData\Local\Temp\brut_util_Jar_5740710932211160419.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-N9005XXUGBNL8, -F, C:\Users\Philippe\AppData\Local\Temp\APKTOOL7206926664454227497.tmp, -0, arsc, -I, E:\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\res, -M, E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:442)
at brut.androlib.Androlib.buildResources(Androlib.java:379)
at brut.androlib.Androlib.build(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Philippe\AppData\Local\Temp\brut_util_Jar_5740710932211160419.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-N9005XXUGBNL8, -F, C:\Users\Philippe\AppData\Local\Temp\APKTOOL7206926664454227497.tmp, -0, arsc, -I, E:\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\res, -M, E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:504)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:428)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Philippe\AppData\Local\Temp\brut_util_Jar_5740710932211160419.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-N9005XXUGBNL8, -F, C:\Users\Philippe\AppData\Local\Temp\APKTOOL7206926664454227497.tmp, -0, arsc, -I, E:\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\res, -M, E:\AdvancedApkTool\3-Out\LegacyInCallUI.nl8.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:90)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:498)
... 6 more
------------------------------------------------------
These errors happend even when I recompile the original apk without any mod.
Please tell me what apktool should I use, or how can I recompile LegacyIncallUI.apk (Lollipop Note3).
Thanks in advance.

dongfangri said:
Hello all dear,
I have problem recompling LegacyIncallUI.apk (ver.: Note3 Lollipop NL8) with apktool 2.0.0 (RC3/RC4)
These errors happend even when I recompile the original apk without any mod.
Please tell me what apktool should I use, or how can I recompile LegacyIncallUI.apk (Lollipop Note3).
Thanks in advance.
Click to expand...
Click to collapse
I think you need (Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79.zip - ZIP archive, unpacked size 11,518,919 bytes)

Thanks.
Finally I got it by changing framework-res.apk.

dongfangri said:
Thanks.
Finally I got it by changing framework-res.apk.
Click to expand...
Click to collapse
Did you get settings for auto call recording too?
Thanks

zoya4u said:
Did you get settings for auto call recording too?
Thanks
Click to expand...
Click to collapse
No. I don't use this feature.

dongfangri said:
No. I don't use this feature.
Click to expand...
Click to collapse
can u make it multi DPI?

Related

[Q] Error 41 building AOSP ROM

Hi guys! I am building a AOSP ICS Rom, and I am using to help me this tutorial! In "12)", when I make the command "make -j1", it gives me this error:
Code:
[email protected]:~/WORKING_DIRECTORY$ make -j1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: ** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Erro 41
How can I solve it?
Thanks,
pedrorubster
PS: My device is a Sony Ericsson Live with Walkman/WT19i/coconut
Bump!

[GUIDE][HOW TO]Android List View

Informations
This tutorial will be demonstrating how to build a simple android List View.
It is about creating list view and launching new activity on selecting single list item.
Below are two screenshots of the final output:
{
"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"
}
Guide
Let’s get start by creating a project in Eclipse IDE.
Create a new project by going to File ⇒ New Android Project. Fill all the details and name your activity as AndroidListViewActivity.
Once the project is created open your main activity java file (in this case AndroidListViewActivity.java) and extend the class from ListActivity.
Code:
[FONT="Courier New"][B][COLOR=#006699]public class[/COLOR][/B] AndroidListViewActivity [B][COLOR=#006699]extends[/COLOR][/B] ListActivity {[/FONT]
Now we need a string resources file to store all list item labels. So create an XML file under values folder and name it as list_data.xml and paste the following code.
( Right Click on res/values ⇒ New ⇒ Android XML File)
Code:
[FONT="Courier New"][COLOR=#819f07]list_data.xml[/COLOR]
<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="Gray"]version[/COLOR]=[COLOR="Blue"]"1.0"[/COLOR] [COLOR="Gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
<[B][COLOR=#006699]resources[/COLOR][/B]>
<[B][COLOR=#006699]string-array name[/COLOR][/B]=[COLOR="Blue"]"adobe_products"[/COLOR]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe After Effects</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Bridge</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Dreamweaver</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Edge</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Fireworks</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Flash</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Photoshop</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Premiere</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Reader</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Illustrator</[B][COLOR=#006699]item[/COLOR][/B]>
</[B][COLOR=#006699]string-array[/COLOR][/B]>
</[B][COLOR=#006699]resources[/COLOR][/B]>[/FONT]
In ListView each list item will be an xml layout, so we can customize each list item. Create an XML file under res/layout folder and name it as list_item.xml and type the following code. This xml layout will be single list item row.
( Right Click on res/layout ⇒ New ⇒ Android XML File)
Code:
[FONT="Courier New"]<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="Gray"]version[/COLOR]=[COLOR="Blue"]"1.0"[/COLOR] [COLOR="Gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
[COLOR=#819f07]<!-- Single List Item Design -->[/COLOR]
<[B][COLOR=#006699]TextView[/COLOR][/B] [COLOR="Gray"]xmlns:android[/COLOR]=[COLOR="Blue"]"http://schemas.android.com/apk/res/android"[/COLOR]
[COLOR="Gray"]android:id[/COLOR]=[COLOR="Blue"]"@+id/label"[/COLOR]
[COLOR="Gray"]android:layout_width[/COLOR]=[COLOR="Blue"]"fill_parent"[/COLOR]
[COLOR="Gray"]android:layout_height[/COLOR]=[COLOR="Blue"]"fill_parent"[/COLOR]
[COLOR="Gray"]android:padding[/COLOR]=[COLOR="Blue"]"10dip"[/COLOR]
[COLOR="Gray"]android:textSize[/COLOR]=[COLOR="Blue"]"16dip"[/COLOR]
[COLOR="Gray"]android:textStyle[/COLOR]=[COLOR="Blue"]"bold"[/COLOR] >
</[B][COLOR=#006699]TextView[/COLOR][/B]>[/FONT]
Now open your main activity java file (AndroidListViewActivity.java) and type the following code. In the following code I'm importing all XML resources data and storing them in an Array. On the next step I'm binding array to ListAdapter.
Code:
[FONT="Courier New"][COLOR=#819f07]AndroidListViewActivity.java[/color]
[B][COLOR=#006699]package[/COLOR][/B] com.androidhive.androidlistview;
[B][COLOR=#006699]import[/COLOR][/B] android.app.ListActivity;
[B][COLOR=#006699]import[/COLOR][/B] android.content.Intent;
[B][COLOR=#006699]import[/COLOR][/B] android.os.Bundle;
[B][COLOR=#006699]import[/COLOR][/B] android.view.View;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView.OnItemClickListener;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ArrayAdapter;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ListView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.TextView;
[B][COLOR=#006699]public class[/COLOR][/B] AndroidListViewActivity [B][COLOR=#006699]extends[/COLOR][/B] ListActivity {
[COLOR="Gray"]@Override[/COLOR]
[B][COLOR=#006699]public void[/COLOR][/B] onCreate(Bundle savedInstanceState) {
[B][COLOR=#006699]super[/COLOR][/B].onCreate(savedInstanceState);
[COLOR=#819f07]// storing string resources into Array[/COLOR]
String[] adobe_products = getResources().getStringArray(R.array.adobe_products);
[COLOR=#819f07]// Binding resources Array to ListAdapter[/COLOR]
[B][COLOR=#006699]this[/COLOR][/B].setListAdapter([B][COLOR=#006699]new[/COLOR][/B] ArrayAdapter<String>([B][COLOR=#006699]this[/COLOR][/B], R.layout.list_item, R.id.label, adobe_products));
}
}[/FONT]
Now run your project you can see listview with list of array items. But on clicking single list item you can see no action. So we need to start new activity on selecting single list item.
Launching new Activity on selecting single list item.
Now create new activity class under src folder. Right Click on src/package folder ⇒ New ⇒ Class and name it as SingleListItem. (SingleListItem.java)
Open your AndroidListViewActivity.java and modify the code to following. In the following code i am getting the selected list item string(product name) and sending it to new Activity.
Code:
[FONT="Courier New"][COLOR=#819f07]AndroidListViewActivity.java[/color]
[B][COLOR=#006699]package[/COLOR][/B] com.androidhive.androidlistview;
[B][COLOR=#006699]import[/COLOR][/B] android.app.ListActivity;
[B][COLOR=#006699]import[/COLOR][/B] android.content.Intent;
[B][COLOR=#006699]import[/COLOR][/B] android.os.Bundle;
[B][COLOR=#006699]import[/COLOR][/B] android.view.View;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView.OnItemClickListener;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ArrayAdapter;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ListView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.TextView;
[B][COLOR=#006699]public class[/COLOR][/B] AndroidListViewActivity [B][COLOR=#006699]extends[/COLOR][/B] ListActivity {
[COLOR="Gray"]@Override[/COLOR]
[B][COLOR=#006699]public void[/COLOR][/B] onCreate(Bundle savedInstanceState) {
[B][COLOR=#006699]super[/COLOR][/B].onCreate(savedInstanceState);
[COLOR=#819f07]// storing string resources into Array[/COLOR]
String[] adobe_products = getResources().getStringArray(R.array.adobe_products);
[COLOR=#819f07]// Binding resources Array to ListAdapter[/COLOR]
[B][COLOR=#006699]this[/COLOR][/B].setListAdapter([B][COLOR=#006699]new[/COLOR][/B] ArrayAdapter<String>([B][COLOR=#006699]this[/COLOR][/B], R.layout.list_item, R.id.label, adobe_products));
ListView lv = getListView();
[COLOR=#819f07]// listening to single list item on click[/COLOR]
lv.setOnItemClickListener([B][COLOR=#006699]new[/COLOR][/B] OnItemClickListener() {
[B][COLOR=#006699]public void[/COLOR][/B] onItemClick(AdapterView<?> parent, View view,
[B][COLOR=#006699]int[/COLOR][/B] position, [B][COLOR=#006699]long[/COLOR][/B] id) {
[COLOR=#819f07]// selected item [/COLOR]
String product = ((TextView) view).getText().toString();
[COLOR=#819f07]// Launching new Activity on selecting single List Item[/COLOR]
Intent i = [B][COLOR=#006699]new[/COLOR][/B] Intent(getApplicationContext(), SingleListItem.[B][COLOR=#006699]class[/COLOR][/B]);
[COLOR=#819f07]// sending data to new activity[/COLOR]
i.putExtra([COLOR="Blue"]"product"[/COLOR], product);
startActivity(i);
}
});
}
}[/FONT]
Now in new activity we need to display the received from listview activity.
Create a new xml file under res/layout and name it as single_list_item_view.xml and type the following code. This XML file will be layout for SingleListItem.java
Code:
[FONT="Courier New"][COLOR=#819f07]single_list_item_view.xml[/COLOR]
<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="gray"]version[/COLOR]=[COLOR="Blue"]"1.0"[/COLOR] [COLOR="gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
<[B][COLOR=#006699]LinearLayout[/COLOR][/B]
[COLOR="gray"]xmlns:android[/COLOR]=[COLOR="Blue"]"http://schemas.android.com/apk/res/android"[/COLOR]
[COLOR="gray"]android:orientation[/COLOR]=[COLOR="Blue"]"vertical"[/COLOR]
[COLOR="gray"]android:layout_width[/COLOR]=[COLOR="Blue"]"match_parent"[/COLOR]
[COLOR="gray"]android:layout_height[/COLOR]=[COLOR="Blue"]"match_parent"[/COLOR]>
<[B][COLOR=#006699]TextView[/COLOR][/B] [COLOR="Gray"]android:id[/COLOR]=[COLOR="Blue"]"@+id/product_label"[/COLOR]
[COLOR="gray"]android:layout_width[/COLOR]=[COLOR="Blue"]"fill_parent"[/COLOR]
[COLOR="gray"]android:layout_height[/COLOR]=[COLOR="Blue"]"wrap_content"[/COLOR]
[COLOR="gray"]android:textSize[/COLOR]=[COLOR="Blue"]"25dip"[/COLOR]
[COLOR="gray"]android:textStyle[/COLOR]=[COLOR="Blue"]"bold"[/COLOR]
[COLOR="gray"]android:padding[/COLOR]=[COLOR="Blue"]"10dip"[/COLOR]
[COLOR="gray"]android:textColor[/COLOR]=[COLOR="Blue"]"#ffffff"[/COLOR]/>
</[B][COLOR=#006699]LinearLayout[/COLOR][/B]>[/FONT]
Now open your second activity file i.e SingleListItem.java and paste the following code.
Code:
[FONT="Courier New"][COLOR=#819f07]SingleListItem.java[/COLOR]
[B][COLOR=#006699]package[/COLOR][/B] com.androidhive.androidlistview;
[B][COLOR=#006699]import[/COLOR][/B] android.app.Activity;
[B][COLOR=#006699]import[/COLOR][/B] android.content.Intent;
[B][COLOR=#006699]import[/COLOR][/B] android.os.Bundle;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.TextView;
[B][COLOR=#006699]public class[/COLOR][/B] SingleListItem extends Activity{
[COLOR="Gray"]@Override[/COLOR]
[B][COLOR=#006699]public void[/COLOR][/B] onCreate(Bundle savedInstanceState) {
[B][COLOR=#006699]super[/COLOR][/B].onCreate(savedInstanceState);
[B][COLOR=#006699]this[/COLOR][/B].setContentView(R.layout.single_list_item_view);
TextView txtProduct = (TextView) findViewById(R.id.product_label);
Intent i = getIntent();
[COLOR=#819f07]// getting attached intent data[/COLOR]
String product = i.getStringExtra([COLOR="Blue"]"product"[/COLOR]);
[COLOR=#819f07]// displaying selected product name[/COLOR]
txtProduct.setText(product);
}
}[/FONT]
The final step is to add an entry of new activity name in AndroidManifest.xml file. Open you AndroidManifest.xml file and modify the code as below:
Code:
[FONT="Courier New"][COLOR=#819f07]AndroidManifest.xml[/COLOR]
<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="Gray"]version[/COLOR]=[COLOR="blue"]"1.0"[/COLOR] [COLOR="gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
<[B][COLOR=#006699]manifest[/COLOR][/B] [COLOR="gray"]xmlns:android[/COLOR]=[COLOR="blue"]"http://schemas.android.com/apk/res/android"[/COLOR]
[COLOR="gray"]package[/COLOR]=[COLOR="blue"]"com.androidhive.androidlistview"[/COLOR]
[COLOR="gray"]android:versionCode[/COLOR]=[COLOR="blue"]"1"[/COLOR]
[COLOR="gray"]android:versionName[/COLOR]=[COLOR="blue"]"1.0"[/COLOR]>
<[B][COLOR=#006699]uses-sdk[/COLOR][/B] [COLOR="gray"]android:minSdkVersion[/COLOR]=[COLOR="blue"]"8"[/COLOR] />
<[B][COLOR=#006699]application[/COLOR][/B] [COLOR="gray"]android:icon[/COLOR]=[COLOR="blue"]"@drawable/icon"[/COLOR] [COLOR="gray"]android:label[/COLOR]=[COLOR="blue"]"@string/app_name"[/COLOR]>
<[B][COLOR=#006699]activity[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]".AndroidListViewActivity"[/COLOR]
[COLOR="gray"]android:label[/COLOR]=[COLOR="blue"]"Android List View"[/COLOR]>
<[B][COLOR=#006699]intent-filter[/COLOR][/B]>
<[B][COLOR=#006699]action[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]"android.intent.action.MAIN"[/COLOR] />
<[B][COLOR=#006699]category[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]"android.intent.category.LAUNCHER"[/COLOR] />
</[B][COLOR=#006699]intent-filter[/COLOR][/B]>
</[B][COLOR=#006699]activity[/COLOR][/B]>
<[B][COLOR=#006699]activity[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]".SingleListItem"[/COLOR]
[COLOR="gray"]android:label[/COLOR]=[COLOR="blue"]"Single Item Selected"[/COLOR]>
</[B][COLOR=#006699]activity[/COLOR][/B]>
</[B][COLOR=#006699]application[/COLOR][/B]>
</[B][COLOR=#006699]manifest[/COLOR][/B]>[/FONT]
Finally run your project by Right Clicking on your Project Folder ⇒ Run As ⇒ 1 Android Application.
Credits
Me - For the topic design.
And I must thank 4 other guys that helped me understand the Android and they're still teaching me:
ihavenick - The first one who helped me understand the Android!
Volk204 - He's the guy that helps me with codes and makes me understand what they do.
Tigrouzen - Lmao! Your kernels are great dude!
Rebellos - He motivated me and I thank him very much!
thnks
it works fine thanks
rommo_911 said:
it works fine thanks
Click to expand...
Click to collapse
Thank you, rommo_911!
I appreciate!
Roach_ said:
Informations
This tutorial will be demonstrating how to build a simple android List View.
It is about creating list view and launching new activity on selecting single list item.
Below are two screenshots of the final output:
Guide
Let’s get start by creating a project in Eclipse IDE.
Create a new project by going to File ⇒ New Android Project. Fill all the details and name your activity as AndroidListViewActivity.
Once the project is created open your main activity java file (in this case AndroidListViewActivity.java) and extend the class from ListActivity.
Code:
[FONT="Courier New"][B][COLOR=#006699]public class[/COLOR][/B] AndroidListViewActivity [B][COLOR=#006699]extends[/COLOR][/B] ListActivity {[/FONT]
Now we need a string resources file to store all list item labels. So create an XML file under values folder and name it as list_data.xml and paste the following code.
( Right Click on res/values ⇒ New ⇒ Android XML File)
Code:
[FONT="Courier New"][COLOR=#819f07]list_data.xml[/COLOR]
<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="Gray"]version[/COLOR]=[COLOR="Blue"]"1.0"[/COLOR] [COLOR="Gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
<[B][COLOR=#006699]resources[/COLOR][/B]>
<[B][COLOR=#006699]string-array name[/COLOR][/B]=[COLOR="Blue"]"adobe_products"[/COLOR]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe After Effects</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Bridge</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Dreamweaver</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Edge</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Fireworks</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Flash</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Photoshop</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Premiere</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Reader</[B][COLOR=#006699]item[/COLOR][/B]>
<[B][COLOR=#006699]item[/COLOR][/B]>Adobe Illustrator</[B][COLOR=#006699]item[/COLOR][/B]>
</[B][COLOR=#006699]string-array[/COLOR][/B]>
</[B][COLOR=#006699]resources[/COLOR][/B]>[/FONT]
In ListView each list item will be an xml layout, so we can customize each list item. Create an XML file under res/layout folder and name it as list_item.xml and type the following code. This xml layout will be single list item row.
( Right Click on res/layout ⇒ New ⇒ Android XML File)
Code:
[FONT="Courier New"]<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="Gray"]version[/COLOR]=[COLOR="Blue"]"1.0"[/COLOR] [COLOR="Gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
[COLOR=#819f07]<!-- Single List Item Design -->[/COLOR]
<[B][COLOR=#006699]TextView[/COLOR][/B] [COLOR="Gray"]xmlns:android[/COLOR]=[COLOR="Blue"]"http://schemas.android.com/apk/res/android"[/COLOR]
[COLOR="Gray"]android:id[/COLOR]=[COLOR="Blue"]"@+id/label"[/COLOR]
[COLOR="Gray"]android:layout_width[/COLOR]=[COLOR="Blue"]"fill_parent"[/COLOR]
[COLOR="Gray"]android:layout_height[/COLOR]=[COLOR="Blue"]"fill_parent"[/COLOR]
[COLOR="Gray"]android:padding[/COLOR]=[COLOR="Blue"]"10dip"[/COLOR]
[COLOR="Gray"]android:textSize[/COLOR]=[COLOR="Blue"]"16dip"[/COLOR]
[COLOR="Gray"]android:textStyle[/COLOR]=[COLOR="Blue"]"bold"[/COLOR] >
</[B][COLOR=#006699]TextView[/COLOR][/B]>[/FONT]
Now open your main activity java file (AndroidListViewActivity.java) and type the following code. In the following code I'm importing all XML resources data and storing them in an Array. On the next step I'm binding array to ListAdapter.
Code:
[FONT="Courier New"][COLOR=#819f07]AndroidListViewActivity.java[/color]
[B][COLOR=#006699]package[/COLOR][/B] com.androidhive.androidlistview;
[B][COLOR=#006699]import[/COLOR][/B] android.app.ListActivity;
[B][COLOR=#006699]import[/COLOR][/B] android.content.Intent;
[B][COLOR=#006699]import[/COLOR][/B] android.os.Bundle;
[B][COLOR=#006699]import[/COLOR][/B] android.view.View;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView.OnItemClickListener;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ArrayAdapter;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ListView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.TextView;
[B][COLOR=#006699]public class[/COLOR][/B] AndroidListViewActivity [B][COLOR=#006699]extends[/COLOR][/B] ListActivity {
[COLOR="Gray"]@Override[/COLOR]
[B][COLOR=#006699]public void[/COLOR][/B] onCreate(Bundle savedInstanceState) {
[B][COLOR=#006699]super[/COLOR][/B].onCreate(savedInstanceState);
[COLOR=#819f07]// storing string resources into Array[/COLOR]
String[] adobe_products = getResources().getStringArray(R.array.adobe_products);
[COLOR=#819f07]// Binding resources Array to ListAdapter[/COLOR]
[B][COLOR=#006699]this[/COLOR][/B].setListAdapter([B][COLOR=#006699]new[/COLOR][/B] ArrayAdapter<String>([B][COLOR=#006699]this[/COLOR][/B], R.layout.list_item, R.id.label, adobe_products));
}
}[/FONT]
Now run your project you can see listview with list of array items. But on clicking single list item you can see no action. So we need to start new activity on selecting single list item.
Launching new Activity on selecting single list item.
Now create new activity class under src folder. Right Click on src/package folder ⇒ New ⇒ Class and name it as SingleListItem. (SingleListItem.java)
Open your AndroidListViewActivity.java and modify the code to following. In the following code i am getting the selected list item string(product name) and sending it to new Activity.
Code:
[FONT="Courier New"][COLOR=#819f07]AndroidListViewActivity.java[/color]
[B][COLOR=#006699]package[/COLOR][/B] com.androidhive.androidlistview;
[B][COLOR=#006699]import[/COLOR][/B] android.app.ListActivity;
[B][COLOR=#006699]import[/COLOR][/B] android.content.Intent;
[B][COLOR=#006699]import[/COLOR][/B] android.os.Bundle;
[B][COLOR=#006699]import[/COLOR][/B] android.view.View;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.AdapterView.OnItemClickListener;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ArrayAdapter;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.ListView;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.TextView;
[B][COLOR=#006699]public class[/COLOR][/B] AndroidListViewActivity [B][COLOR=#006699]extends[/COLOR][/B] ListActivity {
[COLOR="Gray"]@Override[/COLOR]
[B][COLOR=#006699]public void[/COLOR][/B] onCreate(Bundle savedInstanceState) {
[B][COLOR=#006699]super[/COLOR][/B].onCreate(savedInstanceState);
[COLOR=#819f07]// storing string resources into Array[/COLOR]
String[] adobe_products = getResources().getStringArray(R.array.adobe_products);
[COLOR=#819f07]// Binding resources Array to ListAdapter[/COLOR]
[B][COLOR=#006699]this[/COLOR][/B].setListAdapter([B][COLOR=#006699]new[/COLOR][/B] ArrayAdapter<String>([B][COLOR=#006699]this[/COLOR][/B], R.layout.list_item, R.id.label, adobe_products));
ListView lv = getListView();
[COLOR=#819f07]// listening to single list item on click[/COLOR]
lv.setOnItemClickListener([B][COLOR=#006699]new[/COLOR][/B] OnItemClickListener() {
[B][COLOR=#006699]public void[/COLOR][/B] onItemClick(AdapterView<?> parent, View view,
[B][COLOR=#006699]int[/COLOR][/B] position, [B][COLOR=#006699]long[/COLOR][/B] id) {
[COLOR=#819f07]// selected item [/COLOR]
String product = ((TextView) view).getText().toString();
[COLOR=#819f07]// Launching new Activity on selecting single List Item[/COLOR]
Intent i = [B][COLOR=#006699]new[/COLOR][/B] Intent(getApplicationContext(), SingleListItem.[B][COLOR=#006699]class[/COLOR][/B]);
[COLOR=#819f07]// sending data to new activity[/COLOR]
i.putExtra([COLOR="Blue"]"product"[/COLOR], product);
startActivity(i);
}
});
}
}[/FONT]
Now in new activity we need to display the received from listview activity.
Create a new xml file under res/layout and name it as single_list_item_view.xml and type the following code. This XML file will be layout for SingleListItem.java
Code:
[FONT="Courier New"][COLOR=#819f07]single_list_item_view.xml[/COLOR]
<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="gray"]version[/COLOR]=[COLOR="Blue"]"1.0"[/COLOR] [COLOR="gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
<[B][COLOR=#006699]LinearLayout[/COLOR][/B]
[COLOR="gray"]xmlns:android[/COLOR]=[COLOR="Blue"]"http://schemas.android.com/apk/res/android"[/COLOR]
[COLOR="gray"]android:orientation[/COLOR]=[COLOR="Blue"]"vertical"[/COLOR]
[COLOR="gray"]android:layout_width[/COLOR]=[COLOR="Blue"]"match_parent"[/COLOR]
[COLOR="gray"]android:layout_height[/COLOR]=[COLOR="Blue"]"match_parent"[/COLOR]>
<[B][COLOR=#006699]TextView[/COLOR][/B] [COLOR="Gray"]android:id[/COLOR]=[COLOR="Blue"]"@+id/product_label"[/COLOR]
[COLOR="gray"]android:layout_width[/COLOR]=[COLOR="Blue"]"fill_parent"[/COLOR]
[COLOR="gray"]android:layout_height[/COLOR]=[COLOR="Blue"]"wrap_content"[/COLOR]
[COLOR="gray"]android:textSize[/COLOR]=[COLOR="Blue"]"25dip"[/COLOR]
[COLOR="gray"]android:textStyle[/COLOR]=[COLOR="Blue"]"bold"[/COLOR]
[COLOR="gray"]android:padding[/COLOR]=[COLOR="Blue"]"10dip"[/COLOR]
[COLOR="gray"]android:textColor[/COLOR]=[COLOR="Blue"]"#ffffff"[/COLOR]/>
</[B][COLOR=#006699]LinearLayout[/COLOR][/B]>[/FONT]
Now open your second activity file i.e SingleListItem.java and paste the following code.
Code:
[FONT="Courier New"][COLOR=#819f07]SingleListItem.java[/COLOR]
[B][COLOR=#006699]package[/COLOR][/B] com.androidhive.androidlistview;
[B][COLOR=#006699]import[/COLOR][/B] android.app.Activity;
[B][COLOR=#006699]import[/COLOR][/B] android.content.Intent;
[B][COLOR=#006699]import[/COLOR][/B] android.os.Bundle;
[B][COLOR=#006699]import[/COLOR][/B] android.widget.TextView;
[B][COLOR=#006699]public class[/COLOR][/B] SingleListItem extends Activity{
[COLOR="Gray"]@Override[/COLOR]
[B][COLOR=#006699]public void[/COLOR][/B] onCreate(Bundle savedInstanceState) {
[B][COLOR=#006699]super[/COLOR][/B].onCreate(savedInstanceState);
[B][COLOR=#006699]this[/COLOR][/B].setContentView(R.layout.single_list_item_view);
TextView txtProduct = (TextView) findViewById(R.id.product_label);
Intent i = getIntent();
[COLOR=#819f07]// getting attached intent data[/COLOR]
String product = i.getStringExtra([COLOR="Blue"]"product"[/COLOR]);
[COLOR=#819f07]// displaying selected product name[/COLOR]
txtProduct.setText(product);
}
}[/FONT]
The final step is to add an entry of new activity name in AndroidManifest.xml file. Open you AndroidManifest.xml file and modify the code as below:
Code:
[FONT="Courier New"][COLOR=#819f07]AndroidManifest.xml[/COLOR]
<?[B][COLOR=#006699]xml[/COLOR][/B] [COLOR="Gray"]version[/COLOR]=[COLOR="blue"]"1.0"[/COLOR] [COLOR="gray"]encoding[/COLOR]=[COLOR="Blue"]"utf-8"[/COLOR]?>
<[B][COLOR=#006699]manifest[/COLOR][/B] [COLOR="gray"]xmlns:android[/COLOR]=[COLOR="blue"]"http://schemas.android.com/apk/res/android"[/COLOR]
[COLOR="gray"]package[/COLOR]=[COLOR="blue"]"com.androidhive.androidlistview"[/COLOR]
[COLOR="gray"]android:versionCode[/COLOR]=[COLOR="blue"]"1"[/COLOR]
[COLOR="gray"]android:versionName[/COLOR]=[COLOR="blue"]"1.0"[/COLOR]>
<[B][COLOR=#006699]uses-sdk[/COLOR][/B] [COLOR="gray"]android:minSdkVersion[/COLOR]=[COLOR="blue"]"8"[/COLOR] />
<[B][COLOR=#006699]application[/COLOR][/B] [COLOR="gray"]android:icon[/COLOR]=[COLOR="blue"]"@drawable/icon"[/COLOR] [COLOR="gray"]android:label[/COLOR]=[COLOR="blue"]"@string/app_name"[/COLOR]>
<[B][COLOR=#006699]activity[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]".AndroidListViewActivity"[/COLOR]
[COLOR="gray"]android:label[/COLOR]=[COLOR="blue"]"Android List View"[/COLOR]>
<[B][COLOR=#006699]intent-filter[/COLOR][/B]>
<[B][COLOR=#006699]action[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]"android.intent.action.MAIN"[/COLOR] />
<[B][COLOR=#006699]category[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]"android.intent.category.LAUNCHER"[/COLOR] />
</[B][COLOR=#006699]intent-filter[/COLOR][/B]>
</[B][COLOR=#006699]activity[/COLOR][/B]>
<[B][COLOR=#006699]activity[/COLOR][/B] [COLOR="gray"]android:name[/COLOR]=[COLOR="blue"]".SingleListItem"[/COLOR]
[COLOR="gray"]android:label[/COLOR]=[COLOR="blue"]"Single Item Selected"[/COLOR]>
</[B][COLOR=#006699]activity[/COLOR][/B]>
</[B][COLOR=#006699]application[/COLOR][/B]>
</[B][COLOR=#006699]manifest[/COLOR][/B]>[/FONT]
Finally run your project by Right Clicking on your Project Folder ⇒ Run As ⇒ 1 Android Application.
Credits
Me - For the topic design.
And I must thank 4 other guys that helped me understand the Android and they're still teaching me:
ihavenick - The first one who helped me understand the Android!
Volk204 - He's the guy that helps me with codes and makes me understand what they do.
Tigrouzen - Lmao! Your kernels are great dude!
Rebellos - He motivated me and I thank him very much!
Click to expand...
Click to collapse
hey man could you help-me how can I add this feature (listview) in my own source build ???
I know a lot off nexus 4 roms have this implemented but I like to add this in my source, and I'm a little noob in editing the android source code =/
thank's a lot BTW
Can you show a tutorial on how to use Listview in Navigation drawer (material design) ?

Apktool recompiling error

Hi all guys. Hope someone can help me, cause I really don't know what to do. I read around but I didn't find anything that could solve my problem.
I want to modify SecSettings.apk from N8000 to edit a smali file. I follow these steps :
-Install framework-res.apk
-Install twframework-res.apk
-Decompile SecSettings.apk
-Modify .smali file
-Recompile. Here I get errors.
This is the log :
D:\DEVELOPING\one_click_signer\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\1.apk
D:\DEVELOPING\one_click_signer\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\2.apk
D:\DEVELOPING\one_click_signer\apktool>apktool d SecSettings.apk
I: Using Apktool 2.0.0-Beta7 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\2.apk
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\2.apk
I: Decoding values */* XMLs...
I: Loading resource table...
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\1.apk
W: Skipping "android" package group
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
D:\DEVELOPING\one_click_signer\apktool>apktool b -f -d SecSettings
I: Using Apktool 2.0.0-Beta7 on SecSettings
I: Smaling...
I: Building resources...
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: erro
r: Error: No resource found that matches the given name (at 'resource' with valu
e '@drawable/assistant_menu_icon_messages_search').
aapt: warning: string 'accessibility_screen_magnification_summary' has no defaul
t translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found:
az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'answering_end_call_title_prev' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az bg ca c
s da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it
ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz
vi zh_CN zh_TW
aapt: warning: string 'category_printers' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
aapt: warning: string 'downloadable_dialog_popup_text_wifi' has no default trans
lation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az b
g ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in
is it ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk
ur uz vi zh_CN zh_TW
aapt: warning: string 'experimental_webview' has no default translation in D:\DE
VELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy_AM ka_G
E
aapt: warning: string 'experimental_webview_summary' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'location_category_app_settings' has no default translatio
n in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
aapt: warning: string 'nfc_payment_ask' has no default translation in D:\DEVELOP
ING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'print_add_printer' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el e
n_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko
lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh
_TW
aapt: warning: string 'screen_rate' has no default translation in D:\DEVELOPING\
one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el en_PH e
n_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko lt lv
mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh_TW
aapt: warning: string 'screen_size_downscale_1' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_2' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_3' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'wifi_display_disconnect_text' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'wifi_display_disconnect_title' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wifi_display_paired_devices' has no default translation i
n D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy_
AM ka_GE
aapt: warning: string 'wifi_display_search_for_devices' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE
hy_AM ka_GE
aapt: warning: string 'wifi_display_searching_for_devices' has no default transl
ation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et
_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_dis abled' h
as no default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \
res; found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_off ' has no
default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res;
found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_status_available' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wimax_settings_summary' has no default translation in D:\
DEVELOPING\one_click_signer\apktool\SecSettings\re s; found: az_AZ
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea
\AppData\Local\Temp\brut_util_Jar_1856909593108704 239.tmp, p, --debug-mode, --fo
rced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-c
ode, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\T
emp\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framew
ork\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_cl
ick_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\S
ecSettings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:434)
at brut.androlib.Androlib.buildResources(Androlib.jav a:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_1 85690959310870
4239.tmp, p, --debug-mode, --forced-package-id, 1, --min-sdk-version, 19, --targ
et-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-N8000XXUDND5, -F,
C:\Users\Andrea\AppData\Local\Temp\APKTOOL79711057 94680974515.tmp, -0, arsc, -I,
C:\Users\Andrea\apktool\framework\1.apk, -I, C:\Users\Andrea\apktool\framework\
2.apk, -S, D:\DEVELOPING\one_click_signer\apktool\SecSettings \res, -M, D:\DEVELO
PING\one_click_signer\apktool\SecSettings\AndroidM anifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\A
ppData\Local\Temp\brut_util_Jar_185690959310870423 9.tmp, p, --debug-mode, --forc
ed-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-cod
e, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\Tem
p\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framewor
k\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_clic
k_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\Sec
Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:475)
... 6 more
D:\DEVELOPING\one_click_signer\apktool>
Can someone help me please?
Sorry if I asked in the wrong section
Mikyno said:
Hi all guys. Hope someone can help me, cause I really don't know what to do. I read around but I didn't find anything that could solve my problem.
I want to modify SecSettings.apk from N8000 to edit a smali file. I follow these steps :
-Install framework-res.apk
-Install twframework-res.apk
-Decompile SecSettings.apk
-Modify .smali file
-Recompile. Here I get errors.
This is the log :
D:\DEVELOPING\one_click_signer\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\1.apk
D:\DEVELOPING\one_click_signer\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\2.apk
D:\DEVELOPING\one_click_signer\apktool>apktool d SecSettings.apk
I: Using Apktool 2.0.0-Beta7 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\2.apk
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\2.apk
I: Decoding values */* XMLs...
I: Loading resource table...
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\1.apk
W: Skipping "android" package group
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
D:\DEVELOPING\one_click_signer\apktool>apktool b -f -d SecSettings
I: Using Apktool 2.0.0-Beta7 on SecSettings
I: Smaling...
I: Building resources...
D:\DEVELOPING\one_click_signer\apktool\SecSettings\res\xml\assistant.xml:3: erro
r: Error: No resource found that matches the given name (at 'resource' with valu
e '@drawable/assistant_menu_icon_messages_search').
aapt: warning: string 'accessibility_screen_magnification_summary' has no defaul
t translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found:
az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'answering_end_call_title_prev' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca c
s da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it
ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz
vi zh_CN zh_TW
aapt: warning: string 'category_printers' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'downloadable_dialog_popup_text_wifi' has no default trans
lation in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: ar az b
g ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in
is it ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk
ur uz vi zh_CN zh_TW
aapt: warning: string 'experimental_webview' has no default translation in D:\DE
VELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy_AM ka_G
E
aapt: warning: string 'experimental_webview_summary' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'location_category_app_settings' has no default translatio
n in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'nfc_payment_ask' has no default translation in D:\DEVELOP
ING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'print_add_printer' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el e
n_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko
lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh
_TW
aapt: warning: string 'screen_rate' has no default translation in D:\DEVELOPING\
one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el en_PH e
n_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko lt lv
mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh_TW
aapt: warning: string 'screen_size_downscale_1' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_2' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_3' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'wifi_display_disconnect_text' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'wifi_display_disconnect_title' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wifi_display_paired_devices' has no default translation i
n D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy_
AM ka_GE
aapt: warning: string 'wifi_display_search_for_devices' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE
hy_AM ka_GE
aapt: warning: string 'wifi_display_searching_for_devices' has no default transl
ation in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et
_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_disabled' h
as no default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings\
res; found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_off' has no
default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res;
found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_status_available' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wimax_settings_summary' has no default translation in D:\
DEVELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea
\AppData\Local\Temp\brut_util_Jar_1856909593108704239.tmp, p, --debug-mode, --fo
rced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-c
ode, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\T
emp\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framew
ork\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_cl
ick_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\S
ecSettings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_185690959310870
4239.tmp, p, --debug-mode, --forced-package-id, 1, --min-sdk-version, 19, --targ
et-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-N8000XXUDND5, -F,
C:\Users\Andrea\AppData\Local\Temp\APKTOOL7971105794680974515.tmp, -0, arsc, -I,
C:\Users\Andrea\apktool\framework\1.apk, -I, C:\Users\Andrea\apktool\framework\
2.apk, -S, D:\DEVELOPING\one_click_signer\apktool\SecSettings\res, -M, D:\DEVELO
PING\one_click_signer\apktool\SecSettings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\A
ppData\Local\Temp\brut_util_Jar_1856909593108704239.tmp, p, --debug-mode, --forc
ed-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-cod
e, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\Tem
p\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framewor
k\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_clic
k_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\Sec
Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
D:\DEVELOPING\one_click_signer\apktool>
Can someone help me please?
Sorry if I asked in the wrong section
Click to expand...
Click to collapse
Fix this
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: erro
r: Error: No resource found that matches the given name (at 'resource' with valu
e '@drawable/assistant_menu_icon_messages_search').
zelendel said:
Fix this
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: erro
r: Error: No resource found that matches the given name (at 'resource' with valu
e '@drawable/assistant_menu_icon_messages_search').
Click to expand...
Click to collapse
First thanks for the help. I did not touch this file. I only removed some removepreference method strings from a SpenSettingMenu.smali.
What do you mean with fix ? What should I do? Sorry if it's a dumb question but i am trying to learn as I am a noob
Mikyno said:
First thanks for the help. I did not touch this file. I only removed some removepreference method strings from a SpenSettingMenu.smali.
What do you mean with fix ? What should I do? Sorry if it's a dumb question but i am trying to learn as I am a noob
Click to expand...
Click to collapse
You picked one hell of a rom to begin with lol
Go here @drawable/assistant_menu_icon_messages_search and see if it is there and if not then you may need to add it.
zelendel said:
You picked one hell of a rom to begin with lol
Go here @drawable/assistant_menu_icon_messages_search and see if it is there and if not then you may need to add it.
Click to expand...
Click to collapse
I know lol. But I want to do something for N8000 community where devs are not very active
Anyway didn't find the file.. What to do now? If I decompile the apk, the file I need is not extracted
Mikyno said:
I know lol. But I want to do something for N8000 community where devs are not very active
Anyway didn't find the file.. What to do now? If I decompile the apk, the file I need is not extracted
Click to expand...
Click to collapse
you didnt find the xml or the entry? remember there are a few drawables. For this I would look in values/drawables.xml for the entry
zelendel said:
you didnt find the xml or the entry? remember there are a few drawables. For this I would look in values/drawables.xml for the entry
Click to expand...
Click to collapse
I didn't find in drawable the file assistant_menu_icon_messages_search. I only found that assistant.xml request it.
EDIT : tried to compile it taking another spi file and renaming in assistant_menu_icon_messages_search. It compile only with warnings.. So.. where should i get this file :S?
Mikyno said:
I didn't find in drawable the file assistant_menu_icon_messages_search. I only found that assistant.xml request it.
EDIT : tried to compile it taking another spi file and renaming in assistant_menu_icon_messages_search. It compile only with warnings.. So.. where should i get this file :S?
Click to expand...
Click to collapse
Spi file?
Bat cave One
zelendel said:
Spi file?
Bat cave One
Click to expand...
Click to collapse
Yes.. I found that assistant_menu_icon_messages_search and assistan_menu_blabla are spi files.. :S
See the attachment
Mikyno said:
Yes.. I found that assistant_menu_icon_messages_search and assistan_menu_blabla are spi files.. :S
See the attachment
Click to expand...
Click to collapse
Ok I have no idea what that type of file is for. Might want to ask in your device forums.
Bat cave One
zelendel said:
Ok I have no idea what that type of file is for. Might want to ask in your device forums.
Bat cave One
Click to expand...
Click to collapse
Seems that this is only an icon...
Mikyno said:
Seems that this is only an icon...
Click to expand...
Click to collapse
Ok that seems to be a special icon file. Not sure if apktool can decompile it might check in the apktool thread. It could be corrupting it when you decompile it
zelendel said:
Ok that seems to be a special icon file. Not sure if apktool can decompile it might check in the apktool thread. It could be corrupting it when you decompile it
Click to expand...
Click to collapse
Problem not solved cause I renamed a spi to the file I need but I didn't manage to unlock air command feature in the new settings menu

RM877 to RM875

May I know how can I debrand my AT&T Lumia 1020, from 059T019 RM-877 VAR NAM US ATT SL YELLOW to 059T7B0 RM-875 VAR APAC HK CV YELLOW.
Many Thanks!

[ask] add invisible power button on systemui miui 8

i have try to add invisible power button on systemUI MIUI 8 and got this error
Code:
Log For : MiuiSystemUI.apk
Log Type : Recompiling
Log Recorded At : Wed 16-11-2016 15:49:38.49
Log Recorded By : Advanced ApkTool v3.0.0 By BDFreak
------------------------------------------------------
W: E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\res\layout\status_bar.xml:2: error: Error parsing XML: unbound prefix
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\k4gara\AppData\Local\Temp\brut_util_Jar_6691148060102741333.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2, -F, C:\Users\k4gara\AppData\Local\Temp\APKTOOL6317259639059092263.tmp, -0, arsc, -0, arsc, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\16.apk, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\17.apk, -S, E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\res, -M, E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\k4gara\AppData\Local\Temp\brut_util_Jar_6691148060102741333.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2, -F, C:\Users\k4gara\AppData\Local\Temp\APKTOOL6317259639059092263.tmp, -0, arsc, -0, arsc, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\16.apk, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\17.apk, -S, E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\res, -M, E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\k4gara\AppData\Local\Temp\brut_util_Jar_6691148060102741333.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2, -F, C:\Users\k4gara\AppData\Local\Temp\APKTOOL6317259639059092263.tmp, -0, arsc, -0, arsc, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\16.apk, -I, E:\FLASHXIAOMI\AdvancedApkTool\1-BDFreak\Frameworks\17.apk, -S, E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\res, -M, E:\FLASHXIAOMI\AdvancedApkTool\3-Out\MiuiSystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
------------------------------------------------------
code that i insert
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_gravity="right" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_off" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" systemui:keyRepeat="false" androidrientation="vertical" />
my status_bar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_gravity="right" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_off" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" systemui:keyRepeat="false" androidrientation="vertical" />
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/oldman_std_status_wrapper" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.TorchServiceView android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<include android:id="@id/status_bar_simple" layout="@layout/status_bar_simple" />
<LinearLayout android:gravity="center" android:id="@id/returnToDriveModeScreen" android:background="@drawable/status_bar_orange_bar_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/driveModeIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_drive_mode_icon" android:layout_marginStart="3.0dip" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/drive_mode_tip" android:singleLine="true" android:layout_weight="1.0" android:layout_marginStart="5.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:gravity="start|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingEnd="3.0dip" />
</LinearLayout>
<LinearLayout android:gravity="center" android:id="@id/returnToRecorderScreen" android:background="@drawable/status_bar_recorder_layout_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/recorderIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_recorder_icon" android:layout_marginStart="8.0dip" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/recorderTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" android:layout_marginStart="8.0dip" />
<Chronometer android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:gravity="end" android:id="@id/recorderTimer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:minWidth="46.0dip" android:singleLine="true" android:layout_marginEnd="8.0dip" />
<com.android.systemui.statusbar.phone.BatteryStatusIconView android:id="@id/recorder_battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/safepayStatusBar" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:gravity="center" android:id="@id/safepayStatusBarText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:drawableLeft="@drawable/safepay_statusbar_icon" android:drawablePadding="18.0px" />
<miui.widget.ProgressBar android:gravity="bottom" android:id="@id/progressbar" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="4.0px" android:layout_marginTop="4.0px" android:progressDrawable="@drawable/safepay_progressbar_style" style="?android:attr/progressBarStyleHorizontal" />
</LinearLayout>
<LinearLayout android:gravity="center" android:id="@id/returnToIncallScreen" android:background="@drawable/status_bar_green_bar_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="3.0dip" android:paddingEnd="3.0dip">
<ImageView android:id="@id/callStateIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_ic_return_to_incall_screen_normal" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/return_to_incall_screen" android:singleLine="true" android:layout_weight="1.0" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/callIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<Chronometer android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/callTimer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_marginStart="3.0dip" android:layout_marginEnd="3.0dip" />
</LinearLayout>
</FrameLayout>
<ViewStub android:id="@id/oldman_status_pane_stub" android:layout="@layout/oldman_status_pane" android:inflatedId="@id/oldman_status_pane" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
can anyone help?
 @serajr @Ticklefish
thanks for advance :fingers-crossed:
@kagara The line you added must be somewhere inside main layout, and it's outside of it!
@serajr thanks for your answer , i'll try every line hehe... the result will post later
@serajr i am failed bro, every line i have tried, would you help me ?
The error code is saying that line 2 has an issue. Like my esteemed colleague said, you need to include your KeyButtonView inside the main Layout for it to work.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/oldman_std_status_wrapper" android:layout_width="fill_parent" android:layout_height="fill_parent">
[color="red"] <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_gravity="right" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_off" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" systemui:keyRepeat="false" androidrientation="vertical" />[/color]
<com.android.systemui.TorchServiceView android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<include android:id="@id/status_bar_simple" layout="@layout/status_bar_simple" />
<LinearLayout android:gravity="center" android:id="@id/returnToDriveModeScreen" android:background="@drawable/status_bar_orange_bar_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/driveModeIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_drive_mode_icon" android:layout_marginStart="3.0dip" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/drive_mode_tip" android:singleLine="true" android:layout_weight="1.0" android:layout_marginStart="5.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:gravity="start|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingEnd="3.0dip" />
</LinearLayout>
<LinearLayout android:gravity="center" android:id="@id/returnToRecorderScreen" android:background="@drawable/status_bar_recorder_layout_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/recorderIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_recorder_icon" android:layout_marginStart="8.0dip" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/recorderTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" android:layout_marginStart="8.0dip" />
<Chronometer android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:gravity="end" android:id="@id/recorderTimer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:minWidth="46.0dip" android:singleLine="true" android:layout_marginEnd="8.0dip" />
<com.android.systemui.statusbar.phone.BatteryStatusIconView android:id="@id/recorder_battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/safepayStatusBar" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:gravity="center" android:id="@id/safepayStatusBarText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:drawableLeft="@drawable/safepay_statusbar_icon" android:drawablePadding="18.0px" />
<miui.widget.ProgressBar android:gravity="bottom" android:id="@id/progressbar" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="4.0px" android:layout_marginTop="4.0px" android:progressDrawable="@drawable/safepay_progressbar_style" style="?android:attr/progressBarStyleHorizontal" />
</LinearLayout>
<LinearLayout android:gravity="center" android:id="@id/returnToIncallScreen" android:background="@drawable/status_bar_green_bar_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="3.0dip" android:paddingEnd="3.0dip">
<ImageView android:id="@id/callStateIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_ic_return_to_incall_screen_normal" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/return_to_incall_screen" android:singleLine="true" android:layout_weight="1.0" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/callIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<Chronometer android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/callTimer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_marginStart="3.0dip" android:layout_marginEnd="3.0dip" />
</LinearLayout>
</FrameLayout>
<ViewStub android:id="@id/oldman_status_pane_stub" android:layout="@layout/oldman_status_pane" android:inflatedId="@id/oldman_status_pane" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
This is the correct syntax and your APK should compile now. Whether it works, or the power button is in the right place, is a different question. You need to have a good understanding of what the different Layouts represent, even if you don't understand what the actual code is.
I have a guide to modding XML here: http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816 It may help you. :good:
@Ticklefish got same error, but i try to put in xml called super_status_bar.xml and its works
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.StatusBarWindowView android:background="@android:color/transparent" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<include android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" layout="@layout/status_bar" />
<include android:id="@id/brightness_mirror_panel" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.0" layout="@layout/status_bar_expanded_brightness_panel" />
<ViewStub android:id="@id/status_bar_expanded" android:layout="@layout/status_bar_expanded" android:layout_width="fill_parent" android:layout_height="0.0dip" />
<ViewStub android:id="@id/status_bar_expanded_single_page" android:layout="@layout/status_bar_expanded_single_page" android:layout_width="fill_parent" android:layout_height="0.0dip" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_off" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" androidrientation="vertical" />
</com.android.systemui.statusbar.phone.StatusBarWindowView>
thankyou for yor help

Categories

Resources