yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] raiderep:
Thanks for the directions on this mod. I ported the full mod now with a few needed changes for Epic. We already had a GlobalActions7$.smali so I just upped the numbers by one and its working fine and had to use different ids. Thanx again, credit where credit due of course ;)
[Vibrant Android Development] sahil04:
Nevermind I installed bionix and it already has this feature,thanks alot!
[Vibrant Android Development] kd_bui:
Can someone make a zip file for stock ji6 with OCLF that include or compatible with accurate battery and multiple lockscreens? Thanks.
[Vibrant Android Development] Zennmaster:
Thank you SO VERY MUCH for posting this!

Thanks also for posting it as a howto, rather than just a flashable .zip.

I've been wanting this for my Fascinate since I left my D1/CM setup, and now I've got it, and in the process I learned some great stuff for future modding!

So thanks again!
[Vibrant Android Development] srasquasz:
How can i decompile framework (couse this is jar and odex, not apk) couse apk manager doesnt see it
[Vibrant Android Development] d3xt3rlab:
may i apply attached zip to eugene JK2 without problems??
[Vibrant Android Development] :
Ok so I have read this entire thread at least 5 times looking for a definitive answer...I am running stock JI6 odexed ROM from T-Mo, and I downloaded/flashed the zip from Louis to add the reboot option to the power menu (which works fantastic, FYI) but I am also looking to add the options for recovery and download. Is there a flashable mod I can download or a list of instructions on how to add my own? The 1st post seems to indicate you need an alternate ROM with the lockscreen/battery mod. What about for the purists who want a little extra for stock? Is it even available? Any assistance would be fantastic!
[Vibrant Android Development] d3xt3rlab:
answer this plz!!
[Vibrant Android Development] killer23d:
Keep asking to answer the question won't get you answers right away.

You can try to load it and see if it get passed the Galaxy S screen.

Most of the time, the mods are tied to the framework-res.apk, android.policy and they required the ROM maker to mod one for you.
[Vibrant Android Development] parmijo11:
Any chance of a flashable zip for CWR for JK6?
[Vibrant Android Development] Ashex1:
I would like to add this to my JK6 rom but it looks like the file locations are different in Froyo. Any help on this?
[Vibrant Android Development] :
Ill post my working reboot menu a bit later =) ill make a flashable for jk6
[Vibrant Android Development] Ashex1:
Excellent, thanks!
[Vibrant Android Development] jim_panse:
Try to port it to the I9000. There are already versions for the most firmwares. But now the Android 2.2.1 JPU Firmware appears and i got 2 of 3 steps completed. But the third step, editing android.policy.jar gives me headaches. Smali compiles without errors. But when i long-press the power button it crashes. Run logcat and the fatal exception tells me, that something is not correct with the creatalert method in globalactions.smali. Can someone help me?

Heres the code logcat gives in the according lines:

http://pastie.org/1365906
[Vibrant Android Development] Five0nIt:
id also like this, thanks
[Vibrant Android Development] wibul_10:
Can u make thing easier than this...too complicate...better try to make apk file or just try something less complicate than this..?do thing like this better up new rom that has reboot option...
[Vibrant Android Development] daenigma:
That would rock!

Also do you know if (once you make it available) a JK6 menu mod would work on JL1?
[Vibrant Android Development] TheSneakerWhore:
Will it work on a NON-deodexed jk6 build?
[Vibrant Android Development] sonofskywalker3:
looking forward to this, spent a long time trying to get this working. can't get framework.jar to decompile. ugh.
[Vibrant Android Development] kevinnguyen84:
RE: What about MyTouch 3G (Sapphire 32B)

Hi guys,

Any way this method could be applied for the Froyo 2.2 framework-res.apk?

I gave it an attempt and I couldn't get the right files, I'm assuming the structure is different.

Or.. If anyone knows another direct post that addresses that, that would also be very helpful.

I know it's built in to Cyanogen Mod 6.1 but, I'm using a rooted OTA Mod, so I'd have to add this hack..

I've scoured the web (Google/XDA-forums) and had no luck :\

Thanks! :)
[Vibrant Android Development] sonofskywalker3:
I was able to find everything i needed to modify for this update, but it's just not working. the code given is in different places, and sometimes alltogether different. i did the best i could to match things up to where they are in here, but it's really not working. has anyone successfully set this up for a jk6 system?
[Vibrant Android Development] :
I'm posting mine right now =) Works in my ROM which is JK6 based so should work for all.
[Vibrant Android Development] sonofskywalker3:
Thank you very much, this is great. would you mind if I integrated this into my next rom update, cause the one that i did just did not turn out as well?
[Vibrant Android Development] INeFFeCTiVE:
Any word on a flash zip for stock jl4 deodexed?
[Vibrant Android Development] webstar1:
I get an error when adding the drawables in framework/public.xml from apktool saying something like there are more strings than available or something like that, any help?
[Vibrant Android Development] jim_panse:
Did you really assign the next id? The next id in hex format?

e.g:

169

16a

16b

16c

...

Did you use the framework from 2.2.1? Install the correct framework tru apktool.

OT: Why do you have the menu already in your rom, if you dont have that point completed? ;)

Send me your ICQ Nr. per PM and i help you!
[Vibrant Android Development] Virnik0:
First of all, thanks for the howto.

But I am missing some info in it.

First, what files I exactly need to modify shutdown menu?

I know that I need at least framework-res.apk, which is fine.

But what else? It was not described in the first post.

Second, how do I acquire smali files? How do I extract them, and from what?

Do I need deodex first? If so, then howto for that is missing.

Can this procedure be used on stock roms? I can maintain themes, create new themes, I can maintain stock rom customization, overclocking, underclocking, I have no problems with flashing, rooting, etc.

But this thing, adding ext. power menu, took me 7 days for now, and I still can't find answer. Most of the themers here are using some work of other themer, who actually did all of this (meaning adding extended power menu).

I can do the same, but I prefer to understand how to create it myself. Maybe little bit hard, but I can make it. Only thing which I am missing is right and straight forward procedure.

This howto is too abstract. For example, ADB manager has two options for apk extraction. Keep in mind, that you are doing howto for others, not for yourself. I am not n00b in the linux/unix world, html editing or design, but I am n00b in the apk management and modification. I have my new android phone for 14 days now, so I think I've made good progress from the start. But most of the info I've learn comes from materials found on the internet. And it is little bit hard follow howto, which is not exactly howto itself.
[Vibrant Android Development] AgentFour20:
Google baksmali smali and download them. Then put them in your tools folder. Use adb to decompile jar.
[Vibrant Android Development] AgentFour20:
GingerClone Android.policy looks nothing like the example in OP. Kind of stuck .
[Vibrant Android Development] Whitehawkx:
That is actually where I got stuck too. One thing I can tell you is instead of changing the parameter 0x3 to 0x6 like in the example, it is actually changing from 0x4 to 0x7. Eclair has three power options on stock while froyo has four. Hope this helps.
[Vibrant Android Development] AgentFour20:
Thanks for all your help so far :)
[Vibrant Android Development] suhel28:
I've done everything as said...

I get the reboot option too

but when I press reboot, it gives me Power Off option instead of doing reboot

any reasons why?
[Vibrant Android Development] kobesabi:
Does this work for KA6 (stock froyo) or only for older eclair?
[Vibrant Android Development] taha_e:
I can not find line 37 could you please specify the strings before or after this code? Im doing it on SGS Stock rom jpjpg
[Vibrant Android Development] Sys. Developer:
i have the same problem !! dunno why

anyone??
[Vibrant Android Development] Whitehawkx:
If you are receiving an error when recompiling the framework then there's a 99% chance its because your resource IDs are not correct. You are unable to just throw them anywhere. You need to find a good spot to continue adding in your new strings and drawables.

For instance if this is how it looked normally.

<public type="string" name="missed_texts" id="0x010403f8" />
<public type="dimen" name="app_icon_size" id="0x01050000" />
<public type="dimen" name="thumbnail_height" id="0x01050001" />
<public type="dimen" name="thumbnail_width" id="0x01050002" />

You would add in your new ones so it looked like this.

<public type="string" name="missed_texts" id="0x010403f8" />
<public type="string" name="reboot" id="0x010403f9" />
<public type="string" name="reboot_recovery" id="0x010403fa" />
<public type="string" name="reboot_download" id="0x010403fb" />
<public type="dimen" name="app_icon_size" id="0x01050000" />
<public type="dimen" name="thumbnail_height" id="0x01050001" />
<public type="dimen" name="thumbnail_width" id="0x01050002" />
[Vibrant Android Development] Sys. Developer:
yes that's what I did, i chose unique IDs and in sequence with the previous ones, anyway I'll try to change those

thanks a lot :)
[Vibrant Android Development] Whitehawkx:
Also if using APK Manager don't forget to set Compression to 0 (option 19) and Heap Size to 512 (option 20).
[Vibrant Android Development] Sys. Developer:
this think i didn't know about !

thanks a lot :D
[Vibrant Android Development] taha_e:
Can anyone give a brief explanation on how to do step 2 & 3?

shall we make classes.dex and push it to jar files? or...?
[Vibrant Android Development] Jumba:
Thanks for a great guide! One question: where would I look to change the power menu to white on black? I've scoured every smali and xml I can find but no luck. Someone help a brother out. ;)
[Vibrant Android Development] feefeeboomboom:
im trying to recompile and im getting

c:\apktool\framework-res\res\values\public.xml:3950: error: Public entry identif

ier 0x1080424 entry index is larger than available symbols (index 1060, total sy

mbols 1060).

looked around and cant figure it out. im sure that is the end of the string...

EDIT: New string needs to be placed next to corresponding strings for it to work. I.E. 0x01080423 needs to be placed under 0x01080422.
[Vibrant Android Development] taha_e:
I have done this mod on deodexed rom, but I have one question, Is it possible to do this mode on a stock rom? :confused:
[Vibrant Android Development] taha_e:
you have to change the string id, you have to choose another id like 0x1080423 or any which is not engaged.
[Vibrant Android Development] bay_wolf:
Just wanted to say thanks for the tutorial. Because of this I added an extended power menu to my ROM.
[Vibrant Android Development] awia:
can I decompile/compile .jar files with the apk-manager?

how?

thanks!
[Vibrant Android Development] arunmcops:
Thaks dude. Using ur guide I added extended power menu to my ROM.
[Vibrant Android Development] german103:
thanks! pretty useful
[Vibrant Android Development] intronauta:
great mod undertermentch ;)

One "extra" that we can found in some roms is remove the power menu header to prevent scrolling.

someone has idea what files are related in this mod?
[Vibrant Android Development] The_Ravager:
yes

drop jar in 'other' folder

From terminal navigate to where other is under apk_manager

cd apk_manager/other
su -c 'chmod +x apktool'
sh apktool d services.jar

to decompile

make your changes

sh apktool b services.jar.out

to build new

look in services.jar.out/dist folder for new services.jar

also

su -c 'cp apktool /usr/local/bin'

then you should be able to call it from any folder
[Vibrant Android Development] Bangdoo:
Can anbody make a CWM zip?

I need the extendet power Menü for XXJVK
[Vibrant Android Development] Bladyle:
Hello,

i manage to add all the changes from first post the copy them to my phone and it boot OK but when i try to power menu phone reload to boot animation.. So I have some error but don't know where ..i have error on compiling framework-res.apk and also on latest "<public type="drawable"" i search for next ID's and they was already taken ..any idea ?
[Vibrant Android Development] Spz0:
Question:

Is there a way to add a hotboot option to this power menu?

Thanks in advance. :)
[Vibrant Android Development] Homam Ageel:
thnx for this thread

the problem is GB roms are nothing like what you have mentioned in 2# and 3#

totally diferent

any idea for GB or SGSI in general
[Vibrant Android Development] yc1437:
Mind to share how to decompile framework. jar file? What tool to use?
[Vibrant Android Development] XlAfbk:
baksmali and smali
[Vibrant Android Development] Whitehawkx:
The only thing different in gingerbread is instead if replacing 0x3 with 0x6 you replace 0x4 with 0x7. Everything else is pretty much the same.
[Vibrant Android Development] Homam Ageel:
no no no ,,

check android policy ,,, totally different
[Vibrant Android Development] Whitehawkx:
Code from OP

const/4 v1, 0x3

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

const v3, 0x10803aa # reboot icon resource id

const v4, 0x10403c5 # reboot string resource id

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

aput-object v2, v0, v1

const/4 v1, 0x4

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

const v3, 0x10803ab # recovery icon resource id

const v4, 0x10403c3 # recovery string resource id

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

const/4 v1, 0x5

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

const v3, 0x10803ac # download icon resource id

const v4, 0x10403c4 # download string resource id

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

aput-object v2, v0, v1

Code I used in Gingerbread

const/4 v1, 0x4

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

const v3, 0x1080434

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

const/4 v1, 0x5

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

const v3, 0x1080435

const v4, 0x1040486

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

aput-object v2, v0, v1

const/4 v1, 0x6

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

const v3, 0x1080436

const v4, 0x1040487

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

aput-object v2, v0, v1

Everything shifted up one because there is an additional GlobalActions smali.
[Vibrant Android Development] Homam Ageel:
that is what I meant ,, also the lines number are different !
[Vibrant Android Development] vauss:
any idea?

tnx
[Vibrant Android Development] ronhoover88:
Please somebody help i'm using android 2.2.1 froyo and i followed the guide but while compiling i get errors saying public.xml symbol id is larger than defined max 1017...but you have added 1018,1019 & 1020...what do i do??
[Vibrant Android Development] Whitehawkx:
The ids in the OP are not the same ids you'll use. You will need to find the next set of ids in the list and use them instead.
[Vibrant Android Development] ronhoover88:
I used different ids only...it says not defined

The error is mainly related to drawable public.xml...saying i have exceeded the limit of ids defined that is max 1017...and i have defined 1018,1019 & 1020
[Vibrant Android Development] ronhoover88:
What if my ids end with 0 x 010803ef and when i define my ids as 10803fa i get the errors i have exceeded the max symbol ids
[Vibrant Android Development] Whitehawkx:
Can you pastebin the entire error log for me? I might can help.
[Vibrant Android Development] ronhoover88:
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
(skipping index file 'F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\drawable-hdpi\Thumbs.db')
F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2865: error: Public entry identifier 0x10803fc entry index is larger than available symbols (index 1020, total symbols 1017).
F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2865: error: Public symbol drawable/download declared here is not defined.
F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2863: error: Public entry identifier 0x10803fa entry index is larger than available symbols (index 1018, total symbols 1017).
F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2863: error: Public symbol drawable/reboot declared here is not defined.
F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2864: error: Public entry identifier 0x10803fb entry index is larger than available symbols (index 1019, total symbols 1017).
F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2864: error: Public symbol drawable/recovery declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\Mark\LOCALS~1\Temp\APKTOOL7592869649840542113.tmp, -x, -S, F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\Mark\LOCALS~1\Temp\APKTOOL7592869649840542113.tmp, -x, -S, F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, F:\Samsung\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

this the error from my log!!
[Vibrant Android Development] fallenfuzz:
Can those options be added to odexed ROM?
[Vibrant Android Development] firefds:
Because after 10803ef comes 10803f0

then f1, f2, f3, f4, f5, f6, f7, f8, f9 and only then fa
[Vibrant Android Development] ronhoover88:
Thank you i figured this weeks back...is there any guide to port lockscreens
[EVO 4G Accessories] Crotchety:
Anybody know if this battery is any good?

http://accessoryone.com/htc-evo-4g-...ith-back-door-wireless-c-831-p-1-pr-9100.html
[EVO 4G Accessories] spankmaster:
this seems to be the same ones that have multiple sources on ebay.

http://shop.ebay.com/i.html?_trkpar...&_sticky=1&_trksid=p3286.c0.m14&_sop=15&_sc=1

The good things is that it looks like there are only USA sellers, so odds are your going to get a better product than a chinese knock off. Not a guaranteed winner, but possibly better than most. If you like a suggestion on good batteries, ive had a wonderful experience with these here http://shop.ebay.com/i.html?_nkw=ev...2200mah&_osacat=0&_trksid=p3286.c0.m270.l1313

The galilio ones. I own about 3 and i can noticeably tell they are superior to my OEM battery and they are no extra bulk and super cheap.
[EVO 4G Accessories] ElAguila:
These batteries look good but I was wondering about the the battery cover that is shipped with them. I have a seidio 3500 right now and the way the battery cover for it is tapered, it will still fit in my holster that I bought for the evo. I wonder if these battery covers for the 2200mah batteries will also allow it to fit in the holster.
[EVO 4G Accessories] Crotchety:
I just wish someone would make a 1750mah or 1800mah that ACTUALLY tests at those numbers. That would be good enough for me and would fit under the OEM cover.
[Captivate General] robertoaste:
Hy there.

I'm triying to configure my working email on my captivate.

Y have all the configuration information an when i put in on the phone everithing test ok, incoming and outgoing email.

The thing is that i can send emails but not recive, my incoming box is always empty.

Please Help. I have tried it on POP and IMAP i whant it on IMAP do.

Thanks.
[Captivate General] j101399j:
We need more info. What e-mail are you using (hotmail, gmail, exchange,other?), which e-mail app, what version of android do you have on your phone and what modifactions have you done, and what are the settings you using? For example,

I am running Cog beta 7, froyo, and replaced the e-mail app with this opne here: http://xdaforums.com/showpost.php?p=8453938&postcount=99

I am running my hotmail, aol and att.net e-mails on it.

Hotmail and AOL was automatic in settings, but att.net required a bunch more

For exchange I am using roadsync.
[Captivate General] robertoaste:
I have Android 2.1

I'm using my working email with the same configuration y have on my outlook an everywhere.

I even download K-9 Mail from the market and used the same configuration and it worked.

the thing is that I what to use the standard that comes with the captivate, because amonge meny thing it has the link on the home screen and is like ussless.

Please Help.

thanks.
[Captivate General] j101399j:
Did you change the sync 3 day setting? Press menu, settings, accounts and sync. Select the exchange account and change the days to 1 month. Also try sendin yourself a message, if it does not send or receive, there is something wrong with your settings.

Also if you are using exchange, check with your admin that your username did not get locked out, happend to me and I had no idea. If it is another e-mail, and not exchnage having an issue, let me know exactly which e-mail is giving you an issue.
[Captivate General] robertoaste:
I'm using it on IMAP and as I told you earlier, the acount setting ar ok because they work on the other program K-9 Mail.

Please help.

Thanks.
[Captivate General] Dani897:
use k-9 and forget the samsung junk. you can even put it on the launch bar.

k-9 is the fastest android mail app that ive tried. it was almost real time. not that 5 minute sync that the stock one and many others have. mail droid is similar but having both running k-9 gave the notifications first.

if you dont know how to change the apps on the launch bar, press the applications icon, press menu, change view type to customizable grid.

press menu, choose edit, move desired icon to the launcher.

press menu, select save.
[Captivate General] j101399j:
I agree with Dani, if the stock app does not work and K-9 does, use K-9. If the settings are correct and it still does not work, it may be an issue with the app.
[Galaxy S I9000 Q&A, Help & Troubleshooting] deastr:
I use JP6/JPM rom and I also updated Flash from market. Some of the Flash content display as "?", sometimes when I click a Flash video link the browser starts to download it as if it's a file. I have enabled plugins in the browser settings as "Always on". Using default browser. What should I do?