Related
This is just a simple tutorial about enabling screen rotation to apps that do not rotate automatically when you turn your device. It is really a TUT on how to open an apk and edit the androidmanifest.xml file. Pretty simple.
Easy:
1. Decompile the Application.apk with apktool
2. Edit the androidmanifest with Notepad++
3. Build the Application.apk with apktool
4. Sign the apk with autosign.
Click to expand...
Click to collapse
Detailed:
You will need some tools:
************************************************************
Android SDK: http://developer.android.com/sdk/index.html
APK Tool: http://code.google.com/p/android-apktool/
Notepad++: http://notepad-plus-plus.org/
A signing tool: Google "auto-sign apk"
An archiving tool: Plenty of them out there cable of .zip files
After you get this figured out, move on to step 1.
************************************************************
I do this from my desktop, so this is written as such.
Step 1. Decompile the Application.apk with apktool
___________________________________________________________
A. Open cmd.exe
B. Type apktool d C:/users/desktop/Netflix1.4.apk
(this refers to your desktop, so type the correct address for YOURS. However, I do not type, I drag and drop the Netflix.apk from my destop onto the cmd window)
C. Add a space then add destination directory "C:/users/destop/Netflixmod"
Again, your address of wherever you are working, and whetever you want to call the destination folder. For this I also drag and drop the same file, and just remove the .apk text.
D. Hit enter
Code:
apktool d C:\users\desktop\Netflix1.4.apk "C:\users\desktop\Netflixmod"
Your desktop address will be different than what I have typed, your Netflix app or whatever app you are decompiling will be different and your destination address and directory name will be different. DO NOT COPY PASTE THIS CODE INTO YOUR CMD LINE.
Click to expand...
Click to collapse
Step 2. Edit the androidmanifest with Notepad++
___________________________________________________________
This is for Netflix 1.4
In the folder that you just created on your desktop (or wherever you are working) There is a file called androidmanifest.xml
Open this file with Notepad++ and edit the following lines:
Change line 5: android:screenOrientation="portrait" to android:screenOrientation="sensor"
Change line 29: android:screenOrientation="landscape" to android:screenOrientation="sensor"
Save the file.
Click to expand...
Click to collapse
Step 3. Build the Application.apk with apktool
___________________________________________________________
Similar to decompiling:
A.
Code:
apktool b C:\users\desktop\Netflixmod
This will build the application in the same folder that you are working in (i.e. "Netflixmod" folder) You can specify a new directory if you want, but I do not.
There will now be a folder named "Build" within the "Netflixmod" folder.
B. Copy the "Assets" folder into the "build" folder. (apktool leaves this out, but it is important).
C. Zip the contents of the build folder into a .zip file called apk.zip. (do not zip the Build folder, just everything inside of it INCLUDING THE ASSETS FOLDER!)
D. Rename the apk.zip file to apk.apk file.
Click to expand...
Click to collapse
Step 4. Sign the apk with autosign.
___________________________________________________________
Well, sign the app with some signing tool that you are comfortable with.
Just google auto-sign apk, there are plenty of options. Cant find the link towhat I use. Please feel free to post an easy signing tool here if you want it added.
Click to expand...
Click to collapse
**************************************************
Here is all of the code that I changed in the Netflix1.4 app to enable rotation and fix graphic bugs.
You can copy paste this into a text editor like Notepad++ and save as /.xml files. Then replace the files in your decompiled app with these. Or you can download the text file attached and create separate files out of each section of code.
New Netflix 1.4 Updated 9/09/2011
BELOW ARE THE FILES THAT NEED TO BE EDITED TO ENABLE ROTATION AND AVOID GRAPHICS BUGS.
TO CHANGE COLOR, EDIT THE "#ffb9090b" TO ANOTHER HEX COLOR. IN ALL FILES EXCEPT FOR THE ANDROID MANIFEST.
───────────────────────────────────
Android Manifest.xml:
───────────────────────────────────
Change line 5: android:screenOrientation="portrait" to android:screenOrientation="sensor"
Change line 29: android:screenOrientation="landscape" to android:screenOrientation="sensor"
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="259" android:versionName="1.4.0 build 259" android:installLocation="auto" package="com.netflix.mediaclient"
xmlns:android="http://schemas.android.com/apk/res/android">
<application android:theme="@android:style/Theme.NoTitleBar" android:label="@string/app_name" android:icon="@drawable/icon" android:name=".NetflixApplication" android:debuggable="false">
<activity android:label="@string/app_name" android:name=".UIWebViewActivity" android:enabled="@bool/phone" android:finishOnTaskLaunch="false" android:clearTaskOnLaunch="true" android:launchMode="singleTop" android:screenOrientation="sensor" android:configChanges="keyboardHidden|orientation" android:alwaysRetainTaskState="true" android:allowTaskReparenting="true" android:windowSoftInputMode="stateVisible|adjustResize" android:noHistory="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="nflx" android:host="www.netflix.com" />
</intent-filter>
</activity>
<activity android:label="@string/app_name" android:name=".UIWebViewTabletActivity" android:enabled="@bool/tablet" android:finishOnTaskLaunch="false" android:clearTaskOnLaunch="true" android:launchMode="singleTop" android:configChanges="keyboardHidden|orientation" android:alwaysRetainTaskState="true" android:allowTaskReparenting="true" android:windowSoftInputMode="stateVisible|adjustResize" android:noHistory="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="nflx" android:host="www.netflix.com" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PlayerActivity" android:screenOrientation="sensor" android:configChanges="orientation" android:noHistory="false" />
</application>
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.wifi" android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11" />
</manifest
\res\layout folder
playout_splash.xml
───────────────────────────────────
<!--
Edited Line 4: android:layout_gravity="bottom|center" to android:layout_gravity="center"
removed android:layout_marginBottom="150.0dip"
Edited Line 5: android:layout_marginBottom="100.0dip" to android:layout_marginBottom="90.0dip"
Dblfstr
-->
Code:
<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout android:orientation="vertical" android:id="@id/top_panel" android:background="#ffb9090b" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center" android:id="@id/logo" android:visibility="visible" android:layout_width="202.0dip" android:layout_height="62.0dip" android:src="@drawable/logo_splash" />
<ProgressBar android:layout_gravity="bottom|center" android:id="@id/pb_loading" android:visibility="visible" android:layout_width="30.0dip" android:layout_height="30.0dip" android:layout_marginBottom="90.0dip" android:indeterminate="true" android:indeterminateOnly="true" android:soundEffectsEnabled="false" style="?android:progressBarStyleSmallInverse" />
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:layout_gravity="bottom|center" android:id="@id/label_loading" android:visibility="visible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="50.0dip" android:text="@string/label_ps_loading" />
<!--
Edited Line 4: android:layout_gravity="bottom|center" to android:layout_gravity="center"
removed android:layout_marginBottom="150.0dip"
Edited Line 5: android:layout_marginBottom="100.0dip" to android:layout_marginBottom="90.0dip"
Dblfstr
-->
</FrameLayout>
\res\layout folder
ui_splash.xml
───────────────────────────────────
<!--
Edited Line 4: android:layout_gravity="bottom|center" to android:layout_gravity="center"
removed android:layout_marginBottom="150.0dip"
Edited Line 5: android:layout_width="wrap_content" android:layout_height="wrap_content" to android:layout_width="30.0dip" android:layout_height="30.0dip" and "android:layout_marginTop="80.0dip"
Dblfstr
-->
Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:id="@id/FrameLayout" android:background="#ffb9090b" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center" android:id="@id/logo" android:visibility="visible" android:layout_width="202.0dip" android:layout_height="62.0dip" android:src="@drawable/logo_splash" android:layout_centerInParent="true" />
<ProgressBar android:id="@id/ui_load" android:visibility="visible" android:layout_width="30.0dip" android:layout_height="30.0dip" android:layout_marginTop="80.0dip" android:indeterminate="true" android:indeterminateOnly="true" android:layout_below="@id/logo" android:layout_centerInParent="true" android:soundEffectsEnabled="false" />
<!--
Edited Line 4: android:layout_gravity="bottom|center" to android:layout_gravity="center"
removed android:layout_marginBottom="150.0dip"
Edited Line 5: android:layout_width="wrap_content" android:layout_height="wrap_content" to android:layout_width="30.0dip" android:layout_height="30.0dip" and "android:layout_marginTop="80.0dip"
Dblfstr
-->
</RelativeLayout>
\res\layout folder
webview.xml
───────────────────────────────────
<!--
Edited line 2; android:background hex values
-->
Code:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/address" android:background="#ffb9090b" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/go_button" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<WebView android:id="@id/ui" android:background="@drawable/splash" android:visibility="visible" android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
<!--
Edited line 2; android:background hex values
-->
</LinearLayout>
all of this code is found in the attached .txt file. Remember to save each bit of code as a separate file and replace in your Netflix.apk.
and i need this
should take this
for us NON programmers, anyway you (or someone else) can actually post a modified apk?
OK, so I tried to modify these .xml files... so far, I haven't been able to open them up successfully. So my noob-ish question is, "what editor do I use to open these up?" Standard XML editors found in Windows/Office doesn't show them right.
Or can I just replace the files altogether by copying and pasting the stuff in the post? ... I will try that first, I guess...
Update1:
So I extracted the files for editing, and then replaced all the lines in those files (which by the way, opened up to show some weird encoding) using Notepad++ ... I was able to replace all the stuff anyways, and I saved it. Re-packed the apk... Nothing changed. What am I missing??
Update 2:
I think my problem now is finding out how I can recompile the file and be able to either keep the signature or make a valid signature. I say this because now all I get when I try to install the modifed apk it says "error parsing file" or "... not signed correctly"
I give up! I tried and took a few shots at it, but I guess I am missing something. Oh well...
http://forum.xda-developers.com/showthread.php?p=17446113#post17446113
All Credit goes to Dblfstr!
Sent from A Van Down By The River!
Worked like a charm dblfstr. Thanks.
Whew, exactly what I needed. Thanks again. I guess I'LLC leave all the Modding stuff to the seasoned folks.
Simple tutorial added.
Suggestions welcome
Thanks
bklizard said:
OK, so I tried to modify these .xml files... so far, I haven't been able to open them up successfully. So my noob-ish question is, "what editor do I use to open these up?" Standard XML editors found in Windows/Office doesn't show them right.
Or can I just replace the files altogether by copying and pasting the stuff in the post? ... I will try that first, I guess...
Update1:
So I extracted the files for editing, and then replaced all the lines in those files (which by the way, opened up to show some weird encoding) using Notepad++ ... I was able to replace all the stuff anyways, and I saved it. Re-packed the apk... Nothing changed. What am I missing??
Update 2:
I think my problem now is finding out how I can recompile the file and be able to either keep the signature or make a valid signature. I say this because now all I get when I try to install the modifed apk it says "error parsing file" or "... not signed correctly"
I give up! I tried and took a few shots at it, but I guess I am missing something. Oh well...
Click to expand...
Click to collapse
Simple tutorial added that may assist you.
Yes, the app has to be decompiled before you can edit the .xml files.
You will need to build the app after you made your changes.
Then zip the app
then sign the app.
[APP][UPDATE][Netflix V1.4] Netflix Rotation Enabled Apps w/ Colored Loading Screens updated to Netflix 1.4 for those who do not want to attempt to add the rotation on your own.
Thanks
I saw this on the front page Congrats! I'm wondering if this was disable because there are several instances of tabbed views leaking activities when the orientation is changed. A good test would be to link up ddms to the app and repeatedly change the orientation and see if the memory gets eattin up.
Am I SOL if the screenOrientation="1" is in all the lines?
is it possible to to this with the touchwiz30 .apk?
WOW, made it to the portal. That is awesome. Hopefully someone can benefit from this thread.
Pacifik said:
Am I SOL if the screenOrientation="1" is in all the lines?
Click to expand...
Click to collapse
Not necessarily. To what app are you referring?
ChadBFlores said:
is it possible to to this with the touchwiz30 .apk?
Click to expand...
Click to collapse
Probably a little more difficult. Nothing is impossible, however.
Screen Orientation + High Resolution Support
Is it possible to do any of those steps directly on the device itself ? For those who don't have access to computers on a regular basis...
Also, would you know which property(ies) I would have to change to get an app to fill the whole screen instead of a small part surrounded by black bars ?
I'm referring to the Canadian Sirius Radio app... It used to render correctly on my Droid1/Milestone, but now with my Droid3/XT860, the screen resolution as changed and it doesn't seem to be "programmed" to support larger screen resolution (qHD).
If I can implement both fixes, yours and mine, I'll be a happy man !
Looks ok, but as a developer I can tell you that most apps will break because of faulty design. Setting stick orientation is a workaround for their lesser API knowledge used by many beginning developers. I did it myself, stopped doing that when I learned more. Most of hacked apps will experience memory leaks, some of them FCs.
Anyway idea is great
hello i need your help with modifying the systemui.apk from touchwiz.
to start off i have decomplied the systemui.apk and framework-res.apk in my android dev linux vmware machine, i did load in the framworks + the twframework.
what i am trying to do is remove the brigness slider and the quick setting toggles from the notifaction bar and i did so by removing these lines from layout/tw_status_bar_expaneded.xml and i edited it on eclipse
<com.wanamlite.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_height" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel androidrientation="horizontal" android:id="@id/quicksetting_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
and
<LinearLayout androidrientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
after i did that i recomiled it with apktool and it had no problems, i copyed the orignal androidmanifest and meta-inf into the modified apk, zipaligned and made a flashable zip
when i booted the phone i had no status bar and the systemui was crashing so i restored it and i got it back but now i have no mtp connection to the computer nor do i have adb
Good day devs, I have something new here not new but I think it is. It works in higher API than GB that I was running, So I willpost it here.
If there is a problem with this post, kindly PM me sir.
What we will be doing is somehow like this, the picture at the left is my modified UI, and the right picture will be our outcome.
{
"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"
}
As I was inspired by Sir [email protected]'s SystemUI, I want to make it tab also, as I cant decompile his UI and study the code, I thought about Sir b16h22 for his Multipanelflipper, but it was text so I made it on my own class and follow some trick from evox-4 x SystemUI by the use of custom views and sorta intents like what he did. Let we mod again.
Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt. Thanks.
What we will be needed:
Patience
APK-Tool
Algorithm
Basic smali and xml
Your very own SystemUI
Know how to decompile APK
Instruction:
1. Download the zip file from the download link.
2. Decompile your very own SystemUI.
3. Extract the download link and paste it in your UI.
4. At the ids, add these before </resources> at ids.xml under values folder
Code:
<item type="id" name="tabbutton">false</item>
5. Now we will modify your expanded,
Below this code,
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
Add this,
Code:
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
6. And before this line
Code:
</com.android.systemui.statusbar.ExpandedView>
Add this,
Code:
</com.pineapple.TabUI.TabsContent>
7. Now this is the tricky part, as I am not familiar with the particular name of this (LinearLayout, RelativeLayout FrameLayout) ehh, you understand me what I am saying right sir?
Make the Expanded something like this,
Code:
<com.pineapple.TabUI.TabButton........../>
<com.pineapple.TabUI.TabButton...........>
<LinearLayout>First Layout</LinearLayout>
<LinearLayout>Second Layout</LinearLayout>
<LinearLayout>Third Layout</LinearLayout>
</com.pineapple.TabUI.TabsContent>
If you cant follow sirs, kindly compare it with my stock.
Code:
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="140.0dip" android:layout_height="42.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/flipper" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<Button android:textSize="13.0sp" android:layout_gravity="center" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="Clear" android:layout_alignTop="@id/dateview" android:layout_alignParentRight="true" style="?android:attr/buttonStyleSmall" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/expanded_content3" /> [B]<!-- SecondLayout -->[/B]
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/expanded_content3" /> [B]<!-- ThirdLayout -->[/B]
</ScrollView>
</com.pineapple.TabUI.TabsContent>
8. Save it, and recompile.
9. Decompile the APK again (We only did these because we register the added resources)
10. Go to public.xml and find these (the ids are bit different than yours,)
Code:
<public type="drawable" name="tab1" id="0x7f02009c" />
<public type="drawable" name="tab2" id="0x7f02009d" />
<public type="drawable" name="tab3" id="0x7f02009e" />
<public type="id" name="tabbutton" id="0x7f090029" />
11. Now here comes the smali part, Now go to smali/com/pineapple/TabUI/*
Find this smali file, TabsContent.smali
at the TabsContent.smali, find this
0x7f050001 and change it to the public id of your "<public type="id" name="tabbutton" id="0x7f090029" />" So in mine I will change 0x7f050001 to 0x7f090029
12. Open the smali file, TabButtons.smali and find this ids.
0x7f020001 and change it according to the ids of tab1, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020001 to 0x7f02009c
0x7f020002 and change it according to the ids of tab2, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020002 to 0x7f02009d
0x7f020003 and change it according to the ids of tab3, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020003 to 0x7f02009e
13. Save everything and compile your SystemUI and push or flash it, I recommend flashing.
Download Link:
PINEAPPLEOWL
Note/Ads: Lenox V2.1 have this kind of UI.
Credits:
b16h22 for some comparison with his very own MultiPanelSwitcher
serajr for inspire for his awesome UI
LenoxDevs for there support
android.developers.com
thanks for the guide but this is double post with http://forum.xda-developers.com/showthread.php?t=2526114
My phone don't have
Code:
com.android.systemui.statusbar.ExpandedView
what's file name?
nhymxu said:
My phone don't have
Code:
com.android.systemui.statusbar.ExpandedView
what's file name?
Click to expand...
Click to collapse
check where your layouting of expanded is sir.
Sent from my GT-S5360 using Tapatalk 2
thanks. It's work.
But I don't need 3 tab. 2 is enough.
Can you modify smali code to 2 tab, tab button is toggle button like android 4.2
Thanks
Force close while clicking tabbuttons
E/AndroidRuntime( 289): java.lang.RuntimeException: Error receiving broadcast Intent { act=pineappleTabUI2 } in [email protected]
E/AndroidRuntime( 289): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
E/AndroidRuntime( 289): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 289): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 289): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 289): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 289): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 289): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 289): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
E/AndroidRuntime( 289): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
E/AndroidRuntime( 289): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:112)
E/AndroidRuntime( 289): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 289): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 289): at com.pineapple.TabUI.TabsContent$2.onReceive(TabsContent.java:27)
E/AndroidRuntime( 289): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
E/AndroidRuntime( 289): ... 10 more
D/DATA ( 318): [DSST(0)] pollstate() : reason = data network state changed
D/zfn ( 318): pollStateDone,smsCounter is null
I/TelephonyRegistry( 202): notifyServiceState: 0 home Vodafone T.N. Vodafone T.N. 40443 EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
D/DATA ( 318): [DSST(0)] Poll ServiceState done: oldSS=[0 home null null null EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] newSS=[0 home null null null EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false]
D/CallManager( 318): handleMessage (EVENT_SERVICE_STATE_CHANGED)
V/PhoneApp( 318): Action intent recieved:android.intent.action.SERVICE_STATE
D/NotificationMgr( 318): updateNetworkSelection()...state = 0 new network
Solved ... didn't added the id in tabcontent :silly:
PineappleOwl said:
check where your layouting of expanded is sir.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
sir, how can define state of selected tab? in your guide with 3 png image that using to show the tab, but it's not easy to know the tab that focused and selected. plz tell me how to add state to the selected tab.
sorry for bad english and thanks for your guide :good:
awesome
NYC guide bro....
can u tell me the difference between
http://forum.xda-developers.com/showthread.php?t=2577709
this & ur guide
---------- Post added at 07:38 AM ---------- Previous post was at 07:16 AM ----------
Oohhlala said:
sir, how can define state of selected tab? in your guide with 3 png image that using to show the tab, but it's not easy to know the tab that focused and selected. plz tell me how to add state to the selected tab.
sorry for bad english and thanks for your guide :good:
Click to expand...
Click to collapse
u can add that urself its just an XML work....
don't put the PNG name directly
just make an XML in drawables
put this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/PNG_name" />
<item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/PNG_name_pressed" />
<item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/PNG_name_pressed" />
<item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/jb_normal" />
<item android:state_pressed="true" android:drawable="@drawable/PNG_name_pressed" />
</selector>
just name that XML to any name & use that name instead of PNG name
Hello!
i wanted to share a guide on how to make JB/KK styled close drag handle.
If you don't know what it means take a look at the screenshots below.
Things Required
1)how to decompile and recompile apk
2)SystemUI.apk which you want to mod
3)notepad++
4)a good working brain
so first decompile systemUI.apk and navigate into res/layout
and open status_bar_tracking.xml
replace This code
HTML:
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:id="@id/closeImg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
with this
HTML:
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="35.0dip">
<ImageView android:layout_gravity="bottom" android:background="@drawable/status_bar_close" android:clickable="true" android:layout_width="fill_parent" android:layout_height="35.0dip" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
then download the res.zip from the attachments and merge(place it) it to the specified folders in \res
now recompile and flash or push and Enjoy
Dear friends,
Just a little HowTo thread to show how to make a cool S5 themed Power Menu.
The idea was to make the sound toggle like the S5 :
Old:
New:
The Idea :
- Remove the old sound icons,
- Replace and move old toogles.
Changing framework-res.apk:
- Decompile framework-res.apk,
- Copy the provided source files (drawable\tw_silent_mode_indicator, drawable-xxhdpi\PNgs),
- Change layout\global_actions_silent_mode.xml :
Old:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="?listPreferredItemHeight"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" />
[COLOR="Red"]<LinearLayout android:orientation="vertical" android:id="@id/option1" android:background="?actionBarItemBackground" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_mute">
<ImageView android:layout_gravity="center" android:layout_width="34.0dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:src="@drawable/tw_device_options_mute" android:scaleType="center" />
<TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_mute" />
<ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="1.0dip" android:layout_marginBottom="5.0dip" android:scaleType="center" />
</LinearLayout>[/COLOR]
<LinearLayout android:orientation="horizontal" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip">
<ImageView android:layout_gravity="center" android:layout_width="1.0dip" android:layout_height="fill_parent" android:src="@drawable/tw_device_options_divider" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/option2" android:background="?actionBarItemBackground" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_vibrate">
<ImageView android:layout_gravity="center" android:layout_width="34.0dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:src="@drawable/tw_device_options_vibrate" android:scaleType="center" />
<TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_vibrate" />
<ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="1.0dip" android:layout_marginBottom="5.0dip" android:scaleType="center" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/dynamic_spacer" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip">
<ImageView android:layout_gravity="center" android:layout_width="1.0dip" android:layout_height="fill_parent" android:src="@drawable/tw_device_options_divider" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/option3" android:background="?actionBarItemBackground" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_sound">
<ImageView android:layout_gravity="center" android:layout_width="34.0dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:src="@drawable/tw_device_options_sound" android:scaleType="center" />
<TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_sound" />
<ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="1.0dip" android:layout_marginBottom="5.0dip" android:scaleType="center" />
</LinearLayout>
<View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" />
</LinearLayout>
New :
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:background="#ff005060" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="?listPreferredItemHeight"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" />
[COLOR="Red"] <LinearLayout android:orientation="vertical" android:id="@id/option1" android:background="#ff005060" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_mute">
<ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_marginTop="3.0dip" android:layout_marginBottom="1.0dip" android:scaleType="center" />
<TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_mute" />
</LinearLayout>[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/option2" android:background="#ff005060" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_vibrate">
<ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator2" android:duplicateParentState="true" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_marginTop="3.0dip" android:layout_marginBottom="1.0dip" android:scaleType="center" />
<TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_vibrate" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/option3" android:background="#ff005060" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_sound">
<ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator3" android:duplicateParentState="true" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_marginTop="3.0dip" android:layout_marginBottom="1.0dip" android:scaleType="center" />
<TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_sound" />
</LinearLayout>
<View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" />
</LinearLayout>
- Add new resources in the public.xml file (PNG, tw_silent_mode_indicator2.xml & tw_silent_mode_indicator3.xml) :
Code:
[COLOR="Red"] <public type="drawable" name="tw_silent_mode_indicator2" id="0x01080fcf" />
<public type="drawable" name="tw_silent_mode_indicator3" id="0x01080fd0" />
<public type="drawable" name="tw_device_options_mute_off" id="0x01080fd1" />
<public type="drawable" name="tw_device_options_mute_on" id="0x01080fd2" />
<public type="drawable" name="tw_device_options_sound_off" id="0x01080fd3" />
<public type="drawable" name="tw_device_options_sound_on" id="0x01080fd4" />
<public type="drawable" name="tw_device_options_vibrate_off" id="0x01080fd5" />
<public type="drawable" name="tw_device_options_vibrate_on" id="0x01080fd6" /> [/COLOR]
- Recompile the framework-res apk and put it on you phone.
Now you should have something like this :
UPDATE:
Sound icons ipdated in V1.2, Should be OK now (proper tansparent colors & shapes).
For those who use Imperium V10, here is the compiled framework file (+ System UI to have the complete System Mod):
http://www.mediafire.com/download/r7ot40836ilrev7/S5SysTheme.zip
Perfect dude,
Can you make it for Ozcanrom v4.2?
hosseinito said:
Perfect dude,
Can you make it for Ozcanrom v4.2?
Click to expand...
Click to collapse
If you provide me the framework-res.apk file ...
nmeuret said:
If you provide me the framework-res.apk file ...
Click to expand...
Click to collapse
d-h.st/ulm
Here you go. Extract the zip...
hi i reworked the images
igot a problem when i recompile because of multiply image ids how can i change the ids
Code:
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10903: error: Multiple entry names declared for public entry identifier 0xfd0 in type drawable (tw_silent_mode_indicator2 vs tw_toolbox_edit_area_bg).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8718: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10903: error: Public symbol drawable/tw_toolbox_edit_area_bg declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10904: error: Multiple entry names declared for public entry identifier 0xfd1 in type drawable (tw_silent_mode_indicator3 vs tw_toolbox_edit_btn).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8719: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10904: error: Public symbol drawable/tw_toolbox_edit_btn declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10905: error: Multiple entry names declared for public entry identifier 0xfd2 in type drawable (tw_device_options_mute_off vs tw_toolbox_edit_btn_focus).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8720: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10905: error: Public symbol drawable/tw_toolbox_edit_btn_focus declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10906: error: Multiple entry names declared for public entry identifier 0xfd3 in type drawable (tw_device_options_mute_on vs tw_toolbox_floating_background).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8721: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10906: error: Public symbol drawable/tw_toolbox_floating_background declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10907: error: Multiple entry names declared for public entry identifier 0xfd4 in type drawable (tw_device_options_sound_off vs tw_toolbox_floating_btn_earphones).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8722: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10907: error: Public symbol drawable/tw_toolbox_floating_btn_earphones declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10908: error: Multiple entry names declared for public entry identifier 0xfd5 in type drawable (tw_device_options_sound_on vs tw_toolbox_floating_btn_earphones_open).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8723: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10908: error: Public symbol drawable/tw_toolbox_floating_btn_earphones_open declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10909: error: Multiple entry names declared for public entry identifier 0xfd6 in type drawable (tw_device_options_vibrate_off vs tw_toolbox_remove_area_bg).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8724: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10909: error: Public symbol drawable/tw_toolbox_remove_area_bg declared here is not defined.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10910: error: Multiple entry names declared for public entry identifier 0xfd7 in type drawable (tw_device_options_vibrate_on vs tw_toolbox_remove_btn).
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8725: Originally defined here.
C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10910: error: Public symbol drawable/tw_toolbox_remove_btn declared here is not defined.
dack23 said:
hi i reworked the images
igot a problem when i recompile because of multiply image ids how can i change the ids
[/CODE]
Click to expand...
Click to collapse
Thanks. Concerning the IDS, you have to find the last available ID and increment it for each new entry. That's not very easy, take few minutes each time (don't know if there is a fast way ?).
nmeuret said:
Thanks. Concerning the IDS, you have to find the last available ID and increment it for each new entry. That's not very easy, take few minutes each time (don't know if there is a fast way ?).
Click to expand...
Click to collapse
maybe u can look at this it would be great
thanks
http://www37.zippyshare.com/v/41008646/file.html
dack23 said:
maybe u can look at this it would be great
Click to expand...
Click to collapse
Ok so in your public.xml you see that the last item of type="Drawable" is :
<public type="drawable" name="tw_ic_lock_screenshot" id="0x01081029" />
The first thing to check if ID 0x01081029 + 1 = 0x0108102a is available ... and it is.
The the next IDS should be 0x0108102a, 0x0108102b, 0x0108102c, etc ...
Hi @mmeuret,
Can you please make it for GF 1.2?
https://www.dropbox.com/s/jeyevc6fx67k3iy/framework-res.apk?dl=0
Thank you ?
nmeuret said:
Ok so in your public.xml you see that the last item of type="Drawable" is :
<public type="drawable" name="tw_ic_lock_screenshot" id="0x01081029" />
The first thing to check if ID 0x01081029 + 1 = 0x0108102a is available ... and it is.
The the next IDS should be 0x0108102a, 0x0108102b, 0x0108102c, etc ...
Click to expand...
Click to collapse
ok first id ok but last 2 dont work
<public type="drawable" name="tw_silent_mode_indicator2" id="0x0108102a" />
<public type="drawable" name="tw_silent_mode_indicator3" id="0x0108102b" />
<public type="drawable" name="tw_device_options_mute_off" id="0x0108102c" />
<public type="drawable" name="tw_device_options_mute_on" id="0x0108102d" />
<public type="drawable" name="tw_device_options_sound_off" id="0x0108102e" />
<public type="drawable" name="tw_device_options_sound_on" id="0x0108102f" />
dont work
<public type="drawable" name="tw_device_options_vibrate_off" id="0x0108110a" />
<public type="drawable" name="tw_device_options_vibrate_on" id="0x0108110b" />
<public type="drawable" name="tw_device_options_vibrate_off" id="0x0108102g" />
<public type="drawable" name="tw_device_options_vibrate_on" id="0x0108102h" />
need ur help
i followed this guide but i get error while i was compiling..this is the log..what can i do?
W: Could not find sources
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10895: error: Multiple entry names declared for public entry identifier 0xfd0 in type drawable (tw_silent_mode_indicator2 vs tw_toolbox_edit_area_bg).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11941: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10895: error: Public symbol drawable/tw_toolbox_edit_area_bg declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10896: error: Multiple entry names declared for public entry identifier 0xfd1 in type drawable (tw_silent_mode_indicator3 vs tw_toolbox_edit_btn).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11942: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10896: error: Public symbol drawable/tw_toolbox_edit_btn declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10897: error: Multiple entry names declared for public entry identifier 0xfd2 in type drawable (tw_device_options_mute_off vs tw_toolbox_edit_btn_focus).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11943: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10897: error: Public symbol drawable/tw_toolbox_edit_btn_focus declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10898: error: Multiple entry names declared for public entry identifier 0xfd3 in type drawable (tw_device_options_mute_on vs tw_toolbox_floating_background).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11944: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10898: error: Public symbol drawable/tw_toolbox_floating_background declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10899: error: Multiple entry names declared for public entry identifier 0xfd4 in type drawable (tw_device_options_sound_off vs tw_toolbox_floating_btn_earphones).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11945: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10899: error: Public symbol drawable/tw_toolbox_floating_btn_earphones declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10900: error: Multiple entry names declared for public entry identifier 0xfd5 in type drawable (tw_device_options_sound_on vs tw_toolbox_floating_btn_earphones_open).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11946: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10900: error: Public symbol drawable/tw_toolbox_floating_btn_earphones_open declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10901: error: Multiple entry names declared for public entry identifier 0xfd6 in type drawable (tw_device_options_vibrate_off vs tw_toolbox_remove_area_bg).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11947: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10901: error: Public symbol drawable/tw_toolbox_remove_area_bg declared here is not defined.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10902: error: Multiple entry names declared for public entry identifier 0xfd7 in type drawable (tw_device_options_vibrate_on vs tw_toolbox_remove_btn).
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11948: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10902: error: Public symbol drawable/tw_toolbox_remove_btn declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_6156724742753412531.tmp, p, --forced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-I9505XXUGNF1, -F, C:\Users\Andrea\AppData\Local\Temp\APKTOOL9066347275687172668.tmp, -x, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
at brut.androlib.Androlib.buildResources(Androlib.java:363)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
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_6156724742753412531.tmp, p, --forced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-I9505XXUGNF1, -F, C:\Users\Andrea\AppData\Local\Temp\APKTOOL9066347275687172668.tmp, -x, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_6156724742753412531.tmp, p, --forced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-I9505XXUGNF1, -F, C:\Users\Andrea\AppData\Local\Temp\APKTOOL9066347275687172668.tmp, -x, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)
... 6 more
Impossibile trovare il file specificato.
Impossibile trovare il file specificato.
EDIT: i saw now that is the same error of @dack23 .. Is there a solution? Thanks in advance
nmeuret said:
Ok so in your public.xml you see that the last item of type="Drawable" is :
<public type="drawable" name="tw_ic_lock_screenshot" id="0x01081029" />
The first thing to check if ID 0x01081029 + 1 = 0x0108102a is available ... and it is.
The the next IDS should be 0x0108102a, 0x0108102b, 0x0108102c, etc ...
Click to expand...
Click to collapse
thanks i got it u r awesome:good:
Thanks, great.
here is my Resault
dack23 said:
here is my Resault
Click to expand...
Click to collapse
How have you solved the problem? I want this too.. Thanks
Can u make it as flashabel zip please
Sent from my SM-G900F using Tapatalk
dack23 said:
here is my Resault
Click to expand...
Click to collapse
Good !
thereassaad said:
Can u make it as flashabel zip please
Click to expand...
Click to collapse
The problem is that the Mod depends on Rom framework and cannot be universal. I provided the Imperium version, if someone makes other versions I can put them in OP.
[ROM][I9505][XXUGNG8][4.4.2] *11.08.2014* Project X Rom LMS [Galaxy S5 Style]
DOWNLOAD Project X Rom LMS v.35
http://www.android-hilfe.de/samsung...8-2014-project-x-rom-lms-galaxy-s5-style.html
Including all working S5 Apps
And here The patch With The Better S5 Powermenu
DOWNLOAD LMS PATCHv.35.2
http://www46.zippyshare.com/v/50511746/file.html
Anyone knows why i have this square around the circle?