[Completed] Last Error Help Kernel Compiling - XDA Assist

any one there to fix this error compiling kernel
CC lib/rwsem.o
CC lib/sha1.o
CC lib/show_mem.o
CC lib/string.o
CC lib/timerqueue.o
CC lib/vsprintf.o
AR lib/lib.a
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
drivers/built-in.o: In function `iris_fops_open':
/home/vineet/Desktop/Kernel_Source_MI4I/drivers/media/radio/radio-iris.c:5228: undefined reference to `radio_hci_smd_init'
Makefile:820: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

vineetdev said:
any one there to fix this error compiling kernel
CC lib/rwsem.o
CC lib/sha1.o
CC lib/show_mem.o
CC lib/string.o
CC lib/timerqueue.o
CC lib/vsprintf.o
AR lib/lib.a
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
drivers/built-in.o: In function `iris_fops_open':
/home/vineet/Desktop/Kernel_Source_MI4I/drivers/media/radio/radio-iris.c:5228: undefined reference to `radio_hci_smd_init'
Makefile:820: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Click to expand...
Click to collapse
Hello,
Thanks for using XDA Assist.
You can post your query in Android Q&A,Help and Troubleshooting
___
v7
XDA Assist

Related

Compilation of Kernel for Android fails

Hallo,
I want to pay a big compliment to all who try to bring android to the HTC devices and hope you can help me, to complie the Kernel on my on.
Following the instructions on http://wiki.xda-developers.com/index.php?pagename=BuildTheKaiserKernel I get an error when compiling. The output is:
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1377:2: warning: #warning syscall timerfd_create not implemented
<stdin>:1389:2: warning: #warning syscall timerfd_settime not implemented
<stdin>:1393:2: warning: #warning syscall timerfd_gettime not implemented
scripts/genksyms/lex.c: In Funktion »yylex1«:
scripts/genksyms/lex.l:95: Warnung: Der Rückgabewert von »fwrite«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
scripts/genksyms/lex.l: Auf höchster Ebene:
scripts/genksyms/lex.c:1487: Warnung: »input« definiert, aber nicht verwendet
scripts/mod/modpost.c: In Funktion »get_markers«:
scripts/mod/modpost.c:1527: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
scripts/mod/modpost.c: In Funktion »add_marker«:
scripts/mod/modpost.c:1935: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
scripts/kallsyms.c: In Funktion »read_symbol«:
scripts/kallsyms.c:80: Warnung: Der Rückgabewert von »fgets«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
init/calibrate.c: In function 'calibrate_delay':
init/calibrate.c:172: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://support.codesourcery.com/GNUToolchain/> for instructions.
make[1]: *** [init/calibrate.o] Fehler 1
make: *** [init] Fehler 2
My configuration is Kubuntu 8.10 running on a Pentium M.
No need to open a new thread.
Polaris Android Linux Kernel Development Project
To answer your question:
I think the htc-vogue branch is broken at the moment - because we're running into the same error.
Thanks for the reply. I already found this answer http://forum.xda-developers.com/showpost.php?p=3331331&postcount=3290, however it didn't work for me. I already tried to compile one week ago and it didn't work. I can't imagine that the branch is broken such a long time. Anyway, I hope we can make it run
I opened a new thread, because "Polaris Android Linux Kernel Development Project" seems quite messed up as any information related to this project is posted there and I find difficult/impossible to read the whole thread. Maybe, an own category should be created, where all the "Project-" related issues can be posted in own threads...
Found the solution to this problem: Use arm-2008q3 instead of 2008q1.
Please post your changes to the other thread.
Worked well!! Thanks.
So what are you working on?
If I read the code right - I think wlan stuff is atm only available for Kaiser (progress being made but not fully functional) - it shouldn't be a huge problem to port it to Polaris (different gpio's?).
The bluetooth stuff should also be fairly easy (at least afair) - but thats only built-in for Nike atm (and also not working).
Wired Headset also "only" needs to be ported from Vogue.
Battery and Leds are also working on Kaiser but not Polaris.
Same goes for powering down the different screens and touchscreen improvements.
If you're interested in working on any of these issues - I can probably assist you in getting it done (best contact me throug PC or IM).

[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

firmware PU

What does pu in firmware stand for? Global?

Categories

Resources