Related
Based on this guide here
Description:
Transparent app drawer by definition means you can see the homescreen wallpaper whilst in app drawer instead of the default black background.
Tools needed:
1) apktool
2) notepad++
3) 7zip
Files needed: (Depending on ROM type)
1) Homescreen.apk
Steps [HOW TO]:
1) decompile Homescreen.apk
2) go to \res\layout\apps_customize_pane.xml
replace android:background="#ff000000"
There are two instances in this file.
Here
#00000000 - 100%transparency
#3F000000 - 75% transparency
#7F000000 - 50% transparency
#BF000000 - 25% transparency
2) now SMALI CODE.
go to
\smali\com\motorola\homescreen\
3) open Launcher.smali and delete the following method: updateWallpaperVisibility
Also delete all its references in Launcher.smali and other smali files. Usually this method is referenced in Launcher$19.smali and Launcher$22.smali
However, it could be different from file to file depending on how it was built from source. Therefore, to know the file names exactly, just use notepad++ and use Search in Files feature and search for updateWallpaperVisibility in the decompiled apk samli folder. It will tell you where this method is referenced.
Example of Smali:
Having done this deletion, use notepad++ to search for updateWallpaperVisibility
Use fine in files function in Notepadd++, it will tell you exactly where this method is referenced. Then delete all the lines containing this method reference.
Example:
Code:
invoke-virtual {v0, v1}, Lcom/motorola/homescreen/Launcher;->updateWallpaperVisibility(Z)V
or
Delete all this method starting from .method to .end mothod.
This code is in Launcher.smali.
Code:
.method updateWallpaperVisibility(Z)V
.locals 3
.parameter
.prologue
const/high16 v1, 0x10
.line 4162
if-eqz p1, :cond_1
move v0, v1
.line 4163
:goto_0
invoke-virtual {p0}, Lcom/motorola/homescreen/Launcher;->getWindow()Landroid/view/Window;
move-result-object v2
invoke-virtual {v2}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
move-result-object v2
iget v2, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
and-int/2addr v2, v1
.line 4165
if-eq v0, v2, :cond_0
.line 4166
invoke-virtual {p0}, Lcom/motorola/homescreen/Launcher;->getWindow()Landroid/view/Window;
move-result-object v2
invoke-virtual {v2, v0, v1}, Landroid/view/Window;->setFlags(II)V
.line 4168
:cond_0
return-void
.line 4162
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
so, you have to delete the above line completely, and also any lines in all smali files containing "updateWallpaperVisibility"
After deleting the method and all of its references, just compile the apk and make your flashsable zip.
I use APKTOOL and 7zip for that.
Home:
{
"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"
}
LoL Boss!
Abraços.
Enviado do meu S4.
A garantia do meu aparelho sou eu que faço.
Anybody can upload the modded Homescreen.apk ? I don't have any computer for do it myself
{
"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 Guide can be Preferred by MTK6589
Tools Needed:
Notepad++
Decompiling and Recompiling Tool
Brain Please
A MTK65xx Device
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Transparent StatusBar
Click to expand...
Click to collapse
Steps:
1)De-compile your android.policy.jar from /framework (For .jar decompile and recompile)(Click here
2)Open this .smali from \com\android\internal\policy\impl\PhoneWindowManager.smali
Find These Lines:
Code:
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
Delete The Red Code
Replace With Code Below
Code:
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
.registers 3
.parameter "systemRect"
.prologue
.line 3057
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemLeft:I
iput v0, p1, Landroid/graphics/Rect;->left:I
.line 3058
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemTop:I
iput v0, p1, Landroid/graphics/Rect;->top:I
.line 3059
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I
iput v0, p1, Landroid/graphics/Rect;->right:I
.line 3060
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
iput v0, p1, Landroid/graphics/Rect;->bottom:I
.[COLOR="Red"]line 3061
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_1b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
.line 3063
:goto_1a
return v0
.line 3062
:cond_1b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_26
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
goto :goto_1a
.line 3063
:cond_26
const/4 v0, 0x0
goto :goto_1a
.end method[/COLOR]
Replace With:
Code:
const/4 v0, 0x0
return v0
.end method
Then,Recompile
Next,Go to SystemUI /res/values/drawables.xml
Code:
Code:
<item type="drawable" name="notification_number_text_color">#ff000000</item>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<item type="drawable" name="status_bar_background">[COLOR="Red"]#00000000[/COLOR]</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="intruder_bg_pressed">#ff33b5e5</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="system_bar_background">[COLOR="Red"]#88000000[/COLOR]</item>
<item type="drawable" name="notification_icon_area_smoke">[COLOR="Red"]#88000000[/COLOR]</item>
100% Tranapency
Code:
#00000000
Translucent
Code:
#88000000
Recompile
Credits:[email protected] Aisiteru Reborn
- Senior Member @evilisto
- Recognized themer @rodman01
- @mulbyungjahri
- @bond1987
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Having Your Banner In Settings
1)Decompile your Settings.apk From /system/app/
2)Download The SettingsSource.zip From Here
3) Extract contents of SettingsSource.zip to respective folders in Settings.apk
4)Open /res/xml/device_info_settings.xml From Decompiled Settings.apk
5) From The Top,Locate This Tag. l <Preference android:title.
Add These Code
Code:
<PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />
Add The Blue Code
In:
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Blue"] <PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />[/COLOR]
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
Save The File.
Now Go To /Res/Drawable-XHDPI(If your Device is xhdpi(OR)Locate your device dpi0
Now,Paste The File Whichever you want (Make sure the files is in *.png Format)
For Changing The Resolution Of The Pic:
Go to /res/layout/areebisawesome.xml
Delete The RED code,And Add Your Pic Size There
Code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<ImageView android:layout_gravity="center" android:paddingBottom="6.0dip" android:layout_width="[COLOR="Red"]320.0px[/COLOR]" android:layout_height="[COLOR="Red"]200.0px[/COLOR]" android:src="@drawable/cosmic" android:scaleType="fitXY"
xmlns:android="http://schemas.android.com/apk/res/android" />
Creditsiamareebjamal
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Changing The Icons OF The Battery,Signal,Statusbar Expanded Etc
Change Icons Of The Battery
1)De-Compile your SystemUI.apk from /system/app
2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)
3)Search For stat_sys_battery_x.png with your Own
4)Search For stat_sys_battery_charge_animxx.png For Battery Animation with Your Own
5)Replace and Recompile
-------------------------------------------------------------------------------------
For Changing Battery Symbol in StatusBar Expanded
1)De-Compile your SystemUI.apk from /system/app
2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)
3)Search For ic_qs_battery_xx.png with your own
4)Search for ic_qs_battery_charge_xx.png for Battery Charging Animation
---------------------------------------------------------------------------------------
Changing Signal In Signal Icon(If You Have Dual-Sim Device)
1)De-Compile your SystemUI.apk from /system/app
2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)
3) Search For stat_sys_gemini_signal_1_xxxx.png(With Your Color) And Replace With Your Own
--------------------------------------------------------------------------------------
Changing Wi-Fi Icon
1)De-Compile your SystemUI.apk from /system/app
2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)
3) Search For stat_sys_wifi_signal_x_fully.png and replace with Your Own
4)For Wi-fi Without Transfer File Icon, stat_sys_wifi_signal_x.png and replace with your own
----------------------------------------------------------------------------------------
For Changing Icons In Status Bar Expanded
1)De-Compile your SystemUI.apk from /system/app
2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)
For Flight Mode/Aeroplane Mode:
3) Search for ic_qs_flight_mode_on.png and ic_qs_flight_mode_off.png and Replace with Your Own
For Data Connection:
3) Search for ic_qs_mobile_enable.png and ic_qs_mobile_disable.png and replace with your own
For Bluetooth:
3)Search For ic_qs_bluetooth_enable.png.ic_qs_bluetooth_disable.png and ic_qs_bluetooth_off.png and replace with your own
For Gps/Location:
3)Search for ic_qs_gps_enable.png and ic_qs_gps_disable.png and replace with your own
For Wi-Fi:
3)Search for ic_qs_wifi_enable.png and ic_qs_wifi_disable.png and replace with your own
4)For animation: Search For ic_qs_wifi_full_x.png and replace with your own
5)For No Data Animation: Search for ic_qs_wifi_x.png and replace with your own
(If It Doesnt Work,ic_qs_stat_sys_wifi_switch_animx,png. Delete these .png)
For Brightness:
3) Search For ic_qs_brightness_auto_on and ic_qs_brightness_auto_off and Replace With Your Own
For Auto-Rotation/Orientation
3) Search For ic_qs_auto_rotation_enable and ic_qs_auto_rotation_disable and replace with your own
For Timeout:
3) Search For ic_qs_timeout_disable,ic_qs_timeout_off and ic_qs_timeout_on and replace with your own
For Default User:
3) Search For ic_qs_default_user.png and replace with your own
For User Profiles
3) Search For ic_qs_general_on/off,ic_qs_meeting_on/off,ic_qs_outdoor_on/off and ic_qs_mute_on/off and Replace with your own
HAPPY THEMING:laugh::laugh::laugh:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
More Guides Coming SOON :highfive::highfive::highfive:
Great guide!!!
Excellent guide for noobs like me
lol
Keep it up bro :good:
Press "Thanks" Button you like it
Sent from my Micromax A116 using xda app-developers app
Help needed Bro !!
What code i can use for 25 % and 75 %
plz give me the codes !!!
Thanks for the guidance of the transparent status bar, served me very helpful in my mtk6589, just a question of how it should do so in the lockscreen status bar to 25% transparency appears not 100%? THX...
thanks for the guide. really useful. will try it when i got some time to spend.
:thumbsup:
@besal22 @Sharique244777
Code:
Code:
80% Transparency
#88000000
Dhogaivannan said:
@besal22 @Sharique244777
Code:
Code:
80% Transparency
#88000000
Click to expand...
Click to collapse
ok thnx !where is my signature ?
Thanks Bro
Hey, can u help me on how to change the holo background in kitkat, see SS, the background, i can't find bg_holo_dark anywhere in framework or settings app
HOW TO ADD SCREENSHOT TOGGLE TO NOTIFICATION PANEL
AOSP / CM / MTK JB 4.2 ++
{
"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"
}
Hi guys :victory::laugh::silly:
This mod is actually already in most of Open Source Rom Quicksettings Tiles view, but I change the code little bit to put the toggle on notification panel
Credit & thanks ;
- Carbon Rom, AOKP, cRdroid AOSP , CyanogenMod, BeanStalk
- [Unofficial Community] Galaxy Wonder CyanogenMod Indonesia
Feature :
- On click will take screenshot anywhere
- On long click will delay screenshot in 5 seconds
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- Know how to decompile/recompiling jar Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
STEP - 1
- Decompile your SystemUI.apk
- Download attached SCREENSHOT-SystemUI.zip exstract it and merge it to your decompiled SystemUI.apk
- SystemUI.apk/res/layout/status_bar_expanded_header.xml
add the red code
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:enabled="false" android:id="@id/datetime" android:background="@drawable/ic_notify_button_bg" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/clock" android:layout_centerVertical="true" />
</RelativeLayout>
[COLOR="Red"]<ImageButton android:id="@id/asteroid_screenshot_button" android:background="@drawable/asteroid_screenshot_button_bg" android:paddingTop="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_asteroid_screenshot" android:layout_toRightOf="@id/date" android:paddingStart="7.0dip" />[/COLOR]
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TextView android:textSize="11.0dip" android:textStyle="bold" android:textColor="#ff00a040" android:layout_gravity="center_vertical" android:id="@id/header_debug_info" android:padding="2.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="sans-serif-condensed" />
<ImageView android:id="@id/clear_all_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<FrameLayout android:id="@id/settings_button_holder" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginLeft="12.0dip">
<ImageView android:id="@id/settings_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/notification_button" android:visibility="gone" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notifications" android:scaleType="center" android:contentDescription="@string/accessibility_notifications_button" />
</FrameLayout>
</LinearLayout>
- SystemUI.apk/res/values/strings.xml
add the red line to end of it before </resources>
Code:
<string name="status_bar_help_title">Notifications appear here</string>
<string name="status_bar_help_text">"Access them anytime by swiping down.
Swipe down again for system controls."</string>
[COLOR="Red"]<string name="permdesc_screenshot">Capture screenshot</string>
<string name="permlab_screenshot">Allows the app to cature a screenshot. This is protected by SystemUI.</string>
<string name="screenshot_toast">Screenshot in %1$d seconds</string>[/COLOR]
</resources>
- SystemUI.apk/res/values/ids.xml
add the red line to end of it before </resources>
Code:
<item type="id" name="notification_inspect_item">false</item>
<item type="id" name="recent_remove_item">false</item>
<item type="id" name="recent_inspect_item">false</item>
[COLOR="Red"]<item type="id" name="asteroid_screenshot_button">false</item>[/COLOR]
</resources>
- Recompile your SystemUI.apk
STEP - 2
- Decompile the newly Recompiled APK again
Next go to
res/values/public.xml
open it with Notepad++
leave it, but keep it open
- smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
add the red lines :
Code:
.field mAnimY:F
.field mAnimating:Z
.field mAnimatingReveal:Z
[COLOR="Red"].field mAsteroidScreenshotButton:Landroid/widget/ImageButton;[/COLOR]
.field mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
.field mBluetoothController:Lcom/android/systemui/statusbar/policy/BluetoothController;
Code:
.field mFlipSettingsViewAnim:Landroid/animation/Animator;
.field mFocusChangeListener:Landroid/view/View$OnFocusChangeListener;
.field private final mGestureRec:Lcom/android/systemui/statusbar/GestureRecorder;
[COLOR="Red"].field public mHandler:Landroid/os/Handler;[/COLOR]
.field private mHasDockBattery:Z
.field mHasFlipSettings:Z
Code:
.field mQS:Lcom/android/systemui/statusbar/phone/QuickSettingsController;
.field mQueueLock:Ljava/lang/Object;
.field private final mRecentsClickListener:Landroid/view/View$OnClickListener;
.field private mRecreating:Z
[COLOR="Red"].field private mRunnable:Ljava/lang/Runnable;[/COLOR]
.field private mScreenWidth:F
.field mScrollView:Landroid/widget/ScrollView;
.field mScrollViewAnim:Landroid/animation/Animator;
- NEXT, Search this method
Code:
.method public constructor <init>()V
and add the red code
Code:
iput v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisabled:I
iput v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSystemUiVisibility:I
[COLOR="Red"]new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mHandler:Landroid/os/Handler;[/COLOR]
new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisplayMetrics:Landroid/util/DisplayMetrics;
iput-object v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mGestureRec:Lcom/android/systemui/statusbar/GestureRecorder;
iput v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNavigationIconHints:I
- NEXT, still in the same method,
add the red code above return-void
Code:
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$32;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$32;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStartTracing:Ljava/lang/Runnable;
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$33;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$33;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStopTracing:Ljava/lang/Runnable;
[COLOR="Red"]new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot5;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot5;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mRunnable:Ljava/lang/Runnable;[/COLOR]
[COLOR="Blue"]return-void[/COLOR]
.end method
.method static synthetic access$000(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;I)V
.locals 0
.parameter "x0"
.parameter "x1"
.prologue
.line 116
invoke-direct {p0, p1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->adjustBrightness(I)V
return-void
.end method
- NEXT, add new access
Code:
return-void
.end method
[COLOR="Red"].method static synthetic access$130000000(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Ljava/lang/Runnable;
.locals 1
.parameter "x0"
.prologue
.line 34
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mRunnable:Ljava/lang/Runnable;
return-object v0
.end method[/COLOR]
.method static synthetic access$000(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;I)V
NEXT
Code:
iget-object v1, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLightsOnAnimation:Landroid/animation/Animator;
goto :goto_0
.end method
[COLOR="Red"].method private setupAsteroidScreenshotButton()V
.locals 3
.prologue
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
const v1, [COLOR="Blue"]0x7f0900e5[/COLOR]
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageButton;
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAsteroidScreenshotButton:Landroid/widget/ImageButton;
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAsteroidScreenshotButton:Landroid/widget/ImageButton;
new-instance v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot3;
invoke-direct {v1, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot3;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAsteroidScreenshotButton:Landroid/widget/ImageButton;
new-instance v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot4;
invoke-direct {v1, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot4;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V
return-void
.end method[/COLOR]
.method private updateShowSearchHoldoff()V
.locals 2
.prologue
.line 1133
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0d0001
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getInteger(I)I
move-result v0
iput v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mShowSearchHoldoff:I
.line 1135
return-void
.end method
Change this 0x7f0900e5, according to the value you got in your own public.xml
Code:
<public type="id" name="asteroid_screenshot_button" id="[COLOR="Blue"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
NEXT, find this method
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
and add the red code
Code:
const-string v1, "android.intent.action.SCREEN_ON"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 775
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {v4, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
.line 778
invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->resetUserSetupObserver()V
[COLOR="Red"] invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupAsteroidScreenshotButton()V[/COLOR]
.line 780
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/android/systemui/statusbar/powerwidget/PowerWidget;
invoke-virtual {v0}, Lcom/android/systemui/statusbar/powerwidget/PowerWidget;->setupWidget()V
.line 781
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/android/systemui/statusbar/powerwidget/PowerWidget;
invoke-virtual {v0}, Lcom/android/systemui/statusbar/powerwidget/PowerWidget;->updateVisibility()V
.method public static viewInfo(Landroid/view/View;)Ljava/lang/String;
.locals 2
.parameter
OR MEDIATEK DEVICES
Code:
const-string v1, "android.intent.action.ACTION_BOOT_IPO"
invoke-virtual {v12, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 768
const-string v1, "android.provider.Telephony.SPN_STRINGS_UPDATED"
invoke-virtual {v12, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 769
move-object/from16 v0, p0
iget-object v1, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {v11, v1, v12}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
.line 772
invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->resetUserSetupObserver()V
[COLOR="Red"]invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupAsteroidScreenshotButton()V[/COLOR]
.line 774
new-instance v20, Landroid/content/IntentFilter;
invoke-direct/range {v20 .. v20}, Landroid/content/IntentFilter;-><init>()V
.line 775
.local v20, simInfoIntentFilter:Landroid/content/IntentFilter;
const-string v1, "android.intent.action.SIM_SETTING_INFO_CHANGED"
NEXT,
go to,.
- smali/com/android/systemui/statusbar/phone/PhoneStatusBar$AsteroidSrcreenshot4.smali
search for this
Code:
const v4, [COLOR="Blue"]0x7f0a00f8[/COLOR]
Change this 0x7f0a00f8, according to the value you got in your own public.xml
Code:
<public type="string" name="screenshot_toast" id="[COLOR="Blue"]0x7f??????[/COLOR]" />
- NEXT
- Disable signature check
here : http://forum.xda-developers.com/showthread.php?t=1698352
or in here : http://forum.xda-developers.com/showpost.php?p=47592101&postcount=3
- AndroidManifest.xml
Add The RED CODE , and
REMOVE the BLUE CODE
Code:
<uses-permission android:name="android.permission.READ_DREAM_STATE" />
<uses-permission android:name="android.permission.WRITE_DREAM_STATE" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
[COLOR="Red"]<protected-broadcast android:name="android.permission.SCREENSHOT" />
<protected-broadcast android:name="android.intent.action.SCREENSHOT" />
<permission android:label="@string/permlab_screenshot" android:name="android.permission.SCREENSHOT" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_screenshot" />[/COLOR]
<application android:label="@string/app_label" android:icon="@*android:drawable/platlogo" android:allowClearUserData="false" android:persistent="true" android:allowBackup="false" android:hardwareAccelerated="true">
<service android:name="SystemUIService" android:exported="true" />
[COLOR="Red"]<service android:name=".screenshot.TakeScreenshotService" android:permission="android.permission.SCREENSHOT" android:exported="false" android:process=":screenshot">
<intent-filter>
<android name="android.intent.action.SCREENSHOT" />
</intent-filter>
</service>[/COLOR]
[COLOR="Blue"]<service android:name=".screenshot.TakeScreenshotService" android:exported="false" android:process=":screenshot" />[/COLOR]
<service android:name=".LoadAverageService" android:exported="true" />
<service android:name=".ImageWallpaper" android:permission="android.permission.BIND_WALLPAPER" android:exported="true" />
<receiver android:name=".BootReceiver" androidprv:primaryUserOnly="true">
- RECOMPILE YOUR SYSTEMUI.APK and SIGN it
- I ussually use ApkMultitools to decompile/recompile/sign APK
so if you use ApkMultitools, you can use my signer keys
download attached file, exstract it and merge to your ApkMultitools / other / here
STEP - 3
- Decompile / Baksmali your android.policy.jar
- Download attached PhoneWindowManager$AsteroidScreenshotReceiver.zip, exstract it and merge to your decompiled android.policy.jar
- NEXT,
go to com/android/internal/policy/impl/PhoneWindowManager.smali
add the red line
Code:
[COLOR="Red"]Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;,[/COLOR]
Lcom/android/internal/policy/impl/PhoneWindowManager$ScreenLockTimeout;,
Lcom/android/internal/policy/impl/PhoneWindowManager$HideNavInputEventReceiver;,
Lcom/android/internal/policy/impl/PhoneWindowManager$MyOrientationListener;,
Lcom/android/internal/policy/impl/PhoneWindowManager$SettingsObserver;,
Lcom/android/internal/policy/impl/PhoneWindowManager$PolicyHandler;,
Lcom/android/internal/policy/impl/PhoneWindowManager$PointerLocationInputEventReceiver;
Code:
.field mAppLaunchTimeEnabled:Z
.field mAssistKeyLongPressed:Z
[COLOR="Red"].field private mAsteroidScreenshotReceiver:Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;[/COLOR]
.field mBootMsgDialog:Landroid/app/ProgressDialog;
.field mBroadcastWakeLock:Landroid/os/PowerManager$WakeLock;
Code:
iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mScreenLockTimeout:Lcom/android/internal/policy/impl/PhoneWindowManager$ScreenLockTimeout;
return-void
.end method
[COLOR="Red"].method static synthetic access$50000000(Lcom/android/internal/policy/impl/PhoneWindowManager;)Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
.registers 2
.parameter "x0"
.prologue
.line 136
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAsteroidScreenshotReceiver:Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
return-object v0
.end method
.method static synthetic access$333330000000(Lcom/android/internal/policy/impl/PhoneWindowManager;)V
.registers 1
.parameter "x0"
.prologue
.line 184
invoke-direct {p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->takeScreenshot()V
return-void
.end method[/COLOR]
.method static synthetic access$000(Lcom/android/internal/policy/impl/PhoneWindowManager;)V
.registers 1
.parameter "x0"
.prologue
.line 173
invoke-direct {p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->enablePointerLocation()V
next find this method
Code:
.method public init(Landroid/content/Context;Landroid/view/IWindowManager;Landroid/view/WindowManagerPolicy$WindowManagerFuncs;)V
scroll down in that method , add the red code above return-void
Code:
const-string v4, "persist.applaunchtime.enable"
invoke-static {v4, v6}, Landroid/os/SystemProperties;->getInt(Ljava/lang/String;I)I
move-result v4
if-ne v5, v4, :cond_216
move v4, v5
:goto_20e
iput-boolean v4, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAppLaunchTimeEnabled:Z
[COLOR="Red"]new-instance v4, Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
invoke-direct {v4, p0, p1}, Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;Landroid/content/Context;)V
iput-object v4, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAsteroidScreenshotReceiver:Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
iget-object v4, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAsteroidScreenshotReceiver:Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
#calls: Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;->registerSelf()V
invoke-static {v4}, Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;->access$700(Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;)V
[/COLOR]
[COLOR="Blue"] return-void[/COLOR]
.line 1127
:cond_211
const/4 v4, 0x2
invoke-virtual {p0, v4}, Lcom/android/internal/policy/impl/PhoneWindowManager;->screenTurnedOff(I)V
goto :goto_205
:cond_216
move v4, v6
.line 1130
goto :goto_20e
.line 1030
.end local v0 #filter:Landroid/content/IntentFilter;
- That's it :victory:
reserved 2
reserved 3
pertamax om .... that is added to the power widget in cm10.1 if I can .. I want to add to the power widget in cm10.1 thanks explanation ...
Will try it om
thread Updated,. sorry wrong code for PhoneWindowManager.smali,.in this part :
Code:
[COLOR="Red"] new-instance v4, Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
invoke-direct {v4, p0, p1}, Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;Landroid/content/Context;)V
iput-object v4, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAsteroidScreenshotReceiver:Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
iget-object v4, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAsteroidScreenshotReceiver:Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;
#calls: Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;->registerSelf()V
invoke-static {v4}, Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;->access$700(Lcom/android/internal/policy/impl/PhoneWindowManager$AsteroidScreenshotReceiver;)V[/COLOR]
[COLOR="Blue"] return-void[/COLOR]
Gook work sir @Adi Aisiteru Reborn
Keep it up for wonderfull guide... :good:
Need Help
Sir @Adi Aisiteru Reborn, in step 2, i see that your method ".method public constructor <init>()V" doesn't have code like ".line_318, .line_320, etc", and i have it in my smali in that method. this my smali code
Code:
.line 318
iput v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSystemUiVisibility:I
.line 320
new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V
so my question is, should I put code ".line" above your red code or not?
How to add in ICS Status Bar?
Pocket Fan said:
How to add in ICS Status Bar?
Click to expand...
Click to collapse
See OP title post, it's for JB 4.2++, so not for ICS device
ask OP to make it for ICS, or you can compare it to ICS, may be it work. i haven't try it
blu3m4n said:
Sir @Adi Aisiteru Reborn, in step 2, i see that your method ".method public constructor <init>()V" doesn't have code like ".line_318, .line_320, etc", and i have it in my smali in that method. this my smali code
Code:
.line 318
iput v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSystemUiVisibility:I
.line 320
new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V
so my question is, should I put code ".line" above your red code or not?
Click to expand...
Click to collapse
don't care about the .line xxx
Code:
.line 318
[COLOR="Blue"]iput v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSystemUiVisibility:I[/COLOR]
[COLOR="Red"]JUST ADD MY CODE HEREE ![/COLOR]
.line 320
[COLOR="Blue"]new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V[/COLOR]
Adi Aisiteru Reborn said:
don't care about the .line xxx
Code:
.line 318
[COLOR="Blue"]iput v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSystemUiVisibility:I[/COLOR]
[COLOR="Red"]JUST ADD MY CODE HEREE ![/COLOR]
.line 320
[COLOR="Blue"]new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V[/COLOR]
Click to expand...
Click to collapse
Thanks sir, i've solved the issue before
Greaat work sir, keep it up :good:
About add to ICS. Need help!!
Hi, OP @Adi Aisiteru Reborn
Yestoday I saw your six tab ui for Galaxy W CM9. So I contrast and extract some resource in this ui.
Now I have finished the transplantation of the screenshot button.
But when I press screenshot button, the device will be force reboot...
I think may be the step of android.policy.jar was wrong.
So can you help me to solve it?
This is my PhoneWindowManager.smali, hope you can help me to change it something.
I really appreciate your help.
https://www.dropbox.com/s/eyikfib2r3npww7/PhoneWindowManager.smali
so how to fix it?
yesssssss...
now i can take ss without use my vol(-)+power again...:laugh:
Lollipop work?
another feedback suhu, thanx a lot
Who cant help me? There is an error with it. Shw-m440s (s3-3g) android 4.3, please
This is just simple guide to add 4 way boot menu on reboot options. i'm already compare from @cargobr151 thread and finished my mod on 1 hours :cyclops:
I only make this tutorial and attach needed files. Everyone can use it way they want to, but give credit to me first :good:
Guide:
1. decompile your framework-res.apk first, then open public.xml (we really need this)
2. download attachment files first (we need it later)
3. decompile your android.policy.jar
4. now open your GlobalActions.smali and public.xml (from framework-res.apk) on the same time
5. Tricky part, be carefull on this part
6. find this line (another devices might have different number id on reboot button. You find right one by for example tracing reboot icon id from public.xml)
Code:
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$6;
const v2, 0x108004d
const v3, 0x1040362
invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$6;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
7. now, we find the smali to call reboot action on power menu. that is GlobalActions$6 (we no need to change line, cz it wont work)
8. now open the attach file, rename the files like the smali above and then open that files, rename all GlobalActions$6 lines like to smali above.
example: my att files called GlobalActions$6, and your smali to call reboot action mode is GlobalActions$7. so, you need to rename the att files to GlobalActions$7 and change all of name the smaliinside from GlobalActions$6 to be GlobalActions$7. i hope you understand, cz i'm bad on english to explanation
9. done for GlobalActions.smali, save it. now, move to GlobalActions$SinglePressAction.smali
10. before line "# instance fields" paste the code below
Code:
# static fields
.field protected static rebootMode:I
.field protected static final rebootOptions:[Ljava/lang/String;
11. then after line "# direct methods" paste the code below
Code:
.method static constructor ()V
.registers 3
const/4 v0, 0x5
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string v2, "Reboot"
aput-object v2, v0, v1
const/4 v1, 0x1
const-string v2, "Hot Boot"
aput-object v2, v0, v1
const/4 v1, 0x2
const-string v2, "Download"
aput-object v2, v0, v1
const/4 v1, 0x3
const-string v2, "Recovery"
aput-object v2, v0, v1
const/4 v1, 0x4
const-string v2, "Shutdown"
aput-object v2, v0, v1
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method
12. now, we done. save that file. then we move again to the GlobalActions$6 (the files we download earlier)
13. in file "GlobalActions$6.smali" there is id 0x1110010, you need to check that this id is same in your public.xml earlier. if not, chage the id with your id from public.xml, that id called config_sf_slowBlur
14. check also that ids 0x104000a="ok" -string and 0x1040000 = "cancel" -string matches in your public.xml
15. then, follow this guide http://forum.xda-developers.com/showpost.php?p=55357596&postcount=3
16. after done with all, save it. compile the jar file then flash. now you done
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"
}
Credits:
1. @kahvitahra for him guide 4 way reboot menu for JB
2. @cargobr151 for him mod Reboot mode for Nexus 5
NB:
Sorry if my english very very bad, forgive me :fingers-crossed:
Questions and Answer
A: it will work on any ROM running on Kitkat?
B: hmmm, not sure. but may will little bit different. just try it!
A: Hot reboot is not working!
B: Hot reboot uses command "pkill", so you need to have symlink for that command to the busybox binary. so, you need to download Busybox installer and instal the binary files to make it work
ok, i'm forgot to explaine small changes
1. open your GlobalAction$6.smali and GlobalAction$6$1.smali (from my att files)
2. find this line (line 74)
Lcom/android/internal/policy/impl/GlobalActions;->access$000(Lcom/android/internal/policy/impl/GlobalActionsLandroid/content/Context;
and this line (line 158)
Lcom/android/internal/policy/impl/GlobalActions;->access$000(Lcom/android/internal/policy/impl/GlobalActionsLandroid/content/Context;
3. now you need to change access$000 with your code from GlobalActions.smali (from your android.policy.jar). just find access$000 from your globalactions.smali, then your code must be like this
Code:
.method static synthetic access$000(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
.registers 2
.parameter "x0"
.prologue
.line 94
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
return-object v0
.end method
if not, just find this line Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context; and you'll get your access code
4. replace my code access$000 to your code access
example: my code is access$000 , and your code is access$200. just replace 000 to be 200
5. do it same thing on GlobalActions$6$1.smali. just replace access$000 to your access code
how to add screenshoot on power menu mastah ??
cleverior.ipul said:
how to add screenshoot on power menu mastah ??
Click to expand...
Click to collapse
check this out master http://forum.xda-developers.com/showpost.php?p=52943436&postcount=219
just download 2 attach files and compare with yours
i got errors
can you help me sir about my error's
thanks in advance
HELP master
i got issue can u help me master
tryman87 said:
i got issue can u help me master
Click to expand...
Click to collapse
maybe you miss something, try to rewrite again from begining sir
Done remodding
i start from scratch again but same result.. i already check compared my codes to your tuts but same output ... :crying::crying::crying:
Bug fix
i change the provided method on singlepressaction
.method static constructor ()V
to
.method static constructor <clinit>()V
recompile and success ..
thanks for this tutorial
:laugh:
tryman87 said:
i change the provided method on singlepressaction
.method static constructor ()V
to
.method static constructor <clinit>()V
recompile and success ..
thanks for this tutorial
:laugh:
Click to expand...
Click to collapse
nice. on some case, you need to improvise with your smali to make it works
Any idea for lollipop?
Do we have a tutorial for JB 4.2.2 sir?
ocoot said:
2. download attachment files first (we need it later)
Click to expand...
Click to collapse
You did not explained if these files are copies to the smali folder. the three files from the attached zip
thanks mastah, work on cm11
Hi All
{
"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"
}
iam apk5656 now with this new thread i think this is the first thread in whole world talking about android O easter egg and without xposed
/*I 'm Not Responsible For Any Damage Of Your Phone. Take Necessary Backup If You Are Indoubt.*/
this will work on any device GB/Ics/JB/KK even LP(not sure about LP+)
but give it a try you will lose nothing
Big Note
this is moded guide to suite android o plat logo the original thread is by aryan A.R and his Android N platlogo guide
his original theread: https://forum.xda-developers.com/an.../guide-add-android-n-platlogo-app-to-t3362744
so thx to him:fingers-crossed::fingers-crossed:
i didnt remove his name from the app he done a lot of greate works
so lets start with my moded guide over here
note: some pictures are low quality so you may see a crashed pictures
Features
Guide
Requirements:
1. De-compile your framework.jar. (In some cases like some Samsung Roms, and kitkat Roms it can be framework2.jar).
2. Know how to decompile JARs
3. PlatLogo app Download From-
HERE- https://drive.google.com/open?id=0B9PzgNqzqhBweWRsT05FdHJiZms
(If You Need To Just Test This App, You Are Free To Download It From Above)
Procedure:
1. Decompile framework.jar
2. Go to smali/com/android/internal/app and open PlatLogoActivity.smali
select all and replace with
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.registers 7
.parameter "savedInstanceState"
.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 18
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 19
.local v1, intent:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "com.aryan.nplatlogo"
const-string v4, "com.aryan.nplatlogo.PlatLogoActivity"
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
:try_start_16
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_19
.catch Landroid/content/ActivityNotFoundException; {:try_start_16 .. :try_end_19} :catch_1d
.line 39
:goto_19
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_1d
move-exception v0
.line 35
.local v0, e:Landroid/content/ActivityNotFoundException;
const-string v2, "Install AndroidN PlatLogo By Aryan"
const/4 v3, 0x0
invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_19
.end method
4. Recompile framework.jar, Push it into system/framework. Set correct permissions(rw-r--r--).
5. Install My Android-O Platlogo. or push it into system
Credits:
Aryan A.R
iamareebjamal
[email protected]
Droidbuster
and me apk5656
If You Are Using This PlatLogo In Your ROM, Just Give A Credit To My Work.
If Your Liked My Work, Just Press Thanks Below
visit our site www.mohamedovic.com