Hello fellow XDA users, I have another mod over here and it is exactly unique as I havent seen a guide like this.
What is this all about?
This is a Power Menu, a renewed and redux Power Menu of mine, I am sharing this to everyone for they surely want it too. This mod compose of the following:
PROS:
1. JB Sound Panel
2. Advance Reboot Option (Fast boot added)
3. Re-arrange Power Menu
4. Screenshot added
CONS:
No data network list adapter
Click to expand...
Click to collapse
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This modification comprises of the GlobalAction.java and framework-res and lil trick, I modified the AOSP GlobalAction.java and make it in stock (I gurantee no problem at all.) So the data network list adapter wasnt added back but I am doing everything I could just to bring it back again and again. Since I am annoyed too that there is no data network overthere. Also I tried to port the smali to stock but I am having a problem with Verification Error(I think the API is the cause, the invoke gA, g0, p0 thingy. LOL.)
This also work with other device since its AOSP made. I dont knew where to put the thread around the XDA , I only knew this Galaxy Y Forum cause it rocks and hell awesome.
Enough said, Ill be dividing this guide unto parts. The android.policy.jar and the framework-res.apk
Requirements:
1. ApkTool
2. PC
3. Your very own android.policy.jar
4. Your framework-res.apk
5. Working brain with some time to think since Ill be making your head dizzy.
6. A Galaxy Y
7. And the zip you will download at the bottom.
Click to expand...
Click to collapse
Before proceeding,
For those in doubt, backup first. You are not Chuck Norris Lets get it on.
Click to expand...
Click to collapse
Instruction
Prologue:
1. Extract the zip file in any directories you want
Chapter 1. Making your framework-res ready for the battle.
1. Pull your framework-res.apk
2. Decompile your framework-res.apk
3. Now go to the extractred file and go to its framework-res folder and find the 2 folder(drawable-ldpi and layout) and copy it to your framework-res.apk/res/*here
4. Now after copying, compile your framework-res.apk now.
5. Now its finish, save it. But.. decompile your new framework-res.apk again. Why? To see the new public ids that had been registered.
Chapter 2. Subtitute the old GlobalAction troops with the new GlobalAction (ALL HAIL SOLDIERS.)
1. Pull your android.policy.jar
2. Decompile your android.policy.jar
3. Now delete all the GlobalActions.smali in com/android/internal/policy/impl also with the dollar sign, delete them all. No remnants will survive.
4. Lets go back to the zip that you had downloaded, check the com/android/internal/policy/impl folder, you will see a GlobalAction.smali with other co-smali. Copy all of them and paste it to your decompiled android.policy.jar.
Chapter 3. Substitution of IDs (NO ID NO ENTRY)
1. Go to your decompiled new framework-res.apk/res/values/public.xml
2. Take note of the following ids that had been added at chapter 1. Maybe you write them, memorize or what so ever. Mainly they are the
<public type="id" name="soundpanel1" id="0x010202aa" />
<public type="id" name="soundpanel2" id="0x010202ab" />
<public type="id" name="soundpanel3" id="0x010202ac" />
<public type="drawable" name="ic_lock_reboot" id="0x010803ed" />
<public type="drawable" name="ic_lock_screenshot" id="0x010803ef" />
<public type="layout" name="global_actions_jbsoundpanel" id="0x01090092" />
Click to expand...
Click to collapse
(Our ids may vary depending on the number that had been registered, but here is mine as an example)
3. Go to your android.policy.jar(the one with a new GlobalAction man ) Open the GlobalActions.smali
4. Find the "0x10803ef" without quotation. and replace it with corresponding id of your "ic_lock_reboot"
Mine was 0x010803ed, so I changed 0x10803ef to 0x010803ed
5. Same with screenshot button, find "0x10803f0" and replace it with the id of "ic_lock_screenshot"
6. Save your GlobalActions.smali
Chapter 4. Making the ultimate weapon of the story. (LAZZEERRRR ZWORD!)
1. Go to GlobalActions$JBSoundPanel.smali in your android.policy.jar and open it.
2. Find "0x1090093" and replace it with the id of your "global_actions_jbsoundpanel" layout.
3. Now this will be the hardest, really hard. ...
4. Find " .array-data 0x4" , below it you will see a three (musketteers/weirdos/hex) and end with ".end array-data" right?
Additional Info: They are the ids soundpanel1, soundpanel2, soundpanel3. The order were ,soundpanel1 at the top id array, at the middle id array was the soundpanel2 and the bottom id array was soundpanel3.
Example(The given):
0xabt 0x2t 0x2t 0x1t #soundpanel1
0xact 0x2t 0x2t 0x1t #soundpanel2
0xadt 0x2t 0x2t 0x1t #soundpanel3
When they are converted, they where be
<public type="id" name="soundpanel1" id="0x010202ab" />
<public type="id" name="soundpanel1" id="0x010202ac" />
<public type="id" name="soundpanel1" id="0x010202ad" />
Take a look at "0xabt 0x2t 0x2t 0x1t", So the logic in this will be,
1st 5 digit is the 2digit to the last of the ids
2nd 4digit is the 2 digit before the last 2 ids
3rd 4digit is the 2 digit before the before of the last 2 digit
4th 4digit is the 4 digit at the beginning of the public id.
As my case I have an id of
0x10202aa so it will be 0xaat 0x2t 0x2t 0x1t
Click to expand...
Click to collapse
(NEVER EVER FORGET THE T.)
5. Save the file
6.Recompile your android.policy.jar
7. Push/Flash the new framework-res.apk and android.policy.jar
8. Dont worry there will be NO bootloop will occur, if problem exist, take a logcat in the error. I am not a fortune teller(just a handsome man.)
Click to expand...
Click to collapse
Download link:
The zip, the protagonist of the story,
https://drive.google.com/file/d/0B2tO5pSUM6fpa00zRF9sMUlsUzg/edit?usp=sharing
Click to expand...
Click to collapse
Credits:
squadzone, for the CMX Source of him
mariozawa for teaching me how to use broadcast intent properly.
spacecaker, for comparing mine from his
kahvitahra, for the hotboot idea and the usage in alert dialog builder in Windows
ocoot and lidroid, for the screenshot and reboot png
Click to expand...
Click to collapse
Take note(Commercial):
I gonna advertise PxL now , it has like this and it has more features than this. Spare me.
I advertise PotatoInc of mariozawa too, that freaking awesome mod at its madness.
Dont forget to press thanks button.
Also, be careful of the "0x010202ab" whenever you are putting it in smali, delete the second zero athe beginning, so it will be like this, "0x10202ab" this issue occurs in apktool.
And I feel sorry because I am messing up this thread since I want to make it lively. I am a crazy ass man, sorry admins :3
Click to expand...
Click to collapse
Greets,
PineappleOwl
Reserved for the sidequest of the ZIP
BEHOOOOLD OF THE MIGHTY EPM (or whatever that name is)
Mranggapo said:
BEHOOOOLD OF THE MIGHTY EPM (or whatever that name is)
Click to expand...
Click to collapse
I just only copy the name from somewhere guide. HAHAHA. Deymm.
I will try this Ultimate Weapon. XD
PineappleOwl said:
I just only copy the name from somewhere guide. HAHAHA. Deymm.
Click to expand...
Click to collapse
noob question sir, i just want to know what is the main difference between your mod and this (except those icons at bottom of menu)
TIA !
AbhiLP said:
noob question sir, i just want to know what is the main difference between your mod and this (except those icons at bottom of menu)
TIA !
Click to expand...
Click to collapse
Hello. Sir bumslayer guide only covers up the reboot button. But mine was i added screenshot and soundpanels hehe
hmm... look like cmx
nice guide
will try
Minions_Army said:
hmm... look like cmx
nice guide
will try
Click to expand...
Click to collapse
I forked CMX hehehe .
i think i've seen this before... hell yeah from spacecaker's github nice guide bro! i'm making an API for view theming, like position changing and color changing, well i dont think you guys need it
AuliaYF said:
i think i've seen this before... hell yeah from spacecaker's github nice guide bro! i'm making an API for view theming, like position changing and color changing, well i dont think you guys need it
Click to expand...
Click to collapse
He has but we are kinda bit similar I fork from CMX. ?
It will be a giant leap to our device. Good luck buddy ?
Any help? http://pastebin.com/HBR333k9
AWESOME GUIDE I looking for JB SoundPanel
And its work like a charm
Oh yea this is so awesome
Do I smell a version 3 of your StockRedux Sir ?
Nice guide thank you.
aldzi said:
Any help? http://pastebin.com/HBR333k9
Click to expand...
Click to collapse
What did you do sir?
TheNightBaron said:
Oh yea this is so awesome
Do I smell a version 3 of your StockRedux Sir ?
Nice guide thank you.
Click to expand...
Click to collapse
Oh there still someone who knew it
Good work bro! Try making a xposed module
Sent from moon
PineappleOwl said:
What did you do sir?
Oh there still someone who knew it
Click to expand...
Click to collapse
when recompile the jar i got error sir,and that is the log and i using latest backsmali manager
i have idea
porting volume slider look like JB
but use source from cmx
i try to port this but failed..may be im very noob in java
m4RinKo2 said:
Good work bro! Try making a xposed module
Sent from moon
Click to expand...
Click to collapse
Hehe i dont know yet how but ill do it if i need hehehe
aldzi said:
when recompile the jar i got error sir,and that is the log and i using latest backsmali manager
Click to expand...
Click to collapse
Try apktool hehe
Minions_Army said:
i have idea
porting volume slider look like JB
but use source from cmx
i try to port this but failed..may be im very noob in java
Click to expand...
Click to collapse
Try modding by GB, CMX has some backported packages.?
Minions_Army said:
i have idea
porting volume slider look like JB
but use source from cmx
i try to port this but failed..may be im very noob in java
Click to expand...
Click to collapse
i'm a litle bit confused, stock volume popup using Toast and setView method, but if i put seekbar in it, the popup only appear by it's duration.
Related
I've been attempting to get into theming, one thing i'd like to do is make the notification background transparent like I've seen in some roms. However, I haven't been able to edit the xml files necessary. I've tried notepad++ and some xml editors but I'm just seeing garbled stuff. Would someone give me some pointers?
Thanks
Sent from my HTC One using Tapatalk 2
You need to decompile the apk before you can edit xml files. There are many ways to do this, APK Manager etc.
sensationfan623 said:
I've been attempting to get into theming, one thing i'd like to do is make the notification background transparent like I've seen in some roms. However, I haven't been able to edit the xml files necessary. I've tried notepad++ and some xml editors but I'm just seeing garbled stuff. Would someone give me some pointers?
Thanks
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=39289948
Thanks for the replies! This was great. Now I just need to figure out what to change to get what I want
sensationfan623 said:
Thanks for the replies! This was great. Now I just need to figure out what to change to get what I want
Click to expand...
Click to collapse
If your wanting the notification shade transparent you need to look in systemui/res/layout/statusbar_expanded.xml. Top line in the file just look for this
Code:
android:background="@*android:color/black"
replace it with
Code:
android:background="#88000000"
of course you need to change the code to what you want 88000000 is just a semi transparent color as an example. the 4.2.2 eqs is another story. I can tell you how to do that too if you want.
rayford85 said:
If your wanting the notification shade transparent you need to look in systemui/res/layout/statusbar_expanded.xml. Top line in the file just look for this
Code:
android:background="@*android:color/black"
replace it with
Code:
android:background="#88000000"
of course you need to change the code to what you want 88000000 is just a semi transparent color as an example. the 4.2.2 eqs is another story. I can tell you how to do that too if you want.
Click to expand...
Click to collapse
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
nightrainbow said:
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
Click to expand...
Click to collapse
I'm sure you could, but I've never tried it. Wouldn't know where to look
rayford85 said:
If your wanting the notification shade transparent you need to look in systemui/res/layout/statusbar_expanded.xml. Top line in the file just look for this
Code:
android:background="@*android:color/black"
replace it with
Code:
android:background="#88000000"
of course you need to change the code to what you want 88000000 is just a semi transparent color as an example. the 4.2.2 eqs is another story. I can tell you how to do that too if you want.
Click to expand...
Click to collapse
If you're offering sure! That would look cool
Sent from my HTC One using Tapatalk 2
Thanks for offering some advice.
Sent from my HTC One using Tapatalk 2
No problem I was lucky enough to have guys like @he_stheone64 putting out tutorials when I started theming
4.2.2 eqs go to layouts folder in systemui find quick_settings.xml & quick_settings_tile.xml & find the background tag like this
Code:
android:background="@drawable/notification_panel_bg"
change it to a transparent color like....
Code:
android:background="#99000000"
do the same thing in both xml's for the background tag.
last go to res/values/drawables.xml & find this
Code:
<item type="drawable" name="quick_settings_tile_background">#ff161616</item>
change to...
Code:
<item type="drawable" name="quick_settings_tile_background">#99000000</item>
that's it for transparent quicksettings.
This is a lot easier than the process of elimination I've been going through. I've always liked you Viper guys, had it on my One S.
Sent from my HTC One using Tapatalk 2
rayford85 said:
No problem I was lucky enough to have guys like @he_stheone64 putting out tutorials when I started theming
4.2.2 eqs go to layouts folder in systemui find quick_settings.xml & quick_settings_tile.xml & find the background tag like this
Code:
android:background="@drawable/notification_panel_bg"
change it to a transparent color like....
Code:
android:background="#99000000"
do the same thing in both xml's for the background tag.
last go to res/values/drawables.xml & find this
Code:
<item type="drawable" name="quick_settings_tile_background">#ff161616</item>
change to...
Code:
<item type="drawable" name="quick_settings_tile_background">#99000000</item>
that's it for transparent quicksettings.
Click to expand...
Click to collapse
For someone who is just starting this whole theming business, do your have any recommendations on where to start? I could just poke around like I have been, but some direction would speed up the learning process
Sent from my HTC One using Tapatalk 2
nightrainbow said:
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
Click to expand...
Click to collapse
Replace the .9 images and that should work. If not then you need to decompile both systemui.apk and put in the raw .9.png's of the GE one into the Sense one and compile it.. I would suggest Removing the carrier on the pulldown, should be located in the statusbarexpanded.xml I did a similar mod to my old Note II.
{
"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"
}
nightrainbow said:
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
Click to expand...
Click to collapse
Just had a very quick look, but you can try the following:
Look for status_bar_expanded.xml in layout
Search for
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close_on"
The reference for the bg here is to the png in xxhdpi folder. What you need to try is changing that bg reference to the status_bar_close.xml in drawables folder, which is still there in Sense version. The code in status_bar_close.xml in drawables folder will help you, since it will choose the resources based on the state, see the following code snippet. I`m just explaining this, so you understand what you are doing here. So no need to change anything in that xml.
PHP:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" />
<item android:drawable="@drawable/status_bar_close_off" />
</selector>
So change the code in status_bar_expanded.xml to:
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close"
Now also add a status_bar_close_off.9.png to xxhdpi folder and amend the status_bar_close_on.9.png how you want to see it (or grab both pngs from GE SystemUI, those are in xhdpi folder there). This makes sure you have both the resources for on and off state available, which are pulled now by status_bar_close.xml, since you refered to that xml as background in your layout file. I did not test it, since I`m out traveling since nearly 2 weeks now, so no time atm.
can the guide linked be used to hide the statusbar clock ?
he_stheone64 said:
Just had a very quick look, but you can try the following:
Look for status_bar_expanded.xml in layout
Search for
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close_on"
The reference for the bg here is to the png in xxhdpi folder. What you need to try is changing that bg reference to the status_bar_close.xml in drawables folder, which is still there in Sense version. The code in status_bar_close.xml in drawables folder will help you, since it will choose the resources based on the state, see the following code snippet. I`m just explaining this, so you understand what you are doing here. So no need to change anything in that xml.
PHP:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" />
<item android:drawable="@drawable/status_bar_close_off" />
</selector>
So change the code in status_bar_expanded.xml to:
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close"
Now also add a status_bar_close_off.9.png to xxhdpi folder and amend the status_bar_close_on.9.png how you want to see it (or grab both pngs from GE SystemUI, those are in xhdpi folder there). This makes sure you have both the resources for on and off state available, which are pulled now by status_bar_close.xml, since you refered to that xml as background in your layout file. I did not test it, since I`m out traveling since nearly 2 weeks now, so no time atm.
Click to expand...
Click to collapse
I'm going to try it
I'll let you know
Appreciate it
TEAM REJECTZ QUICK JB FIX
There are some xml's that are in the MK4 rom apk's with missing values. Like missing style lines in the systemUI that won't let you compile, but to fix this just go to the bottom of the xml and replace what ever line thats missing with the APKTOOLDummy line.
Example: layout/systembar --------> line 14 @style/missingline <------ go to style and change it with the @style/APKTOOLDUMMY (this is just an example)
Since i did this for the E4GT and S3 i figured i would do the same here to get some more up in coming devs in here like in s3
went from a few devs to over 20+ rom and devs
Works on KitKat
1. You need to make sure you have the latest java
2. Download Notepad++ (google it) lol
3. Download the Team Rejectz Quick JB Fix (the latest one) which is linked below
Instructions Decompile/Recompile
1. UNzip and place the JB Quick Fix Folder on your c: drive and name it apktool
2. Since this is TW/CM10/10.1/10.2 you should drag your framework-res.apk, twframework-res.apk, and systemUI.apk onto the apktool-if cmd file
3. Now time to decompile. You can actually drag your apk from where ever its located but i suggest you place them in the Quick Fix folder.
and drag and drop it on top of the Quick-Deompile cmd file
4. To get an error less decompile i prefer you to use the stock apk
5. Once the decompile process is done. you can go into the apks folder that was created and make your edits with notepad++
warning if you create to many edits that would cause an error. then begin the process over but do them one by one
6. Now its time to recompile ^^^^^^^^^remember the warning^^^^^^^ drag and drop the apks folder on top of the Quick-Recompile cmd file
7. Now once your done go into the apks folder you should see dist folder. Your new compiled apk is located there. I prefer to just use the build folder and drag the things I need into the apk. Much easier. Also remember if any images has been added you need to make sure you drag the new arsc file because the public.xml may have been changed
8. Don't worry about signing the apk. All of your edits besides the ones in drawable folder will be in the resource.arsc file
9. Drag that file into the apk thats in the rom your editing
10. If you decide to edit the decompressed .9 images you can check my Team Rejectz Theme Cheat Sheet located >>>Here
Baksmali/Smali
1. Grab the apk/jar file you want to edit
2. Drag the classes.dex file out of the apk/jar file
3. Drag and drop the classes.dex file onto the Quick-Baksmali cmd file
4. A smali folder will be created
5. Now you can make your smali edit inside of the smali folder and close and save them.
6. After the edits and save, drag and drop the smali folder on top of the Quick-Smali cmd file
7. You should now see a new file called new-classes.dex. rename it to classes.dex
8. Finally drag the classes.dex file into the original apk/jar you pulled it from
If this helped you in anyway just hit that thanks button thanks!!!!!!!!!!
Download:
Team Rejectz Quick JB Fix 2.5
Change Log
Quick Fix 2.5
Faster Compile times and Less errors
Updated to apktool 1.5.2, left the older ones in
Updated aapt to most recent
Updated baksmali/smali to 2.0
Just wanted to pop in and drop a thanks for all of your contributions brother!
Sent from my SPH-L900 using XDA Premium 4 mobile app
patrick_1 said:
Just wanted to pop in and drop a thanks for all of your contributions brother!
Sent from my SPH-L900 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
no problem, i added this so people who have things in a apk, the don't like. they can change it on there own and not have to keep asking a dev to change the color of something or image. Thanks for looking IN AND YOUR WELCOME
Updating my FTW Rom should be done by this week
{
"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"
}
lorjay589 said:
Updating my FTW Rom should be done by this week
Click to expand...
Click to collapse
Hell yeah! Been running this since it first dropped! Will the update be 4.3 based?
Android...A New Digital Revolution Of Incredible Developers
ianmb said:
Hell yeah! Been running this since it first dropped! Will the update be 4.3 based?
Android...A New Digital Revolution Of Incredible Developers
Click to expand...
Click to collapse
Yep MK4 4.3 based
lorjay589 said:
Yep MK4 4.3 based
Click to expand...
Click to collapse
That's F-N AWESOME! Guess I'll wait for this to drop so I don't have to do the whole un root and update stuff. Thanks for doing this!
God speed bro!
Android...A New Digital Revolution Of Incredible Developers
Lol just checking back in to see if the new rom dropped yet or maybe seeing if you need a Beta Tester lol
Sent from my SPH-L900 using xda premium
Great work !
Will all this stuff eventually be incorporated into a one zip flashable rom? I'm not experienced enough to do the instructions. I know how to back up, flash and titanium but the instructions listed in the OP are beyond me. I usually wait for a video to come around from wwjoshdew or someone and follow the steps. T.I.A. love the new update. I've done the 4.4 and "pure Google experience" etc... I have to admit I really like the TW features. There fun, funtional, makes using the phone easier and great ways to show off. This 4.3 update is very cool.
Sent from my SPH-L900 using xda app-developers app
lorjay589 said:
TEAM REJECTZ QUICK JB FIX
There are some xml's that are in the MK4 rom apk's with missing values. Like missing style lines in the systemUI that won't let you compile, but to fix this just go to the bottom of the xml and replace what ever line thats missing with the APKTOOLDummy line.
Example: layout/systembar --------> line 14 @style/missingline <------ go to style and change it with the @style/APKTOOLDUMMY (this is just an example)
Click to expand...
Click to collapse
The_Plattypus gets all credit for showing this to me;
Instead of replacing the lines with APK Dummies, the actual missing lines are ;
Code:
<style name="SystemBarNotificationText">
<item name="android:textSize">16sp</item>
<item name="android:textColor">#de </item>
</style>
<style name="SystemBarPanelSettingsRow">
<item name="android:paddingRight">16dp</item>
<item name="android:layout_height">64dp</item>
<item name="android:layout_width">match_parent</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">?android:attr/listChoiceBackgroundIndicator</item>
</style>
<style name="SystemBarPanelSettingsIcon">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">64dp</item>
<item name="android:scaleType">center</item>
</style>
<style name="SystemBarPanelSettingsContents">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_gravity">left|center_vertical</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textSize">18sp</item>
</style>
<style name="SystemBarPanelSettingsPanelSeparator">
<item name="android:layout_marginRight">0dp</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">@android:drawable/divider_horizontal_dark</item>
</style>
Confirmed systemUI will compile without errors on Lorjays stock deodexed.
Sent from my SPH-L900 using Tapatalk
elijahbrown said:
<item name="android:textColor">#de </item>
Click to expand...
Click to collapse
This seems to make it toss an error for me.
C:\apktool\SystemUI\res\values\styles.xml:165: error: Error: Color value not val
id -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'android:textColor' with va
lue '#de ').
Arjohns said:
This seems to make it toss an error for me.
C:\apktool\SystemUI\res\values\styles.xml:165: error: Error: Color value not val
id -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'android:textColor' with va
lue '#de ').
Click to expand...
Click to collapse
Thats not color value, it has to be like this #ff000000 <--- which is black
lorjay589 said:
Thats not color value, it has to be like this #ff000000 <--- which is black
Click to expand...
Click to collapse
Yeah thats what I figured lol.
Arjohns said:
This seems to make it toss an error for me.
C:\apktool\SystemUI\res\values\styles.xml:165: error: Error: Color value not val
id -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'android:textColor' with va
lue '#de ').
Click to expand...
Click to collapse
Makes sense that it would, though I'm not sure how it ended up in there. Just need to put in a valid hex color. #ff000000 being straight black, #ffffff pure white.
The error gives you a layout for putting in whatever color you want. aa = alpha (transparency) rr=red gg=green bb=blue in values from 0-9,a-f.
Keep in my mind you will probably never see these styles in a standard rom or theme so I wouldn't fret too much about getting the color just right.
Sent from my SPH-L900 using Tapatalk
elijahbrown said:
Makes sense that it would, though I'm not sure how it ended up in there. Just need to put in a valid hex color. #ff000000 being straight black, #ffffff pure white.
The error gives you a layout for putting in whatever color you want. aa = alpha (transparency) rr=red gg=green bb=blue in values from 0-9,a-f.
Keep in my mind you will probably never see these styles in a standard rom or theme so I wouldn't fret too much about getting the color just right.
Sent from my SPH-L900 using Tapatalk
Click to expand...
Click to collapse
Thanks. I am aware of the xml edits for colors as I used to pull image files and such from Mixer theme for CM. I was pushing them back to his cm 7 theme so that people running older devices (like I was at the time) could have his updates. Eventually I started playing with making a CM10 theme for personal use...dropped that real quick like, as I dont have the patience for it lmao. So I give any themer mad props. Also Lorjay, love the quick compile/decompile you gave out here. Makes things so much easier then manually typing it out in cmd.
Arjohns said:
Thanks. I am aware of the xml edits for colors as I used to pull image files and such from Mixer theme for CM. I was pushing them back to his cm 7 theme so that people running older devices (like I was at the time) could have his updates. Eventually I started playing with making a CM10 theme for personal use...dropped that real quick like, as I dont have the patience for it lmao. So I give any themer mad props. Also Lorjay, love the quick compile/decompile you gave out here. Makes things so much easier then manually typing it out in cmd.
Click to expand...
Click to collapse
Word. Didn't mean to make it seem like you needed the crash course (you probably wouldn't have gotten that far if you did.)
The original plan was to just edit the post but Tapatalk is not letting me change anything past what I quoted from Lorjay, so I just followed it up with fix for anybody reading the thread.
Sent from my SPH-L900 using Tapatalk
elijahbrown said:
Word. Didn't mean to make it seem like you needed the crash course (you probably wouldn't have gotten that far if you did.)
The original plan was to just edit the post but Tapatalk is not letting me change anything past what I quoted from Lorjay, so I just followed it up with fix for anybody reading the thread.
Sent from my SPH-L900 using Tapatalk
Click to expand...
Click to collapse
Oh no, I didnt mean anything with my post other than i figured that was the problem. I just assumed initially that maybe #de would call something like default or something lmao. Im always learning new stuff so I figured hell who knows what it does and tried it that way first. And your post definitely helped get SystemUI to compile. So I give you some thanks as well for helping out. Its been about a year since I used apktool or even tried to decompile/recompile anything, so luckily you two were here to save my arse :good:
@lorjay589 hi guys, can someone give me a link, the one in the post is dead
Swipe to kill recent Apps
{
"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"
}
***Thread Revamped***
What's Hot?
-Easy and noob friendly thread. Thanks to sir @SpaceCaker, no-ids method
-Added Flag: FLAG_SHOW_WALLPAPER (Like on JB)
-Relayout appsview_item, (JB-look)
-added click-change color (See screenshot)
-transparent list selector, when clicking.
-Kills everybody except com.android.stk (Sim toolkit) because it restarts the signals
-automatically dismisses the recent lists when you swipe it all or you click on the outside
of listview.
What's Not?
-A little bit laggy when swiping (it's only little, trust me.)
-Fast swiping may cause autoreboot (IndexOutOfBoundsException)
-It just kills the app, but it doesn't remove it from recent lists. It means that if you reopen
the recent lists, the apps that has been swiped will show again. (GB limitations </3)
-no app screenshot
Video (OUTDATED):http://www.youtube.com/watch?v=iQGq3XhWkQE
Click to expand...
Click to collapse
Things you need:
Just be yourself. HAHA. xD I know it's very short now. As in very very short. That ids method from sir SpaceCaker was very helpful on cleaning my guide
Steps
1.) decompile android.policy.jar.
2.) download policy_swipe.zip on attachment and extract it on smali/com folder.
3.) recompile your android.policy.jar
4.) decompile framework-res.apk
5.) download framework_swipe.zip and extract it on res folder
6.) go to res/values/ids.xml and add this before </resources>:
LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
<item type="id" name="ll">false</item>
<item type="id" name="iVIcon">false</item>
<item type="id" name="tVName">false</item>
<item type="id" name="mainlayout">false</item>
<item type="id" name="swiperecent">false</item>
<item type="id" name="taskman">false</item>
<item type="id" name="noapps">false</item>
</resources>
7.) Save. Now open res/values/drawables.xml and add this before </resources>
LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
<item type="drawable" name="normal">#ffe1e1e1</item>
<item type="drawable" name="pressed">#bbe1e1e1</item>
</resources>
8.) Save and recompile all and flash it (Dont push!). If it works, Jump! if not, post a logcat so we can easily track the bug.
Sources
Github Swipe Recent Apps
Credits
Roman [email protected]
[email protected]
NineOldAndroids
StackoverFlow.com
@SpaceCaker
@PineappleOwl
@mariozawa
Lenox Devs
Potato Inc
Help
For those who want to change the intent of task manager and also if the task manager button is not working:
Open RecentApplicationsDialog$2.smali and go to .line 86:
You will find this:
Code:
.line 86
.local v1, i:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "com.sec.android.app.controlpanel"
const-string v4, "com.sec.android.app.controlpanel.activity.JobManagerActivity"
This is the target package:
Click to expand...
Click to collapse
Code:
com.sec.android.app.controlpanel
Change this to:
Click to expand...
Click to collapse
Code:
com.android.settings
After that, Change also this, This is the target class:
Click to expand...
Click to collapse
Code:
com.sec.android.app.controlpanel.activity.JobManagerActivity
To this:
Click to expand...
Click to collapse
Code:
"com.android.settings.RunningServices"
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
.line 86
.local v1, i:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "com.android.settings"
const-string v4, "com.android.settings.RunningServices"
How to change the background of recent dialog list:
1.) Open framework-res/res/layout/recent_apps_dialog.xml
Add this on the top line:
Code:
android:background="#DesireHexCode"
2.) Change it to your desire hexcode/gradient/background/drawable/png.
Save and recompile. A big thanks for this people @SK(SurajKumar) , @pritish sahoo and @sssomnath474 :good: :good: :good:
Looks cool ..amazing work :good:
Awesome. It work on me But can i know how to make the app view look like ICS/JB
A big Thank... :good:
cooolll.. will try soon.
hahaha good job sir,
GSculerlor said:
Awesome. It work on me But can i know how to make the app view look like ICS/JB
Click to expand...
Click to collapse
Modify the appview_item.xml on framework-res/res/layout sir I dont know how to get the screenshot of the app, I think we dont have that haha
could you make this for other roms such as CM7 based so we can flash it, I would do it myself but my computer is broken.
faZevoLv said:
could you make this for other roms such as CM7 based so we can flash it, I would do it myself but my computer is broken.
Click to expand...
Click to collapse
sorry sir, i rarely use other roms, you can do it sir on apktool mobile, but patience is needed xD
tentenponce said:
sorry sir, i rarely use other roms, you can do it sir on apktool mobile, but patience is needed xD
Click to expand...
Click to collapse
Its okay, great job btw
faZevoLv said:
could you make this for other roms such as CM7 based so we can flash it, I would do it myself but my computer is broken.
Click to expand...
Click to collapse
I tried it on cm7 - didnt work - it uses different xmls and smalis I think
Nothing happend when you long press
I logcatted it if you wanna see
I only did it quickly so apologies if I did miss anything - if the op could test it on cm7 and confirm that would be useful to others
logcat in attachment
update - the phone does bootloop if used with cm7 - see my post on next page for logcat
nice guide sir tenten pinoy rocks :good:
Please share!
ah tentenponce, Can you share your framework.apk? hehe I wants to make transparent app view like yours, thanks
datvui2211 said:
ah tentenponce, Can you share your framework.apk? hehe I wants to make transparent app view like yours, thanks
Click to expand...
Click to collapse
The background of mine was not transparent haha its gradient semi transparent. Can you show your screenshot? I might be wrong.
marcussmith2626 said:
I tried it on cm7 - didnt work - it uses different xmls and smalis I think
Nothing happend when you long press
I logcatted it if you wanna see
I only did it quickly so apologies if I did miss anything - if the op could test it on cm7 and confirm that would be useful to others
logcat in attachment
Click to expand...
Click to collapse
Sir, i cant find the error on your logcat, whats happening after you long press the home button sir? does your phone goes hotboot? or just nothing happen? because on your logcat, there's no dialog or androidruntime that has a connect on recentappsdialog. Try to put on filter, androidruntime and choose error sir.
tentenponce said:
The background of mine was not transparent haha its gradient semi transparent. Can you show your screenshot? I might be wrong.
Click to expand...
Click to collapse
It's ok, just share it
This is mine
Sent from my GT-S5360 using Tapatalk 2
tentenponce said:
Sir, i cant find the error on your logcat, whats happening after you long press the home button sir? does your phone goes hotboot? or just nothing happen? because on your logcat, there's no dialog or androidruntime that has a connect on recentappsdialog. Try to put on filter, androidruntime and choose error sir.
Click to expand...
Click to collapse
I couldnt see the error either
Just nothing happens - the phone vibrates and nothing happens - I'll look at it again later
datvui2211 said:
It's ok, just share it
This is mine
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Why its not swipe? its the stock recent application list.
marcussmith2626 said:
I couldnt see the error either
Just nothing happens - the phone vibrates and nothing happens - I'll look at it again later
Click to expand...
Click to collapse
Maybe sir you forgot something? I dont know too sir, I dont have enough knowledge about other roms. sorry sir
HOW TO GET KITKAT/JB/ICS TITLE BAR ON GINGERBREAD DEVICES
THIS GUIDE IS TOTALLY MADE BY ME.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I KNOW THERE'S ALREADY A GUIDE FOR THIS BY SIR SPACECAKER. BUT THIS ONE IS TOTALLY DIFFERENT FROM THAT ONE. AND IN THIS GUIDE, THE TITLE BAR DOESN'T SCROLL WITH SCROLLING WINDOWS CONTENT
REQUIREMENTS:
1. APKTOOL
2. PC WITH JDK Installed.
3. framework-res.apk,twframework-res.apk, Services.jar,Settings.apk or any other apk you want to apply Kitkat/JB/ICS title bar to.
4. KNOWLEDGE ABOUT DECOMPILING, RECOMPILING, EDITING ETC(Don’t ask me how to do that. Use xda search options instead)
5. PATIENCEIF YOU’VE ACCESS TO ALL THE REQUIRED STUFF, YOU CAN PROCEED WITH PROCEDURE.
HOW TO APPLY KITKAT/JB/ICS TITLE BAR IN SETTINGS
1. First decide which type of title bar you want in your Rom. Then download its zip from below(ICS, JB, OR KITKAT TITLE BAR).
2. Now decompile framework-res.apk.
3. Now extract the content of downloaded zip in decompiled framework-res.apk.
4. Now open /decompiled_framework-res.apk/res/values/styles.xml and add this above this line "</resources>"
Code:
<style name="Theme.sett" parent="@style/Theme">
<item name="windowTitleSize">@dimen/akrtb</item>
<item name="windowTitleStyle">@style/WindowTitlesettt</item>
<item name="windowTitleBackgroundStyle">@style/settt</item>
</style>
<style name="settt">
<item name="background">@drawable/djbtitle</item>
</style>
<style name="WindowTitlesettt">
<item name="textAppearance">@style/TextAppearance.WindowTitle.sett</item>
<item name="singleLine">true</item>
<item name="drawableLeft">@drawable/set_akr_m</item>
</style>
<style name="TextAppearance.WindowTitle.sett" parent="@style/TextAppearance">
<item name="textSize">19.0sp</item>
<item name="textStyle">normal</item>
<item name="textColor">#ffffffff</item>
</style>
<style name="Theme.sett_i" parent="@style/Theme">
<item name="windowTitleSize">@dimen/akrtb</item>
<item name="windowTitleStyle">@style/WindowTitlesettt_i</item>
<item name="windowTitleBackgroundStyle">@style/settt</item>
</style>
<style name="WindowTitlesettt_i">
<item name="textAppearance">@style/TextAppearance.WindowTitle.sett</item>
<item name="singleLine">true</item>
<item name="drawableLeft">@drawable/set_akr_i</item>
</style>
Now open /decompiled_framework-res.apk/res/values/dimens.xml and add this above this line "</resources>"
Code:
<dimen name="akrtb">50.0dip</dimen>
5. Now recompile framework-res.apk and install the new framework-res.apk again using "apktool if framework-res.apk" command in command prompt. and do same with "twframework-res.apk" using this "apktool if twframework-res.apk" command.
6. Now decompile Settings.apk and open /decompiled_Settings.apk/AndroidManifest.xml. after uses-permission codes, it looks like this (see pic below).
You have to add these highlightes codes in your AndroidManifest.xml in same place
Code:
android:theme="@android:style/Theme.sett_i"
android:theme="@android:style/Theme.sett"
7. Now recompile your Settings.apk and don’t forget to sign it because we have changed AndroidManifest.xml. Now you need to disable Signature verifications in your Services.jar otherwise Settings.apk will not work.
HOW TO DISABLE SIGNATURE VERIFICATIONS IN SERVICES.JAR
a. Decompile Services.jar and open /decompiled_Services.jar/smali/com/android/server/packagemanagerservice.smali and look for this code :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1922
and modify it like this :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1922
const/4 v6, 0x0
8. Now push all the three files(Settings.apk, framework-res.apk and Services.jar) in your Phone using adb, or by making flashable zip or by any means.
HOW TO APPLY KITKAT/JB/ICS TITLE BAR IN USER APPS
1. First Decompile the apk you want to have this title bar. Lets say “xyz.apk”
2. Now extract the downloaded folder in your decompiled apk.
3. Now open /decompiled_xyz.apk/res/values/Styles.xml and add this above this line
"</resources>"
Code:
<style name="Theme.akr.xyz" parent="@android:style/Theme">
<item name="android:windowTitleSize">50.0dip</item>
<item name="android:windowTitleStyle">@style/WindowTitleakr_xyz</item>
<item name="android:windowTitleBackgroundStyle">@style/akr_xyz</item>
</style>
<style name="akr_xyz">
<item name="android:background">@drawable/djbtitle</item>
</style>
<style name="WindowTitleakr_xyz">
<item name="android:textAppearance">@style/TextAppearance.WindowTitle.akr</item>
<item name="android:singleLine">true</item>
<item name="android:drawableLeft">@drawable/set_akr_m</item>
</style>
<style name="TextAppearance.WindowTitle.akr" parent="@android:style/TextAppearance">
<item name="android:textSize">19.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
4. Now open directory /decompiled_xyz.apk/res/drawable-ldpi/ and change "set_akr_m.png" with the png you want to be shown on title bar and make sure that your png size doesn’t exceed 40x36 pixels.
5. Now open /decompiled_xyz.apk/AndroidManifest.xml and add this code after <application as you did in case of Settings.apk.
Code:
android:theme="@style/Theme.akr.xyz"
6. Recompile and sign it now. And install it
waw look like actionbar sherlock
nice +1
EDIT Need Help
after recompile framework-res.apk
i have a little problem
framework.apk\res\values\styles.xml:1075: error: Error: No resource found that matches the given name (at 'windowTitleSize' with value '@dimens/arktb
i have add dimens in values but cannot recompile
and settings.apk too
i has instaling framework-res.apk and twframework also
and in service jar has different smali..
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1946
this is in my service jar
attachement added if u want to help me
thanks a lot
great going
plsss tell... how to change the title bar color..
Minions_Army said:
waw look like actionbar sherlock
nice +1
Click to expand...
Click to collapse
hi Minions_Army,
don't forget to share screenshot after it is done.
Edit : Minions_Army, kindly attatch twframework-res.apk too from your phone.
qromwel said:
great going
Click to expand...
Click to collapse
Thanks bro
kartik verma said:
plsss tell... how to change the title bar color..
Click to expand...
Click to collapse
Hi Kartik Verma,
Edit this .9.png to change title bar background --> akrtbld.9.png(placed in drawable-ldpi)
Akshay Kumar Raheja said:
hi Minions_Army,
don't forget to share screenshot after it is done.
Edit : Minions_Army, kindly attatch twframework-res.apk too from your phone.
Thanks bro
Hi Kartik Verma,
Edit this .9.png to change title bar background --> akrtbld.9.png(placed in drawable-ldpi)
Click to expand...
Click to collapse
ure using galaxy pocket?
Minions_Army said:
ure using galaxy pocket?
Click to expand...
Click to collapse
No its pocket duos.(s5302). Just upload your twframework-res.apk. I'll do it for you
EDIT : one more thing btw, check your framework-res.apk again. because in guide i've written to add "<item name="windowTitleSize">@dimens/akrtb</item>" but in your previous reply, you wrote "<item name="windowTitleSize">@dimens/arktb</item>". i think this is where the problem is. anyways, just try it and if it doesn't work, send me twframework-res.apk, i'll do it for you
Akshay Kumar Raheja said:
No its pocket duos.(s5302). Just upload your twframework-res.apk. I'll do it for you
EDIT : one more thing btw, check your framework-res.apk again. because in guide i've written to add "<item name="windowTitleSize">@dimens/akrtb</item>" but in your previous reply, you wrote "<item name="windowTitleSize">@dimens/arktb</item>". i think this is where the problem is. anyways, just try it and if it doesn't work, send me twframework-res.apk, i'll do it for you
Click to expand...
Click to collapse
thanks man
tw framework added
does the back function work?
Minions_Army said:
thanks man
tw framework added
Click to expand...
Click to collapse
Hi Minions_Army, please check your twframework-res.apk again because i think you've attached wrong twframework-res.apk. i tried 3 times to decompile Settings.apk with framework-res.apk and twframework-res.apk(given by you ofcourse) installed but it always shows resources problems with twframework-res.apk. kindly check again and upload correct twframework-res.apk.
AuliaYF said:
does the back function work?
Click to expand...
Click to collapse
hi AuliaYF,
no it doesn't support back button function on title bar.
good bro:laugh::good:
hi AuliaYF,
no it doesn't support back button function on title bar.
Click to expand...
Click to collapse
okay then nice guide btw :good:
Akshay Kumar Raheja said:
Hi Minions_Army, please check your twframework-res.apk again because i think you've attached wrong twframework-res.apk. i tried 3 times to decompile Settings.apk with framework-res.apk and twframework-res.apk(given by you ofcourse) installed but it always shows resources problems with twframework-res.apk. kindly check again and upload correct twframework-res.apk.
hi AuliaYF,
no it doesn't support back button function on title bar.
Click to expand...
Click to collapse
oh sorry
i forget about this...u must install framework res.apk ics/jb/kk before decompile settings
Minions_Army said:
oh sorry
i forget about this...u must install framework res.apk ics/jb/kk before decompile settings
Click to expand...
Click to collapse
here it is. hope it works
if it works, great and if not then inform me along with logcat. but i'm sure that i'll work
EDIT : and one more thing, i've removed framework-res.apk. just don't worry about. make a flashable zip with these files (Settings.apk and Services.jar) and flash it.
Akshay Kumar Raheja said:
here it is. hope it works
if it works, great and if not then inform me along with logcat. but i'm sure that i'll work
EDIT : and one more thing, i've removed framework-res.apk. just don't worry about. make a flashable zip with these files (Settings.apk and Services.jar) and flash it.
Click to expand...
Click to collapse
thanks
ure cool man
Minions_Army said:
thanks
ure cool man
Click to expand...
Click to collapse
Yeah. Working but one problem seems like i reversed the pngs lol
Anyways no need to worry. Just follow these steps.
1. Decompile your current Settings.apk
2. Go to /Decompiled_Settings.apk/res/drawable-ldpi/ and search for these two pngs (set_akr_i.png and set_akr_m.png)
3. Now rename set_akr_m.png to set_akr_i.png.
And rename set_akr_i.png to set_akr_m.png
4. Recompile again and push in /system/app/here.
Sorry for the trouble actually i was doing some other work too while modding your Settings.apk and i probably mixed it up. Lol
AuliaYF said:
okay then nice guide btw :good:
Click to expand...
Click to collapse
back button support would be easy to add though, we can modify the Activity title layout in framework and make new imagebutton code in java with a Back button intent inside and then it would be working on almost 99% of all apps.
Sent from my Acer S500 CloudMobile
SpaceCaker said:
back button support would be easy to add though, we can modify the Activity title layout in framework and make new imagebutton code in java with a Back button intent inside and then it would be working on almost 99% of all apps.
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
oh you're right! but do we need to put this to the activity?
Code:
<activity
android:name=".B"
android:label="B"
android:launchMode="singleTop">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.app_name.A" />
</activity>
SpaceCaker said:
back button support would be easy to add though, we can modify the Activity title layout in framework and make new imagebutton code in java with a Back button intent inside and then it would be working on almost 99% of all apps.
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
that's great sir. if it works, we can have original like action bar on gingerbread devices too :good:
btw sir sorry but i don't know what you're talking about. i'm just a kid and have enough knowledge about structures of apks, xmls, layouts and how it works etc but don't have much idea about smali coding. hope you can help me to make the guide more better
EDIT : one more question sir, if we edit the activity title layout in framework-res.apk to have a back button image with a java code with a back button intend inside. it will be shown on all apps activities(including main activity too). will it not create problems? i mean main activity will also have a back button title bar and if we press it, it'll close the app? isn't it like that?
so i was thinking if there's a way to make two activity title bar layouts. one which will work for main activity of apps and another one which will work for other activities of apps.
Akshay Kumar Raheja said:
that's great sir. if it works, we can have original like action bar on gingerbread devices too :good:
btw sir sorry but i don't know what you're talking about. i'm just a kid and have enough knowledge about structures of apks, xmls, layouts and how it works etc but have no idea about smali coding. hope you can help me to make the guide more better
EDIT : one more question sir, if we edit the activity title layout in framework-res.apk to have a back button image with an java code with a back button intend inside. it will be shown on all apps activities(including main activity too). will it not create problems? i mean main activity will also have a back button title bar and if we press it, it'll close the app? isn't it like that?
so i was thinking if there's a way to make two activity title bar layouts. one which will work for main activity of apps and another one which will work for other activities of apps.
Click to expand...
Click to collapse
the only way to do the 'back' thing is using NavUtils(), and if we put inside framework the context becomes framework's context, not the application's context, the activity title layout created by framework, not the application, i tried
Power Widget
POTech Works
NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE!
UPDATES will be transfered HERE. Update is so easy now SWEAR
Hello XDA, how are everyone? Since I had my vacant time, I brought something, not so unique but I guess it worth to try. As the title implies, yeah its a Power Widget. Remember the CyanogenMod power widget, lidroid quickpanel, and spacecaker xperia toggle and everything that is similar to this, and yeah Im so old and outdated now but I should give it too. This was forked and derived from CyanogenMod 7.2 power widget.
This requires some patience to do, not like how SpaceCaker did. But if you insist to make it to a Super EZ guide, then I can make it(in humbly speaking)
Whats hot:
All lidroid features
22 Power Widgets all in all
Snappy and accurate PowerWidget
Consistent Wifi and Bluetooth name
Widget Threshold
Profile Button
Integrated in your SystemUI
Smart Settings
Click to expand...
Click to collapse
Whats not:
The Data icon isnt accurate much (Like lidroid does but working fine at dis/enabling)
Not Grid-like power widget, sarrey.
Click to expand...
Click to collapse
Note:
Let me know if there is a bug you encounter
Click to expand...
Click to collapse
Disclaimer:
I and XDA are not responsible for the Force Close. This guide was tested and working fine for 3 totoro. Take a backup first
Requirements:
Notepad++
Basic Android Modding Skills
The file in this third post named "powerwidget_v1.zip"
Your SystemUI
Apktool
Patience
And a lot of understading because my english is poor
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Instruction:
1. Extract the file downloaded given at the requirement
2. Decompile your SystemUI.apk using APK-Tool
3. Deploying the files
a. Put the res folder of the downloaded file to your decompiled SystemUI
b. Put the smali folder of the downloaded file to your decompiled SystemUI4. Compile your SystemUI.apk
5. After recompiling, decompile it again. (If you think Im trolling, no Im not, we just registered all the ids )
6. Now go to values/public.xml
Look for the following inside the public.xml because we will use it:
Layout
power_widget_button
power_widget_scrollview
Click to expand...
Click to collapse
Drawable
pxtoggles
Click to expand...
Click to collapse
Id
power_widget_button_custom
power_widget_button_image
power_widget_button_text
Click to expand...
Click to collapse
Mine was:
Code:
<public type="layout" name="power_widget_button" id="0x7f03000a" />
<public type="layout" name="power_widget_scrollview" id="0x7f03000b" />
<public type="drawable" name="pxtoggles" id="0x7f02009c" />
<public type="id" name="power_widget_button_custom" id="0x7f090026" />
<public type="id" name="power_widget_button_image" id="0x7f090027" />
<public type="id" name="power_widget_button_text" id="0x7f090028" />
7. Now we move to the smali,
8. Go to smali/com/pineappleowl/Powerwidget/
a. Inside that folder, find PowerWidget.smali
a1. Find "0x7f03000b" (no quotation mark symbol)
a2. Replace it with the ids of the "power_widget_scrollview" registered at public.xml
a3. Find "0x7f03000a"
a4. Replace it with the ids of the "power_widget_button" registered at public.xml
a5. Save and exit. b. Go to PowerButton.smali and same thing as what we did in PowerWidget.smali
b1. Find "0x7f090027" (no quotation mark symbol)
b2. Replace it with the ids of the "power_widget_button_image" registered at public.xml
b3. Find "0x7f090028" (no quotation mark symbol)
b4. Replace it with the ids of the "power_widget_button_text" registered at public.xml
b5. Find "0x7f090026" (no quotation mark symbol)
b6. Replace it with the ids of the "power_widget_button_custom" registered at public.xml
b7. Find "0x7f02009c" (no quotation mark symbol)
b8. Replace it with the ids of the "pxtoggles" registered at public.xml
b9. Save and Exit9. Go to res/layout/statusbar_expanded.xml and add this line to where you want the powerwidget to be located, (Bring the themer in you )
Code:
<com.pineappleowl.Powerwidget.PowerWidget android:layout_width="fill_parent" android:layout_height="wrap_content" />
10. Save and exit
11. Lastly, recompile again your SystemUI.
12. Of course, it wont work if it doesnt have Settings. Download the apk at the third post named " PWidget Settings Beta1.1.apk"
11. Enjoy bestfriend
Credits:
Android Open Source Program
CyanogenMod
Lidroid
PotatoInc
Mariozawa
My testers (You know who you are )
Greets,
PineappleOwl
Screenshots
{
"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"
}
FAQs
Q: Why dont you have a Grid like Power Widget?
A: Its worth the wait
Q: Why Power Widget again?
A: I had made it, and I want to share to everyone.
Q: Why the app beta?
A: Isnt properly theme and Ill add some functions for the future
Q: Is it open source?
A: I got it from open source Yeah. but PM me for what matters
Q: Its laggy?
A: It depends on the size of the picture
Q: Can I request a feature?
A: Sure if I can hehe, You can suggest what you want.Ill try to do it
Q: How can I donate you?
A: I dont have a donate link and its free.
Click to expand...
Click to collapse
Logs and Link
Download Link:
powerwidget_v1.zip
PWidget Settings Beta1.0.apk
Click to expand...
Click to collapse
LOGS:
Code:
[SIZE="3"][B]V1.0[/B]
Initial Release
[B]V1.1[/B]
Remodified ProfileButton (No more lags at start-up)
Removed cropping feature for JB and below due to the startActivityResult error I encounter
Kitkat had cropped feature COOL
Screenshot Button only now working in Galaxy Y GT-S5360 (Dont worry, it ninja moves when you are not a Galaxy Y user xD)[/SIZE]
PineappleOwl said:
Another reserved
Click to expand...
Click to collapse
sir can you make ss pls
carlo_autor said:
sir can you make ss pls
Click to expand...
Click to collapse
The screenshots are at the second post now heheh
Nice. zehahaha XD
i hope that someone put this into their rom, since i'm not good at compiling framework
good job @op
pitot0909 said:
Nice. zehahaha XD
Click to expand...
Click to collapse
"Zehahaha XD" you sounds familiar
gothed said:
i hope that someone put this into their rom, since i'm not good at compiling framework
good job @op
Click to expand...
Click to collapse
Its not in framework, its in SystemUI hehe
PineappleOwl said:
"Zehahaha XD" you sounds familiar
Its not in framework, its in SystemUI hehe
Click to expand...
Click to collapse
yes sir, i mean that one ,
but maybe i should try this one , since my brother also have 'virgin' totoro device
Thx, its work for my LG P713 (4.1.2)
the_vanya1 said:
Thx, its work for my LG P713 (4.1.2)
Click to expand...
Click to collapse
Really? Can you take a screenshot sir if its okay?
I use another lidroid mod. Music buttons are large. Reboot, shutdown dont work for me (its normal) and apture toggles. Profile picture dont apply.
the_vanya1 said:
I use another lidroid mod. Music buttons are large. Reboot, shutdown dont work for me (its normal) and apture toggles. Profile picture dont apply.
Click to expand...
Click to collapse
Oh thanks. Ill pinned that one for JB, Got to do the screencapture toggle and profile picture, how about profile name?
Its work and see this trouble (and change the Sync and Orientation toggle icons)
the_vanya1 said:
Its work and see this trouble
Click to expand...
Click to collapse
The screenshot, Ill be working on it. Because the intent was for Touchwiz. hmm, the music button gonna resize it now. About the settings, ll update it later or tomorrow. hehe thanks
PineappleOwl said:
Screenshots
FAQs
Click to expand...
Click to collapse
How did u reference the image ids.? Did u use package name instead?
samsoul16 said:
How did u reference the image ids.? Did u use package name instead?
Click to expand...
Click to collapse
reference? What does it mean? hehehe But I only did was to use BitmapDrawable. and sharedUserId trick
PineappleOwl said:
reference? What does it mean? hehehe But I only did was to use BitmapDrawable. and sharedUserId trick
Click to expand...
Click to collapse
I meant for linking an image in java file we used to write findviewbyid(r.id.data-on) for example what did u use instead of that
samsoul16 said:
I meant for linking an image in java file we used to write findviewbyid(r.id.data-on) for example what did u use instead of that
Click to expand...
Click to collapse
I used BitmapDrawable sir, I didnt used sharedpreference just bitmap.
The con is, you need to have a same sharedUID with the apks. and disable the signature too.
Im finding a way how to deal without disabling signature, I guess I ended up using sharepreference hehehe
Hi sir.. can we add something like this
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.DEVICE_POWER" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
in the androidmanifest.xml?
---------- Post added at 05:26 PM ---------- Previous post was at 05:21 PM ----------
and Sir.. can you make.. ===profile_picture=== file .. found in /data/data/cpm.pineappleowl.Settings
Set to RW-R-R..
coz i change it manually.. then reboot.. to appear in my SystemUi.. Sorry for my bad english..