can anyone guide me on making a flash zip..? i managed to edit my lockscreen by editing the framework,put it back into the ROM and flash the ROM. but i reallt think it would be a lot easier if i can just make a flash zip so i can change my lockscreen without flashing the whole ROM.
I think it's hard to make a flash zip with noobs (like me ) because of making a update-script file. But there is a easier way to change your framework, just use Root Explorer to see permission of framework-res.apk (644 for this), then boot to recovery, mount /system and /sdcard, and use adb shell to
backup framework:
Code:
mv /system/framework/framework-res.apk /system/framework/framework-res.apk.bak
then copy framework from your sdcard:
Code:
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
Finally, set permission:
Code:
chmod 644 /system/framework/framework-res.apk
I always do that to change a system apk
Does anyone know what modules i need to delete if i want to flash kernel?
Sent from my X8 using xda premium
Related
im sure this is something alot of people wanna know....
what are the files needed to add stericsons lockscreen to a cyan build that doesnt contain it?...and where do those files go?
in /system/framework
services.jar
framework-res.apk
android.policy.jar
framework.jar
in /system/app
Settings.apk
thanks for your help i really needed this info...hey is there any way i can bring these files to jacxrom?....or are they made specifically for cyanogen's roms?
g1junky said:
thanks for your help i really needed this info...hey is there any way i can bring these files to jacxrom?....or are they made specifically for cyanogen's roms?
Click to expand...
Click to collapse
Jacxrom actually already has this in the latest build. But I did try to load the v7(i think) files and all it did was freeze at the G1 splash screen
nolimit78 said:
Jacxrom actually already has this in the latest build. But I did try to load the v7(i think) files and all it did was freeze at the G1 splash screen
Click to expand...
Click to collapse
ahh that sucks
so we cannot have the stericson lockscreen on jachero roms? damn. looks awesome and wanted to have that on there. bdw when you said:
"in /system/framework
services.jar
framework-res.apk
android.policy.jar
framework.jar
in /system/app
Settings.apk"
do we have to input in console or go to file path and drop the files in there?
sorry just not clear with the actual directions
Akademist101 said:
so we cannot have the stericson lockscreen on jachero roms? damn. looks awesome and wanted to have that on there. bdw when you said:
"in /system/framework
services.jar
framework-res.apk
android.policy.jar
framework.jar
in /system/app
Settings.apk"
do we have to input in console or go to file path and drop the files in there?
sorry just not clear with the actual directions
Click to expand...
Click to collapse
there can be some problems with pushing settings.apk when it is not in an update.zip but here are recovery console commands you can try. have all of the files on the root of your sdcard
Code:
mount sdcard
mount system
cp /sdcard/android.policy.jar /system/framework/android.policy.jar
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
cp /sdcard/framework.jar /system/framework/framework.jar
cp /sdcard/services.jar /system/framework/services.jar
cp /sdcard/Settings.apk /system/app/Settings.apk
(if [B]cp[/B] does not work try [B]mv[/B])
reboot
even if they don't work you will learn something about the how push files in the recovery console. so whenever some says adb push this is the same thing basically.
Ok i managed to get the stock lockscreen if you all want to use it.
There is a possibility that the file i signed has a different signature, but i dont think it will.
Remember make a backup! always.
If your phone gets messed up it is not my fault.
I have warned you, so here you are. EDIT: Unzip the file then push the one inside of the zip.
put the file i uploaded in /system/framework ............. let me know what you think!
Thank to : Ateisti for giving the info on how to modify it.
If you want to go back to your old lockscreen download the enable_glass_lock.zip, unzip it, and push the enable_glass_lock to /data/local
If your signature is different it will get stuck on the samsung, you can then restore your backup.
and if you want it then run these instructions:
You need to use adb not rootexplorer
DO this while in cwm recovery
1. Rename the file you downloaded to patched.odex
2. adb push it to your /system/framework
3. adb shell then cd into /system/framework
4. run this
dd if=android.policy.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
5. exit shell
6. adb pull the android.policy.odex for backup
7. adb shell cd /system/framework
8. rm android.policy.odex
9. mv patched.odex android.policy.odex
reboot and you should have stock lockscreen.
You are the ****ing man!
How well does this work with the alarm silencing and incoming calls? Thanks!!!
EDIT: Never mind...testing it out.
wasupwithuman said:
Ok i managed to get the stock lockscreen if you all want to use it.
There is a possibility that the file i signed has a different signature, but i dont think it will.
Remember make a backup! always.
If your phone gets messed up it is not my fault.
I have warned you, so here you are.
put the file i uploaded in /system/framework ............. let me know what you think!
Thank to : Ateisti for giving the info on how to modify it.
Click to expand...
Click to collapse
I'm a little confused... do we need to just change the file to android.policy.jar or leave it the name that it is and just move it to /system/framework
thanks!
taypotts said:
I'm a little confused... do we need to just change the file to android.policy.jar or leave it the name that it is and just move it to /system/framework
thanks!
Click to expand...
Click to collapse
Keep the name and adb push it to /system/framework (you might want to backup your old one) you can backup by "adb pull /system/framework/android.policy.jar"
You can also install it using root explorer if you want.
wasupwithuman said:
Keep the name and adb push it to /system/framework (you might want to backup your old one) you can backup by "adb pull /system/framework/android.policy.jar"
You can also install it using root explorer if you want.
Click to expand...
Click to collapse
See I'm still confused, cause there is no file named android.policy (samsung fascinate) in the folder "framework" but there is android.policy.jar
Should I unzip the downloaded file then push that?
taypotts said:
See I'm still confused, cause there is no file named android.policy (samsung fascinate) in the folder "framework" but there is android.policy.jar
Should I unzip the downloaded file then push that?
Click to expand...
Click to collapse
yep, unzip first...
Quick question, does this take away the option for the other two lockscreens, ie glass and puzzle? If not I can throw this in my theme port (with your permission of course) and also theme this lockscreen as well.
frostman89 said:
Quick question, does this take away the option for the other two lockscreens, ie glass and puzzle? If not I can throw this in my theme port (with your permission of course) and also theme this lockscreen as well.
Click to expand...
Click to collapse
Your more then welcome to use it, but It does not give an option. So you would have to create a seperate theme for people who would just want the stock lockscreen.
I've tried installing this twice with root explorer, and both times my phone gets stuck on the Samsung logo when I reboot.
To install the file, I unzip the download and then place the .odex file in /system/framework. Any ideas on what I'm doing wrong?
Sent from my Fascinate using XDA App
tiger4life said:
I've tried installing this twice with root explorer, and both times my phone gets stuck on the Samsung logo when I reboot.
To install the file, I unzip the download and then place the .odex file in /system/framework. Any ideas on what I'm doing wrong?
Sent from my Fascinate using XDA App
Click to expand...
Click to collapse
your signature isnt the same as my file. you can try to do this but you need to use adb not rootexplorer
DO this while in cwm recovery
1. Rename the file you downloaded to patched.odex
2. adb push it to your /system/framework
3. adb shell then cd into /system/framework
4. run this
dd if=android.policy.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
5. exit shell
6. adb pull the android.policy.odex for backup
7. adb shell cd /system/framework
8. rm android.policy.odex
9. mv patched.odex android.policy.odex
reboot and you should have stock lockscreen.
hey man, i'm new to all this i've done all that u said, but what is the command to pull the android.policy.odex from the phone? I think i'm putting the wrong directory in the command because I keep getting "remote object '......android.policy.odex' does not exist" thanks for this, btw i really dislike that puzzle piece unlock bs.
nevermind, I wasn't in cwm when doing it the first time. Thanks again.
I like this, can't wait to try it.
wasupwithuman said:
your signature isnt the same as my file. you can try to do this but you need to use adb not rootexplorer
DO this while in cwm recovery
1. Rename the file you downloaded to patched.odex
2. adb push it to your /system/framework
3. adb shell then cd into /system/framework
4. run this
dd if=android.policy.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
5. exit shell
6. adb pull the android.policy.odex for backup
7. adb shell cd /system/framework
8. rm android.policy.odex
9. mv patched.odex android.policy.odex
reboot and you should have stock lockscreen.
Click to expand...
Click to collapse
That did the trick. Thanks for the help!
Sweet, put that file in the xultimate and deodex'ed and got it working.. Thanks
Followed step by step from adb, and got stuck with the Samsung screen.
DUNC4N said:
Followed step by step from adb, and got stuck with the Samsung screen.
Click to expand...
Click to collapse
hmm... you used the file i attached and did eveything in adb? try again, i'd like to help more, but if you did everything step by idk...
You did it in cwm recovery right?
Thanks for the reply.
Yes I did it in clockwork recovery. I may of had some confusion on the second to last step. I'll try again when I get home.
Two questions: Is the silent slide functional, and are the last two steps verbatim.
Thanks again.
Sent from my SCH-I500 using XDA App
DUNC4N said:
Thanks for the reply.
Yes I did it in clockwork recovery. I may of had some confusion on the second to last step. I'll try again when I get home.
Two questions: Is the silent slide functional, and are the last two steps verbatim.
Thanks again.
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
not sure about the silent slide....i don't use this lockscreen. i just made it for you guys... and yes follow the last two steps exactly how i have them.
Silent mode is functional.
i have problem here
i goto the system/app and i replace the file SystemUI.apk with other file and i restart phone and not load with startup
and i back original file SystemUI.apk and not get load i need help please to make it load again
You probably used the wrong systemUI for your ROM. Just reflash your ROM.
U can try ADB push to put the SystemUI.apk and set permissions..
Code:
adb push SystemUI.apk /system/app
adb shell
chmod 755 /system/app/SystemUI.apk
1、Deodex android.policy.jar and android.policy.odex,get intact android.policy.jar.then Decompile android.policy.jar. after Modfied Recompileandroid.policy.jar.use dexopt-wrapper re-odex to get android.policy.odex.copy new android.policy.jar and android.policy.odex to /system/framework.modified file permissions and reboot.oh,phone alway stop at logo frame.
2、Deodex Original android.policy.jar and android.policy.odex,get intact android.policy.jar and do nothing.now, reodex android.policy.jar.copy to phone folder and reboot. phone stop at logo frame too.
first,I according to this GUID(http://forum.xda-developers.com/show....php?t=2125196) add a menu item.
second,After finished,my thread to deal with modfied files and operate phone.
that all.But reboot ...phone stop at logo frame
process
Code:
adb push odex /data/local/tmp/odex
adb shell chmod 755 /data/local/tmp/odex/*
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/android.policy.jar /data/local/tmp/odex/android.policy.odex
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/framework.jar /data/local/tmp/odex/framework.odex
adb shell
su
busybox cp -f /data/local/tmp/odex/android.policy.odex /system/framework/android.policy.odex
busybox cp -f /data/local/tmp/odex/framework.odex /system/framework/framework.odex
busybox cp -f /data/local/tmp/odex/framework-res.apk /system/framework/framework-res.apk
reboot
quywz said:
1、Deodex android.policy.jar and android.policy.odex,get intact android.policy.jar.then Decompile android.policy.jar. after Modfied Recompileandroid.policy.jar.use dexopt-wrapper re-odex to get android.policy.odex.copy new android.policy.jar and android.policy.odex to /system/framework.modified file permissions and reboot.oh,phone alway stop at logo frame.
2、Deodex Original android.policy.jar and android.policy.odex,get intact android.policy.jar and do nothing.now, reodex android.policy.jar.copy to phone folder and reboot. phone stop at logo frame too.
Click to expand...
Click to collapse
Maybe you should stop playing with things you do know nothing about.
Never saw a question looking so complicated and so empty at the same time.
What did you want to do? On what Rom?
ha.
official ROM V4.1.2
I try to add menu and so.And want to DIY.
quywz said:
ha.
official ROM V4.1.2
I try to add menu and so.And want to DIY.
Click to expand...
Click to collapse
Help yourself and so. Maybe DIY will come next morning. Sorry I disturbed your thread.
ThaiDai said:
Help yourself and so. Maybe DIY will come next morning. Sorry I disturbed your thread.
Click to expand...
Click to collapse
ok,I have modified my problem context.
ThaiDai said:
Help yourself and so. Maybe DIY will come next morning. Sorry I disturbed your thread.
Click to expand...
Click to collapse
first,I according to this GUID(http://forum.xda-developers.com/showthread.php?t=2125196) add a menu item.
second,After finished,my thread to deal with modfied files and operate phone.
that all.But reboot ...phone stop at logo frame
What are you trying to add? 4 way reboot menu? Try this tutorial
http://forum.xda-developers.com/showthread.php?t=2038675
now problem is when update android.policy.odex and reboot,system stop at samsung logo frame
if u want a deodex to change it to odex u just need a autoOdex.bat n do it with a PC connect to ur phone.
i'm not sure how u do it but it's seem so complicated !
quywz said:
now problem is when update android.policy.odex and reboot,system stop at samsung logo frame
Click to expand...
Click to collapse
you cannot directly compile to and odex file,
1. decompile odex, do the changes
2. compile back to classes.dex file and add to the original Jar file using 7z to get a deodexed jar
3 now use any of the odexing scripts here in XDA
nokiamodeln91 said:
you cannot directly compile to and odex file,
1. decompile odex, do the changes
2. compile back to classes.dex file and add to the original Jar file using 7z to get a deodexed jar
3 now use any of the odexing scripts here in XDA
Click to expand...
Click to collapse
THX.You said alread had done.update that file to phone and reboot,phone is stop.process
Code:
adb push odex /data/local/tmp/odex
adb shell chmod 755 /data/local/tmp/odex/*
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/android.policy.jar /data/local/tmp/odex/android.policy.odex
adb shell /data/local/tmp/odex/dexopt-wrapper /data/local/tmp/odex/framework.jar /data/local/tmp/odex/framework.odex
adb shell
su
busybox cp -f /data/local/tmp/odex/android.policy.odex /system/framework/android.policy.odex
busybox cp -f /data/local/tmp/odex/framework.odex /system/framework/framework.odex
busybox cp -f /data/local/tmp/odex/framework-res.apk /system/framework/framework-res.apk
reboot
first just use the deodexed one and see if its working or not.
nokiamodeln91 said:
first just use the deodexed one and see if its working or not.
Click to expand...
Click to collapse
thx for answering the question.pls look at http://forum.xda-developers.com/showthread.php?t=2272027.
I had update files one by one.
thnx
PRInCEI7 said:
Hi .. I will donate money to anyone who helps me
.. I want to edit amazon fire 7 9gen system the TabletSettings.odex and TabletSettings.apk but the problem is
The modification does not accept.. Is there a way .
Click to expand...
Click to collapse
You can use APKTOOL:
https://ibotpeaches.github.io/Apktool/
Before nothing, you need to extract framework-res.apk and SystemUI.apk and then install them as frameworks:
Code:
apktool if framework-res.apk
Code:
apktool if SystemUI.apk
And then extract it:
Code:
apktool d TabletSettings.apk
Now edit whatever you want and when you finish repack it:
Code:
apktool b TabletSettings
Then go to dist and extract the apk.
Now go to original and copy all folders and files to unpacked apk from dist (overwrite all files)
And finally, repack unpacked dist apk with WinRar (extension .zip and then rename to .apk).
Now install the apk to the tablet:
Code:
adb reboot recovery
Code:
adb push TabletSettings.apk /sdcard
Code:
adb shell
Code:
mount system
Code:
mv /sdcard/TabletSettings.apk /system/priv-app/TabletSettings/TabletSettings.apk
Code:
chmod 664 /system/priv-app/TabletSettings/TabletSettings.apk
And reboot to system.
BTW: What modifications you want to do?
Rortiz2 said:
You can use APKTOOL:
https://ibotpeaches.github.io/Apktool/
Before nothing, you need to extract framework-res.apk and SystemUI.apk and then install them as frameworks:
Code:
apktool if framework-res.apk
Code:
apktool if SystemUI.apk
And then extract it:
Code:
apktool d TabletSettings.apk
Now edit whatever you want and when you finish repack it:
Code:
apktool b TabletSettings
Then go to dist and extract the apk.
Now go to original and copy all folders and files to unpacked apk from dist (overwrite all files)
And finally, repack unpacked dist apk with WinRar (extension .zip and then rename to .apk).
Now install the apk to the tablet:
Code:
adb reboot recovery
Code:
adb push TabletSettings.apk /sdcard
Code:
adb shell
Code:
mount system
Code:
mv /sdcard/TabletSettings.apk /system/priv-app/TabletSettings/TabletSettings.apk
Code:
chmod 664 /system/priv-app/TabletSettings/TabletSettings.apk
And reboot to system.
BTW: What modifications you want to do?
Click to expand...
Click to collapse
thanks for replying
Unfortunately this method does not work
I imagine because of a odex file
I want to add the language to the system
All devices accept except this type AMAZON FIRE 7 9gen does not accept
@PRInCEI7
@Rortiz2
You would first need to de-odex the rom, however this as far i know is not possible at the moment.
A few years ago at the time of the HDX devices amazon introduced a customised odex format.
ggow said:
@PRInCEI7
@Rortiz2
You would first need to de-odex the rom, however this as far i know is not possible at the moment.
A few years ago at the time of the HDX devices amazon introduced a customised odex format.
Click to expand...
Click to collapse
I have a tool for deodex the ROM but IDK if it will work. I'll give it a try.
Thanks for the info.
Rortiz2 said:
I have a tool for deodex the ROM but IDK if it will work. I'll give it a try.
Thanks for the info.
Click to expand...
Click to collapse
That's my point it won't work. There is no way to do what you want with any tool.
@Rortiz2 @ggow
I found this
When I root the device
Directly the application com.amazon.kindle.otter.oobe.apk stops working
When I change any file or put any file inside /System/priv-app/
When removing the root or flashing file too boot.img stock
Directly deletes any file or modification from this folder and returns the primary file ...
Why returns the original file when flashing a boot.img file
When I return flash boot.img root file returns my file .
@DragonFire1024
Do you have an idea to solve the problem
ggow said:
@PRInCEI7
@Rortiz2
You would first need to de-odex the rom, however this as far i know is not possible at the moment.
A few years ago at the time of the HDX devices amazon introduced a customised odex format.
Click to expand...
Click to collapse
You can use superr's tool to deodex if you have twrp. It requires rebuilding the firmware.
Sent from my Motorola Droid Razr M using XDA Labs
---------- Post added at 10:29 AM ---------- Previous post was at 10:26 AM ----------
PRInCEI7 said:
@DragonFire1024
Do you have an idea to solve the problem
Click to expand...
Click to collapse
If you are unlocked you can use superr's tool to deodex the firmware .bin package and rebuild it then flash in twrp. Requires Linux https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434
Sent from my Motorola Droid Razr M using XDA Labs
thx