Related
This guide will show you how to get small am\pm in status bar (Deodexed)
Things Needed:
Notepad ++
Tools
7zip
How to:
1. Unzip Tools folder to Desktop
2. Place Deodexed SystemUI.apk into folder
3. Hold shift key and Right click in folder. Then click `open command window here`
4. Type apktool d SystemUI.apk and hit enter. This will make a new folder called SystemUI
5. In that folder go to SystemUI/res/layout/tw_status_bar.xml and open with Notepad++
You will see this line:
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
6. Add: systemui:ampmSmall="true" to the end just before /> so it looks like:
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size"
android:textColor="#ff33b5e5" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" systemui:ampmSmall="true" />
That is it. You have small am\pm trouble is its a bit too small so lets make it bigger.
7. Go to SystemUI/smali/com/android/systemui/statusbar/policy/Clock.smali and open with Notepad++
8. Scroll down to the end of the file and near the end you will see:
Code:
invoke-direct {v4, v10}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
.local v4, formatted:Landroid/text/SpannableStringBuilder;
const/high16 v7, 0x3f00
.local v7, proportion:F
invoke-virtual {v10, v1},Ljava/lang/String;->indexOf(Ljava/lang/String;)I
9. Change const/high16 v7, 0x3f00 to const/high16 v7, 0x3f33 so it looks like:
Code:
invoke-direct {v4, v10}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
.local v4, formatted:Landroid/text/SpannableStringBuilder;
const/high16 v7, 0x3f33
.local v7, proportion:F
invoke-virtual {v10, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
10. Save both files and close Notepad++
11. Hold shift key and right click folder again. 12. Type apktool b SystemUI nSystemUI.apk this will make a file called nSystemUI.apk
13. Open both files with 7zip and copy META-INF and AndroidManifest.xml form original apk to new apk
14. Flash, Enjoy and hit the thanks button.
[GUIDE][4.1.1][4.1.2] Remove am/pm
Ok guys heres how to remove ampm from statusbar. I decided to re write the whole method to get rid of unwanted code and make it more efficient. You can still use both 12hr and 24hr.
Things Needed:
Notepad ++
Tools
7zip
How to:
1. Unzip Tools folder to Desktop
2. Place Deodexed SystemUI.apk into folder
3. Hold shift key and Right click in folder. Then click `open command window here`
4. Type apktool d SystemUI.apk and hit enter. This will make a new folder called SystemUI
5. Go to SystemUI/smali/com/android/systemui/statusbar/policy/Clock.smali and open with Notepad++
6. Scroll down to the end of the file and near the end you will see:
Code:
[CENTER].method final updateClock()V[/CENTER]
[CENTER](CODE)[/CENTER]
[CENTER].end method[/CENTER]
Replace whole thing with:
Code:
[LEFT].method final updateClock()V[/LEFT]
[LEFT] .locals 7[/LEFT]
[LEFT] invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getContext()Landroid/content/Context;[/LEFT]
[LEFT] move-result-object v3[/LEFT]
[LEFT] .line 201[/LEFT]
[LEFT] .local v3, context:Landroid/content/Context;[/LEFT]
[LEFT] invoke-static {v3}, Landroid/text/format/DateFormat;->is24HourFormat(Landroid/content/Context;)Z[/LEFT]
[LEFT] move-result v2[/LEFT]
[LEFT] invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;[/LEFT]
[LEFT] move-result-object v0[/LEFT]
[LEFT] .line 37[/LEFT]
[LEFT] .local v0, cal:Ljava/util/Calendar;[/LEFT]
[LEFT] .line 38[/LEFT]
[LEFT] .local v2, h:Z[/LEFT]
[LEFT] const/4 v3, 0x0[/LEFT]
[LEFT] .line 40[/LEFT]
[LEFT] .local v3, sdf:Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] if-nez v2, :cond_0[/LEFT]
[LEFT] .line 41[/LEFT]
[LEFT] new-instance v3, Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] .end local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] const-string v5, "h:mm"[/LEFT]
[LEFT] invoke-direct {v3, v5}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V[/LEFT]
[LEFT] .line 46[/LEFT]
[LEFT] .restart local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] :goto_0[/LEFT]
[LEFT] invoke-virtual {v0}, Ljava/util/Calendar;->getTime()Ljava/util/Date;[/LEFT]
[LEFT] move-result-object v5[/LEFT]
[LEFT] invoke-virtual {v3, v5}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;[/LEFT]
[LEFT] move-result-object v1[/LEFT]
[LEFT] .line 47[/LEFT]
[LEFT] .local v1, dte:Ljava/lang/String;[/LEFT]
[LEFT] invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/policy/Clock;->setText(Ljava/lang/CharSequence;)V[/LEFT]
[LEFT] return-void[/LEFT]
[LEFT] .line 43[/LEFT]
[LEFT] .end local v1 #dte:Ljava/lang/String;[/LEFT]
[LEFT] :cond_0[/LEFT]
[LEFT] new-instance v3, Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] .end local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] const-string v5, "HH:mm"[/LEFT]
[LEFT] invoke-direct {v3, v5}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V[/LEFT]
[LEFT] .restart local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]
[LEFT] goto :goto_0[/LEFT]
[LEFT].end method[/LEFT]
7. Save both files and close Notepad++
8. Hold shift key and right click folder again.
9. Type apktool b SystemUI nSystemUI.apk this will make a file called nSystemUI.apk
10. Open both files with 7zip and copy META-INF and AndroidManifest.xml form original apk to new apk
11. Flash, Enjoy and hit the thanks button.
Sorry for messy code. It changes the formatting when i post on here. Its good practice to keep code tidy
The attached apk is finished and is based on XXELL5. It has the theming show in screenshot.
Very nice, thank you for this.
I've tried porting over the am/pm and clock toggles to our phone but haven't had any success. Would you or anyone happen to know how to just disable the am/pm without the toggle mod (JB 4.1.2)?
tdunham said:
Very nice, thank you for this.
I've tried porting over the am/pm and clock toggles to our phone but haven't had any success. Would you or anyone happen to know how to just disable the am/pm without the toggle mod (JB 4.1.2)?
Click to expand...
Click to collapse
I will try write somthing up for you soon. I am going to add this as a toggle option in settings in a future rom so i will have to do it soon anyway.
No ampm Guide available in post #2
gharrington said:
No ampm Guide available in post #2
Click to expand...
Click to collapse
Ok, this is going to be fun to port over. My method section is completely different. I'm d/ling the stock LL5 rom to run a diff on clock.smali to see the changes. Thanks for all the help and going to the trouble of doing this btw.
tdunham said:
Ok, this is going to be fun to port over. My method section is completely different. I'm d/ling the stock LL5 rom to run a diff on clock.smali to see the changes. Thanks for all the help and going to the trouble of doing this btw.
Click to expand...
Click to collapse
No worries Mate.
absolutly brilliant my friend , , will give this guide a good shot
thanks so much for the contribution and sharing
vegeta1 said:
absolutly brilliant my friend , , will give this guide a good shot
thanks so much for the contribution and sharing
Click to expand...
Click to collapse
Any time mate.
gharrington said:
10. Open both files with 7zip and copy META-INF and AndroidManifest.xml form original apk to new apk
Click to expand...
Click to collapse
Quick question. . Why are you replacing the meta-inf and AndroidManifest.xml from the original apk into the newly compiled apk? I've never done that and my sysui seems to work fine (I'm a noob so pardon me if this is a lame question lol)
Sent from my giant i317 Pocket Monster
royalh said:
Quick question. . Why are you replacing the meta-inf and AndroidManifest.xml from the original apk into the newly compiled apk? I've never done that and my sysui seems to work fine (I'm a noob so pardon me if this is a lame question lol)
Sent from my giant i317 Pocket Monster
Click to expand...
Click to collapse
META-INF is to sign apk AndroidManifest.xml is just good practice helps to ilimnate problems from de/recompile.
Sent from my GT-I9300 using xda premium
Could I request a guide, if you may. I want to keep the AM/PM in my status bar but remove it from the pulldown. Something AOKP ROMs have.
iXanza said:
Could I request a guide, if you may. I want to keep the AM/PM in my status bar but remove it from the pulldown. Something AOKP ROMs have.
Click to expand...
Click to collapse
I don't have much time atm but I will see what I can do for you asap Its pretty easy to do. You after 4.1.2 or 4.2.1 not that there is much difference?
gharrington said:
I don't have much time atm but I will see what I can do for you asap Its pretty easy to do. You after 4.1.2 or 4.2.1 not that there is much difference?
Click to expand...
Click to collapse
4.1.2. Thanks mate.
iXanza said:
4.1.2. Thanks mate.
Click to expand...
Click to collapse
Here mate there are many ways to do it but this is the easiest!
1. Decompile .apk and open clock.smali with notepad++
2. Search for const/high16 v7, 0x3f00 in updateClock()V .method and add this directly under it.
Code:
iget-boolean v11, p0, Lcom/android/systemui/statusbar/policy/Clock;->mExpandedHeader:Z
if-eqz v11, :cond_n1
const/high16 v7, 0x0
:cond_n1
3. Recompile (remember to copy over META-INF from original .apk to new one) and zipalign.
Thanks this worked perfectly to remove AM/PM from my SGSII on 4.1.2!
Thanks worked perfectly on VZW Note II in tablet mode.
Sent from my Galaxy Note II
Hi OP, I'm searching for code to get rid of AM/PM for galaxy s4 jellybean 4.3, and your code works flawlessly. Many thanks for sharing!
hello everyone
iam here to make a tutorial thread to teach u guys to port and add various mods by urself...
All these tut will work or might work for JB+ fws
so lets start
REBOOT OPTIONS KK 4.4.2
USE THE RESOURCES ATTACHED BELOW (IF U HAVE ANY PROBLEMS DE/RECOMPILING ANDROID.POLICY.JAR USE THE smali.jar and backsmali.jar attached in the below resources)
framework-res.apk
-----------------
1 - Add to strings.xml:
Code:
<string name="reboot">@string/factorytest_reboot</string>
<string name="reboot_normal">@string/factorytest_reboot</string>
<string name="reboot_recovery">Recovery</string>
<string name="reboot_bootloader">Bootloader</string>
2 - Add to arrays.xml:
Code:
<string-array name="reboot_options">
<item>@string/reboot_normal</item>
<item>@string/reboot_recovery</item>
<item>@string/reboot_bootloader</item>
</string-array>
<string-array name="reboot_actions">
<item>now</item>
<item>recovery</item>
<item>bootloader</item>
</string-array>
3 - Add under \res\drawable-xxhdpi\ folder:
ic_lock_reboot.png
4 - Compile framework-res.apk
android.policy.jar
------------------
1 - Edit:
\com\android\internal\policy\impl\GlobalActions.smali
...LOOK FOR...
Code:
.line 252
.local v9, "quickbootEnabled":Z
:goto_3d
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;
const v2, 0x1080030
const v3, 0x10400cb
invoke-direct {v1, p0, v2, v3, v9}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;IIZ)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
[COLOR="Red"]
.line 282
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$12;
const v2, 0x108094c ----- HEX ID OF ic_lock_reboot.png ( make sure to change the hex id comparing ur Public xml )
const v3, 0x10407e8 ----- HEX ID OF reboot STRING ( make sure to change the hex id comparing ur Public xml )
invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$12;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z[/COLOR]
.line 283
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2 - Add these three new files:
GlobalActions$12$1.smali
GlobalActions$12$2.smali
GlobalActions$12.smali
3 - Done !!
BACK TO KILL APPS
framework-res.apk
-----------------
1 - Add to strings.xml:
Code:
<string name="back_longpress_kill_app_message">Application killed !!</string>
2 - Compile framework-res.apk
android.policy.jar
------------------
1 - Edit:
\com\android\internal\policy\impl\PhoneWindowManager.smali
...ADD...
# instance fields
Code:
.field mBackLongPressKillApp:Ljava/lang/Runnable;
...ADD... the red marked lines at the end of the method
.method public constructor <init>()V
.registers 7
.
.
.
.
.line 4986
new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$28;
invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$28;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManagerV
iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressKillApp:Ljava/lang/Runnable;
return-void
.end method
navigate to ---
.method public interceptKeyBeforeDispatching(Landroid/view/WindowManagerPolicy$WindowState;Landroid/view/KeyEvent;I)J
.
.
.
.
...LOOK FOR SOMETHING LIKE THIS IN THE METHOD
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mVolumeDownKeyConsumedByScreenshotChord:Z
.line 1909
:cond_6e
const-wide/16 v32, -0x1
goto :goto_51
.line 1917
:cond_71
const/16 v32, 0x3
move/from16 v0, v18
move/from16 v1, v32
if-ne v0, v1, :cond_17e
.line 1921
if-nez v9, :cond_e9
.line 1922
move-object/from16 v0, p0
iget-boolean v13, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeLongPressed:Z
...AND ADD SPACE and Insert the red marked lines (SEE SPACES)...
Code:
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mVolumeDownKeyConsumedByScreenshotChord:Z
.line 1909
:cond_6e
const-wide/16 v32, -0x1
goto :goto_51
.line 1917
:cond_71
[COLOR=Red]const/16 v32, 0x4
move/from16 v0, v32
move/from16 v1, v18 # <<< PAY ATTENTION HERE, IF YOU LOOK AT UPWARDS, v18 IS = .local v18, keyCode:I
if-ne v1, v0, :cond_7e
if-nez v9, :cond_7e
.line 157
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;
move-object/from16 v32, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressKillApp:Ljava/lang/Runnable;
move-object/from16 v33, v0
invoke-virtual/range {v32 .. v33}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
.line 158
:cond_7e
[/COLOR]
const/16 v32, 0x3
move/from16 v0, v18
move/from16 v1, v32
if-ne v0, v1, :cond_17e
.line 1921
if-nez v9, :cond_e9
.line 1922
move-object/from16 v0, p0
iget-boolean v13, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeLongPressed:Z
ONCE DONE REMOVE THE SPACES
...LOOK FOR SOMETHING...
invoke-virtual {v0, v1}, Lcom/android/internal/policy/impl/PhoneWindowManager;->showOrHideRecentAppsDialog(I)V
.line 2048
:cond_210
const-wide/16 v32, -0x1
goto/16 :goto_51
.line 2049
:cond_214
const/16 v32, 0xdb
move/from16 v0, v18
move/from16 v1, v32
if-ne v0, v1, :cond_259
.line 2050
if-eqz v9, :cond_242
.line 2051
if-nez v23, :cond_22c
.line 2052
const/16 v32, 0x0
move/from16 v0, v32
move-object/from16 v1, p0
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAssistKeyLongPressed:Z
...AND ADD SPACE and Insert the red marked lines (SEE SPACES)...
Code:
invoke-virtual {v0, v1}, Lcom/android/internal/policy/impl/PhoneWindowManager;->showOrHideRecentAppsDialog(I)V
.line 2048
:cond_210
const-wide/16 v32, -0x1
goto/16 :goto_51
.line 2049
:cond_214
[COLOR=Red]const/16 v32, 0x4
move/from16 v0, v32
move/from16 v1, v18 # <<< PAY ATTENTION HERE, IF YOU LOOK AT UPWARDS, v18 IS = .local v18, keyCode:I
if-ne v1, v0, :cond_1f0
if-eqz v9, :cond_1f0 # <<< PAY ATTENTION HERE, IF YOU LOOK AT UPWARDS, v9 IS = .local v9, down:Z
if-nez v23, :cond_1f0 # <<< PAY ATTENTION HERE, IF YOU LOOK AT UPWARDS, v23 IS = .local v23, repeatCount:I
.line 169
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;
move-object/from16 v32, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressKillApp:Ljava/lang/Runnable;
move-object/from16 v33, v0
invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J
move-result-wide v34
invoke-virtual/range {v32 .. v35}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
.line 170
:cond_1f0[/COLOR]
const/16 v32, 0xdb
move/from16 v0, v18
move/from16 v1, v32
if-ne v0, v1, :cond_259
.line 2050
if-eqz v9, :cond_242
.line 2051
if-nez v23, :cond_22c
.line 2052
const/16 v32, 0x0
move/from16 v0, v32
move-object/from16 v1, p0
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAssistKeyLongPressed:Z
.
.
.
.
.end method
ONCE DONE REMOVE THE SPACES
2 - Add these new file: in smali\com\android\internal\policy\impl (see attachment)
PhoneWindowManager$28.smali
3 - Done !!
Thank u...More guides will be ADDED ASAP
if u like my works consider donating me to buy some beers..:good:
Port apps from different API's
For more info for porting OEM apps follow this guide....
http://www.xda-developers.com/android/how-to-port-oem-specific-apps-to-other-devices/
Before porting any thing u need disable signature check (aka 'Super user mod')
u can fallow this guide to activate it...
http://forum.xda-developers.com/showthread.php?t=2458144
How to enable Xperia HOME.apk (Honami home) to support your framework
Decompile framework.jar
goto ...\android\content\res\Configuration.smali
...ADD NEW METHOD...
Code:
# virtual methods
.method public getLayoutDirection()I
.registers 2
.prologue
.line 1270
iget v0, p0, Landroid/content/res/Configuration;->screenLayout:I
and-int/lit16 v0, v0, 0xc0
shr-int/lit8 v0, v0, 0x6
add-int/lit8 v0, v0, -0x1
return v0
.end method
Reboot options for jb 4.3
So lets Start
Required
1-apktool
2-notepad++
3-some brains
Before u decompile anything see this Guide by @erorcun for how to compile a JB framework without bootloop..
http://forum.xda-developers.com/showthread.php?t=2321207
STEP-1
Decompile Framework-res.apk
goto to res/vlaues/arrays.xml
and add these lines at the end
Code:
<string-array name="reboot_options">
<item>@string/reboot_normal</item>
<item>@string/reboot_recovery</item>
<item>@string/reboot_bootloader</item>
</string-array>
<string-array name="reboot_actions">
<item>now</item>
<item>recovery</item>
<item>bootloader</item>
</string-array>
now goto res/values/strings
and add these lines at the end
Code:
<string name="reboot">Reboot</string>
<string name="reboot_normal">Reboot</string>
<string name="reboot_recovery">Recovery</string>
<string name="reboot_bootloader">Bootloader</string>
goto add the ic_lock_reboot.png which i have i provided in the resources attached below this post to drawablw-hdpi folder
so before compiling the framework-res.apk follow erorcun's guide to properly recompile framework-res.apk
once recompile is done ....decompile again to get the HEX ID's
STEP-2
decompile android.policy.jar
goto classout\com\android\internal\policy\impl
and add the 3 smali's files which i provided in the resources attached below
Now option classout\com\android\internal\policy\impl\GlobalActions.smali
and find these lines and add the red marked lines between them
Code:
.line 235
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;
const v2, 0x1080030
const v3, 0x10400fa
invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
[COLOR="Red"] .line 213
move-object/from16 v0, p0
iget-object v1, v0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080827
const v4, 0x104060b
move-object/from16 v0, p0
invoke-direct {v2, v0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$11;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z[/COLOR]
.line 260
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
now we need to assign the Hex id's as per ur Public.xml
NOTE: the hex id's might be different from mine and yours so be careful while comparing
new as per the above changes in GlobalActions.xml
assign the id's as below
<public type="drawable" name="ic_lock_reboot" id="0x01080827" />
Code:
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x[COLOR="red"]1080827[/COLOR]
<public type="string" name="reboot" id="0x0104060b" />
Code:
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080827
const v4, 0x[COLOR="red"]104060b[/COLOR]
Now option up classout\com\android\internal\policy\impl\GlobalActions$11.smali
find and replace the following
@line 70
<public type="string" name="reboot" id="0x0104060b" />
Code:
const v3, 0x[COLOR="red"]104060b[/COLOR]
@line 90
<public type="array" name="reboot_options" id="0x0107003b" />
Code:
const v3, 0x[COLOR="red"]107003b[/COLOR]
@line 105
<public type="string" name="ok" id="0x0104000a" />
Code:
const v2, 0x[COLOR="red"]104000a[/COLOR]
@line 147
<public type="bool" name="config_sf_slowBlur" id="0x0111000b" />
Code:
const v3, 0x[COLOR="red"]111000b[/COLOR]
now open up classout\com\android\internal\policy\impl\GlobalActions$11$2.smali
@line 59
<public type="array" name="reboot_actions" id="0x0107003c" />
Code:
const v2, 0x[COLOR="red"]107003c[/COLOR]
save it and recompile android.policy.jar
now push all the files into ut phone...will have the new Advanced reboot options
also need this
great mate! keep it coming!!!:highfive:
Awesome work bro!
I wanted this!
Will surely try it out as soon my laptop is fixed.
Great work sandy :good:
Cheers,
AJ
Cool Work Sandy Broooooo.. Waiting for more mods tutorial...
updated...see post #2
more to come..stay tuned
AWESOME!!!!!!
Thanks you!!!!!! :good:
#Sandy7, how to remap softkeys, without using xposed. I want menu key for recent apps, and longpress for menu.. is it possible?
Sandy7
Great tutor as always
@sandy7 bro, I am trying it out.
But, I am getting the following error while recompiling android.policy.jar (seems some issues whith the file that you have attached in OP)
Code:
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[27,4] Error for input '.parameter': Invalid directive
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[62,15] no viable alternative at input 'mgr'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[62,19] no viable alternative at input 'Landroid/app/IActivityManager;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[68,15] no viable alternative at input 'apps'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[68,20] no viable alternative at input 'Ljava/util/List;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[73,15] no viable alternative at input 'i$'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[73,18] no viable alternative at input 'Ljava/util/Iterator;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[88,15] no viable alternative at input 'appInfo'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[88,23] no viable alternative at input 'Landroid/app/ActivityManager$RunningAppProcessInfo;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[92,15] no viable alternative at input 'uid'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/internal/policy/impl/PhoneWindowManager$28.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Sent from my MT27i using XDA Premium 4 mobile app
tks bro ^^
cpkunki said:
@sandy7 bro, I am trying it out.
But, I am getting the following error while recompiling android.policy.jar (seems some issues whith the file that you have attached in OP)
Code:
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[27,4] Error for input '.parameter': Invalid directive
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[62,15] no viable alternative at input 'mgr'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[62,19] no viable alternative at input 'Landroid/app/IActivityManager;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[68,15] no viable alternative at input 'apps'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[68,20] no viable alternative at input 'Ljava/util/List;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[73,15] no viable alternative at input 'i$'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[73,18] no viable alternative at input 'Ljava/util/Iterator;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[88,15] no viable alternative at input 'appInfo'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[88,23] no viable alternative at input 'Landroid/app/ActivityManager$RunningAppProcessInfo;'
..\3-Out\android.policy.jar\smali\com\android\internal\policy\impl\PhoneWindowManager$28.smali[92,15] no viable alternative at input 'uid'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/internal/policy/impl/PhoneWindowManager$28.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Sent from my MT27i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
well even i got the same errors for jb4.3
but they work fine for 4.1..
ill remod the files and update the tutorial ..give me few days.
sandy7 said:
well even i got the same errors for jb4.3
but they work fine for 4.1..
ill remod the files and update the tutorial ..give me few days.
Click to expand...
Click to collapse
Yea sure! Take your time.
For your information, I am doing it on 4.1 only. :sly:
Sent from my MT27i using XDA Premium 4 mobile app
cpkunki said:
Yea sure! Take your time.
For your information, I am doing it on 4.1 only. :sly:
Sent from my MT27i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hmm I have implemented these in my 4.1 roms.. With the same procedures.. I'll.check it
Sent from my C5303 using XDA Premium 4 mobile app
Thanks A lot bro
For Honami Home ... Will it work on 4.3 Honami Home too ?
Thanks Pressed
abo hani said:
Thanks A lot bro
For Honami Home ... Will it work on 4.3 Honami Home too ?
Thanks Pressed
Click to expand...
Click to collapse
yes
sandy7 said:
yes
Click to expand...
Click to collapse
Added ... but FC
Guys, im applying tablet tweak on stock dxll1 baseband. I applied custock dxlf1 to deodex. Everything was working fine except the statusbar. I cant make it expand. Is there someone who could help me add tablet tweak support on my statusbar? thanks!
Edit:
Please do help me. this is what im on
*Baseband:dxll1
*Rom:Custock dxlf1
*Framework already has tablet tweak
Problem:
*I cant make it expand when its at the bottom.
*Cant add soft buttons
If someone could provide me a plain systemui that supports tablet tweak, please do give me it here or at fb. thanks!
deleted
guide for fully expanded status bar although I dont think thats what you mean
http://forum.xda-developers.com/showthread.php?t=2359344
do you mean you cant pull down the status bar?
maybe an mistake in tracking or status_bar_expanded
if you want the toggles at the bottom why not just use cm7? there is an open there to set status bar icons to the bottom
marcussmith2626 said:
guide for fully expanded status bar although I dont think thats what you mean
http://forum.xda-developers.com/showthread.php?t=2359344
do you mean you cant pull down the status bar?
maybe an mistake in tracking or status_bar_expanded
if you want the toggles at the bottom why not just use cm7? there is an open there to set status bar icons to the bottom
Click to expand...
Click to collapse
what i mean sir is i cant open my statusbar when bottom statusbar was activated. and i cant add soft keys on it
Wickedfire.214 said:
what i mean sir is i cant open my statusbar when bottom statusbar was activated. and i cant add soft keys on it
Click to expand...
Click to collapse
its either a layout problem in xml files or smali problem
either way without logcat if it force closes or something happens when you do something or screenshots and access to to files theres no way to know what is wrong - plus if you didnt do the mod it will be very hard to know to where to start
You can always just use cm7 as it has this mod anyway
marcussmith2626 said:
its either a layout problem in xml files or smali problem
either way without logcat if it force closes or something happens when you do something or screenshots and access to to files theres no way to know what is wrong - plus if you didnt do the mod it will be very hard to know to where to start
You can always just use cm7 as it has this mod anyway
Click to expand...
Click to collapse
ill take logcat tommorow. please guide me again tommorow. its sleep time in my country
here is the logcat sir? is this correct
logcat
Wickedfire.214 said:
logcat
Click to expand...
Click to collapse
looks like a smali error
Code:
06-01 07:47:05.265 2934 2934 E AndroidRuntime: java.lang.NoSuchMethodError: com.android.systemui.statusbar.StatusBarView.onInterceptTouchEvent
06-01 07:47:05.265 2934 2934 E AndroidRuntime: at com.android.systemui.statusbar.CmStatusBarView.onInterceptTouchEvent(CmStatusBarView.java:308)
Unless you did the mod and can understand smali it will be hard to fix it - unfortunatly I dont understand smali as im not a programmer but thats where the error is
marcussmith2626 said:
looks like a smali error
Code:
06-01 07:47:05.265 2934 2934 E AndroidRuntime: java.lang.NoSuchMethodError: com.android.systemui.statusbar.StatusBarView.onInterceptTouchEvent
06-01 07:47:05.265 2934 2934 E AndroidRuntime: at com.android.systemui.statusbar.CmStatusBarView.onInterceptTouchEvent(CmStatusBarView.java:308)
Unless you did the mod and can understand smali it will be hard to fix it - unfortunatly I dont understand smali as im not a programmer but thats where the error is
Click to expand...
Click to collapse
i fixed it now sir. my problem is when i activated bottom statusbar on tablet tweak settings, i wont be able to expand it to see the expanded view. any fix? im on stockrom
Wickedfire.214 said:
i fixed it now sir. my problem is when i activated bottom statusbar on tablet tweak settings, i wont be able to expand it to see the expanded view. any fix? im on stockrom
Click to expand...
Click to collapse
not unless you correct the smali errors that are to do with it
like I said if you want that option would be much easier to use cm7 as it has this option
marcussmith2626 said:
not unless you correct the smali errors that are to do with it
like I said if you want that option would be much easier to use cm7 as it has this option
Click to expand...
Click to collapse
i can use the soft keys now. but i cant go to expanded view
here is the prob
Wickedfire.214 said:
here is the prob
Click to expand...
Click to collapse
I keep telling you - error in smali
StatusBarView and CmStatusBarView with the command onInterceptTouchEven
Wickedfire.214 said:
here is the prob
Click to expand...
Click to collapse
this is because u now load the statusbar at bottom.
but it doesnt update the date layout in top
so basicly it doesnt fl top part because they layout isnt being pushed upside down
Sent from my Acer S500 CloudMobile
SpaceCaker said:
this is because u now load the statusbar at bottom.
but it doesnt update the date layout in top
so basicly it doesnt fl top part because they layout isnt being pushed upside down
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
its with statusbarpolicy smali sir???? how could i fix this
Wickedfire.214 said:
its with statusbarpolicy smali sir???? how could i fix this
Click to expand...
Click to collapse
use java?
Sent from my Acer S500 CloudMobile
SpaceCaker said:
use java?
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
I decompiled two systemUI. The One is CM Based and i grabbed the smalis and compared to get it working on stock rom. The soft keys were working but i cant go to the expanded view if statusbar.
Wickedfire.214 said:
I decompiled two systemUI. The One is CM Based and i grabbed the smalis and compared to get it working on stock rom. The soft keys were working but i cant go to the expanded view if statusbar.
Click to expand...
Click to collapse
cm smali from StatusBarView.smali
Code:
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.locals 1
.parameter "event"
.prologue
.line 172
const/4 v0, 0x0
invoke-virtual {p0, p1, v0}, Lcom/android/systemui/statusbar/StatusBarView;->onInterceptTouchEvent(Landroid/view/MotionEvent;Z)Z
move-result v0
return v0
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;Z)Z
.locals 1
.parameter "event"
.parameter "skipService"
.prologue
.line 163
if-eqz p2, :cond_0
.line 164
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
.line 166
:goto_0
return v0
:cond_0
iget-object v0, p0, Lcom/android/systemui/statusbar/StatusBarView;->mService:Lcom/android/systemui/statusbar/StatusBarService;
invoke-virtual {v0, p1}, Lcom/android/systemui/statusbar/StatusBarService;->interceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
goto :goto_0
.end method
stock smali from StatusBarView.smali
Code:
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.locals 1
.parameter "event"
.prologue
.line 149
iget-object v0, p0, Lcom/android/systemui/statusbar/StatusBarView;->mService:Lcom/android/systemui/statusbar/StatusBarService;
invoke-virtual {v0, p1}, Lcom/android/systemui/statusbar/StatusBarService;->interceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
goto :goto_0
.end method
Like I said this is the area that was giving the error in your logcat in StatusBarView.smali
I dont understand smali so I cant help you but thats what needs fixing
Enable all weather effect on LockScreen - G3
Clear effect, Rainy effect, Snowy effect, Cloudy effect and Thunder effect.
Decompile file priv-app/LGKeyguard.apk
Edit com/lge/effect/weather/WeatherEffect.smali,
Method .method public static getWeather()I
Find
Code:
sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
move-result v4
if-lez v4, :cond_2
.line 89
[B][COLOR="Red"]const/4 v2, 0x0[/COLOR][/B]
goto :goto_0
.line 91
:cond_2
const/4 v2, 0x3
.line 93
goto :goto_0
Replace with
Code:
sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
move-result v4
if-lez v4, :cond_2
.line 89
[COLOR="red"][B]const/4 v2, 0x3[/B][/COLOR]
goto :goto_0
.line 91
:cond_2
const/4 v2, 0x3
.line 93
goto :goto_0
Find
Code:
sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
move-result v4
if-lez v4, :cond_3
.line 97
[COLOR="red"][B]const/4 v2, 0x0[/B][/COLOR]
goto :goto_0
.line 99
:cond_3
const/4 v2, 0x4
.line 101
goto :goto_0
Replace with
Code:
sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
move-result v4
if-lez v4, :cond_3
.line 97
[B][COLOR="red"]const/4 v2, 0x4[/COLOR][/B]
goto :goto_0
.line 99
:cond_3
const/4 v2, 0x4
.line 101
goto :goto_0
Compile LGKeyguard.apk, replace to priv-app and give permission 644
Remove LGKeyguard.odex and reboot.
Good luck.
My other mods:
[GUIDE] All weather effect on LockScreen - G3
[GUIDE] All LockScreen Effect on G3
If you like my work, click here to buy me a beer.
Source: http://lgviet.com/forum/threads/26145/
@Fauert @cnn888 @zone23
Please, can you make this mod apk file?
Or you can download it from the Zone Rom OP.
Sent from my LG-D851 using Tapatalk
Skizzy034 said:
Or you can download it from the Zone Rom OP.
Sent from my LG-D851 using Tapatalk
Click to expand...
Click to collapse
I don't see a ROM called Zone Rom anywhere in this subforum.
followed the instruction, decompiling the file (deodexed first ofcourse), editting the smali file, recompiling the finally copy back the apk into priv-app. set the permission and reboot. i got endless systemui fc upon locking the phone on signed apk, and no lockscreen on unsigned.
file size is also very different. 31mb on uneditted, and 26mb on editted. is there any small trick of doing it?
is there anyone successfully doing this? can i just have the compiled apk for 10i please?
RED ZMAN said:
I don't see a ROM called Zone Rom anywhere in this subforum.
Click to expand...
Click to collapse
T-Mobile android development.
Sent from my LG-D851 using Tapatalk
Skizzy034 said:
Or you can download it from the Zone Rom OP.
Sent from my LG-D851 using Tapatalk
Click to expand...
Click to collapse
Or here (with Zone's permission, worked credited):
http://forum.xda-developers.com/sho... TO][VS985] All Weather Effects on Lockscreen
LG G3 flies faster than a G6
OG RAZR XT912 got 4.4 before S4
Don't sign apk.
cnn888 said:
followed the instruction, decompiling the file (deodexed first ofcourse), editting the smali file, recompiling the finally copy back the apk into priv-app. set the permission and reboot. i got endless systemui fc upon locking the phone on signed apk, and no lockscreen on unsigned.
file size is also very different. 31mb on uneditted, and 26mb on editted. is there any small trick of doing it?
is there anyone successfully doing this? can i just have the compiled apk for 10i please?
Click to expand...
Click to collapse
You don't need to deodex .
Perfect funcional Bro. Made it following your guide on my .10i D855.
When you have time write other mods you know using same method you used here.
Thanks
wolfgart said:
Perfect funcional Bro. Made it following your guide on my .10i D855.
When you have time write other mod you know using same method you used here.
Thanks
Inviato dal mio LG-D855 utilizzando Tapatalk
Click to expand...
Click to collapse
can u share your apk? im on d855 v10i too
ehmjay said:
can u share your apk? im on d855 v10i too
Click to expand...
Click to collapse
For all you guys on .10i D855
https://mega.co.nz/#!UZhihajb!OxZ4oEwX1saB0RvEapsAbEYRTcteZhk3pNl7NoPqhXQ
thanks for this awesome guide..
full weather effects is awesome bro
you deserved more thanks
wolfgart said:
For all you guys on .10i D855
https://mega.co.nz/#!UZhihajb!OxZ4oEwX1saB0RvEapsAbEYRTcteZhk3pNl7NoPqhXQ
Click to expand...
Click to collapse
Thank you so much. Worked Perfect and looked beautiful.
hoangnova said:
@Fauert @cnn888 @zone23
Click to expand...
Click to collapse
Thanks a lot...
ins5736 said:
Or here (with Zone's permission, worked credited):
http://forum.xda-developers.com/sho... TO][VS985] All Weather Effects on Lockscreen
LG G3 flies faster than a G6
OG RAZR XT912 got 4.4 before S4
Click to expand...
Click to collapse
So does this one work for Verizon? Any special instructions to run that with our stock rom?
lg g3 f400s is does not work pls help.thx
Anyone try this on the D850?
wolfgart said:
For all you guys on .10i D855
https://mega.co.nz/#!UZhihajb!OxZ4oEwX1saB0RvEapsAbEYRTcteZhk3pNl7NoPqhXQ
Click to expand...
Click to collapse
Thanks wolfgart
AppCircleSidebar port error trying to stock 5.0.1 lollipop
why?
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : 04 2015-02- 13:35:17,18
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
..\3-Out\SystemUI.apk\smali\com\android\systemui\statusbar\BaseStatusBar.smali[2693,4] Invalid literal value: 2130968656. Low 16 bits must be zeroed out.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/BaseStatusBar.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
at brut.androlib.Androlib.buildSources(Androlib.java:289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
------------------------------------------------------
HTML:
# virtual methods
.method protected addAppCircleSidebar()V
.locals 3
.prologue
.line 2281
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mAppCircleSidebar:Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;
if-nez v0, :cond_0
.line 2282
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mContext:Landroid/content/Context;
const/high16 v1, 0x7f040050
const/4 v2, 0x0
invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;
iput-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mAppCircleSidebar:Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;
.line 2283
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mWindowManager:Landroid/view/WindowManager;
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mAppCircleSidebar:Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;
invoke-virtual {p0}, Lcom/android/systemui/statusbar/BaseStatusBar;->getAppCircleSidebarLayoutParams()Landroid/view/WindowManager$LayoutParams;
move-result-object v2
invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 2285
:cond_0
return-void
.end method
and
HTML:
.method protected getAppCircleSidebarLayoutParams()Landroid/view/WindowManager$LayoutParams;
.locals 6
.prologue
.line 2294
iget-object v2, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mContext:Landroid/content/Context;
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f0c0114
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result v1
.line 2297
.local v1, "maxWidth":I
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/4 v2, -0x1
const/16 v3, 0x7e1
const v4, 0x840068
const/4 v5, -0x3
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
.line 2308
.local v0, "lp":Landroid/view/WindowManager$LayoutParams;
iget v2, v0, Landroid/view/WindowManager$LayoutParams;->privateFlags:I
or-int/lit8 v2, v2, 0x40
iput v2, v0, Landroid/view/WindowManager$LayoutParams;->privateFlags:I
.line 2309
const/16 v2, 0x35
iput v2, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 2310
const-string v2, "AppCircleSidebar"
invoke-virtual {v0, v2}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
.line 2312
return-object v0
.end method
thanks in advance.
settings ready
..\3-Out\SystemUI.apk\smali\com\android\systemui\status bar\BaseStatusBar.smali[2693,4] Invalid literal value: 2130968656. Low 16 bits must be zeroed out.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/BaseStatusBar.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuil der.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:349)
at brut.androlib.Androlib.buildSources(Androlib.java: 289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
settings ready
I only need the systemui
can someone tell me
how to solve the error message mentioned above
we need this line
[2693,4]
from BaseStatusBar.smali
EnricoD said:
we need this line
[2693,4]
from BaseStatusBar.smali
Click to expand...
Click to collapse
@EnricoD thanks for replying
I got to compile
but it gives me error.
look here
uriel_zo said:
@EnricoD thanks for replying
I got to compile
but it gives me error.
look here
Click to expand...
Click to collapse
and...the logcat?
EnricoD said:
and...the logcat?
Click to expand...
Click to collapse
[email protected]
here is
pd:If you want to help me edit
here is my systemui.apk decompiled
https://www.mediafire.com/?q1ts1h74054gbw8
I faced this one before also - "Low 16 bits must be zeroed out."
I was trying to give address to some thing in public.xml and it was expecting some address with zeros in the last of the address.
ex : i was giving something like 0x7f010113 but it was expecting 0x7f010000
try first build the app with whatever you want to change in other xmls and then decompile the apk and copy the specific address from public.xml(which was given by the system and not by you) to the smali.
try once
uriel_zo said:
[email protected]
here is
pd:If you want to help me edit
here is my systemui.apk decompiled
https://www.mediafire.com/?q1ts1h74054gbw8
Click to expand...
Click to collapse
can you reproduce the error and filter the logcat?
android 5.0.2 stock
EnricoD said:
can you reproduce the error and filter the logcat?
Click to expand...
Click to collapse
Broth
finally is ready
for your interest
Thanks