Jump to content


Photo

Galaxy S II deodexed/zipaligned XXKH3 files

- - - - -

  • Please log in to reply
24 replies to this topic

#1
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III
Samsung Galaxy S II XXKH3 (Gingerbread v2.3.4) system/app and system/framework files deodexed and zipaligned.
This also includes an expanded power menu (see image below).

This is for people who want deodexed files but want to keep their stock look and feel.

PLEASE READ EVERYTHING IN THIS POST BEFORE INSTALLING.

Assumes you have rooted your phone.

Attached File  power-menu.png   113.57KB   21 downloads

MAKE A BACKUP BEFORE YOU START IN CASE SOMETHING GOES WRONG. VERY IMPORTANT!

1. Download the XXKH3 system-deodex.zip file XXKH3 Deodexed Files
2. unzip the system-deodexed.zip file to a local drive (you should have a system folder containg: app & framework folders)
3. using adb, do the following: (note: you should create an app & framework folder on your sdcard first)

a. adb push app /sdcard/app/
b. adb push framework /sdcard/framework/
c. adb shell
d. su
e. stop
f. mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
g. cp /sdcard/app/* /system/app/
h. cp /sdcard/framework/* /system/framework/
i. rm /system/app/*.odex
j. rm /system/framework/*.odex
k. mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
l. reboot

After the reboot it could take 2-3 minutes for the phone to completely boot as it has to refresh the dalvik cache. Have some patience at this point.

Please provide feedback as I have done extensive testing with this and have had no problems.


Okay stupid me: Forgot to add the extended power menu files to the base system (/system/framework).
Just copy the attached files to /system/framework BEFORE copying to your phone. See what happens when I hurry. You can slap me now!

Extended power-menu files

Edited by Gary Crutcher, 27 August 2011 - 08:14 AM.

  • 1

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#2
Lancez

Lancez

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,093 posts
  • Gender:Male
  • Location:Los Angeles, California, U.S.A
  • Interests:My Devices:
    Galaxy Nexus
    Samsung I9100
    Samsung S8600 Bada
    Samsung I8000
    Samsung I900
    Sony Ericsson X10a
thanks a lot

  • 0

#3
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III

thanks a lot


Anytime, buddy.
Make sure you read the bottom of the post. Next time I must think first then post files. Posted Image

Edited by Gary Crutcher, 27 August 2011 - 08:20 AM.

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#4
Lancez

Lancez

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,093 posts
  • Gender:Male
  • Location:Los Angeles, California, U.S.A
  • Interests:My Devices:
    Galaxy Nexus
    Samsung I9100
    Samsung S8600 Bada
    Samsung I8000
    Samsung I900
    Sony Ericsson X10a

Anytime, buddy.
Make sure you read the bottom of the post. Next time I must think first then post files. Posted Image



LOL, a little mistake won't hurt. thank you.

  • 0

#5
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S
Gary Crutcher, just used SGS2 for about a month. It was rooted with Chainfire CF-Root. But I like your extened power menu very much. Can this power menu can be activated by an icon on the screen and not by the power buttom?

My firmware now as shown as picture attached.

Attached Files


  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#6
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III

Gary Crutcher, just used SGS2 for about a month. It was rooted with Chainfire CF-Root. But I like your extened power menu very much. Can this power menu can be activated by an icon on the screen and not by the power buttom?

My firmware now as shown as picture attached.


Don't know if it can be done using a widget.
Will look into it.

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#7
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S
Thank, Gary.

Do you going to cook DXKH2 ROM with extended power menu as this thread mention: http://forum.xda-dev...d.php?t=1169443

The good points of DXKH2 were this ROM for Asia, it have malay, Thai, Vietnan and Chinese languages including keyboard.
If you can incoroporated CWM recovery in it will be ideal to me as well ad other people.

Edited by skoda60, 07 September 2011 - 02:57 AM.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#8
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III

Thank, Gary.

Do you going to cook DXKH2 ROM with extended power menu as this thread mention: http://forum.xda-dev...d.php?t=1169443

The good points of DXKH2 were this ROM for Asia, it have malay, Thai, Vietnan and Chinese languages including keyboard.
If you can incoroporated CWM recovery in it will be ideal to me as well ad other people.


I can deodex DXKH2 and add extended power menu without header - it's easy to do.


Adding CWM is another story as I have never done this before - I always use Chainfire's rom for rooting, then
flash Ninphetamin's kernel. Chainfire's rom has CWM and so does ninphetamine's.

Here is a link on how to install CWM: http://www.addictive...-android-phone/

Am downloading DXKH2 now - will take me a few days to do this as students are just starting final exams and I
have a lot of grading to do.

Edit: DXKH2 has no CSC or phone file, just a PDA file.

Edited by Gary Crutcher, 07 September 2011 - 05:19 AM.

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#9
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S
I downloaded your extended power menu and copy into base system (/system,framwork) folder, then reboot my phone. Haha, it go into boot loop on xwkf1 and dxkx2. When I used CWM restore the saved backup file, the system menu became very slugish. So I reflashed the dxkh2, then fellow CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4. Restored back from backup set with CWM and everything worked fine. I do not know what happen on those 3 files.

Edited by skoda60, 07 September 2011 - 07:46 AM.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#10
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S

I can deodex DXKH2 and add extended power menu without header - it's easy to do.


Adding CWM is another story as I have never done this before - I always use Chainfire's rom for rooting, then
flash Ninphetamin's kernel. Chainfire's rom has CWM and so does ninphetamine's.

Here is a link on how to install CWM: http://www.addictive...-android-phone/

Am downloading DXKH2 now - will take me a few days to do this as students are just starting final exams and I
have a lot of grading to do.

Edit: DXKH2 has no CSC or phone file, just a PDA file.


I try Odia insecure curnels and used S2 root 1.3, and wash rooted successfully. ROM manager not worked due to certified errors. So can't installed CWM recovery. Ended I used Chainfire CF-Root kh3 for my dxkh2.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#11
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III

I downloaded your extended power menu and copy into base system (/system,framwork) folder, then reboot my phone. Haha, it go into boot loop on xwkf1 and dxkx2. When I used CWM restore the saved backup file, the system menu became very slugish. So I reflashed the dxkh2, then fellow CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4. Restored back from backup set with CWM and everything worked fine. I do not know what happen on those 3 files.


The android.policy.jar and framework.jar in DXKH2 have a quite a few differences between the XXKH1/KH3 files.
I was trying to add the power menu to DXKH2 files and am not sure it will be that easy. I saw that
DXKH2 was constructing the power menu differently in some places. Not sure if this will have
any effect on my mods.

I will test it within the next few days when I have more time.

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#12
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S

I can deodex DXKH2 and add extended power menu without header - it's easy to do.


Adding CWM is another story as I have never done this before - I always use Chainfire's rom for rooting, then
flash Ninphetamin's kernel. Chainfire'js rom has CWM and so does ninphetamine's.

Here is a link on how to install CWM: http://www.addictive...-android-phone/

Am downloading DXKH2 now - will take me a few days to do this as students are just starting final exams and I
have a lot of grading to do.

Edit: DXKH2 has no CSC or phone file, just a PDA file.

Thank Gary, take your time.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#13
Lancez

Lancez

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,093 posts
  • Gender:Male
  • Location:Los Angeles, California, U.S.A
  • Interests:My Devices:
    Galaxy Nexus
    Samsung I9100
    Samsung S8600 Bada
    Samsung I8000
    Samsung I900
    Sony Ericsson X10a
looks like a lot of i8000 owners are moving to SGS II :lol:

  • 0

#14
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III

looks like a lot of i8000 owners are moving to SGS II :lol:



Yea....it's an awesome phone! Best phone I've ever had.


  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#15
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S
Gary,

I was very new to Android, many things you specified in the thread, I not understand:

1. Download the XXKH3 system-deodex.zip file XXKH3 Deodexed Files

Downloaded

2. unzip the system-deodexed.zip file to a local drive (you should have a system folder containg: app & framework folders)

Refer to PC c: drive?

3. using adb, do the following: (note: you should create an app & framework folder on your sdcard first)

Run adb from PC? Then fellow the command below?

a. adb push app /sdcard/app/
b. adb push framework /sdcard/framework/
c. adb shell
d. su
e. stop
f. mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
g. cp /sdcard/app/* /system/app/
h. cp /sdcard/framework/* /system/framework/
i. rm /system/app/*.odex
j. rm /system/framework/*.odex
k. mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
l. reboot

going to flash your XXkh3 files but I was lost. Now I was on DXKH2 rooted with CF-xxKH3. I need to flash to XXkh3 first?

Edited by skoda60, 09 September 2011 - 05:50 AM.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#16
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III

Gary,

I was very new to Android, many things you specified in the thread, I not understand:

1. Download the XXKH3 system-deodex.zip file XXKH3 Deodexed Files

Downloaded

2. unzip the system-deodexed.zip file to a local drive (you should have a system folder containg: app & framework folders)

Refer to PC c: drive?

3. using adb, do the following: (note: you should create an app & framework folder on your sdcard first)

Run adb from PC? Then fellow the command below?

a. adb push app /sdcard/app/
b. adb push framework /sdcard/framework/
c. adb shell
d. su
e. stop
f. mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
g. cp /sdcard/app/* /system/app/
h. cp /sdcard/framework/* /system/framework/
i. rm /system/app/*.odex
j. rm /system/framework/*.odex
k. mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
l. reboot

going to flash your XXkh3 files but I was lost. Now I was on DXKH2 rooted with CF-xxKH3. I need to flash to XXkh3 first?


Yes, you need to flash KH3 first, then copy the deodexed files to your phone.

Basically, you unzip the files to your PC...does not matter which drive on your PC.
Using adb, create 2 folders (app and framework) on your phone's sdcard.

Using adb, push the deodexed app files from your pc to the app folder on your sdcard. Then do the same for the framework folder.

Then continue with step c.

Edited by Gary Crutcher, 10 September 2011 - 01:37 AM.

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#17
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III
@skoda

You still want me to work on DXKH2?

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#18
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S

@skoda

You still want me to work on DXKH2?

KH3 is warming me. Finally for dxkh2.
Take your time.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.

#19
Gary Crutcher

Gary Crutcher

    Developer/Integrator

  • Members
  • PipPipPipPipPipPip
  • 1,342 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Devices:Omnia II / Galaxy S III
@skoda

As far as a program to call the power menu without long pressing the power button, here is
what I found out:

"If you look at the source code, you'll see it's handled internally (PhoneWindowManager.java and GlobalActions.java). There is no interface whatsoever through the API. In short: Can't be done."

  • 0

Omnia I900 (Khuanchai custom ROM 21928/23016)
Omnia II (My Own JH2/23689 Lite Custom Rom)
Galaxy S III 16 GB (ZSEMI1 ROM, Siyah-s3-v1.9 kernel)

Note 3 (N900, Rooted, Unlocked, KitKat)
Galaxy Note 10.1 (2014) (Rooted, my own custom KitKat ROM)
-----------------------------------------------------------
If you like my work, Donations Happily Accepted.
>>>Donation Link<<<


#20
skoda60

skoda60

    Addict

  • Members
  • PipPipPipPipPip
  • 554 posts
  • Gender:Male
  • Location:Singapore
  • Devices:S

@skoda

As far as a program to call the power menu without long pressing the power button, here is
what I found out:

"If you look at the source code, you'll see it's handled internally (PhoneWindowManager.java and GlobalActions.java). There is no interface whatsoever through the API. In short: Can't be done."


Thank Gary, going try you KH3 soon and look forward for the DXKH2 as long as you have time.

  • 0
Samsung Omnia2 with my own lite i8000NXXJJ1 wm6.5 by using twu2 script
Samsung Galaxy S2 Gary XWKI8 and DXKI2 ROM.
Worked great for me.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users