yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] alkhafaf:
Can u update this mod to make the list of boots appear even in lockscreen? cuz the list doesnt appear when trying to turn off in lockscreen..

This would make the mod perfect and no need anymore to the extended power menu.

Sent from tapatalk using sgs i9000

[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty

Google+
[Galaxy S II Themes and Apps] Ryuinferno:
Hi...I have tired to implement this mod on a stock I9100G ROM (deodexed, 4.0.3)...

Decomplied and added the necessary lines...but I changed the codes for "ok" to 0x104000a and "cancel" to 0x01040000..."config_sf_slowBlur" was also changed to 0x01110008...but when I try to compile, I got this error:

Seems that the long int cannot fit in the short int declared somewhere in GlobalActions$99.smali...but how to fix this problem? I am already using baksmali and smali 1.3.2...

Thanks in advance...:)
[Galaxy S II Themes and Apps] kahvitahra:
You have to remove that zero (0) for those ids in smali. So for example, if some id is 0x01110008 in puplic.xml then its 0x1110008 in smali. So change those back what they were. Also that cancel id to 0x104.
[Galaxy S II Themes and Apps] Chrack:
I have some problems too.

Use a Samsung Galaxy Note 10.1 Tab (N8000)

- "GlobalActions$99.smali" id 0x1110008 is the same in "config_sf_slowBlur"

<public type="bool" name="config_sf_slowBlur" id="0x01110008" />

- ids 0x104000a = "ok" -string and 0x104 = "cancel" are the same

<public type="string" name="ok" id="0x0104000a" />
<public type="string" name="cancel" id="0x01040000" />

- Open GlobalActions.smali

Search line "new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$6;"

In my Rom there is no $6 for it but $5

new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$5;

const v1, 0x10807ff

const v2, 0x1040165

invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$5;-><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;

So i changed it to $99 right?

-Open GlobalActions$SinglePressAction.smali

I insert the 2 lines

The 3 new GlobalAction$99 i put it in thee right folder.

Compiled it but the 4 way reboot dont work.

I press the Powerbutton and select reboot, now my Rom hangs.

I cant see the 4 way buttons.

Here are my files stock and one with mod inside.
[Galaxy S II Themes and Apps] kahvitahra:
If you did all that, then you should look at your logcat and see if that gives error.
[Galaxy S II Themes and Apps] Chrack:
Yes i insert the 2 method in the GlobalActions$SinglePressAction.smali ;)

You can see it in my Attachments.

Ok will look for Logcat.

---------- Post added at 07:18 PM ---------- Previous post was at 06:27 PM ----------

E/android.os.Debug( 2063): !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/dumpstate_sys_error

E/AndroidRuntime( 2063): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy

E/AndroidRuntime( 2063): java.lang.NoSuchMethodError: com.android.internal.policy.impl.GlobalActions.access$000

E/AndroidRuntime( 2063):	at com.android.internal.policy.impl.GlobalActions$99.onPress(GlobalActions.java)

E/AndroidRuntime( 2063):	at com.android.internal.policy.impl.GlobalActions.onClick(GlobalActions.java:583)

E/AndroidRuntime( 2063):	at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:936)

E/AndroidRuntime( 2063):	at android.widget.AdapterView.performItemClick(AdapterView.java:292)

E/AndroidRuntime( 2063):	at android.widget.AbsListView.performItemClick(AbsListView.java:1416)

E/AndroidRuntime( 2063):	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3046)

E/AndroidRuntime( 2063):	at android.widget.AbsListView$1.run(AbsListView.java:3932)

E/AndroidRuntime( 2063):	at android.os.Handler.handleCallback(Handler.java:605)

E/AndroidRuntime( 2063):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( 2063):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 2063):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:770)

I/dumpstate( 3392): begin

Thats the error i think :angel:
[Galaxy S II Themes and Apps] kahvitahra:
Indeed it is. There is a call for

Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

In those source files that method was "access$000". You have that also in your globalactions.smali, but it have different number ( i bet it's access$200, like in LPX rom). So search for right name and change all of those calls to that. ( there is two of those in 99 and two in 99$1 ).
[Galaxy S II Themes and Apps] Chrack:
Thanks Mate,

thats it and now all works!
[Galaxy S II Themes and Apps] ermacwins:
Will this work on MIUI roms? I know WIUI has it but the official MIUI roms dont. What file can I extract from WIUI to put in my currect rom?
[Galaxy S II Themes and Apps] kahvitahra:
You can make it yourself with this tutorial. Like I said this is originally from MIUI, so yes it will work on that. There is also shared flashable zip of this mod in MIUI forum.

See here.
[Galaxy S II Themes and Apps] pimpmaneaton:
So i have done this mod and have it to what I believe matches the instructions in op, but when I hit restart, the next menu had restart method and then "Cancel" and "OK" buttons, but unable to select methods. This is on a Galaxy Note 10.1 N8013.

EDIT: Sorry missed the help link in op, reworking and testing.
[Galaxy S II Themes and Apps] meier2009:
Okay, i´ve got it fully worked!

Thx for this TUT :good: :D
[Galaxy S II Themes and Apps] hal_2000:
hi, i have a question, can this mod work on a froyo rom ?

I have another device with froyo, and i like have this option on that device.

hal_2000
[Galaxy S II Themes and Apps] kahvitahra:
Sure. There might be needed some changes, but you could try those gingerbread files. Use logcat to spot errors if you have some.
[Galaxy S II Themes and Apps] androidphone2012:
Hi kahvitahra

I copied GlobalActions$99.smali, GlobalActions$99$1.smali, GlobalActions$99$2.smali

changed the numbers to 99 in GlobalActions.smali

added two stuffs in GlobalActions$SinglePressAction.smali

but, pressing reboot just hot boot :( no dialogue

What should I do?

http://xdaforums.com/showthread.php?t=1797361

http://xdaforums.com/showthread.php?t=1820007
[Galaxy S II Themes and Apps] androidphone2012:
I'm an idiot. It's right above. :)

My ROM's is access$200! So I changed, working great!!! Huge thanks :)
[Galaxy S II Themes and Apps] androidphone2012:
Maybe something changed in 4.2

What should I change compared to http://xdaforums.com/showthread.php?p=29369817#post29369817
[Galaxy S II Themes and Apps] zcop:
For who want to change Download and Recovery text in GlobalActions$SinglePressAction.smali to whatever( i have problem when change Download to Download Mode text, same as Recovery )

Replace below code in GlobalAction$99$1.smali

sget-object v1, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

sget v2, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I

aget-object v1, v1, v2

invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

move-result-object v1

with

const/4 v2, 0x2

sget v1, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I

if-eq v1, v2, :cond_111

const-string v1, "recovery"

goto :goto_18

:cond_111
const-string v1, "download"
[Galaxy S II Themes and Apps] .malo2000:
Hi kahvitahra and thanks for your great job ;)

I've tried port this mod on latest leaked jb rom...with updated smali/baksmali file and I haven't errors decompiling e compiling android.policy.jar. I've used "4WayMod_ICS_source_files" but when I put android.policy in my phone...power botton doesn't open "4-Way Reboot" but I have a hot boot :(

It isn't compatible???

Thank you for replay
[Galaxy S II Themes and Apps] jackq:
I dont have stock JB leak, so i cant try, but if you want i make 4 way reboot mod

Test it and let me know that is working or not ;)

http://www.sendspace.com/file/19qlgm

edit. i try it and works but i place extended menu in wrong section (shutdown button) now i replace it to right one, to reboot button, try new file, link replaced.
[Galaxy S II Themes and Apps] .malo2000:
Thank you..perhaps I find an error in my work...I make a change and if I'll get error I'll try your file ;)

Fantastic!!!! now it's perfect...ripple lockscreen and 4 way to reboot

I've posted it on androidiani.com and every credits are yours :D

Thank you again
[Galaxy S II Themes and Apps] 7OH:
Strings from APK

I have idea to load strings from external apk - for multilang version.

In second-test apk - i can load successfully those string and string-array from "donor" APK.

But when trying to modify code for this mod - get bootloop.

Also bootloop when just set title of dialog from function (that returns L/java/lang/String;)

Will be glad to talk about merging 2 ideas or any help with code.
[Galaxy S II Themes and Apps] Tamerlan2009:
Big thanks
[Galaxy S II Themes and Apps] foxsake:
sir.. hot boot and recovery working but not reboot and download :( reboot only turns off the phone then freezes while download only reboots the phone.. how can i fix this sir?
[Galaxy S II Themes and Apps] Goldie:
Logcat :)
[Galaxy S II Themes and Apps] kahvitahra:
Like Goldieking said, you should attach logcat here. That way we could help.
[Galaxy S II Themes and Apps] foxsake:
ohh.. still not getting reboot to work

still stuck at black screen.. :(

heres my logcat..

TIA
[Galaxy S II Themes and Apps] agritux:
i made this on android 4.2.2, when i press power button, it reboots :) but no problem with android 4.1.2
[Galaxy S II Themes and Apps] Goldie:
Re: [MOD] 4-Way Reboot - How to (GB) (ICS)

Unless I missed it looking on my phone there is nothing in that logcat regarding this mod. If you get a black screen and not a reboot when pressing power you did something really wrong
[Galaxy S II Themes and Apps] humaxnet:
Server log out.

Olease reupload to other server.

TX

Humaxnet
[Galaxy S II Themes and Apps] Tornade69:
Ok try this mod on my ainol novo crystal 7 tablet wich is running Jellybean 4.1.1. Some users report it working on 4.1.1 and 4.1.2. Followed all the steps carefully, getting no errors when recompiling android.policy.jar.

At beginning,(before mod) when holding power button, i have box asking for shutdown and only have ok and cancel.

After mod, still have same dialog box. So verify to have two empty lines where it supposed to... and also add the <clinit>... still not working

So after reading all the threads figure maybe my power button not assigned to Lcom/android/internal/policy/impl/GlobalActions$4

so, i've tried with $5 and $6, still got the same dialog box Ok and Cancel.

So ,here's my logcat : Logcat

Look at then end, found a line concerning shutdown...

Also, my android.policy.jar before mod : android.policy.jar

Please someone, point me to the good directions...

thanks...

P.S. Ptmr3 point me this mod and told me to use JB files... But only found files for GB and ICS. did i miss something ???
[Galaxy S II Themes and Apps] epinephrin3:
Sounds like you need to follow this: http://xdaforums.com/showpost.php?p=27432398&postcount=105

I had the same problem...

---------- Post added at 11:44 PM ---------- Previous post was at 11:41 PM ----------

I am also trying to get this mod to work on 4.1.1. after so many problems which i have got through so far with trial and error i now have the extended menu working, but all the options hot reboot? im pretty stuck now as to what to do??

Brilliant tutorial though dude, ive learnt so much from this already!
[Vibrant Q&A, Help & Troubleshooting] rehkhan97:
hi. today i used odin to flash my stock 2.2 to stock 2.1. Then i flashed cm7 and then finally ics. but there is one issue. there seems to be no internal sd card, and the phone acts like my external sd card is the internal memory! and when i plug in my phone to the computer, only the external sd shows up. what happened to my internal memory and how can i get it back?
[Vibrant Q&A, Help & Troubleshooting] webstas:
were you previously on ICS before the odin back to stock? you might be suffering from the same thing i am were the internal memory partition is jacked up.

see my thread here
[Vibrant Q&A, Help & Troubleshooting] rehkhan97:
no actually i was on stock 2.2 at first then used odin to go back to 2.1
[LG Optimus Black] aditzu93:
Hello!

I have a problem with my OB! ... If I let it on standby after a while 3g/Edge connection drops and if I try to do a call it says "USIM loading finished" and then works, BUT ONLY ONE TIME! If I let it again in standby it loses the connection again and I can't use network until restart... Is there anything to do? :( I really like this phone, and this is freakin' annoying me!

PS. IT DOES THE SAME WITH ALMOST ALL ROMs THAT I HAVE TRYED!

ROM: Stock GB (atm)

Phone carrier: COSMOTE ROMANIA

Thanks! :)
[LG Optimus Black] ciplukzz:
always change the network (2g/3g) will broken your USIM.. had try your phone with other USIM? Or same usim n other phone? than you know what the problem.
[LG Optimus Black] aditzu93:
I have tryed with a SIM from Vodafone and it works ... I don't have a new SIM from Cosmote, but next month I think I will change it with another ... Else, I will try do adapt to poor Vodafone guys :( Cosmote = good offers but crappy network, Vodafone = poor offers and good network... Anything else? Did this happened to anyone else?
[LG Optimus Black] ciplukzz:
i was. i had some problem with you, than i replace with new USIM from operator, done.. :D:D
[LG Optimus Black] aditzu93:
Ok :D Then I`ll go today to Cosmote shop and I`ll explain to them, maybe they will change my USIM! :D Thanks a lot! I will tell you if it works :D

// So... I have called at COSMOTE and they have sayd to me that I must go to a COSMOTE SHOP... there, they sayd me that they know about the problem(and I think that they will let the problems unsolved, because I've heard that much ppl complain about this problem), and they sayd that I must pay a tax of 15 € to change my SIM after I have just recharged my account with 8€ for my needs ... Now I must wait 1 month to finish my voice option to buy a new SIM .... :| SH*T services!

Thanks a lot for help! Now I know that the problem that i have is not caused by my phone... It`s from my mobile operator... :mad:
[LG Optimus Black] ciplukzz:
im sorry to hear that. on my country, we just pay $1 to replace the new USIM..
[Samsung Galaxy Nexus] boe:
I like Android more than iphone but at least with iPhone you usually know some of the fixes that are in the works.

I don't know if a radio fix is coming with the next OTA update

I don't knonw when (if) I'll see an update for the Verizon Galaxy Nexus - I'm pretty sure I will but who is to say 100% other than Verizon or Android - tons of rumors like the 4.04 update and the 4.05 update etc but nothing concrete.

I suppose I'm kind of *****in but I'm also pretty sure they could make ALL of their clients happier if they released SOME info. E.g. a radio fix is in the works... or we'll have 4.04 for Verizon customers within 2 months - anything is better than nothing even if they don't' go into tremendous specfics.

Just my opinion of course.
[Samsung Galaxy Nexus] adrynalyne:
We can always wish, but it has never been that way for any other device, so why would it change now?
[Samsung Galaxy Nexus] RogerPodacter:
Ive often wondered why they cant give us generic montly statements or something. Put an intern on it or something. 5 min of time once a month from an intern would be so easy.
[Samsung Galaxy Nexus] spencer88:
I feel the same way.
[Samsung Galaxy Nexus] boe:
That would be fantastic. Even if it said this month - update coming in June - that would be better than me hoping I might find a rumor that might seem credible. Then I'd know where to get genuine news relating to my device on MY carrier.
[Samsung Galaxy Nexus] juliano_q:
I am a looong time nexus user and I dont wish this anymore because I know it wont happend. Google works this way.

The only more or less "sure" thing is that when they say that it will be released in a couple of week is because it is already deployed in most employees devices for a long test and it will in fact be released in 2-3 weeks.
[Samsung Galaxy Nexus] zephiK:
Google works this way because they don't have a ETA for when things are complete.

That's like saying telling CyanogenMod that you want more communication between them and the users so that they can post a timeline on when RC1/RC2 will be complete etc.

Things are just done when they're done.
[Samsung Galaxy Nexus] adrynalyne:
Because...when something goes wrong, and they do not make their timeline, people would throw a fit, even more than they do now.
[Samsung Galaxy Nexus] Evangelion01:
As others have mentioned, expecting any sort of ETA is completely unreasonable.

But honestly, this whole upgrade experience has been pretty underwhelming for two reasons: lack of communication and very slow speed. The volume bug -- a completely show-stopping bug -- took two weeks for a fix. I highly doubt it would take Apple that long to issue a software fix for such a serious bug. Sorry to bring Apple into the discussion, but it's true.

Not to mention that it's taken Google FIVE months to get NFC to be fully functional...

At the end of the day, having relatively quick updates of stock Android will probably keep me with Nexus devices, but an advertised and guaranteed monthly status update? That would be a killer USP. The silence between 4.0.2 and 4.0.4 was absolutely terrible.
[Samsung Galaxy Nexus] martonikaj:
Yes it sounds great, but it would just make things worse.

People would be exponentially more angry if they gave progress reports and they didn't go where people wanted. They'd complain even more because they'd know it wasn't fixing the way they wanted it to be fixed. And as soon as they promise a timetable and are unable to deliver, all hell would break loose. Either that, or they give a timetable too far in the future to keep from hurting themselves, and people complain the timetable is too far out.

Google and Verizon aren't just sitting on their asses doing nothing. They're working. Its downright insulting saying that Google isn't working hard on these updates. Just be patient ffs.
[Samsung Galaxy Nexus] zephiK:
Agreed. Also with Google (or the manufacturer doing updates) it has to be approved by the carrier UNLESS you're using the GSM model of Galaxy Nexus which is independent of any carrier.

This is from a news article I read yesterday,

tl;dr it says that, the ROM that HTC made didn't meet T-Mobile's expectations and has to be fixed by HTC... then sent to T-Mobile to test the ROM equalizing MORE delay

I know OP has Verizon, but that's kind of your fault for using Verizon. We all know how it is when it comes to Verizon and keeping a tight control over their phones. I personally don't consider Galaxy Nexus (LTE) to be a "Nexus" device. It comes bloated with VZW apps, Verizon has to approve the update by Google, Factory images are no longer uploaded, etc.

Kind of off-topic but I'd love to see the idea of Google buying T-Mobile USA from Deutsche Telekom (owners of T-Mobile USA) then we would never have to worry about carriers trying to keep a tight grip on their phones. Not to mention then tight integration between Google services such as Google Voice would be tightly integrated between the carrier and Google services. Just a dream of mines.
[Samsung Galaxy Nexus] adrynalyne:
Oh lord. Not another 'The Verizon Nexus is not a Nexus device' comment.
[Samsung Galaxy Nexus] RogerPodacter:
But I'm not asking for an eta or timeline. Just something like "here's what we're doing this month, or even this quarter."
[Samsung Galaxy Nexus] TiltedAz:
Yea, everyone knows true Nexus devices only come with half the storage space and only on less desirable carriers. :p
[Samsung Galaxy Nexus] adrynalyne:
Ah, my bad :D
[Samsung Galaxy Nexus] cmajpwc:
I'm gonna guess the OTA will come with the white 16 gig version on April 5th, and that the white Gnexs will come with 4.0.5 loaded. Just a hunch. The rumors have been early April, so on Thursday or that weekend is my guess.
[Samsung Galaxy Nexus] KWKSLVR:
Well, I don't know about everyone else, but my "fake" Nexus has had 4.0.4 for a long time now. I've seen 2 updates since I bought my Nexus (fairly early after release). Not EVERY update comes via OTA. The Nexus line has ALWAYS been like this. At any rate, my 3 month old "fake and unsupported" Nexus has already seen more updates than my Vibrant ever did.

As far as GSM users complaining over updates, shut up. Your phones didn't need the updates that Google implemented for the CDMA version. I don't want fixes for a phone that isn't mine. I don't want Google releasing something that isn't ready. Radio issues are up to Samsung and the carrier, not Google. Stop whining about Google. Stop thinking Google is the hold up. Google isn't the hold up. Samsung is the hold up. If you have a CDMA version, blame Samsung and Verizon. If you're GSM, place the blame where it largely belongs, on Samsung.

For some reason 80% of people on this forum seem to think that Nexus means that you get an update every month or something like that. Like we should be on 4.1.7 by now or something like that. It's the most insanely retarded community I think I've ever seen in my life. :D
[Samsung Galaxy Nexus] veloslave:
As a member of the choir and a Verizon customer for12 years

.....

Keep preaching.
[Samsung Galaxy Nexus] martonikaj:
Verizon is a less-desirable carrier for me. Just sayin'.
[Samsung Galaxy Nexus] ArmanUV:
and since when do you know about iphone updates before release? Apple is the most secretive tech company ever. They only comment on issues when they get really out of hand and media goes all over it (like the recent address book privacy issues or the better known antennagate).

iOS does have private betas though, which is kinda the equivalent of aosp for android in terms of release schedules. aosp 4.0.4 >>> 8 months >>> oem 4.0.4 updates
[Samsung Galaxy Nexus] xusxmarinesx:
Also don't forget that the wifi direct feature does not work.
[Samsung Galaxy Nexus] martonikaj:
Precisely. There are surely iOS delays to updates, they just don't tell anyone about them. And Apple won't release updates until ever carrier supports them. They will let one thing stop all the updates and wait till everyones on board.

Its all about perception. If no one knew anything about updates there would be no thought that they were delayed.
[Samsung Galaxy Nexus] juliano_q:
Guys, I suggest to just forget the updates on the Nexus and enjoy when they arrive. They will arrive eventually, this phone is well supported. Having a Nexus phone for almost 2 years now, I found that it is the best option and less stressful :D
[Samsung Galaxy Nexus] boe:
I had the ET4G and while updates weren't frequent, I feel it was much much better supported - because it didn't have the issues that this thing does.
[Samsung Galaxy Nexus] Smokeey:
This thread is unnecessary.
[Samsung Galaxy Nexus] TiltedAz:
Cell phone manufacturers are pumping out phones like never before. I can't recall a recent phone release without a few issues. A quick google search pulls up plenty of concerns for the ET4G.

The quality mentality of phone manufacturers today is: who cares about an issue when the product is obsolete in a year or two. Deming is rolling in his grave.