Post Reply

How to Port Lidroid Toggles to non Samsung Jelly bean 4.1 rom

OP Adi Aisiteru Reborn

27th July 2013, 08:53 PM   |  #1  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
HOW TO PORT LIDROID TOGGLES
TO NON SAMSUNG JELLY BEAN ROM


Oke guys, I want to share how to port Lidroid toggle to all non Samsung Jelly Bean 4.1 rom ,
do not try this on 4.0/4.2/4.3 or you will ended with SystemUI force closes


Credit & Thank you very much , to lidroid, and Wanam for Guide [MOD][Android 4.1.2] Add Customizable 23 Statusbar Toggles To Samsung Jelly bean Roms,. and Thanks too to peetr_I learn some code from his thread [MOD][JB][ICS] Xperia T/TX/V port of Lidroid power widget,. and also thanks to
XDA.AGM
I learn some code from his thread too [ JB ] [ A.0.400/1.100 ] [ XP-XU ]SystemUI with Lidroid Custom 18 Toggles [version 6], and you must thanks them too

and also thanks to @BOND1987 for testing it on mediatek device

and also Thanks to Recognized themer @serajr for some toggles created by him

so we are going to port 20 Lidroid toggles :
( -Lock screen/screen-off action, -Reboot action, -Shutdown action, -Airplane mode, -Bluetoth, -Brightness, -GPS, -Flashlight, -Lockscreen, -MobileData, -Orientation, -ScreenTimeOut, -Sound, -Sync, -Wi-fi, -Wi-fi Hotspot, Battery info, Stay awake, USB Connection mode, USB Debugging )

NOTE !! for CyanogenMod 10 , do not follow or use this guide,. you can just flash my mod from here http://forum.xda-developers.com/show....php?t=2333075
Many users from different device reported work on their devices

ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE

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


1. Decompile settings.apk
go to : res/xml/settings_header.xml and add the Blue code :
Code:
<header android:icon="@drawable/ic_settings_cmlauncher" android:id="@id/launcher_settings" android:title="@string/launcher_settings_title" />
    <header android:icon="@drawable/ic_settings_lockscreen" android:id="@id/lock_screen_settings" android:title="@string/lock_screen_title" android:fragment="com.android.settings.cyanogenmod.LockscreenInterface" />
    <header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
        <intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
    </header>
    <header android:icon="@drawable/ic_settings_system" android:id="@id/system_settings" android:title="@string/system_settings_title" android:fragment="com.android.settings.cyanogenmod.SystemSettings" />
    <header android:icon="@drawable/ic_settings_advanced" android:id="@id/adi_buttons" android:title="@string/adi_buttons_title">
        <intent android:targetPackage="com.lidroid.settings" android:action="android.intent.action.MAIN" android:targetClass="com.lidroid.settings.Settings" />
    </header>
    <header android:title="@string/header_category_device" />
    <header android:icon="@drawable/ic_settings_sound" android:id="@id/sound_settings" android:title="@string/sound_settings" android:fragment="com.android.settings.SoundSettings" />
    <header android:icon="@drawable/ic_settings_display" android:id="@id/display_settings" android:title="@string/display_settings" android:fragment="com.android.settings.DisplaySettings" />
- res/values/ids.xml
Code:
<item type="id" name="adi_buttons">false</item>
- res/values/strings.xml
Code:
<string name="adi_buttons_title">Power Widget</string>
- res/values/drawable-hdpi
add this PNG image http://d-h.st/mQp

Done & recompile : push to system/app with right permission

NOTE !!, you can skip steps for editing Settings.apk, but don't use Lidroid_setings.apk bellow,. you must use this Version Lidroid_settings.apk by @akash akya,. go here : http://forum.xda-developers.com/show...4&postcount=34
Credit & Thanks to @akash akya
Don't forget to press His THANKS BUTTON

2. Download this Lidroid_Settings.apk push to system/app with right permission

3. Decompile SystemUI.apk, Download this : Sources_Lidroid_SystemUI.apk
exstract it and merge to your decompiled SystemUI.apk
NOTE !!, if your device has arrays.xml in res/values/here
please do check again the Sources_Lidroid_SystemUI.apk and adapt the arrays.xml code in it with yours

4. Add the blue code :
- res/values/ids.xml
Code:
<item type="id" name="power_widget_button_text">false</item>
<item type="id" name="power_widget_button_indic">false</item>
<item type="id" name="adi_widget">false</item>
<item type="id" name="automatic">false</item>
<item type="id" name="power_widget_button">false</item>
<item type="id" name="power_widget_button_image">false</item>
- res/values/strings.xml
Code:

    <string name="usb_connected_txt">USB connected</string>
    <string name="quickpanel_wifi_text">Wi-Fi</string>
    <string name="quickpanel_dc_text">Data</string>
    <string name="quickpanel_network_mode_text">Network</string>
    <string name="quickpanel_sound_text">Sound</string>
    <string name="quickpanel_sound_vibration_text">Sound vibration</string>
    <string name="quickpanel_silent_text">Silent</string>
    <string name="quickpanel_vibration_text">Vibration</string>
    <string name="quickpanel_rotation_text">Rotation</string>
    <string name="quickpanel_bluetooth_text">Bluetooth</string>
    <string name="quickpanel_gps_text">GPS</string>
    <string name="quickpanel_autosync_text">Auto Sync</string>
    <string name="quickpanel_brightness_text">Brightness</string>
    <string name="quickpanel_screen_timeout_text">Timeout</string>
    <string name="quickpanel_lockscreen_text">Lockscreen</string>
    <string name="quickpanel_airplane_text">Flightmode</string>
    <string name="quickpanel_flashlight_text">Flashlight</string>
    <string name="quickpanel_reboot_text">Reboot</string>
    <string name="quickpanel_shutdown_text">Shutdown</string>
    <string name="airplane_mode">In Flight mode</string>
    <string name="shutdown_confirm">Your phone will shut down.</string>
    <string name="screen_timeout_seconds">Screen timeout set to: %d second(s)</string>
    <string name="screen_timeout_minutes">Screen timeout set to: %d minute(s)</string>
    <string name="screen_timeout_hours">Screen timeout set to: %d hour(s)</string>
    <string name="hamster">Phone Options</string>
    <string name="yes">OK</string>
    <string name="no">Cancel</string>
    <string name="reboot">Reboot</string>
    <string name="reboot_recovery">Recovery</string>
    <string name="reboot_download">Download</string>
    <string name="quickpanel_nfc_text">NFC</string>
    <string name="quickpanel_wifi_ap_text">Wifi AP</string>
    <string name="quickpanel_lockscreen_action_text">Lock Now</string>
    <string name="quickpanel_androidbeam_text">Android Beam</string>
    <string name="brightness_settings_automatic">AUTO</string>
    <string name="brightness_settings_title" />
    <string name="quickpanel_usb_debugging_text">USB Debugging</string>
    <string name="quickpanel_usb_connection_mode_text">USB Conn. Mode</string>
    <string name="quickpanel_usb_current_mtp_title">Current mode: MPT</string>
    <string name="quickpanel_usb_current_msc_title">Current mode: MSC</string>
    <string name="usb_mpt_mode">MPT - Media Transfer</string>
    <string name="usb_msc_mode">MSC - Mass Storage</string>
    <string name="quickpanel_stay_awake_plugged_text">Stay Awake</string>
    <string name="quickpanel_battery_info_text">Battery Info</string>
    <string name="battery_info_info">Battery Information</string>
    <string name="battery_info_usage">Battery Power Usage</string>
- res/values/integers.xml
Code:
<integer name="quickpanel_scroll_threshold_port">5</integer>
<integer name="quickpanel_scroll_threshold_land">8</integer>
- smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
Code:
.field mPixelFormat:I

.field mPositionTmp:[I

.field mPostCollapseCleanup:Ljava/lang/Runnable;

.field mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

.field private mPreviousConfigFontScale:F

.field private mPrevioutConfigOrientation:I

.field mQueueLock:Ljava/lang/Object;
Next find this method
Code:
# virtual methods
.method public addIcon(Ljava/lang/String;IILcom/android/internal/statusbar/StatusBarIcon;)V
and Add the blue code above .return-void
Code:
invoke-virtual {v1, v0, p3, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

    invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->updateWidget()V

    .line 826
    return-void
.end method
Next find this method
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
scroll down still in that method ,
find the Green code, and add the blue code above it
Code:
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v10, 0x7f0c0044

    invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/ScrollView;

    iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrollView:Landroid/widget/ScrollView;

    .line 528
    iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrollView:Landroid/widget/ScrollView;

    const/4 v10, 0x0

    invoke-virtual {v9, v10}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V

iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

    .line 444
    const v10, 0x7f0c00da

    invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    .line 445
    move-result-object v9

    check-cast v9, Lcom/lidroid/systemui/quickpanel/PowerWidget;

    iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

    .line 530
    new-instance v9, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;

iget-object v10, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

    invoke-direct {v9, p0, v1, v10}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Landroid/content/Context;Landroid/view/View;)V

    iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mTicker:Lcom/android/systemui/statusbar/phone/Ticker;
Pay attentiion on the red code in the part of blue code, it have to be wriiten the same like above/previous part

Next go to post #2
Last edited by Adi Aisiteru Reborn; 29th July 2013 at 08:30 AM.
The Following 46 Users Say Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
27th July 2013, 08:54 PM   |  #2  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
Oke Next

still in that method, scroll down

add the red code

Mediatek device
Code:
const-string v9, "android.intent.action.SIM_INFO_UPDATE"

    invoke-virtual {v7, v9}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 607
    iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSIMInfoReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v9, v7}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

    invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
Xperia/AOSP
Code:
const-string v7, "android.intent.action.SCREEN_OFF"

    invoke-virtual {v1, v7}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 517
    iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v7, v1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 518
    iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;

    invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V


go to res/layout/ here
pay attention in this step of layout folder, you must adapt it to your device
below is example from my mod for CM10, where the notification panel is in
status_bar_expanded.xml, so I must put the lidroid toggle in it.
Code:
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
        <include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
        <com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/adi_widget" android:layout_width="fill_parent" android:layout_height="wrap_content" />
        <include layout="@layout/adi_brightness" />
        <RelativeLayout android:orientation="horizontal" android:background="#ff293945" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <TextView android:textSize="15.0dip" android:textStyle="bold" android:textColor="#ffadc1d6" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="23.0dip" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
            <TextView android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="123.0dip" android:layout_height="24.0dip" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
        </RelativeLayout>
        <TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
        <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="always">
            <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
        </ScrollView>
    </LinearLayout>


Recompile your systemUI.apk and decompile the newly Recompiled APK again

Next go to
res/values/public.xml
open it with Notepad++
leave it, but keep it open

next
- smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
with Notepad++ , control+F

Code:
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

    .line 444
    const v10, 0x7f0c00da

    invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    .line 445
    move-result-object v9

    check-cast v9, Lcom/lidroid/systemui/quickpanel/PowerWidget;

    iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
replace the red code 0x7f0c00da
with the new ids from public.xml of the second decompiled systemUI.apk
Code:
<public type="id" name="adi_widget" id="0x7fXXXXXX" />
Next go to post#3
Last edited by Adi Aisiteru Reborn; 28th July 2013 at 12:30 AM.
The Following 28 Users Say Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
27th July 2013, 08:54 PM   |  #3  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
Next : Download this : source_public, and open it with Notepad++
so you have two public.xml now which is opened in the Notepad++
1. secod decompiled public.xml
2. source_public.xml

- go to , smali/com/lidroid/systemui/quickpanel/here...
there are a lot of smalis there

FIND ALL IDS in all that smalis THAT'S STARTED WITH
Code:
0x7fxxxxxx
EXAMPLE :
AirplaneButton.smali
find this :
Code:
const v0, 0x7f0900b4
find 0x7f0900b4 in source_public.xml
Code:
<public type="string" name="quickpanel_lockscreen_text" id="0x7f0900b3" />
<public type="string" name="quickpanel_airplane_text" id="0x7f0900b4" />
<public type="string" name="quickpanel_flashlight_text" id="0x7f0900b5" />
we find that 0x7f0900b4 is for quickpanel_airplane_text
Next, find quickpanel_airplane_text new ids in your second decompiled SystemUI.apk
Code:
 <public type="string" name="quickpanel_airplane_text" id="0x7f??????" />
change the ids in AirplaneButton.smali with your new ids from second decompiled systemui.apk.

Do it too, to all
Code:
0x7fxxxxxx
in all smalis in the lidroid folder.

, The last part
open Android.Manifest.xml
Before
Code:
<manifest android:versionCode="16" android:versionName="4.1.2-eng.arco.20130605.050149" package="com.android.systemui" coreApp="true"
change it to :
Code:
<manifest android:sharedUserId="android.uid.system" android:process="system" android:versionCode="16" android:versionName="4.1.2-eng.arco.20130605.050149" package="com.android.systemui" coreApp="true"
Next, add the red code
Code:
 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
    <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" />
    <uses-permission android:name="android.permission.CAMERA" />
    <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" />
Done & Compile, don't forget to sign it coz we've make change to the android.manifest.xml
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



Done

Thanks @BOND1987 for the screenshot from Mediatek device



Additional Guide

[Porting Guide][CM10/JB] Mod 4.2 Statusbar Quicksettings ( TABS, Slider, Flip Anim )
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-07-27-20-19-47.jpg
Views:	4889
Size:	23.6 KB
ID:	2147946   Click image for larger version

Name:	Screenshot_2013-07-27-20-19-59.jpg
Views:	4130
Size:	29.1 KB
ID:	2147947   Click image for larger version

Name:	Screenshot_2013-07-27-20-20-10.jpg
Views:	3451
Size:	29.7 KB
ID:	2147948   Click image for larger version

Name:	Screenshot_2013-07-27-20-20-18.jpg
Views:	3234
Size:	29.9 KB
ID:	2147949   Click image for larger version

Name:	Screenshot_2013-07-27-20-23-35.jpg
Views:	2547
Size:	17.6 KB
ID:	2147950   Click image for larger version

Name:	Screenshot_2013-07-27-20-23-42.jpg
Views:	2191
Size:	22.1 KB
ID:	2147951   Click image for larger version

Name:	Screenshot_2013-07-27-20-23-47.jpg
Views:	1880
Size:	21.8 KB
ID:	2147952  
Attached Files
File Type: zip ApkMultitools_CM_signer.zip - [Click for QR Code] (5.4 KB, 657 views)
Last edited by Adi Aisiteru Reborn; 29th August 2013 at 12:52 AM.
The Following 28 Users Say Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
27th July 2013, 09:29 PM   |  #4  
vpart_aeip's Avatar
Senior Member
Flag Salatiga City
Thanks Meter: 169
 
122 posts
Join Date:Joined: Jan 2013
More
Thumbs up
wow... nice guide om
The Following User Says Thank You to vpart_aeip For This Useful Post: [ View ]
27th July 2013, 09:32 PM   |  #5  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
Do not follow the guide yet "!..

It hasn't finished yet,. Still so many missing part.

Later I'll continue

Sent from my GT-I8150 using xda app-developers app
Last edited by Adi Aisiteru Reborn; 28th July 2013 at 02:00 AM.
The Following 5 Users Say Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
27th July 2013, 11:20 PM   |  #6  
serajr's Avatar
Recognized Developer / Recognized Themer
Flag Rafard - SP
Thanks Meter: 10,165
 
2,658 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Congrats buddy!!!

IŽm about to release my Power Toggles v2 implementation (built from scratch), so after that uŽll get 28 toggles at all, and with a totally new reorder toggles way (built from scratch too). See it on XZ forum, here.
The Following 4 Users Say Thank You to serajr For This Useful Post: [ View ]
28th July 2013, 12:34 AM   |  #7  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
Quote:
Originally Posted by serajr

Congrats buddy!!!

IŽm about to release my Power Toggles v2 implementation (built from scratch), so after that uŽll get 28 toggles at all, and with a totally new reorder toggles way (built from scratch too). See it on XZ forum, here.

That's cool sir
The Following User Says Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
28th July 2013, 12:35 AM   |  #8  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
Oke guys, Guide Done now,.
Please do check again from the beginning of the guide ,.

have a nice modding
The Following User Says Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
28th July 2013, 08:55 AM   |  #9  
SuperDroid-BOND's Avatar
Recognized Contributor
Flag Your Heart, SweetHeart
Thanks Meter: 3,405
 
1,324 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Quote:
Originally Posted by Adi Aisiteru Reborn

Sir Need Assistance, Getting this error.....
Code:
E/AndroidRuntime(  432): FATAL EXCEPTION: main

E/AndroidRuntime(  432): java.lang.NullPointerException

E/AndroidRuntime(  432):     at com.lidroid.systemui.quickpanel.PowerButton.updateImageView(PowerButton.java:167)

E/AndroidRuntime(  432):     at com.lidroid.systemui.quickpanel.PowerButton.access$000(PowerButton.java:29)

E/AndroidRuntime(  432):     at com.lidroid.systemui.quickpanel.PowerButton$1.handleMessage(PowerButton.java:92)

E/AndroidRuntime(  432):     at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(  432):     at android.os.Looper.loop(Looper.java:153)

E/AndroidRuntime(  432):     at android.app.ActivityThread.main(ActivityThread.java:5086)

E/AndroidRuntime(  432):     at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  432):     at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime(  432):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)

E/AndroidRuntime(  432):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)

E/AndroidRuntime(  432):     at dalvik.system.NativeStart.main(Native Method)
Please guide.....
28th July 2013, 09:04 AM   |  #10  
Adi Aisiteru Reborn's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 4,483
 
1,650 posts
Join Date:Joined: Apr 2013
Quote:
Originally Posted by BOND1987

Sir Need Assistance, Getting this error.....

Code:
E/AndroidRuntime(  432): FATAL EXCEPTION: main

E/AndroidRuntime(  432): java.lang.NullPointerException

E/AndroidRuntime(  432):     at com.lidroid.systemui.quickpanel.PowerButton.updateImageView(PowerButton.java:167)

E/AndroidRuntime(  432):     at com.lidroid.systemui.quickpanel.PowerButton.access$000(PowerButton.java:29)

E/AndroidRuntime(  432):     at com.lidroid.systemui.quickpanel.PowerButton$1.handleMessage(PowerButton.java:92)

E/AndroidRuntime(  432):     at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(  432):     at android.os.Looper.loop(Looper.java:153)

E/AndroidRuntime(  432):     at android.app.ActivityThread.main(ActivityThread.java:5086)

E/AndroidRuntime(  432):     at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  432):     at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime(  432):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)

E/AndroidRuntime(  432):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)

E/AndroidRuntime(  432):     at dalvik.system.NativeStart.main(Native Method)
Please guide.....

How can you get Fatal error..
Did you apply the guide to stok unmodded apk or trying to combine it with other modded apk

Sent from my GT-I8150 using xda app-developers app

The Following 3 Users Say Thank You to Adi Aisiteru Reborn For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Themes by ThreadRank