[TUTORIAL] how to add reboot , recovery and bootloader options in Power menu - Sony Xperia S, Acro S, Ion

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

Haha...quick post...btw thanks
@mr.khan here you come
Sent from my LT26i using XDA Premium 4 mobile app

sir can you make a flashable zip for us who do not know how to use the required tools? please? thanks. hehe :highfive:

slink722 said:
sir can you make a flashable zip for us who do not know how to use the required tools? please? thanks. hehe :highfive:
Click to expand...
Click to collapse
if u can upload the framework-res.apk and android.policy.jar i can mod it for u ...when i have free time

I'll try this afternoon, thanks for the guide!!!!
Enviado desde mi LT26i usando Tapatalk

wow great

sandy7 said:
if u can upload the framework-res.apk and android.policy.jar i can mod it for u ...when i have free time
Click to expand...
Click to collapse
here's my android.policy.jar. i dont know why i cant upload the framework-res . it says " Your submission could not be processed because a security token was missing. If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error. "
how to bypass this?
thanks so much @sandy7

Waw! Fantastic work!
!

slink722 said:
here's my android.policy.jar. i dont know why i cant upload the framework-res . it says " Your submission could not be processed because a security token was missing. If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error. "
how to surpass this?
thanks so much @sandy7
Click to expand...
Click to collapse
put them in zip file and upload it other file server

sandy7 said:
put them in zip file and upload it other file server
Click to expand...
Click to collapse
thanks. im doing it now :good: :highfive:
---------- Post added at 03:52 PM ---------- Previous post was at 03:40 PM ----------
here's the link mate!
http://www.4shared.com/rar/XmdgXQoY/my_framework-res_and_androidpo.html
thanks agian!! btw, how to install? haha.

slink722 said:
thanks. im doing it now :good: :highfive:
---------- Post added at 03:52 PM ---------- Previous post was at 03:40 PM ----------
here's the link mate!
http://www.4shared.com/rar/XmdgXQoY/my_framework-res_and_androidpo.html
thanks agian!! btw, how to install? haha.
Click to expand...
Click to collapse
Ok i'll patch it when iam jobless...
Lol through cwm
Sent from my C5302 using XDA Premium 4 mobile app

sandy7 said:
Ok i'll patch it when iam jobless...
Lol through cwm
Sent from my C5302 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
hahah. ok ok. just beep me up when its done. :victory:

Must be deodex? If I'm odex, how can I do?
Thank you for reply.
Sent from my C6833 using XDA Premium 4 mobile app

bkk99213 said:
Must be deodex? If I'm odex, how can I do?
Thank you for reply.
Sent from my C6833 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No u must be deodexed
Sent from my C5302 using XDA Premium 4 mobile app

sandy7 said:
Ok i'll patch it when iam jobless...
Lol through cwm
Sent from my C5302 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
maybe i could give a help..heee

aminfauzi said:
maybe i could give a help..heee
Click to expand...
Click to collapse
Patch for other if ur totally jobless
Sent from my C5302 using XDA Premium 4 mobile app

sandy7 said:
Patch for other if ur totally jobless
Sent from my C5302 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Alright...doesnt matter..haha
Sent from my LT26i using XDA Premium 4 mobile app

aminfauzi said:
Alright...doesnt matter..haha
Sent from my LT26i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
so here is another req i got a PM
savergiggio said:
Please can u add Reboot Oprtions to my Files? Thx a lot...
Here u go : https://docs.google.com/file/d/0BwNAus1Rm9nUTnVnWGtzT2RBT2M/edit?usp=sharing
:laugh:
Click to expand...
Click to collapse

Ok give me a time
Sent from my LT26i using XDA Premium 4 mobile app

This for @gravtec, this is download link
http://www.4shared.com/zip/1aA-D0hn/Reboot_Option_for_gravtec_.html
Some advices:
backup your phone first before apply this
wipe cache partition and dalvik cache first for prevent from getting bootloop. then flash this mod.

Related

[GUIDE][GB] how to add ScreenShot EPM

hi guys. i'll tell you how to add Screenshot EPM. for screenies, check attach
first, download this file
https://www.dropbox.com/s/z0owyuwxmjm59dx/bahan.zip
note: DO BACKUP FIRST.
Stuff:
1. android.policy.jar
2. Framework-res.apk
3. Tools to decompile and compile .apk files like apk multitool or baksmali manager for .jar files . you can search it to google
4. brain
5. patient
+FIRST STEP:
1. decompile framework-res.apk
2. extract the files we have downloaded
3. put the ic_clock_screenshoot.png to the drawable-ldpi
4. open strings.xml
5. add this
Code:
<string name="screenshoot">Capture Image</string>
before line
Code:
</resources>
6. save and compile. make sure you don't get any errors when compiling
7. after all finished, decompile again the result was
8. go to public.xml
9. then see the hex code from the image and the strings that we created earlier like this
Code:
<public type="string" name="screenshoot" id="0x0[B]10404d6[/B]" />
<public type="drawable" name="ic_lock_screenshot" id="0x0[B]10804b4[/B]" />
10. the bold text is what we need for next step
+LAST STEP:
1. decompile android.policy.jar
2. put the GlobalActions$12.smali and GlobalActions$12$1.smali to the com\android\internal\policy\impl\here
3. then, open GlobalActions.smali
4. search this line
Code:
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
5. above it, there is const /4 v0, 0x3, change to const /4 v0, 0x4
6. then, look at the pict
7. add this line below it
Code:
const/4 v1, 0x3
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$12;
const v3, 0x108xxxx -> ic__lock_screenshoot.png
const v4, 0x104xxxx -> screencapture string
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$12;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
8. see on this
9. change const/4 v1, 0x3 to const/4 v1, 0x4
10. save and compile
11. after all steps completed, flash it via CWM
NB:
-i made this guide from original based stockrom DXLF, it will different if you have EPM (data mode, reboot mode, recovery mode, download mode) first. for who have epm first and will add this features, go to HERE
-if you don't understand / get error, report here and i'll help you
Will this work with other devices?
nolinuxnoparty said:
Will this work with other devices?
Click to expand...
Click to collapse
If you focus and understand, it will probably work on other devices
Nice guide, thanks pressed.
For who have epm
this is for you who have EPM (Sound mode, Data mode, Airplane mode, Reboot mode, Recovery mode, Download mode, Power Off). little modification on smali
Tuts:
1. for editing Framework-res.apk, it same as like first post
2. decompile android.policy.jar
3. search
Code:
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
4. look above it, if showing const/4 v0, 0x7 ignore it. if not, if showing anything else like const/4 v0, 0x6, change 0x6 to 0x7
5. on this step, you need to editing the download mode line (i think download mode is useless, the features like reboot/restart and doesn't lead to download mode)
6. change the bold to
Code:
const/4 v1, 0x3
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$12;
const v3, 0x108xxxx -> ic_lock_screenshoot.png
const v4, 0x104xxxx -> screenshoot string
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$12;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
7. save and compile. make sure you don't get errors
8. flash it via cwm
CharsiBabu said:
Nice guide, thanks pressed.
Click to expand...
Click to collapse
thankyou
Will try it now
Reserved.
jpdesuasido said:
Will try it now
Reserved.
Click to expand...
Click to collapse
good luck bro
ocoot said:
good luck bro
Click to expand...
Click to collapse
Thanks :angel: (2 times pressed )
up
doesnt understand
i have an epm but your smali and my smali differrent?
Just 1 word required to define this Guide. AWESOME
Sent from my GT-S6102 using Xparent BlueTapatalk 2
NgamTeroxx said:
i have an epm but your smali and my smali differrent?
Click to expand...
Click to collapse
i think you need a little bit more experience to learning smali bro
samsoul16 said:
Just 1 word required to define this Guide. AWESOME
Sent from my GT-S6102 using Xparent BlueTapatalk 2
Click to expand...
Click to collapse
thanks sirrrrr
I can not find it or anything like it, you can help me put it in another location not
Code:
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
zangge34 said:
I can not find it or anything like it, you can help me put it in another location not
Code:
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
Click to expand...
Click to collapse
you can see on the screenies sir. may on other phone/rom it's little bit different http://forum.xda-developers.com/showpost.php?p=43256383&postcount=2
I want you to help me review my file GlobalActions.smali.
If you help me I will be very happy and thank you.
mediafire.com/download/3wzk47a10w93cv9/GlobalActions.smali[/url]
thanks for the info
Good Job Broo
Great Guide .
I have successfully done step 1 but not able to do step 2 .
Can you help me ?? plz

[GUIDE]Remove Connected to Wi-Fi network toast mesaage

Hi! Here is small guide, how to remove toast message "Connected to Wi-Fi network blablabla".
Decompile "SecSettings.apk" and navigate to file "smali\com\android\settings\wifi\WifiStatusReceiver.smali"
Find this code:
Code:
.line 194
invoke-virtual {v3}, Landroid/widget/Toast;->getView()Landroid/view/View;
move-result-object v1
const v4, 0x102000b
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
.line 195
const/16 v4, 0x11
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setGravity(I)V
.line 196
[COLOR="Red"]invoke-virtual {v3}, Landroid/widget/Toast;->show()V[/COLOR]
goto :goto_1a3
and change red part to:
Code:
[COLOR="Red"]#invoke-virtual {v3}, Landroid/widget/Toast;->show()V[/COLOR]
Ok, thats all. Save, recompile, copy back to phone and restart.
here again:
very good work somin
works like a charm, no annoying popups anymore
JackoMJ
somin.n said:
Hi! Here is small guide, how to remove toast message "Connected to Wi-Fi network blablabla".
Decompile "SecSettings.apk" and navigate to file "smali\com\android\settings\wifi\WifiStatusReceiver.smali"
Find this code:
Code:
.line 194
invoke-virtual {v3}, Landroid/widget/Toast;->getView()Landroid/view/View;
move-result-object v1
const v4, 0x102000b
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
.line 195
const/16 v4, 0x11
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setGravity(I)V
.line 196
[COLOR="Red"]invoke-virtual {v3}, Landroid/widget/Toast;->show()V[/COLOR]
goto :goto_1a3
and change red part to:
Code:
[COLOR="Red"]#invoke-virtual {v3}, Landroid/widget/Toast;->show()V[/COLOR]
Ok, thats all. Save, recompile, copy back to phone and restart.
Click to expand...
Click to collapse
What program can I use to decompile the apk?
trueking7 said:
What program can I use to decompile the apk?
Click to expand...
Click to collapse
Here is planty of tutorial on forum, just try to search
somin.n said:
Here is planty of tutorial on forum, just try to search
Click to expand...
Click to collapse
Nice one somin, I'll try it if I get back to home.
limyuyang said:
Nice one somin, I'll try it if I get back to home.
Click to expand...
Click to collapse
I tested apktools and TMA (Tickle my Android) and the best is TMA from Ticklefish- you can find it HERE.
Have fun!
JackoMJ said:
I tested apktools and TMA (Tickle my Android) and the best is TMA from Ticklefish- you can find it HERE.
Have fun!
Click to expand...
Click to collapse
I'm using to tickle my android too, its the easiest tool for me.
JackoMJ said:
I tested apktools and TMA (Tickle my Android) and the best is TMA from Ticklefish- you can find it HERE.
Have fun!
Click to expand...
Click to collapse
How come I don't have this code under the line 196 ?
Code:
invoke-virtual {v3}, Landroid/widget/Toast;->show()V
I fave decompiled all these files, but still I can't find the invoke-virtual {v3}, Landroid/widget/Toast;->show()V
limyuyang said:
How come I don't have this code under the line 196 ?
Code:
invoke-virtual {v3}, Landroid/widget/Toast;->show()V
Click to expand...
Click to collapse
you must search this in your editor:
invoke-virtual {v3}, Landroid/widget/Toast;->show()V
Click to expand...
Click to collapse
or just
Landroid/widget/Toast;->show()V
Click to expand...
Click to collapse
in my file it is also not line 196
JackoMJ said:
you must search this in your editor:
or just
in my file it is also not line 196
Click to expand...
Click to collapse
After using search, still can't find it.
I tried to search
Code:
Landroid/widget/Toast;->show()V
It shows 8 matches, but none of these are the same as the code.
limyuyang said:
It shows 8 matches, but none of these are the same as the code.
Click to expand...
Click to collapse
can you send me your secsettings.apk and framework-res.apk to have a look?
JackoMJ said:
can you send me your secsettings.apk and framework-res.apk to have a look?
Click to expand...
Click to collapse
Sure. But my computer doesn't allow me to upload those files.
I'll upload to another site. Hold on.
Edit: https://www.dropbox.com/s/zwqa7zg55s8s9bh/frame+sec.rar
limyuyang said:
Sure. But my computer doesn't allow me to upload those files.
I'll upload to another site. Hold on.
Edit: https://www.dropbox.com/s/zwqa7zg55s8s9bh/frame+sec.rar
Click to expand...
Click to collapse
make a nandroid backup.
copy secsettings.apk to device
SecSettings
JackoMJ said:
make a nandroid backup.
copy secsettings.apk to device
SecSettings
Click to expand...
Click to collapse
Thanks ! It works. How do you made it actually ? How do you find those words?
you´re welcome.
limyuyang said:
Thanks ! It works. How do you made it actually ? How do you find those words?
Click to expand...
Click to collapse
JackoMJ said:
you´re welcome.
Click to expand...
Click to collapse
Wow, but I thought the code is different from somin 's ? Look at somin code, it's v3, and the screenshot u gave me is v4.
Can anyone make an xposed module for this? This is awesome!
Is there a way you can hide it on ics when you click on time
Sent from my GT-I8190 using Tapatalk
truemagic said:
Can anyone make an xposed module for this? This is awesome!
Click to expand...
Click to collapse
This mod is so easy, that it doesn't need xposed module Anyway, I can't do it
robindebruin said:
Is there a way you can hide it on ics when you click on time
Click to expand...
Click to collapse
Sorry, don't know what you mean? Don't have ICS device and don't know what happan if you click time
somin.n said:
Hi! Here is small guide, how to remove toast message "Connected to Wi-Fi network blablabla".
Decompile "SecSettings.apk" and navigate to file "smali\com\android\settings\wifi\WifiStatusReceiver.smali"
Find this code:
Code:
.line 194
invoke-virtual {v3}, Landroid/widget/Toast;->getView()Landroid/view/View;
move-result-object v1
const v4, 0x102000b
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
.line 195
const/16 v4, 0x11
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setGravity(I)V
.line 196
[COLOR="Red"]invoke-virtual {v3}, Landroid/widget/Toast;->show()V[/COLOR]
goto :goto_1a3
and change red part to:
Code:
[COLOR="Red"]#invoke-virtual {v3}, Landroid/widget/Toast;->show()V[/COLOR]
Ok, thats all. Save, recompile, copy back to phone and restart.
Click to expand...
Click to collapse
Thank you!

[Mod][Guide]I9500 4.4.2 4way Reboot

4Way Reboot Guide I9500 4.4.2​
Hey guys im back because there are to many ready made mods and not enough upto date how to guides for 4.4.2 I9500. First of all this is not my work its from @majdinj guides from his amazing thread Here All i have done it make the necessary edits to make his guide work on our 4.4.2 i9500 devices. So if you want to thank someone for this guide then go to majdinj's thread and thank him.
First of all i have not come here to teach you how to decompile .apks and .jar, if your reading this guide then i would hope you already have this knowledge and please dont let the first post say "can you make a flashable zip" as im trying to get you guys to dive in and have a go as its not very hard to build mod
As i have said all credit goes to @majdinj
For this mod we will be dealing with android.policy.jar so go get if from your /system/framework/ and decompile it
android.policy.jar
Open classout folder and go to \com\android\internal\policy\impl\ and place these files from this edited resource zip
Now Find and Open GlobalActions.smali and look for
Code:
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$8;
const v1, 0x10809bb
const v2, 0x10401d6
invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
And replace what is in Red
Code:
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$[COLOR="Red"]99[/COLOR];
const v1, 0x10809bb
const v2, 0x10401d6
invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$[COLOR="red"]99[/COLOR];-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mRestart:Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;
Save that and move onto GlobalActions$SinglePressAction.smali
Add Code in Red
Code:
[COLOR="Red"]# static fields
.field protected static rebootMode:I
.field protected static final rebootOptions:[Ljava/lang/String;[/COLOR]
# instance fields
Now still in GlobalActions$SinglePressAction.smali look for the code "# direct methods" and add code in Red
Code:
# direct methods
[COLOR="Red"].method static constructor <clinit>()V
.registers 3
const/4 v0, 0x4
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 Reboot"
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
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method[/COLOR]
.method protected constructor <init>(II)V
If you want to replace header Reboot Method Then open GlobalActions$99.smali and search for
Code:
const-string v2, "Reboot Method"
And replace for Header you want
Recompile and your done
As i said this is majdinj guide and he deserves full credit and thanks
just incase
Thanks Buddy
I'll try it later today
I tried many time before and it didn't work
Sent from my GT-I9500
AL_IRAQI said:
Thanks Buddy
I'll try it later today
I tried many time before and it didn't work
Sent from my GT-I9500
Click to expand...
Click to collapse
thanks m8, i put this together because the S4 can use all the help it can get when it comes to guides
Big thanks my friend! :good:
Youre great!
Regards
» Arrow « said:
Big thanks my friend! :good:
Youre great!
Regards
Click to expand...
Click to collapse
Any time m8 hope it helps
Sent from my GT-I9500 using Tapatalk 2
Good work mate.
Sent from my Nexus 5 using XDA Free mobile app
Vivek_Neel said:
Good work mate.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks m8
Sent from my GT-I9500
thanks man thanx :good:
ahmed elhusseny said:
thanks man thanx
Click to expand...
Click to collapse
I see what you did there.
Sent from my Nexus 5 using Tapatalk 2
Vivek_Neel said:
I see what you did there.
Sent from my Nexus 5 using Tapatalk 2
Click to expand...
Click to collapse
what did you mean ?
ahmed elhusseny said:
what did you mean ?
Click to expand...
Click to collapse
Hmm.
I was just telling you to make some useful 10 posts.
Sent from my Nexus 5 using Tapatalk 2
Vivek_Neel said:
Hmm.
I was just telling you to make some useful 10 posts.
Sent from my Nexus 5 using Tapatalk 2
Click to expand...
Click to collapse
hahahahahaha you got me man i'm here from 2012 but i was just downloading , without email or replying but one day i just need to ask a question so i just read the rules and tried to ask in the Discussion
Thats good guide..but is there anything wrong if we achieve the same thing via..xposed?
tollboy said:
Thats good guide..but is there anything wrong if we achieve the same thing via..xposed?
Click to expand...
Click to collapse
Its the difference between forcing your newly updated apks on newest update to give you 4way reboot and adding code so it will naturally give you 4way reboot. Wanam has stopped updating xposed a while ago but if your happy with xposed and any wakelocks it may give then i wont try to change your opinion about xposed
Sent from my GT-I9500

[Guide][tut][UP 21/JAN/15] Show/Hide Brightness Slider on notification Quick settings

Hello guys
Happy new Year for first
This is my first tut in This new year 2016
All you need is Deodexed SystemUI.apk and Settings.apk
1. Decompile SystemUI.apk
2. Open SystemUI.apk/smali/com/android/systemui/qs/QSPanel.smali
3. Find this code
Code:
.field private mBrightnessPaddingTop:I
Below that add this code
Code:
.field private mBrightnessSliderEnabled:Z
4. Search for this Method
Code:
.method private setDetailRecord(Lcom/android/systemui/qs/QSPanel$Record;)V
and above that method add this complete method
Code:
.method private isBrightnessSliderEnabled()I
.locals 4
const/4 v3, 0x0
iget-object v0, p0, Lcom/android/systemui/qs/QSPanel;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string v1, "brightness_slider_show"
const/4 v2, 0x1
invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v0
if-eqz v0, :cond_0
const/4 v3, 0x1
:cond_0
iput-boolean v3, p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessSliderEnabled:Z
return v3
.end method
5. Search for this method
Code:
.method private showDetail(ZLcom/android/systemui/qs/QSPanel$Record;)V
Above that method, add this method
Code:
.method private showBrightnessSlider()Z
.locals 5
const/16 v3, 0x8
const/4 v2, 0x0
const v1, 0x7f10012e
invoke-direct {p0}, Lcom/android/systemui/qs/QSPanel;->isBrightnessSliderEnabled()I
move-result v4
invoke-virtual {p0, v1}, Lcom/android/systemui/qs/QSPanel;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/android/systemui/settings/ToggleSlider;
if-eqz v4, :cond_0
iget-boolean v1, p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessSliderEnabled:Z
if-eqz v1, :cond_0
iget-object v1, p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessView:Landroid/view/View;
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
invoke-virtual {v0, v2}, Lcom/android/systemui/settings/ToggleSlider;->setVisibility(I)V
:goto_0
invoke-virtual {p0}, Lcom/android/systemui/qs/QSPanel;->updateResources()V
iget-boolean v1, p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessSliderEnabled:Z
return v1
:cond_0
iget-object v1, p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessView:Landroid/view/View;
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
invoke-virtual {v0, v3}, Lcom/android/systemui/settings/ToggleSlider;->setVisibility(I)V
goto :goto_0
.end method
6. Now Look for this Code
Code:
if-eqz p1, :[COLOR="red"]cond_3[/COLOR]
.line 216
iget-object [COLOR="Red"]v2[/COLOR], p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessController:Lcom/android/systemui/settings/BrightnessController;
Add the code above the .line 216 ( this .line 216 will not be same with all devices )
Code:
invoke-direct {p0}, Lcom/android/systemui/qs/QSPanel;->showBrightnessSlider()Z
move-result [COLOR="red"]v2[/COLOR]
if-eqz [COLOR="red"]v2[/COLOR], :[COLOR="red"]cond_3[/COLOR]
Finally it looks like
Code:
if-eqz p1, [COLOR="blue"]:cond_3[/COLOR]
[COLOR="Red"] invoke-direct {p0}, Lcom/android/systemui/qs/QSPanel;->showBrightnessSlider()Z
move-result [COLOR="blue"]v2[/COLOR]
if-eqz [COLOR="blue"]v2[/COLOR], [COLOR="blue"]:cond_3[/COLOR][/COLOR]
.line 216
iget-object [COLOR="Blue"]v2[/COLOR], p0, Lcom/android/systemui/qs/QSPanel;->mBrightnessController:Lcom/android/systemui/settings/BrightnessController;
After adding that
replace this Public id
<public type="id" name="brightness_slider" id="0x7f10012e" />
6. Now compile the SystemUI.apk and sign it and replace
Now time to add in the settings look for post #2
adding to Settings
Welcome to easy part on adding the option to hide/show in settings
Method 1
1. Decompile the settings.apk
2. Download this View attachment Slider_Settings.zip and merge to your settings
3. Add the below code to your settings ( i had added to my own settings ) and your wish
Code:
<PreferenceScreen android:title="Statusbar Mod" android:key="statusmod" android:fragment="com.android.settings.rz.Statusmod" />
4. Compile it and Decompile and open
Settings.apk/smali/com/android/settings/rz/Statusmod.smali
5. Compare the Public ID and replace it and recompile
6. God you did man,,, now replace and have fun
Method 2
1. Decompile the Settings.apk
2. Download this View attachment settings.zip and merge to your settings
3. Add the below code to your settings ( i had added to my own settings.xml )
you can add in settings.apk/res/xml/Dispaly_settings.xml
HTML:
<com.android.settings.cyanogenmod.SystemSettingSwitchPreference android:title="Brightness Slider" android:key="brightness_slider_show" android:defaultValue="0" android:summaryOn="Brightness Slider Shown" android:summaryOff="Brightness Slider Hidden" />
and then compile/sign and replace your settings
OR
Try download this ROM Control application (View attachment app-release.apk ) where you can Easily control
All you is just install and have fun
Thanks to @daxgirl for the app source ​
now have fun guys
Thanks to cyanogenmod
Dont Forget to mention me if you used my work
that feels me happy
hello venkat ,
I 've implemented a tutor in, but why every time I switch Brightness Hide its always off if i back from settings..
Can you help me to fix it ???
aNgga - Fe Hung said:
hello venkat ,
I 've implemented a tutor in, but why every time I switch Brightness Hide its always off if i back from settings..
Can you help me to fix it ???
Click to expand...
Click to collapse
thanks for identifying this ( even it works the switch turns off)
i had forgot to define the return value of switch
now its fixed
just replace the settings.zip
and everything will be ok
venkat kamesh said:
thanks for identifying this ( even it works the switch turns off)
i had forgot to define the return value of switch
now its fixed
just replace the settings.zip
and everything will be ok
Click to expand...
Click to collapse
still the same as before ny : ' (
Can you help me bro ??
aNgga - Fe Hung said:
still the same as before ny : ' (
Can you help me bro ??
Click to expand...
Click to collapse
Impossible bro
Try from first if in case
I had tested and many of my team too got it working
venkat kamesh said:
Impossible bro
Try from first if in case
I had tested and many of my team too got it working
Click to expand...
Click to collapse
I try with ur new settings smali and still don't working the switch when I enable and then return to desactivate the switch is unable and don't hide the brightness bar
Bro i think that I found the problem I compare the two smali that u update on the hide show album art and this and are the same maybe u forgot to upload the new
raziel zarafan said:
I try with ur new settings smali and still don't working the switch when I enable and then return to desactivate the switch is unable and don't hide the brightness bar
Click to expand...
Click to collapse
raziel zarafan said:
Bro i think that I found the problem I compare the two smali that u update on the hide show album art and this and are the same maybe u forgot to upload the new
Click to expand...
Click to collapse
No way bro
I had updated both of same file
Tested Moor than enough
If not go through my setting bro
Bin thanks for your tut ! Can you do some tuto with navbar tuning ? Appreciate it
Envoyé de mon E6653 en utilisant Tapatalk
After adding that
replace this Public id
<public type="id" name="brightness_slider" id="0x7f10012e" />
bro i dont understand very well , the public id that i need to replace where i can find the new id , i know to i must open res/xml/public and replace the line that u publish but what new id i must put or where i can find it
raziel zarafan said:
After adding that
replace this Public id
<public type="id" name="brightness_slider" id="0x7f10012e" />
bro i dont understand very well , the public id that i need to replace where i can find the new id , i know to i must open res/xml/public and replace the line that u publish but what new id i must put or where i can find it
Click to expand...
Click to collapse
In the method you have const v1 0x7f10012e
Go to you public.xml and serch for <public type="id" name="brightness_slider, and the public id you have copy and change 0x7f10012e for you public id you copy
dark90 said:
In the method you have const v1 0x7f10012e
Go to you public.xml and serch for <public type="id" name="brightness_slider, and the public id you have copy and change 0x7f10012e for you public id you copy
Click to expand...
Click to collapse
The public id and the const value are the same bro .-. And when I replace the systemui and enable hide it don't work T-T
raziel zarafan said:
The public id and the const value are the same bro .-. And when I replace the systemui and enable hide it don't work T-T
Click to expand...
Click to collapse
You are right i tried and didnt work too
dark90 said:
You are right i tried and didnt work too
Click to expand...
Click to collapse
Maybe something is wrong bro
Not working for me too.. I think some problems with the smali file .. Waiting for OP's replay
raziel zarafan said:
The public id and the const value are the same bro .-. And when I replace the systemui and enable hide it don't work T-T
Click to expand...
Click to collapse
dark90 said:
You are right i tried and didnt work too
Click to expand...
Click to collapse
raziel zarafan said:
Maybe something is wrong bro
Click to expand...
Click to collapse
Rajeev said:
Not working for me too.. I think some problems with the smali file .. Waiting for OP's replay
Click to expand...
Click to collapse
Brothers every thing is working
I had already provided my settings
May be issue from settings
I will provide rom control app
Sure it helps you
venkat kamesh said:
Brothers every thing is working
I had already provided my settings
May be issue from settings
I will provide rom control app
Sure it helps you
Click to expand...
Click to collapse
Already compared ur settings and all bro. Not working..
Rajeev said:
Already compared ur settings and all bro. Not working..
Click to expand...
Click to collapse
Don't worry brother
I already had alternate for this to work
On all switch properties tuts of mine
Now just a moment back I fixed my pc
Once done I will update threads
dark90 said:
You are right i tried and didnt work too
Click to expand...
Click to collapse
raziel zarafan said:
Maybe something is wrong bro
Click to expand...
Click to collapse
Rajeev said:
Not working for me too.. I think some problems with the smali file .. Waiting for OP's replay
Click to expand...
Click to collapse
Brothers The Tut got updated
with new settings smali
i tough smali will make you confused so not provided
any how there are three ways and now its your wish
1.Smali
2.Smali with no Id
or the app control

MarshMallow Platlogo for Samsung Galaxy Grand Prime

Sharing again Marshmallow platlogo and games.....
Requirements:
Rooted
Deodex (very much required)
Disabled Signature (use Lucky patcher)
ApkTOOL
Jota Text Editor
Root Explorer
Brain.apk
Marlboro red
Black Coffee
Tutorial:
1. Decompile Framework.jar
2. Go to smali/com/android/internal/app..
3. Open PlatLogoActivity.smali
4. Remove all the lines from that smali and paste below below lines
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/BundleV
.locals 5
.param p1, "savedInstanceState" # Landroid/os/Bundle;
.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/BundleV
.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/StringV
.line 19
.local v1, "intent":Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "androstarkdeveloper.marshamlloweasteregg"
const-string v4, "androstarkdeveloper.marshamlloweasteregg.MainActivity"
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/StringV
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentNameLandroid/content/Intent;
.line 23
:try_start_0
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/IntentV
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 39
:goto_0
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_0
move-exception v0
.line 35
.local v0, "e":Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app Droidbuster told you to!"
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_0
.end method
5. Recompile and sign..
6. push Megg.apk (Marshmallow egg) to system/priv-app..permission rwrr
7. push MarshMallow Games.apk to system/app...permission rwrr
8. Push framework.jar to system/framework with correct permission rwrr (make sure to set the correct permission rwrr first outside the framework folder before pasting it inside the framework folder to avoid errors.)
9. Reboot device and done..
10.Wait 3 to 5 mins to open...then go to about device tap 3 to 5 times the android version and the Marshmallow will now show up..do a long press to marshmallow icon and the marshmallow games will come out..
Link: FOR THE mEGG.APK AND mARSHMALLOW GAMES:
Link: https://mega.nz/#!GRV3BYpA!rTdauTJoSGqrFKH0CfQ2FYOEq3_sQrHrfrwx9GF4ai4
Credits:
MR. X of SGGP PH (The OFFICIAL)
DroidBuster
Working hehe [emoji1]
Sent from my SM-N920C using Tapatalk
can someone make this flashable
Whats your complete baseband version? send me your framework.jar .....i will make flashable for your baseband...
Here it is https://drive.google.com/file/d/0B-P8_wMGLSwbV2o1ZTNSSFlNZnM/view?usp=sharing
Hit Thanks!!! If you like my work
here it is https://mega.nz/#!rVEADRQR!O_7vm2sjlODaW_zdJ4jPOQEuGnfcdRpa00-A5c_SwHI
flash the zipfile via twrp or cwm....before flashing make sure your rom is deodexed and disabled signature...wait 5 to 10 mins to open...
Sent from my SM-N920C using XDA-Developers mobile app
Sent from my SM-G930F using XDA-Developers mobile app
friends anyone knows how to change the logo splash plis answer
juancapo9999 said:
friends anyone knows how to change the logo splash plis answer
Click to expand...
Click to collapse
refer to this link bro: http://forum.xda-developers.com/galaxy-s6-edge/themes-apps/avengers-theme-individual-mode-t3140647
or this link: http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-custom-boot-splash-t3130557
redskin08 said:
refer to this link bro: http://forum.xda-developers.com/galaxy-s6-edge/themes-apps/avengers-theme-individual-mode-t3140647
or this link: http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-custom-boot-splash-t3130557
Click to expand...
Click to collapse
second link bro i need form grand prime .
plis bump
SM-G530FZ
Can you make flashable for GP SM-G530FZ please ?
Thanks
send me your framework.jar ill make flashable for your baseband...
Sent from my SM-G935F using XDA-Developers mobile app
redskin08 said:
send me your framework.jar ill make flashable for your baseband...
Sent from my SM-G935F using XDA-Developers mobile app
Click to expand...
Click to collapse
My framework : https://drive.google.com/file/d/0B1uY0D8_tcEvMlJOb25pQmZXZ1U/view?usp=drivesdk
Sent from my SM-G935F using XDA-Developers mobile app
here it is bro
https://mega.nz/#!uUNjRLzY!NxCgWwnJ0VC0EeDX8eR6N358mWGogWFMC2DCpTy-0GQ
make a flashable backup first of your framework.jar.....
booting time is 5 to 7 minutes...make sure you are deodex and have disabled signature.....
provide feedback once your done...
Sent from my SM-G935F using XDA-Developers mobile app
https://mega.nz/#!uUNjRLzY!NxCgWwnJ0VC0EeDX8eR6N358mWGogWFMC2DCpTy-0GQ
Sent from my SM-G935F using XDA-Developers mobile app
redskin08 said:
https://mega.nz/#!uUNjRLzY!NxCgWwnJ0VC0EeDX8eR6N358mWGogWFMC2DCpTy-0GQ
Sent from my SM-G935F using XDA-Developers mobile app
Click to expand...
Click to collapse
Thanks bro
Sent from my SM-G935F using XDA-Developers mobile app
---------- Post added at 08:54 AM ---------- Previous post was at 08:33 AM ----------
redskin08 said:
here it is bro
https://mega.nz/#!uUNjRLzY!NxCgWwnJ0VC0EeDX8eR6N358mWGogWFMC2DCpTy-0GQ
make a flashable backup first of your framework.jar.....
booting time is 5 to 7 minutes...make sure you are deodex and have disabled signature.....
provide feedback once your done...
Sent from my SM-G935F using XDA-Developers mobile app
Click to expand...
Click to collapse
It works but can I hide the marshmallow game icon ?
Sent from my SM-G935F using XDA-Developers mobile app
NazareoJordan said:
Thanks bro
Sent from my SM-G935F using XDA-Developers mobile app
---------- Post added at 08:54 AM ---------- Previous post was at 08:33 AM ----------
It works but can I hide the marshmallow game icon ?
Sent from my SM-G935F using XDA-Developers mobile app
Click to expand...
Click to collapse
Good Job Bro......yes you can hide it....
@redskin08
Nice Friend, can you make it too for Grand Prime VE G531H????pleasee...???
Sent from my SM-G531H using XDA-Developers mobile app
sure ..send me your framework.jar....ill try to fix it later....
Sent from my SM-G935F using XDA-Developers mobile app

Categories

Resources