yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] tawfik badawi:
is it possible for HTC chacha "i'm attaching the framework-res.apk"

please help because i'm trying to build costume rom for it

edit it and will test it on my phone
[Vibrant Android Development] Ticklefish:
In theory it's possible, yes. Depends on the rom and the version of Android.

Have you tried doing this mod at all?
[Vibrant Android Development] tawfik badawi:
it's android 2.3.5 and yes i have but there was a problem in reassembling the apk

---------- Post added at 06:40 PM ---------- Previous post was at 05:48 PM ----------

i will try to use tickle my android and tell you what will happen :good:
[Vibrant Android Development] tawfik badawi:
when i reassemble the apk i can't change it to rw-r-r- :confused:

so i tried to make a flashable zip but im recovery it keep telling me (status 0) installation aborted :confused: :confused:
[Vibrant Android Development] parkerj7uc:
rw-r- r are the permissions you have to give it thru root explorer when you push it to your phone. If you can't change it than its possible your not rooted. What recovery are you trying to flash it thru? Stock or custom?

http://i.imgur.com/0OBoXTC.jpg
[Vibrant Android Development] tawfik badawi:
Don't worry my phone is rooted . I'm using clockwold mod recovery touch , I used root explorer to make some apps system apps and removed some apps from system .
[Vibrant Android Development] tawfik badawi:
Now i know why "I was trying to change permissions from a wrong directory

sorry and thanks for your help
[Vibrant Android Development] tawfik badawi:
hey again

i'v done it all but i can't find ::invoke-static {v0, v1}, Lcom/android/internal/app/ShutdownThread;->shutdown(Landroid/content/Context;Z)V::

anyware .

so i'v searched and searched and searched before asking :confused:

and i have found it on a file called PowerDialog.smali

what should i do now pal ?

HELP

:p
[Vibrant Android Development] Faaiz75:
Is there a way to change language mine is in russian
[Vibrant Android Development] King smus:
please help me this is between live and death. I bought a coolpad 8715 but the android version doesn't work with Playstore and everything about it is in Chinese, I try to change the language to English but the apps are still written in China. please how can I install another OS on it that support Playstore. I downloaded the firmware ( 8715_4.4.016.P1.8715.CPB ) which is in CPB format and i try to extract it to change application and some settings, after extraction I found some files in the folder but I don't know which one to edit or how to. The help I needed is that, how to edit my firmware .....CPB file after extraction and pack it back as .......CPB file so that I can use it to flash my coolpad 8715. Or is their any OS or ROM I can use like KitKat, lollipop, marshmallow miui etc. I try to update the phone with wireless hotspot, not working. I also try to install KitKat 4.4.2 Custom ROM through the phone recovery mode which is in China, but showing verification failed and signature error. please help me what can I do, am ready to take any ricks.
[Vibrant Android Development] anomalous3:
Shouldn't be any need to do that for a change like this.

That's because it needs to dexopt all of the apk files again. Anytime you reboot after wiping dalvik cache it takes longer.

And to the OP: Thank you SO MUCH! I've never really known what to do with disassembled .smali files, but between this and the lockscreen mod tutorials I'm starting to take a few steps towards understanding how stuff fits together.
[Vibrant Android Development] creator2456:
Always be on the safe side and disable Voodoo before flashing ANYTHING. Much quicker to disable/enable than going through the soft-brick loop.
[Vibrant Android Development] dasunsrule32:
Flashed via Clockwork on JI6 stock, rooted, didn't work. :(
[Vibrant Android Development] creator2456:
You need the lockscreen mod as well.
[Vibrant Android Development] s0niqu3:
Hi,

The reason my zip requires you disable voodoo is because it wipes the dalvik-cache, and thus needs to be able to see the /data partition, and with voodoo enabled, clockwork recovery won't see /data so the zip will error.

Also, a general FYI, if you try to use the clockwork option to wipe dalvik-cache with voodoo enabled, you'll notice the same error, it won't wipe the cache since it can't see /data. So if you play with lots of mods often, either get in the habit of wiping dalvik-cache manually from an adb shell, or disable voodoo. So far, probably 90% of the time someone has had an "Error" with one of my themes/mods, its because they didn't wipe the cache and dalvik-cache, hence why I'm including the wipe in my zip files now.

That said, if you don't want to disable voodoo, you can do the following:

download my zip and extract the android.policy.jar

do an adb push ~path_to_my_file /system/framework

open an adb shell with su

cd data

rm -r dalvik-cache

then reboot.

Cheers, =)
[Vibrant Android Development] djquick:
Worked like a charm on AOSPish 1.1 rom. Thanks Jocelyn, love ya!!

Scratch that, kept doing a bootloop so I nandroided back. Still love ya though
[Vibrant Android Development] j_r0dd:
nice work! smali editing is fun!
[Vibrant Android Development] dasunsrule32:
I didn't think the lockscreen mod worked with JI6 :)
[Vibrant Android Development] anomalous3:
Ah thank you, I totally missed that part since I always just wipe dalvik cache manually. Sorry everyone for the bad advice.
[Vibrant Android Development] DmdFreak:
I have no idea what or how to disable voodoo, but I'm running stock J16 rooted with the battery icon mod packaged with the lock screen mod.

My questions are:

Am I using voodoo with this setup I've listed? And if I am, how do I go about disabling it?

Is the lock screen mod included with the battery icon mod, the mod needed to use this zip?

Thanks!
[Vibrant Android Development] daddysays:
You rock girl!!!!
[Vibrant Android Development] daddysays:
In a hurry so cant read through to see if someone already said this, but works perfect with bionix 1.9
[Vibrant Android Development] PSP_Hacker:
Nice reverse engineering :D

I'll try this out.
[Vibrant Android Development] shaynes vibrant:
thanks works great with bionix 1.9.1 voodoo
[Vibrant Android Development] gravis86:
If you are running stock JI6 (you got it from Kies, OTA, or through Odin) then you don't have Voodoo. Just download and flash through Clockwork!
[Vibrant Android Development] zimphishmonger:
excellent work all around. :D
[Vibrant Android Development] chichu_9:
Now only if someone will find a similar workaround to add Vibrate mode...That would be great
[Vibrant Android Development] Qverse:
Great work

fantastic Mod ! I been thing of that for a bit and just kept putting it off..Great .. I been rebooting from the terminal. This Much more nicer...! Thank you

And That said s0niqu3, if you don't want to disable voodoo, you can do the following:

from the terminal download my zip and extract the android.policy.jar

do an adb push ~path_to_my_file /system/framework

open an adb shell with su

cd data

rm -r dalvik-cache

then reboot.
[Vibrant Android Development] Master™:
Thanks, added this mod into Master Rom 1.1.3 :)
[Vibrant Android Development] nacron:
Or you can just hold the power down for 10 seconds
[Vibrant Android Development] TheSneakerWhore:
Works great--maybe it is the beer, but I love you guys/gals.
[Vibrant Android Development] DmdFreak:
I tried it, but no dice. Only thing I can figure is that the lock screen being referenced here is not the one I'm using although it sounds like what I have.
[Vibrant Android Development] s0niqu3:
Hi,

If you're using the stock JI6, then check and see if you .odex files for almost every apk and jar in /system/framework

adb shell

su

cd system/framework

ls

if you have odex files, then my zip won't work, sorry.

I can try and talk you through the steps to generate the odex file, but you need to be comfortable with adb and running shell/terminal commands.

Cheers, =)
[Vibrant Android Development] jonjacobmoon:
Thanks

works great.
[Vibrant Android Development] DmdFreak:
Yep. They are there so no go for me. Thanks anyways.

For anyone that's interested, I was able to look into that directory with AndExplorer to check for the files.
[Vibrant Android Development] kizer:
No kidding. I hate the fact there is silent mode, but no vibrate.
[Vibrant Android Development] kizer:
Yep thats what I always do. ;)

Looks nice thou.
[Vibrant Android Development] lnafziger:
I'm running the stock JI6 and really want to do this. I'm quite familiar with adb/shell/etc but don't really know much about odex files and such. I did manage to download the /system/framework directory and deodex it (so that I now have a bunch of jar's on my computer) but don't know what to do next. I have APK Manager but figure that I have to somehow get the .jar into a .apk?? Then how do I recompile all of this after I make the changes?

Lol, well you did offer to talk us through the steps so if you are still willing to do this I would greatly appreciate the help!!!

Louis
[Vibrant Android Development] bert269:
Another request please.......

I could understand that this might not be possible to do, but could someone please, PLEASE, add the reboot recovery option to this new expanded power menu.

It will be REALLY helpful, rather then go to a terminal, type su, type reboot recovery....or create a shortcut with another program(forgot what it is- since I could never get it to work anyway) on the desktop....

please?

Thanks
[Vibrant Android Development] Master™:
Uh what? Dialer > Press & Hold the # key
[Vibrant Android Development] kolyan:
Silence mode is useless, this should have been Vibrate. I think this is "fixed" in Froyo release.

But in any way, I have widgets for Vibrate and for Reboot.....so there is really no need for power menu reboot.....but it is nice.
[Vibrant Android Development] joshthewaster:
Huh. Nifty. But what's different than just pressing vol down till it goes to vibrate? My issue with vibrate mode is I can't have different vibration intensities for the ringer and haptic feedback. I want the ringer at max and key presses off or at min. Anyway not sure what everyone elses issue with it is.
[Vibrant Android Development] fduraibi:
Thank for this fix, i have been looking for something like it.

For the vibrate, I would like to change the "silent" from the android stock lock screen to vibrate, does anyone know how to do that? :confused:
[Vibrant Android Development] VibrantOwnr:
Any way we can get a clockwork zip for the stock ji6 rom...non deodexed?
[Vibrant Android Development] designgears:
Thank you sir! Just ported this over to the Captivate Froyo Build...

http://xdaforums.com/showthread.php?t=812341
[Vibrant Android Development] a400meter:
Worked great for me using bionix 1.9.1 w/kk . One note I have not seen. I am not actually using the puzzle lock (using android stock) guess it just has to be there... Been missing this option, thanks!
[Vibrant Android Development] a400meter:
Rom manager has a reboot to recovery shortcut. Would save you a few clicks anyway.
[Vibrant Android Development] lnafziger:
So I figured out how to do all of the magic and create a android.policy.odex file for stock JI6 builds.

For those of you interested in how to do it, the following thread was very helpful for me:

xdaforums.com/showthread.php?t=779803

Installation instructions:

Nandroid Backup!

Download the attached file and unzip it.

adb push android.policy.odex /sdcard
adb shell
su
mount -o remount,rw yaffs2 /system
busybox cp -f /sdcard/android.policy.odex /system/framework
reboot

You should now have the reboot option on your menu!

EDIT: Attached is also StockJI6-RebootPowerMenu.zip which is the same file but is packaged as a zip flashable from Clockwork Recovery.

Louis
[Vibrant Android Development] Broken:
Awesome! Thank you. Super easy.
[Vibrant Android Development] VibrantOwnr:
Lockscreen Mod

Is there anyway we can use this with the lockscreen/accurate battery mod?
[Vibrant Android Development] c-pimp:
Nice work! Anyway to get an option to boot to recovery as well?
[Vibrant Android Development] tonie972:
So we can't run this if we have stock ROM?
[Vibrant Android Development] Colt1911:
Thank you, Louis!

I tried to push your file using ADB, but I was like a dog chasing my tail in circles. I could not figure it out. :D

SO, being the hammer fisted type of person I am, I decided to try a different method.

I took your policy file, copied it to my sdcard, then moved your file to /system/framework using Root Explorer instead of ADB. I enabled R/W in Root Explorer to make the folder writeable and then I just let Root Explorer overwrite the default policy file with yours.

It works just fine!!

My thanks to untermensch, lnafziger!!

(To clarify, I'm on stock JI6 and I used the file posted by Inafziger in post #58.)
[Vibrant Android Development] VibrantOwnr:
Check a few posts above. Theres a post on how to do it.
[Vibrant Android Development] raiderep:
I got this to work on my Epic with a few changes to your directions. Thanx!

Things I changed:

Epic already had a GlobalActions$7.smali so I went with GlobalActions$8.smali

the framework-res string was wrong so I tracked down the correct one: 0x01040339

Thanx again for the easy to follow directions, wish I had something similar to port the puzzle lockscreen mod to Epic...its a bit tougher trying to figure that one out
[Vibrant Android Development] evnldr:
Will give it a Go.
[Vibrant Android Development] lnafziger:
I'm trying to learn more about this and figure out how things are set up in Android. I want to see what other options are available and figure this is a good place to start. Where did you find this?

Thanks!

Louis
[Vibrant Android Development] lnafziger:
Attached is a flashable zip for Stock JI6 odexed phones.

It is the same file that I posted earlier (post #58) but can be flashed from Clockwork Recovery.

Louis
[Vibrant Android Development] Colt1911:
TY, Louis!
[Vibrant Android Development] darkessdesire:
Make one that works on any rom it will be helpfull to all ty
[Vibrant Android Development] untermensch:
I updated the first post with different more OEM method.
[Vibrant Android Development] untermensch:
added the source files for a third method that adds recovery and download

options to the power menu.
[Vibrant Android Development] s0niqu3:
Absolutely amazing work, thanks so much!!!!

Admittedly, I changed the resource calls for different icons, I'll probably try to make custom icons later tonight or tomorrow, or at least reduce the size of the icons I used to match the default power icon, but for now, I just wanted to make sure I had the right resource id for each menu item, reboot, recovery, and download.

Thanks again for all your hard work, CM6 lockscreen music controls next?

Cheers, =)
[Vibrant Android Development] untermensch:
thanks....

the same icon over and over is pretty boring, I was tempted to add some more

icons to framework-res but didn't have any ideas

maybe rework my avatar for the download icon
[Vibrant Android Development] s0niqu3:
Hi again,

Not a bad idea, I took your avatar, desaturated, resized, etc., and then also took the icon for rom manager and thus:

I've zipped the three icons I used, and attached them here if you want to use them.

UPDATE: 11:24pm, had older versions of the icons in the zip, re-uploaded with the newest versions

Thanks again, cheers, =)
[Vibrant Android Development] speedysilwady:
simply amazing work! thank you so much! I was wondering if you had time to read this think tank because i feel like you could greatly contribute to it, basically I was thinking of having an option to add Launch Camera to the power button menu, and once the camera app is launched the power button could be used as a physical shutter button.

[THINK TANK] Remap Power/Lock to Camera Functions & Remove Low Battery Limitations

thanks for your time! =]
[Vibrant Android Development] s0niqu3:
FYI, adding your change in the second and third methods to GlobalActions$3.smali

const/4 v2, 0x0
sput-boolean v2, Lcom/android/internal/app/ShutdownThread;->mReboot:Z

breaks the power off action, forcing the device to hot-restart, and removing the change doesn't seem to break any of the added functionality, though I can't verify that it restores proper shutdown to the power-off functionany, i keep seeing wierd random reboots, mixed with proper shutdowns.

Any chance at looking into fixing this?

Thanks again, cheers, =)
[Vibrant Android Development] untermensch:
it looks like I posted the wrong file it should be

const/4 v2, 0x0

sput v2, Lcom/android/internal/app/ShutdownThread;->mReboot:I

it was changed from a boolean to an integer to support the extra options

.

tested the change and re-upped the new file
[Vibrant Android Development] s0niqu3:
Hi again,

I've not tried the new fix, but after a second or third round of wiping caches and fixing permissions, simply running with the code removed seems to work fine, once the system completely rebuilds the dalvik-cache and initializes.

So I'm not sure the extra code in GlobalActions$3.smali is even necessary? The reboot, recovery and download functions all still work for me with the code removed.

Anyway, thanks for looking into it so quickly though, cheers, =)
[Vibrant Android Development] untermensch:
if mReboot does not = 1,2 or 3 then shutdown is the default action. I wasn't

sure what would happen if mReboot = null, but if it is working then it is ok.
[Vibrant Android Development] untermensch:
silent mode can be changed to vibrate by opening GlobalActions$1.smali

and on line 68

change:

const/4 v1, 0x0

to:

const/4 v1, 0x1
[Vibrant Android Development] richan90:
Lmao... I saw this and I thought it looked awesome, so I flashed it in clockwork. No wonder it stalled on me... hahaha
[Vibrant Android Development] floepie:
Can *.jar files be decompiled and recompiled correctly with APK Manager simply by changing the extension to APK and back to JAR upon completion?
[Vibrant Android Development] s0niqu3:
Hi,

Honestly, I've never tried to decompile a jar with apk manager, honestly baksmali/smali isn't terribly complicated once you use them a couple times.

the general commands never change:

decompile: java -jar baksmali.jar path_to_jar_to_decompile.jar -o output_folder_name

compile: java -jar smali.jar folder_name -o classes.dex

then assuming you use a deodexed rom, open the original .jar file with 7-zip, and drag and drop the new classes.dex file into the window.

hope that helps, cheers, =)
[Vibrant Android Development] Master™:
ahhah, did it just for the hell of it & it works
[Vibrant Android Development] geoffcorey:
i love having the extended power menu. is there anyway you could post one of the new extended power menu's with the lock screens?
[Vibrant Android Development] serge1231123:
Does this work with Rooted Stock J16 Vibrant?
[Vibrant Android Development] Qverse:
More OEM ? as in Stock ?

I'm loss

On this reading, reading, reading ?

More OEM ? as in Stock ? So this CAN'T be applied to bionix191_JACS_OCUV_VOODOO or can it ?
[Vibrant Android Development] M5devil:
Can someone please explain to a dumb user like me what I need to flash here... I am confused :confused:

I am on Bionix 1.9.1 Rom with OC/UV and Voodoo.

Thanks.
[Vibrant Android Development] s0niqu3:
Hi,

I don't think there's anything in a form that you can simply flash, except for the mod I put together here:

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

However, that's ONLY for eugene's hybrid R4 rom, sorry.

EDIT: just saw that untermensch added some options for stock JI6 and deodexed JI6, I'd try the deodexed verion on bionix.

Cheers, =)
[Vibrant Android Development] geoffcorey:
there is a flash for an odex rom with you flash through stock recovery. there is a flash for deodexed roms, (which i'm not sure if it'll flash from CWM or stock recovery).
[Vibrant Android Development] M5devil:
Ok so for Bionix 1.9.1 with OC/UV and Voodoo.... which one???
[Vibrant Android Development] s0niqu3:
Just edited my post when I saw he added new files, try the deodexed version for bionix.

Cheers, =)
[Vibrant Android Development] geoffcorey:
Any way to add the lock seen choices to this?
[Vibrant Android Development] Qverse:
So did it work ?

What if I rip the JI6_deodex.zip and rename the update.zip to menu.zip and flash using CLW ?
[Vibrant Android Development] lnafziger:
Great, thanks for posting a version for stock JI6! Works great!
[Vibrant Android Development] Qverse:
I tried both way CWM and pushing abd and Both ways worked..on bionix 1.9.1 . Tested all on menu and is working
[Vibrant Android Development] M5devil:
Ok, it works very well on Bionix 1.9.1 with OC/UV with Voodoo... By the way I didn't run disable Voodoo zip. Come to think of it, how do I check if Voodoo is enabled or not?

Oh, and dark notification pulldown from Bionix is all messed up now... Anyone wanna confirm?
[Vibrant Android Development] s0niqu3:
Hi again,

The pulldown will always revert back (paritally) to stock when flashing a framework-res.apk mod not made specifically for the custom rom/theme you use.

You'r best bet, decompile framework-res.apk from this reboot mod, and also decompile framework-res.apk from bionix, then copy over all the xml files from /color /anim /layout /drawable folders from bionix, into the reboot mod, and then also copy the bionix status_bar_item_background_normal.9.png, status_bar_item_app_background_normal.9.png, status_bar_close_on.9.png and status_bar_background.9.png from drawable-hdpi (might be drawable-hdpi-v4, don't worry) and then re-compile.

Sorry, but there's not really another way to do it, except maybe a metamorph, though I personally don't use it, and can't offer any help with how to make it work with it.

Cheers, =)
[Vibrant Android Development] M5devil:
I think it would be a great addition for Bionix 2.0. Something like this is a must for every ROM.
[Vibrant Android Development] kd_bui:
I flashed the JI6_stock.zip with stock recovery but it didnt work. I am running stock JI6 with OCLF. Please help. Thanks.
[Vibrant Android Development] musky:
So do I have to rename to update.zip to flash through stock recovery?
[Vibrant Android Development] lnafziger:
You need to unzip the JI6_stock.zip file and inside is a update.zip file which can be flashed through stock recovery from the root of your sdcard.
[Vibrant Android Development] musky:
thanks alot for clearing that up for me.
[Vibrant Android Development] kd_bui:
Me too. Thanks.

Everything works great. Unfortunately, this mod replaces my accurate battery icon with lockscreen mod. Is there an update.zip that includes both mods?
[Vibrant Android Development] floepie:
I notice that when you recompile with APK Manager a decompiled JAR, like android.policy.jar, and you THEN decompile your compiled JAR, you don't get the entire <build/apk/classes.dex> in the output.

BUT, when you extract or unzip the APK/JAR, you get identical folder/file output (MD5 sums). So, I'm almost led to the conclusion that the appearance of the build/apk/classes.dex in the decompiled "projects" folder only from the original JAR (not a recompiled version) is simply an artifact of APK Manager and should have no bearing on the validity of the file.

Do you know why this would be, and did you test your compiled JAR (generated with APK Manager) on the Android system?
[Vibrant Android Development] Qverse:
I did replaces accurate battery icon and and the % is a little off now..I have to look into this..?

I think I back up files to see what has to be re-modded or fixed. I'm at my work place can play with it now.. Maybe later.. unless anyone has good idea ??
[Vibrant Android Development] chris2fer:
I used the stock fix and the lock screen choices (through a previous zip) don't work. I have the options, epic, android, puzzle and glass but no matter which option I select it uses glass. Any thoughts?
[Vibrant Android Development] amadeyX:
I have some problem:

After decompile APK and change the files

I try to compile the APK with apk_manager and get an ERROR : OCCURED
[Vibrant Android Development] kd_bui:
I want the reboot option with accurate battery and lockscreen options. Please fix.