[mod] mj4 native hotspot! {working} (odex/deodex)

Status
Not open for further replies.

tridogg97

Senior Member
Jun 27, 2007
463
87
0
ATLANTA
It can wait no hurry. Don't risk a brick.
You can still get to adb if it gets stuck also. May want to make a backup of the original

Sent from my SM-N900P using Tapatalk
Let me make backup with twrp and then I will try it. Thanks

Sent from my SM-N900P using Tapatalk

---------- Post added at 08:00 PM ---------- Previous post was at 07:05 PM ----------

The odexed version is a no go didn't boot I had to restore my system.

Sent from my SM-N900P using Tapatalk
 

mjcollum

Senior Member
Mar 13, 2011
2,111
4,851
0
TEXAS
Let me make backup with twrp and then I will try it. Thanks

Sent from my SM-N900P using Tapatalk

---------- Post added at 08:00 PM ---------- Previous post was at 07:05 PM ----------

The odexed version is a no go didn't boot I had to restore my system.

Sent from my SM-N900P using Tapatalk
Well crap. And back to the drawing board. Hate when it completes with no errors. And still doesn't work.

Sent from my SM-N900P using Tapatalk
 

mjcollum

Senior Member
Mar 13, 2011
2,111
4,851
0
TEXAS
ive got some halloween type stuff to do this evening ill be back on this after.
maybe @strongsteve will odex a version for us since he is the master.
or be able to point us in the direction of a tutorial or at least point out how im a complete idiot :).

not really sure what i'm doing wrong at the moment.
sure im just missing something.

currently my process looks something like.


adb shell
su
mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system
chown 777 /system/bin/dexopt-wrapper
chmod 777 /system/bin/dexopt-wrapper

cp /sdcard/modified/services.jar /system/framework/services.jar
dexopt-wrapper /system/framework/services.jar /system/framework/new_services.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar

cp -f /sdcard/original/services.jar /system/framework

chmod 777 /system/framework/services.odex
chmod 777 /system/framework/services.jar
chmod 777 /system/framework/new_services.odex

busybox dd if=/system/framework/services.odex of=/system/framework/new_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

cp /system/framework/new_services.odex /system/framework/services.odex

chmod 644 /system/framework/services.odex
chown root.root /system/framework/services.odex
rm /system/framework/new_services.odex

reboot

seems to complete with no errors. and creates a file. but hangs on boot.

no idea what i'm missing.
 
Last edited:
  • Like
Reactions: tridogg97

mjcollum

Senior Member
Mar 13, 2011
2,111
4,851
0
TEXAS
and i have been kindly pointed in the right direction by strongsteve the king of odex.

"You have to assimilate the bootclasspath integrity signature to the newly formed odex using DD binary."

still wont get to it for a while but at least i have a starting point.

added line above
busybox dd if=/system/framework/services.odex of=/system/framework/new_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

that should do it?
will have to wait and see.
 
Last edited:

mjcollum

Senior Member
Mar 13, 2011
2,111
4,851
0
TEXAS
ODEX VERSION UPLOADING!!!

fixed my problems once i got some time. im just an idiot ,,


to re-odex i used dexopt-wrapper
adb -s 7563b04f shell
su
mount -o rw,remount -t ext4 /dev/block/mmcblk0p23 /system
chown 777 /system/bin/dexopt-wrapper
chmod 777 /system/bin/dexopt-wrapper

cp /sdcard/mod/services.jar /system/framework/services.jar

dexopt-wrapper /system/framework/services.jar /system/framework/new_services.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/secocsp.jar:/system/framework/sc.jar:/system/framework/commonimsinterface.jar
cp -f /sdcard/original/services.jar /system/framework

chmod 777 /system/framework/services.odex
chmod 777 /system/framework/services.jar
chmod 777 /system/framework/new_services.odex

busybox dd if=/system/framework/services.odex of=/system/framework/new_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

cp /system/framework/new_services.odex /system/framework/services.odex

chmod 644 /system/framework/services.odex
chown root.root /system/framework/services.odex
rm /system/framework/new_services.odex
mount -o ro,remount -t ext4 /dev/block/mmcblk0p23 /system
reboot
 
Last edited:

strongsteve

Recognized Themer
Apr 1, 2008
5,197
16,759
0
Dallas, TX
ODEX VERSION UPLOADING!!!

fixed my problems once i got some time. im just an idiot ,,


to re-odex i used dexopt-wrapper
adb -s 7563b04f shell
su
mount -o rw,remount -t ext4 /dev/block/mmcblk0p23 /system
chown 777 /system/bin/dexopt-wrapper
chmod 777 /system/bin/dexopt-wrapper

cp /sdcard/amestris_mod/services.jar /system/framework/services.jar

dexopt-wrapper /system/framework/services.jar /system/framework/new_services.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/secocsp.jar:/system/framework/sc.jar:/system/framework/commonimsinterface.jar
cp -f /sdcard/amestris_original/services.jar /system/framework

chmod 777 /system/framework/services.odex
chmod 777 /system/framework/services.jar
chmod 777 /system/framework/new_services.odex

busybox dd if=/system/framework/services.odex of=/system/framework/new_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

cp /system/framework/new_services.odex /system/framework/services.odex

chmod 644 /system/framework/services.odex
chown root.root /system/framework/services.odex
rm /system/framework/new_services.odex
mount -o ro,remount -t ext4 /dev/block/mmcblk0p23 /system
reboot


Dont forget to remove your classes.dex from the original jar
 

mjcollum

Senior Member
Mar 13, 2011
2,111
4,851
0
TEXAS
I tried odex and even though the laptop connected to the phone, it was reporting there wasn't an Internet connection available.
Anyone else having this issue?
Positive you had service?

Maybe a reboot.
Wipe cache if you have to.
Try that.

Seems to work for me.

Sent from my SM-N900P using Tapatalk
 

utbiglall

Senior Member
Feb 28, 2008
85
40
0
Anyone else having this issue?
Positive you had service?

Maybe a reboot.
Wipe cache if you have to.
Try that.

Seems to work for me.

Sent from my SM-N900P using Tapatalk
No issues on my end. Replaced system files with root Explorer and connected right away. I am in low signal area and even tested hotspot while roaming, still no issues. So if it helps, I am on mj4 fully after downgrading to mi5 applying the ota update, rooted with cf auto, latest twrp running freeza odex stock
 
  • Like
Reactions: mjcollum

power_tennis

Senior Member
Jul 20, 2010
155
41
0
61
Atlanta
onthemovetechreview.blogspot.com
No issues on my end. Replaced system files with root Explorer and connected right away. I am in low signal area and even tested hotspot while roaming, still no issues. So if it helps, I am on mj4 fully after downgrading to mi5 applying the ota update, rooted with cf auto, latest twrp running freeza odex stock
Worked for me with odex hack....just rooted today with Kingoroot....easy as pie! Thanks guys!
 

copc

Senior Member
Dec 8, 2009
640
163
73
Orange County, CA
STOCK ODEX MJ4 HOTSPOT

for those who don't want the screen animations or other tweaks
this is a stock odex mj4 with the hotspot activated.

not a flashable zip. unzip.
works while keeping knox 0x0
just use a file explorer or adb to copy files into system/framework.
make sure r/w permissions set.
rename old files or make backup first.
Ok Running stock and rooted.
I did the above and renamed the two files and replaced then with root explorer.
Rebooted the phone and now stuck on sprint yellow screen.

Help Please!!!

Tried to do a factory wipe in stock recovery no luck.
 

mjcollum

Senior Member
Mar 13, 2011
2,111
4,851
0
TEXAS
Ok Running stock and rooted.
I did the above and renamed the two files and replaced then with root explorer.
Rebooted the phone and now stuck on sprint yellow screen.

Help Please!!!

Tried to do a factory wipe in stock recovery no luck.
Odd. The only files that should be renamed would be the orig files your replacing.
If you did that ...
You can use adb to replace the files back if you renamed the originals.
You should be able to adb into it while stuck on the yellow sprint screen. And still keep Knox 0x0.


Or if Knox 0x1. Flash twrp. Flash a rom.or use twrp file manager to copy files back.

Sent from my SM-N900P using Tapatalk
 

copc

Senior Member
Dec 8, 2009
640
163
73
Orange County, CA
Odd. The only files that should be renamed would be the orig files your replacing.
If you did that ...
You can use adb to replace the files back if you renamed the originals.
You should be able to adb into it while stuck on the yellow sprint screen. And still keep Knox 0x0.


Or if Knox 0x1. Flash twrp. Flash a rom.or use twrp file manager to copy files back.

Sent from my SM-N900P using Tapatalk

I did rename them to _stock
so I have 4 files
two orig that have _stock
and the two I downloaded from Post #2

I show Knox 0x0
I can not ADB from sprint screen

I did try to Odin MI5 which failed

I did get TWRP installed and renamed all the files back but still sticks at Yellow Sprint Screen.
 

e2950

Senior Member
Nov 17, 2008
84
46
0
Sheboygan, WI.
I did rename them to _stock
so I have 4 files
two orig that have _stock
and the two I downloaded from Post #2

I show Knox 0x0
I can not ADB from sprint screen

I did try to Odin MI5 which failed

I did get TWRP installed and renamed all the files back but still sticks at Yellow Sprint Screen.
same problem here. i rooted with Kingoroot and backed up and copyed the files over and now i am stuck at the yellow screen of death and i am not very skilled with ABD.

---------- Post added at 08:43 AM ---------- Previous post was at 08:36 AM ----------

same problem here. i rooted with Kingoroot and backed up and copyed the files over and now i am stuck at the yellow screen of death and i am not very skilled with ABD.
i don't know if i installed them wrong but was i suppose to change the read write permissions on the file them self of just make sure i had read write to the files system. if i was suppose to do anything more then just copy the 2 files out of the zip from the 2nd post then that is where i messed up. any ideas how to fix it?
 
Status
Not open for further replies.