yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] sicopat:
And you just add this lines :

const/4 v1, 0x4

new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;

const v3, 0x10803d2

const v4, 0x1040488

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

aput-object v2, v0, v1

in GlobalAction.smali (use correct hex number found in framework-res.apk /public.xml)
[Galaxy S II Themes and Apps] A|G:
THANX BRO!

here you go thank you much, only reboot and mobile hotspot please, leave header and all as is ;-)
[Galaxy S II Themes and Apps] shaarky:
Thank you so much! I wasn't sure what do you mean... for others maybe if they will be fighting with this ;-)

Change this :

To this :

for example for GlobalActions$9.smali. Repeat for remaining $8,10$...
[Galaxy S II Themes and Apps] juxli125:
thanks for this guide.

i tried it with an ICS Rom but theres an problem:

if i edit the Global Action File, there is no string with

const/4 v9, 0x4

theres only

.method private createDialog()Landroid/app/AlertDialog;
.registers 11

.prologue
[B] const/4 v9, 0x1[/B]

Help would be nice :)

sorry im a noob ^^
[Galaxy S II Themes and Apps] MCOGW:
Are you serious about this? ;)

Try comparing the two files at the same API-Lvl!

ICS brings some [...] changes with opcodes...

btw, which ICS Rom are you talking about? :confused:
[Galaxy S II Themes and Apps] juxli125:
:D

yeah, i'll try that ..

Onecosmics Rom (http://xdaforums.com/showthread.php?t=1338636)
[Galaxy S II Themes and Apps] MCOGW:
Did you already find it?

If not:

The opcodes are not the problem here. They've just changed some of the methods behind this ;)

v9 isn't used anymore for this. It's v0 now (-> ICS_4.0.1_r1-Beta2-i9000.zip)

So what you are searching for can be found at line 432

Have fun... :D

Line Code
________________

427 invoke-direct/range {v0 .. v6}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;IIIII)V
428
429 iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;
430
431 .line 190
432 const/4 v0, 0x3
433
434 new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
[Galaxy S II Themes and Apps] rafaunderground:
aosp lockscreen method??
[Galaxy S II Themes and Apps] MCOGW:
No, some changes inside of createDialog()
[Galaxy S II Themes and Apps] he_stheone64:
There`s a mistake, I obviously have not found yet. Framework-res is quite trivial and certainly boots, but androidpolicy.jar still reboots, once I want to start Power Menu.

Maybe one of the Java pros can give me a hint. This is for deodexed stock ICS ITL41F from Galaxy Nexus.

This is what I did:

Added 3 new pngs

Added new lines to strings, all works fine here

Decompiled new framework and noted public ID`s

Adjusted ID`s in GlobalActions.smali (removed 0`s after x, also tried with 0`s)

Added code from OP

Changed const/4 v0, 0x3 to const/4 v0, 0x6 (for 3 more entries)

Added GlobalActions$7, 8 & 9 with changes from OP

Here my adjusted globalaction smalis and public.xml:

http://www.multiupload.com/9MR1FDAG0L

http://www.multiupload.com/KIOQW15NUZ

Thx for any hint in advance
[Galaxy S II Themes and Apps] eybee1970:
Stoneyyyyyyyy :D

I am stuck on the same point as you with my Galaxy Note...no probs with framework but the fuc....smalis....also reboot for me and no Power Menu showing up any more.

Here is what I did: http://xdaforums.com/showpost.php?p=20034270&postcount=2

Maybe someone can advice me too on what to do to make it running on Note. Of course I can upload my android.policy.jar for any Dev interested in helping me porting this mod!

thx in advance :)
[Galaxy S II Themes and Apps] F4k:
I was able to successfully add the extended power menu, (ICS's Onecosmic) "Reboot" works, but "Recovery" and "Download" reboot the phone, they are not going into "Recovery Mode" and "Download Mode"

Maybe don't work in the same way in ICS or something else.
[Galaxy S II Themes and Apps] he_stheone64:
Android is a small world, really cool to see you again. It´s been a while since good old MS days...
[Galaxy S II Themes and Apps] akshaybz:
My problem:

Even a single xml file I modify, recompile, I end up with black screen.

Some problem in recompiling the framework-res.apk perhaps, (although I delete the resources.arsc from keep and don't sign the apk either)
[Galaxy S II Themes and Apps] MCOGW:
It's not just only -one- mistake ;)

The errors are inside of your GlobalActions.smali

Line 466:

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

should be:

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/[B]GlobalActions$7[/B];-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

Line 478:

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

should be:

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/[B]GlobalActions$8[/B];-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

Line 490:

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

should be:

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/[B]GlobalActions$9[/B];-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

Just change these three lines and it works ;)

Or did you change any of the other files too?
[Galaxy S II Themes and Apps] he_stheone64:
Thx for your reply, I already recognized these errors, but that did not help. I trust there are way more changes to make it happen for ICS - I`m for sure way better with xml`s :D

I also tried only adding recovery and reboot, same results.

See current status here:

http://www.multiupload.com/ZQGIIPHN2P
[Galaxy S II Themes and Apps] MCOGW:
Looks like even the first step (decompile) wasn't successful.

Your smali files contain some very strange elements :eek:

Just check your inbox ;)
[Galaxy S II Themes and Apps] he_stheone64:
Thx for all your help, just a pity I could only hit the thx button for you 5 times today :D
[Galaxy S II Themes and Apps] MCOGW:
No prob, you're welcome :)

:D I think this is for sure even -more than enough- :D
[Galaxy S II Themes and Apps] c_86:
read thru this whole thread and i was wondering if its possible to get someone to make a apk/zip for cwm for a deodexed stock rom (2.3.6/xxki4)... would love to have this option but just a tad to complicated for me and i'm sure some other users

if this is to much to ask, then i understand :)

have a good day!
[Galaxy S II Themes and Apps] akshaybz:
Tried this.

Used the created framework-res.apk after step 1.

Phone was stuck on black screen.

Here's logcat:

http://pastebin.com/Z3vmB60f

Hope someone can help :)
[Galaxy S II Themes and Apps] MCOGW:
Hard to see what exactly went wrong there, too much details are missing.

Just upload both framework-res.apk (unmodified and modified).

Which firmware are you running? Stock or custom, odexed or deodexed?
[Galaxy S II Themes and Apps] coldflid:
Came in really handy thanks
[Galaxy S II Themes and Apps] :
How do you do this on honeycomb?
[Galaxy S II Themes and Apps] Chris X.:
Guys howto decompile the out/com...?

It stucks always on bootscreen!

I use "smali out", then come out.dex and I rename it to classes.dex and put it via 7zip in android.policy.jar.

Is thats right?

btw

I use java -jar smali.jar out -o classes.dex

edit:

fu...idea with 7zip!

Got it ;)

but now I have bootloops

edit:

got it but I have no extended power menu

oh man
[Galaxy S II Themes and Apps] Goldie:
Probably wrong ids somewhere :)
[Galaxy S II Themes and Apps] heart_crafter:
Ok i got some questions...

this works for any framework-res.apk, right?

i decompiled it and changed a string in res\values\string.xml and compiled it back

original file size was 3.78 MB (3,969,833 bytes)

new file size is 2.14 MB (2,251,342 bytes)

not sure what's going on...

after signing it with apk_manager_4.9 when i put this on the device... i get boot loops... looks like it tries to load the framework-res and cant...

Please let me know what do i need to do...

thanks
[Galaxy S II Themes and Apps] Goldie:
Why change one string? Did you say yes to copying over and yes to system app when compiling and delete resources from keep folder?
[Galaxy S II Themes and Apps] heart_crafter:
at first i was doing the full process...

then i figured the apk is not compiling back correctly or something... that's why changing just one to see if the compiling works correctly...

i did hit yes to system app...

i just retried without edit any files... i assume i should get same apk back after recompiling

i used following options

9 to decompile.

11 to compile.

y

n

and i still get a size discrepancy.

let me know what am i missing...

edit:

i wasnt copying files over... was hitting n in the last option...

so i did it again

i used following options

9 to decompile.

11 to compile.

y

y

i still got a size difference in the new apk... its almost a mb smaller...

ill test the apk see if it still works... will let u know...

edit2: apk does not work... boot loop...

edit3:

19 changed compression to 0

9 to decompile.

11 to compile.

12 to sign.

y

y

apk worked...

changed one xml file... and did the same process as above... and deleted the resources file from keep folder...

apk doesnt work ... :(

edit4:

ok i figured it out...

for some reason my tablet does not like compression...

i used 0 option for compression when i changed the xml... and apk still did not work...

opened apk in winrar... extracted resources.arsc... and re inserted it without compression...

and now apk works... :D

edit5:

soo it all came down to resources.arsc

if resources.arsc is compressed then framework-res.apk does not work on rom im working on.
[Galaxy S II Themes and Apps] Taimur Akmal:
HEY! Guys need help can't find STRINGS.xml nor PUBLIC.xml nor the Values Folder!

Using KK5 for GS2!
[Galaxy S II Themes and Apps] Goldie:
You cant just unzip! You have to decompile. These are in resources! ;)
[Galaxy S II Themes and Apps] prodigiez:
tried this on sg2 HD LTE but seems like i need a deodex rom.. which is not mention... doh
[Galaxy S II Themes and Apps] broodplank1337:
Hey, I had this idea to change the Download text to Screenshot since i replaced the function to make a screenshot, also added the camera icon. but when I change the text and compile it I get a bootloop. every time :(
[Galaxy S II Themes and Apps] Goldie:
How did you change the function? What does the log say?
[Galaxy S II Themes and Apps] prodigiez:
hi , need help pls..

i edited the framework-res.apk and recompiled it back

i deodex android.policy.odex and edit the globalaction.smali and recompiled it to odex.

and i flash it with cwm , then i get no boot...

does this work on odex rom ?
[Galaxy S II Themes and Apps] rogerscrack:
I did.

YES! I did!

Now, I have crt animation, Extended pwr menu, 14 statusbar toggle buttons..

Thank you Sicopat, Thank sileshnair, Thank you lidroid, Thank you skynet28.. I can not believe it!

Congratulations on your guides.

Now to sleep, in 4 hours I have to go to work :p

Greetings from Argentina! :D
[Galaxy S II Themes and Apps] kimbaduds:
Will this work on gingerbread roms? Like samsung galaxy y??
[Galaxy S II Themes and Apps] DarkNiz:
Great guide. If only there were a simple way to converting .dex file to .odex. I'm gonna have a look at how to do it the long way but someone ought to create a one-click application by now.
[Galaxy S II Themes and Apps] brolee93:
Think you uour tuto work in ics samsung touchwizz in galaxy note ? please reply ;)
[Galaxy S II Themes and Apps] Blacaaut:
this would work in a samsung galaxy player 5.0 ?
[Galaxy S II Themes and Apps] Messi10:
i have tried 10 times but i always get bootloop
[Galaxy S II Themes and Apps] hasan4791:
U didn do any change to the file shutdownthread.smali in framework.jar....y ???
[Galaxy S II Themes and Apps] projectmax:
tried the doing this guide but failed, when i press and hold the power button, the power menu doesn't shows and its reboot automatically..how can i find out what i did wrong here?please help me..I'm using an alcatel ot- 918N running on stock gingerbread 2.3.6 rom..please help me..:crying:
[Galaxy S II Themes and Apps] Goldie:
Logcat ;)
[Galaxy S II Themes and Apps] projectmax:
how to use it sir? im still a noob at this..thanks..
[Galaxy S II Themes and Apps] Goldie:
Man youre on xda!!! There are a TON of guides here on logcat!
[Galaxy S II Themes and Apps] projectmax:
still didn't understand how to use logcat, is now using log collector.. where can i post my log?
[Galaxy S II Themes and Apps] torq1337:
Hey my dear friend!

I would love to add this to a ROM... can you tell me, is this working on ICS?

Thanks in advance! Great tut for now :D
[Galaxy S II Themes and Apps] engloa:
Works on ics and jb
[Galaxy S II Themes and Apps] Vesavoj:
Great tutorial, congrat.:good:

I have a problem similar to couple postes up:

tried the doing this guide but failed, when i press and hold the power button, the power menu doesn't shows and its reboot automatically

Error in logcat showing : "loading keycharmap file '/system/usr/keychars/mtk-tpd.kcm.bin'."

Its a gingerbread alcatel ot-991.

Thanks in advance.
[Galaxy S II Themes and Apps] MU24R:
Hi im making some kind of project i the diference its that i have the java code not smali can you tell me the methods that i have to edit but in java code plis
[Galaxy S II Themes and Apps] next galaxy:
error

Hi, i've tryed this metod with stock gingerbread 2.3.6 on my galaxy mini gt-s5570:

after replaced the new framework the phone boot, but after replaced android.policy.jar (deodexed first of modded) and android.policy.odex with deodexed android.policy.jar deodexed and modded the phone is stuck at the written "samsung galaxy mini" (first of bootanimation for understand).

any solution?
[Galaxy S II Themes and Apps] PrimeNexes:
I got the icon and the option but it doesn't boot to Recovery the GlobalAction$12( in my case) is wrong. I have a MTK Device with 4.2.2 JB please help
[Galaxy S II Themes and Apps] destructo570:
My phone isnt booting after flashing android.policy.jar it stucks in first screen written Gts5830i blah blah....

Any fix..???
[Galaxy S II Themes and Apps] ThunderSky7:
great
[Galaxy Ace S5830 Android Development] BehradGH:
so as u know Galaxy ace and S are much similar.

for flashing CM7 there is one thing===> BML OVER MTD

i dont know what the difference is , all i know devs have to write some scripts about this that we can flash CM.

here i give you some things u will need while building the tree.

First of all ===> Recovey.img ===> CWM 4.0.9===> http://xdaforums.com/attachment.php?attachmentid=654588&d=1310632842

here is a build of CM7 for ace===> http://www.multiupload.com/P1IED0IVDG

i tested something about it and :

1.updater.sh does not run !

2.recovery.img included is not working with ace.

so replace the first recovery i gave u with this first.

here was all i got !!

waiting for some helps here.
[Galaxy Ace S5830 Android Development] BehradGH:
reserved for the future.
[Galaxy Ace S5830 Android Development] BehradGH:
reserved for the future...
[Galaxy Ace S5830 Android Development] evildave_666:
Note that in CM terms, the "ace" device name is actually the HTC Desire HD. If this is indeed your own port then you might want to choose a new device name to avoid people flashing roms onto the wrong hardware.
[Galaxy Ace S5830 Android Development] kills999:
This is de0000000 (DeAngelo's) build.....
[Galaxy Ace S5830 Android Development] manju991:
hey man!

Coolya is already porting it, so why don't you port MIUI to ace? Why waste time on CM7, which is already being ported?

Jut saying man..
[Galaxy Ace S5830 Android Development] BehradGH:
so If Coolya port it !! where is the link or anything else??? when will be this ready?
[Galaxy Ace S5830 Android Development] mastrone:
Read here : http://xdaforums.com/showthread.php?t=1138250&page=12

The thread is quite obsolete, however look at the bottom to have a clear picture.

No ETA, so be patient as we are :)

Ciao
[Galaxy Ace S5830 Android Development] manju991:
Dude calm down,

I am following his tweets. He says a few things are not working and he will set it right. I meant nothing offensive, but you do know MIUI is also a great ROM. with Ginger real, CM7 and MIUI, ace will have a great developer backbone...
[Galaxy Ace S5830 Android Development] BehradGH:
i never used a MIUI rom . cause i dont like the UI !! but give me some links so that what can i do !! is MIUI need BML/MTD too?
[Galaxy Ace S5830 Android Development] storage1:
Info about CM7 is on his twitter : http://twitter.com/dumdidum
[Galaxy Ace S5830 Android Development] coolya:
https://plus.google.com/109560348209955703361/posts/3DcgypXqUTG

further updates will be posted on Google+:

https://plus.google.com/109560348209955703361/posts

and on my twitter account but don't count on updates on twitter. If anyone would volunteer you can create a status thread here in the Forum and put my updates here, but I won't carry any update here :-)
[Galaxy Ace S5830 Android Development] manju991:
I have searched the internet for porting MIUI, and I have got this, link: http://xdaforums.com/showthread.php?t=1153233
[Galaxy Ace S5830 Android Development] coolya:
simply don't use the BML over MTD stuff on a phone if there is no need to. And on the Galaxy Ace there is no need to use. I wrote the code for the Galaxy S that handls the BML over MTD stuff and it is NOT usable for the ace. And further there is no similarity between the Galaxy S and Galaxy Ace they are completely different.

Only change the way to access the flash from BML to MTD if it is really needed and you have the knowledge to do so and test it! And with testing I mean not days or hours I mean month! That's what is did on the Galaxy S, it was tested with private testers for more than two month to see if it is really stable. Because it is pain in the ass to maintain and pain in the ass for users to handle it should be avoided as much as we can to change the flash access layer in the kernel.
[HTC EVO 3D] Star2dn:
First go to the Market or {Google it} FREE MSL Reader. Get one of the TEMP ROOT Scripts..I used Jeremy_Fre3vo2.3/2.5. GOT MY TEMP ROOT ON. Open the MSL Reader. Worked !! all in less than 2mins. LOL
[HTC EVO 3D] runningwarrior08:
This has been discussed multiple times in multiple threads...
[HTC EVO 3D] unkn0wnz:
This has been said like 100 times already.....
[HTC EVO 3D] notown775:
... I think he's just joshing ya. you guys.

sent from a 3d fone
[HTC EVO 3D] aleksis2010:
Really?OMG!!DIDNT KNOW THAT!!!r u serious?!!!lmao
[HTC EVO 3D] james33440:
This has been discussed.....
[HTC EVO 3D] madnish30:
Already been discussed and posted about. Please search and then posts new threads.

Thread closed.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] muzicman82:
What is the easiest, best, or cheapest way to add Reboot to the Power Off menu (Power Button Long Press)? I have a rooted Tab with Clockwork.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] nagmier:
That is a software mod, gonna have to wait for a Rom and for in depth a mod that we may have to wait for HC or ICS to hit AOSP (not 100% on the AOSP part)
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Kevin Gossett:
You can use Widgetsoid from the market to create a toggle with power options. Gives you several, including reboot, recovery, power off, etc
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] muzicman82:
Thanks guys. I feared the above.

I have QuickBoot installed, but its not as elegant as I'd like. There's dozens of widget toggles I can try, I guess.

Any idea when Honeycomb is expected to hit ASOP?
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Kevin Gossett:
Honeycomb source will never be released, so it's likely never. May have to wait until ICS is released
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] muzicman82:
That kind of blows. Why is that?
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] Kevin Gossett:
Google never intended it to be open source like every other version so far, because they didn't want someone trying to squeeze it onto a phone where it is not designed for. Ice Cream Sandwich is supposed to bridge the gap, so it should be added to AOSP
[HTC Inspire 4G] bostonsboy97:
Hey guys this is probaly just a stupid question but i really cant figure it out. Ok so the clock widget wont change to my town, i had another inspire that would show my location, then when it broke i replaced it with a new one and it wont show my location on the clock widget. ive looked all through my gps settings and stuff to try and figure it out and nothing has changed...
[HTC Inspire 4G] sammael1069:
What rom you on
[HTC Inspire 4G] bostonsboy97:
stock im not rooted at all
[Acer Iconia A500] Panyo:
kernel source code 1.0

109.3 MB

2011/07/14

anyone can check?, beacuse i dont understand nothing about Kernels :)

http://www.megaupload.com/?d=OBBXB01V
[Acer Iconia A500] krickatthedisco:
thats the 3.1 source code
[Acer Iconia A500] UnicornKaz:
Where about did you find that ??

I went to Acer ( Canada, USA, and Portugal...)

All they have is the version 1.0 that existed since June/23 ( 111.6 MB )... which is the HC v3.0.1 source code.

:confused:
[Acer Iconia A500] mdeejay:
its NOT 3.1 source code on site...same as leaked yesterday
[Acer Iconia A500] Panyo:
There is 2 versions 1.0,i have download the file. check the date of the first version 2011/07/14
[Acer Iconia A500] UnicornKaz:
This is

ALL

that I'm seeing... and it's Acer portugal ( same on Canada & US )
[Acer Iconia A500] Panyo:
View attachment 655301

i see this
[Acer Iconia A500] UnicornKaz:
That is so freaking strange :eek::eek: .. and that screenshot I took is from Acer Portugal too... because I figured I had to go to your region to check it out...

Very strange how it doesn't show up for me :confused:
[Acer Iconia A500] UnicornKaz:
Manufacturers can have 2 source code for 1 version of OS ??
[Acer Iconia A500] krickatthedisco:
you guys are forgetting to click os: honeycomb 3.1, then go to the same spot you found the 3.0 source code and ta-da! theres the 3.1 kernel source. before you jump to the conclusion that is NOT the 3.1 kernel source. ill post a screen if you really cant find it
[Acer Iconia A500] Panyo:
hehe strange :) link on the first post for download, if you want.
[Acer Iconia A500] krickatthedisco:
they just pulled it, i dl'd it earlier, pm me for a dropbox link
[Acer Iconia A500] UnicornKaz:
I did indeed selected HC 3.1 ... strange thing, I only see 1 source code as mentioned....something is up with my desktop then... LOL

Oh well... not important.... strange, nonetheless :p
[Acer Iconia A500] UnicornKaz:
LOL... Good ole Acer... so damn freaking "ORGANIZED" as always !! :rolleyes::rolleyes:
[Acer Iconia A500] Panyo:
I can still see 2 kernel in acer website lol
[Acer Iconia A500] abditerex:
i see 2 kernel on acer singapore website,that kernel source code for 3.1

App. Guide	Acer	kernal source code	1.0	109.3 MB	2011/07/14

App. Guide	Acer	Kernel Source Code	1.0	111.6 MB	2011/06/23

User Manual	Acer User Manual	1.0	9.7 MB	2011/07/12
[Acer Iconia A500] mdeejay:
both 3.0.1...........
[Acer Iconia A500] ardatdat:
Well, for the kernel that is posted at 2011-07-14, it is so strange. Even if the Makefile is wrong...So, cannot compile :confused:

Any one can compile it successfully?
[Acer Iconia A500] ardatdat:
The kernel file is disappeared from the official web site now :confused::confused:
[Acer Iconia A500] OrionBG:
I is still there in the Bulgarian site!
[Acer Iconia A500] mountainjoe:
its on the US site.
[Acer Iconia A500] mdeejay:
same on RU site..
[Acer Iconia A500] ardatdat:
I can see it now :D

Coz it really disappear at the moment I post, and now re-appear :eek:
[Acer Iconia A500] UnicornKaz:
It's now back up on Acer Canadian site again :rolleyes:

so who knows why there's 2 source code for one OS ( 3.0.1 ) ?

:confused: