[Urgent] Facing error while creating ROM using dsixda kitchen! - Android Q&A, Help & Troubleshooting

Hello all.
I am somewhat a noob at android development so please deal with me. Anyways skipping right to topic, while using dsixda's kitchen I cooked my base or stock ROM and I got error while deodexing,3 files were not deodexed. Later on I faced error about something of magic header not found at boot. I could not modify a single file using kitchen, couldn't add busy box, root access etc.
Anyway I compiled the ROM and made it flashable zip and got error status 0 from CWM
Sorry I am not knowing much details so I cannot provide exact information. I have few log files I am attaching hope it helps
Please help me to develop my own ROM.
I will once again cook the ROM for generating a step by step error I face and will provide later but if with this log you can help me I'll bee highly grateful.
Also if someone can guide me on how to add features to stock ROM for example when we press voume button we see the icon of the voice decreasing or increasing as per the button pressed in respective environment, I want to add all the 3 options of sound whenever I click the button in any any environment i.e when I press the volume up or down keys I see all the options of call sounds, media sounds, and notification sound. Also I want to add custom battery icon and change toggle icons color and their style and create or edit theme for my ROM. I know you'll say use search but trust me I searched a lot for 2 months constantly ending up in vain.! :"( Please if someone can tell me the best way to do it. I use Xperia SP. Thanks all Please help!
Here is the log file attached.
My device
Xperia SP C5302
Stock ROM JB 4.3 Official
Unlocked bootloader ** ROOTED ** Stock kernel

Tech N You said:
Hello all.
I am somewhat a noob at android development so please deal with me. Anyways skipping right to topic, while using dsixda's kitchen I cooked my base or stock ROM and I got error while deodexing,3 files were not deodexed. Later on I faced error about something of magic header not found at boot. I could not modify a single file using kitchen, couldn't add busy box, root access etc.
Anyway I compiled the ROM and made it flashable zip and got error status 0 from CWM
Sorry I am not knowing much details so I cannot provide exact information. I have few log files I am attaching hope it helps
Please help me to develop my own ROM.
I will once again cook the ROM for generating a step by step error I face and will provide later but if with this log you can help me I'll bee highly grateful.
Also if someone can guide me on how to add features to stock ROM for example when we press voume button we see the icon of the voice decreasing or increasing as per the button pressed in respective environment, I want to add all the 3 options of sound whenever I click the button in any any environment i.e when I press the volume up or down keys I see all the options of call sounds, media sounds, and notification sound. Also I want to add custom battery icon and change toggle icons color and their style and create or edit theme for my ROM. I know you'll say use search but trust me I searched a lot for 2 months constantly ending up in vain.! :"( Please if someone can tell me the best way to do it. I use Xperia SP. Thanks all Please help!
Here is the log file attached.
My device
Xperia SP C5302
Stock ROM JB 4.3 Official
Unlocked bootloader ** ROOTED ** Stock kernel
Click to expand...
Click to collapse
brb... im checking errors
there are 3 files not deodexed... delete the odex files
status 0 is incorrect update-binary
I am a gb modder so i know u have to decompile SystemUI.apk/framework-res.apk (for volume theming)
Make sure updater-script is not there, and update-script is
Icons r really easy, just download or create ur own and put them in decompiled (reverse engineered) SystemUI.apk
For the not being able to add anything, what does it say?

I'll reply you asap let me cook ROM again
Sent from my C5302 using XDA Free mobile app

Tech N You said:
I'll reply you asap let me cook ROM again
Sent from my C5302 using XDA Free mobile app
Click to expand...
Click to collapse
Yup. If status 6 or 7 I can fix 4 u
Sent from my HUAWEI Y210-0100

KkdGab said:
Yup. If status 6 or 7 I can fix 4 u
Sent from my HUAWEI Y210-0100
Click to expand...
Click to collapse
I am compiling every error I can and then I'll let you know

KkdGab said:
Yup. If status 6 or 7 I can fix 4 u
Sent from my HUAWEI Y210-0100
Click to expand...
Click to collapse
Here are the error
1st error No system folder found during extraction (so after unzipping made system folder) .. Press enter to continue (after pressing enter , goes to menu)
2nd error while adding root permission
"scripts/add_su_to_update_script: line 13: cd: META-INF/com/google/android NO such directory or file
Error No update script found!
scripts/add_su_to_update_script: line 85: scripts/fix_update_script_blanks No such direcotry found
Working Folder found
Error : boot.img not found!
Finished rooting"
Error 3 : Add busy box
No update-script found
Rest errors in zip file

The fomat ur stock rom is in is not supported by the kitchen......

Tech N You said:
Here are the error
1st error No system folder found during extraction (so after unzipping made system folder) .. Press enter to continue (after pressing enter , goes to menu)
2nd error while adding root permission
"scripts/add_su_to_update_script: line 13: cd: META-INF/com/google/android NO such directory or file
Error No update script found!
scripts/add_su_to_update_script: line 85: scripts/fix_update_script_blanks No such direcotry found
Working Folder found
Error : boot.img not found!
Finished rooting"
Error 3 : Add busy box
No update-script found
Rest errors in zip file
Click to expand...
Click to collapse
If u want, do a wipe then nandroid backup. And get the system, boot.img, and possibly data files then zip them up
Then try creating working folder
Sent from my HUAWEI Y210-0100

I have a boot img file that can help?
Sent from my C5302 using XDA Free mobile app

Tech N You said:
I have a boot img file that can help?
Sent from my C5302 using XDA Free mobile app
Click to expand...
Click to collapse
Yes, but you still need a /system folder, wipe ur phone then ADB pull
Sent from my HUAWEI Y210-0100
---------- Post added at 07:56 PM ---------- Previous post was at 07:04 PM ----------
@Tech N You
http://forum.xda-developers.com/sho...mctr=(not provided)&__utmv=-&__utmk=198230188
use this

I have boot img file, system folder and all other things the big question for me is that which updater-script gile should I use?
Can I download any empty updater-script file or I what should I do?
I downloaded an updater-script from the net and placed it in my meta-inf folder. Boot.img error occurs still
Sent from my C5302 using XDA Free mobile app

Tech N You said:
I have boot img file, system folder and all other things the big question for me is that which updater-script gile should I use?
Can I download any empty updater-script file or I what should I do?
I downloaded an updater-script from the net and placed it in my meta-inf folder. Boot.img error occurs still
Sent from my C5302 using XDA Free mobile app
Click to expand...
Click to collapse
Use the link I gave u
Sent from my HUAWEI Y210-0100

KkdGab said:
Use the link I gave u
Sent from my HUAWEI Y210-0100
Click to expand...
Click to collapse
Error I face during modding any file that requires access of boot.img is
"Android Magic header not found
Checking if it exits somewhere else
Warning Android header not found!
ERROR : Kernel page offset size is <0>

Related

5 Lockscreen Mod and Android Lockscreen for JPQ / JPS / JPK

Use it at your own risk!
This mod is NOT for XXJPM!
It has been made from the framework files of a JPQ and JPS, so on an odexed JPM rom it causes bootloop!
It's for XXJPQ and XXJPS.
So it wont make the Browser.apk crash like the older 5 Lockscreen Mod did it.
(Check out the last part of this post!)
(You must be rooted and know how to push files to the phone. And one more thing: first of all you should check the free space in /system (e.g. if you use RootExplorer), especially on the odexed roms.)
5 Lockscreen Mod and Extended Power Menu for Odexed XXJPQ and XXJPS.
5 Lockscreen Mod and Extended Power Menu for Deodexed XXJPQ and XXJPS.
(Framework-res.apk and Settings.apk are stock themed.)
Android LockScreen for odexed/deodexed JPS/JPQ* rom and also for odexed XWJPK is attached below.
* 'android.policy' has been made from JPS, but it works on JPQ too
HOW-TO:
5 Lockscreen Mod
It’s started from the point you have flashed a clean, stock JPS or JPQ via Odin: the device is already booted and you have unplugged the USB cable from it.
Getting root access
- Go to ’Settings > Applications > Development’ and enable ’USB debugging’
- Plug the USB cable back into the phone > run SuperOneClick.exe > press ’Root’ and wait
- When the ’Test?’ dialogue is popped up, say ’Yes’ > you can close SuperOneClick
- Your device has been rooted
- Directly after these steps, do the followings:
Pushing modified files to the phone
- Download the suitable zip for your odexed or deodexed JPQ or JPS rom
- Extract the downloaded zip
- Navigate into the extracted folder
- Run ’push_5lckscr....bat’ and wait*, your device will have rebooted
- Modded files are already pushed to the phone, now you can use your favourite lockscreen and the extended power menu
Of course there are other methods, RootExplorer etc.
*If you are on an odexed rom and see something like this in cmd: "failed to copy 'system\framework/framework.odex' to '/system/framework/framework.odex': No space left on device" and "rm failed for /system/framework/framework.jar, No such file or directory", don't panic, it's normal due to the low free space.
History:
Hi again! Now I have come with a very nice and well known mod. However this one is for people who want to have the 5 Lockscreen Mod and Extended Power menu, but don't want to have a deodexed rom!
So you can download this mod for your odexed XXJPQ/XXJPS from above. I've just realized that the only reason for me to deodex a rom is because of those damn lockscreens and the extended power menu. But I could not find this mod for odexed roms, so I had to odex it by myself.
---
Hello to All, I've attached an android.policy.odex for those who want stock Android lockscreen on their odex XWJPK.
---
Hi All!
After I had deodexed a stock (only rooted) XXJPQ rom, I tried to apply the 5 lockscreen mod on it. Seemed like everything was good... But when I had opened the "Internet", it force-closed immediately (nor factory reset didn't help).
So I had started to search the reason of this issue. After a while I figured out that the FCing of the Internet app was because of the "non-JPQ" framework.jar. So I took the JPQ's framework.jar and added a .smali file to its classes.dex what is necessary for the extended power menu (com\android\internal\app\ShutdownThread.smali).
The result: working 5 lock screen mod with extended power menu on JPQ without crashing of the Internet app!
If interested, you can download it from here. Framework-res.apk and Settings.apk are stock themed files, so you can delete that lines from the batch... Actually, the relevant file is the framework.jar.
Try 5lockscreen mod
mY custom rom has stock lockscreen :L
Stock lockscreen for stock XWJPI and XXJPQ: http://www.megaupload.com/?d=SNJ3ZI17
Credits by Halco
Here is the way to add Stock lockscreen on a firmware.
But care, on this step :
4. Replace the contents of this method with the attached file getLockScreenMode.txt.
Dont do this, juste replace on you method getLockScreenMode()Lcom :
PuzzleLock by TapLock
GlassLock by TapLock
Then follow the rest of the steps
I tried this tutorial with XWJPK, but when I try to deodex the file I always get this error:
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file core
.odex
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.jav
a:237)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:14
5)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(Cla
ssPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:98)
at org.jf.baksmali.main.main(main.java:278)
Can you help me, please?
Which file do you try to deodex? Do you mean all of them? In that case, I use this one, so I recommend. It always works for me. Sorry, but I don't understand exactly the source of your problem (maybe I'm too tired)... What's your goal at all? 5 lockscreen mod on a deodexed XWJPK?
Sry, but I don't understand you exactly, too
I tried this Tutorial and therefore I need android.policy.odex and so a odexed framework, right?
But I'm sorry, at this topic I'm totally new at this topic. It would be nice if you could upload the modded files for JPK...
I am using stock rom jpm rooted by default..i want this 5 lock screen..
Can I get that..?
Please tell me the step by step procedure..
Sent from my GT-I5800 using XDA App
JPM is no problem!
You can use Kitchen 2.0!
GalaxyDrei said:
JPM is no problem!
You can use Kitchen 2.0!
Click to expand...
Click to collapse
Please give me the link to download kitchen 2
Sent from my GT-I5800 using XDA App
Sry, it was deleted...
I think it also should work with Kitchen 3.0...
Ask benzyniarz1
GalaxyDrei said:
I tried this tutorial with XWJPK, but when I try to deodex the file I always get this error:
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file core
.odex
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.jav
a:237)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:14
5)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(Cla
ssPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:98)
at org.jf.baksmali.main.main(main.java:278)
Can you help me, please?
Click to expand...
Click to collapse
You got this error because when you tried to deodex android.policy, you forgot to pull all the .odex files from /system/framework. For some reason it is not enough to pull only the android.policy.odex
No, I pulled the whole framework, so I can't understand why I get this error!
Strange... By the way, I've uploaded the modified file you asked for.
Thanks a lot
Is there any tutorial about pushing this to the phone? I didnt see it anywhere...
I will update my first post as soon as I have enough time. It will be a few days since now I have to work...
Hi,
Can you make a only Android Lockscreen for XXJPS? I dislike the Extended Powermenu and the Option of more lockscreens, but only want Android Lock.
Hopefully someone can provide me that!
Stylooo
Nice job could you please post some basic instructions for porting this to some other stock(odexed) rom I know how about compiling and decompiling using smali etc just tell me which files to edit .
Sent from my GT-I5800 using Tapatalk

[THEMING -Basic] - How to EDIT SystemUI.apk/Apps Background

Hi there! Just wanna share..
Just a basic background on how to theme your ROMS. - ofcourse, give thanks to the developer of your ROMs! .
I made this thread for those users who have personal wishes for their Phones. Ofcourse, ROM developers cannot please all of its users. so just make your own and be happy!.
I just made it easy for easy understanding and for the newbies.
Tried so many times and tested
I've already tried editing the systemUI.apk of different ROMs.
Here's what I did :
FIRST : Download 7zip to open the archived apk. - that's free.
Extracting first the Zip File..
(make sure you copy the original before extracting it for back up)
1. Download the ROM.zip and extract it to your PC.
2. Go to \system\app\SystemUI.apk\res\drawable-ldpi\
3. View the PNG files you wanted to change and make sure to remember its' file name.
4. After editing/changing the file/image you wanted, you can save it anywhere from your PC, let's say on your Desktop.
- Make sure that the file name still remains as is..
*After you're done editing, updating the PNG files you wish to change, follow this steps to update the zip file :
NOTE : You can apply transparency by editing the PNG file to photoshop by reducing the opacity of the image
1. Go to the original ZIP file of ROM.Zip from your PC
2. Right Click the folder and select 7 ZIP -->> open archive
3. Close all of windows/Browers (or minimize)
4. Go to \system\app\SystemUI.apk\res\drawable-ldpi\ and it will open a new window of 7zip showing the files inside the zip.
5. Now, given your edited PNG files or downloaded png files (assuming that files are located in your desktop). - Click and simply DRAG the file(s) from your desktop to \system\app\SystemUI.apk\res\drawable-ldpi\ .
6. It will ask you to confirm the action for it will replace the existing PNG file that you're trying to change.
7. Make sure that the file name of the one you edited/downloaded are THE SAME. -
8. After dragging and replacing the files you wanted, then you're good to go!
9. Close the 7zip window and that's it!.
You can now install the .zip by copying the UPDATED zip file to your SD Card.
(Note: Make sure to copy the updated one, not the backed up one)
Install the zip file from the original thread's instructions and reboot twice.
After that, you have now a customized systemUI.apk.
For those who do not want to reinstall the whole package.. follow these steps:
1. I assumed that you have the zip file of your ROM.
2. Extract it and go to \system\app\
3. Separate the SystemUi.apk - put it on your desktop. create a back up,
Right Click SystemUi.apk and select 7 ZIP -->> extract here - just to view the files you wanted to change.
Just go the folder and search for the PNG files.
4. Right Click SystemUi.apk and select 7 ZIP -->> open archive.
5. Go to \res\drawable-ldpi\
6. Click and simply DRAG the PNG file(s) from your desktop to \res\drawable-ldpi\
7. It will ask you to confirm the action for it will replace the existing PNG file that you're trying to change.
8. Make sure that the file name of the one you edited/downloaded are THE SAME. -
9. After dragging and replacing the files you wanted, then you're good to go!
APPLYING :
1. Download and install rootexplorer.apk
2. Download the png files you wanted to update.
3. Copy and paste the NEW SystemUi.apk that you have updated/Edited to your SD card.
4. Open root explorer in your galaxy y then go and tap MOUNT R/W.
5. Go to \SDCard and go to new SystemUI.apk that you have updated.
6. Long press the file and select copy
7. Press back and go to \system\app - tap MOUNT R/W at the top.
8. Paste the new SystemUI.apk from there.
(Note : You will encounter a lot of force closes for the exixsting systemui is currently being used by your phone. - just ignore it a lot and scroll down to look for the new SystemUI.apk.
9. Once you get there, long press on it and select permissions:
from the pop up, make the checked one like this :
•___•____ •
•___ .____.
•___ .____.
where Dots are the checked one - Bigger dots
After encountering a lot of force closes, then reboot the phone and that's it!
(Force Closes are normal, DON't PANIC - logically, you are currently using your systemUI.apk so just ignore it
NOTE : You can also apply the same steps in editing system files apps, just edit the .png files and locate it using 7zip(when you already opened it). Have a little LOGIC on how to edit system app background - same process. just different apk files and directory
HIT THANKS IF I HELPED YOU - IT COSTS NOTHING ;]
nice guide
you can also add this:
Install via ADB:
adb root
adb remount
adb push [file location in PC] /system/app/systemui.apk
Click to expand...
Click to collapse
no need to set permissions via ADB
also its better to use apk multitool since it can compile/decompile the apk's, if you extract the apk using 7zip or archive softwares you can't read the XML's and you can't compile them properly which results to force close issues when pushing into system
deathnotice01 said:
nice guide
you can also add this:
no need to set permissions via ADB
also its better to use apk multitool since it can compile/decompile the apk's, if you extract the apk using 7zip or archive softwares you can't read the XML's and you can't compile them properly which results to force close issues when pushing into system
Click to expand...
Click to collapse
Thanks! not that sure how to use that that's why I made it my on way
more easy steps and understandable for newbies.
EDIT :
Yes you it will require to extract the apk files but just to view the image you wanted to change.. the original apk file will be opened thru 7zip and just replace the selected png. It is not recompiling the apk file at all
Tried and tested by the way
try and test it out yourself:
a very powerful apk reverse engineering tool:
APK MULTITOOL
deathnotice01 said:
try and test it out yourself:
a very powerful apk reverse engineering tool:
APK MULTITOOL
Click to expand...
Click to collapse
I will try it soon! thanks for the info this is a basic guide for newbies
Just let me know if you need further assistance
how about a gif image?
like the emoticon of repencis on his status bar..
I.M.G said:
how about a gif image?
like the emoticon of repencis on his status bar..
Click to expand...
Click to collapse
I suggest to look for systemUI.apk of repencis and check for the GIF files.. it it is existing, then you can replace that one, following the process ;D
how to change default wallpaper?
ajbm6 said:
how to change default wallpaper?
Click to expand...
Click to collapse
What specific ROM are u using?
Sent from my GT-S5360 using xda premium
ajbm6 said:
how to change default wallpaper?
Click to expand...
Click to collapse
gallery > choose picture > set as > homescreen wallpaper
ajbm6 said:
how to change default wallpaper?
Click to expand...
Click to collapse
Hmm... if you want a default wallpaper, create a folder named "Wallpaper" inside "SYSTEM" folder and create another folder inside it named "default_wallpaper" then put the jpg file you wanted..
(you can use rootexplorer)
make sure that the file name of the default wallpaper is "default_wallpaper.jpg"
how??
It worked perfectly :highfive: cheers !!! can we change the place of name of network carrier in the notification bar similarly???
Abhibhat said:
It worked perfectly :highfive: cheers !!! can we change the place of name of network carrier in the notification bar similarly???
Click to expand...
Click to collapse
Never tried it before.. haha.. why do you want to change it?
HIT THANKS IF I HELPED YOU. - it costs you nothing!
Sent from my GT-S5360 using xda premium
emompong said:
Never tried it before.. haha.. why do you want to change it?
HIT THANKS IF I HELPED YOU. - it costs you nothing!
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I dont want to change it i want to change its place in the status bar!!!:laugh:
Abhibhat said:
I dont want to change it i want to change its place in the status bar!!!:laugh:
Click to expand...
Click to collapse
oh.. my bad lol, hmm not actually getting what you're saying, give me a screen shot pls.
Abhibhat said:
It worked perfectly :highfive: cheers !!! can we change the place of name of network carrier in the notification bar similarly???
Click to expand...
Click to collapse
try this app if you wanna change network carrier hxxp://db*tt/ZRdrSUg7
note : change " * " with " . " and change " hxxp " with " http "
dnt forget to press thank button hehe
emompong said:
oh.. my bad lol, hmm not actually getting what you're saying, give me a screen shot pls.
Click to expand...
Click to collapse
its like we gb users have the carrier name under the wifi and other buttons in status bar but i want it like that in cyanogenmod at the bottom!!!
Abhibhat said:
its like we gb users have the carrier name under the wifi and other buttons in status bar but i want it like that in cyanogenmod at the bottom!!!
Click to expand...
Click to collapse
hmm ,, modified carrier name is possible but at the bottom? im not sure about it. of you want to edit you carrier name, tell me,ill share.
background
you know we have backgrounds that are set on the "settings" menu. How to change the background on that. This background also shows on some apps aswell. for example Creeds 2.1 has that purple background.
Thanks:good::good:

Status bar background

How to change the status-bar background?
i want to change the transparent black background with the image in attachment so that it match my theme.
So which files i have to replace with this background?
Using xPeria Mini with stock ICS ROM
So no help?:crying:
piousheart said:
So no help?:crying:
Click to expand...
Click to collapse
Try to post in Themes and Apps section.
Publiuss said:
Try to post in Themes and Apps section.
Click to expand...
Click to collapse
What is this thread?
mobilephone01 said:
What is this thread?
Click to expand...
Click to collapse
Actually this thread was in general but i moved it
And guys will you all please stick to the topic..any help?
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
iiandskater said:
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
Click to expand...
Click to collapse
See here is my systemUI.apk please add the image at OP (opaque)
piousheart said:
See here is my systemUI.apk please add the image at OP (opaque)
Click to expand...
Click to collapse
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
evilbarcode said:
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
Click to expand...
Click to collapse
I tried but when i recompile it & push it in system\app with proper permission, after rebooting phone it stuck bootlogo..
The same happens when i tried to decompile DefaultThemes.apk & MusicWidget.apk they both were not installed...
then i searched & found that we have to compress the resources.arc blablablaaa... & signing with recompiling system apk..
Still after giving a lot of tries i dont understand how to use signing & compress resources.arc blablaballl idk..
If you know than may be you can teach
Rebooted my phone 100z of time to check every method i found but no success
Now i dont wana harm my phone, rebooting it again & again for the things that isn't working for me...
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
piousheart said:
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
Click to expand...
Click to collapse
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Ticklefish said:
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Click to expand...
Click to collapse
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Click to expand...
Click to collapse
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Ticklefish said:
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Click to expand...
Click to collapse
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
Click to expand...
Click to collapse
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Ticklefish said:
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Click to expand...
Click to collapse
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
piousheart said:
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
Click to expand...
Click to collapse
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Ticklefish said:
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
Okay thanks..
So i tried to mod even after knowing that it wont work as before..
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else
is i am doing it editing wrong file and yes how can i use your tool for this?
Originally Posted by Ticklefish<br />
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.<br />
<br />
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.<br />
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
<br />
<br />
Okay thanks..<br />
So i tried to mod even after knowing that it wont work as before..<br />
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else<br />
is i am doing it editing wrong file and yes how can i use your tool for this?
Click to expand...
Click to collapse
To be honest, I don't know how to change the name of an app. It's something I've never done before.
I suspect that you've gotten the mod wrong somewhere but unfortunately I can't advise on where that could be.
Sorry, mate.

[MOD-SCRIPT]Save from Insanity-Create your own Restorer

Many people get FC's ... well thats cool but most of them do not prepare a lite backup...so when they get FC....their last hope becomes a whole restore or new rom...... i know devs do know about this...but many upcoming geeks are still unaware of this
Click to expand...
Click to collapse
Today dump this scene and check this short Restoration
​
Lets work:
The script is pre-written and mostly interference must be done only in ui_print
Use the cwm sample below...download it and extract the contents
Before you start working over a system file....put that file in an appropriate folder of above extracted system folder
Check the image below.....these are the contents of the sample
So like, if you are editing framework-res.apk....create a folder in your extracted system folder and name it framework and put the un-edited framework-res.apk in that folder....then select both META-INF and system folder and create zip
in this way if you get a FC on your editing ..... you can restore your files in seconds and continue editing till you rip off all your hairs:victory::victory:
Credits: eXPERIANCE
Lol.. Not bad..
Sent from my MT11i using xda premium

[Q] HELP Boot Loop due to android.policy.jar

I was Trying to Mod \system\framework\android.policy.jar For Enabling Long Press Menu to Kill App
But while trying to replace the file using Solid Explorer my phone got Restarted
And ended up in Boot Loop :crying:
Lucky I Had a Nandroid Backup of 20th August.
Restoring Backup had fixed the Boot Loop
But I lost many of my mods
Its my fault
I Should have Created a Backup
Does anyone knows why replacing the file caused the Boot Loop ?
And if I'm not asking for too much Could anyone be kind enough to mod my android.policy.jar For Enabling Long Press Menu to Kill App ?
Original android.policy.jar is attached to this
What ROM are you using?
Omega v46.1 based on samsung 4.2.2 leak XXUFME7
Sent from my GT-I9300 using xda premium
WOW ,I never seen a girl is interested in developing!
The problem was that you're editing an important file of android os. You can't edit that file when using phone ,you have to replace file through recovery and set correct permissions to file.
So you need to create an update.zip (I can do this if you're not in hurry)
Sent from my GT-S5660 using Tapatalk 2
What tutorial have you used? Can you provide a link?
Also, an update zip is not required. You can use AROMA File Manager in recovery to replace the file, and use its built-in terminal to chmod/ chown it.
4.2.2 leak XXUFME7
Click to expand...
Click to collapse
Laura, you can install this .zip in CWM recovery.
MenuLongPressKill.zip
jay-z-s said:
WOW ,I never seen a girl is interested in developing!
Click to expand...
Click to collapse
In a Non-Offending Way :
Hey That's not Fair....
Just because I'm a Girl, I'm not allowed to have any Interest in Computer, Programs developing etc ????
Do you know what ?
Most of my friends mocks me Just because I'm into all these stuff.
When ever i talks like non-stop with my friends, then someone will give me a Phone or Laptop & they will say like "Laura take this, now go and sit in that corner and do you stuff with this".
Its actually Sad.
That hurts me little bit.
But i simply laugh at that.
They don't know that Its hurting me.
jay-z-s said:
The problem was that you're editing an important file of android os. You can't edit that file when using phone ,you have to replace file through recovery and set correct permissions to file.
So you need to create an update.zip (I can do this if you're not in hurry)
Click to expand...
Click to collapse
I understood that when my phone got restarted.
So, i thought i would just use Aroma File Manager to copy the file in Recovery.
But unfortunately Aroma File Manager was not Starting.
Because i forgot to rename it to "aromafm.zip"
last time when i updated it, its file name was "aromafm-1.90.zip".
Just another Stupidity of Mine..
That's why i had to restore my nandroid backup
otherwise i could have used Aroma File Manager to copy the Original android.policy.jar and avoid Boot Loop
uzb777 said:
Laura, you can install this .zip in CWM recovery.
MenuLongPressKill.zip
Click to expand...
Click to collapse
When i clicked that link it says.
Code:
Ой! Ошибка 404.
Запрашиваемая информация не существует, перемещена или удалена.
Для поиска необходимой информации, Вы можете посетить:
Сайт | Форум
Google Translated that to
Code:
Oh! Error 404.
The information requested does not exist, moved or deleted.
To find the necessary information, you can visit:
Website | Forum
Here is it:
xpmode said:
What tutorial have you used? Can you provide a link?
Also, an update zip is not required. You can use AROMA File Manager in recovery to replace the file, and use its built-in terminal to chmod/ chown it.
Click to expand...
Click to collapse
When my phone got Auto restarted I understood that i had to replace that file in the Recovery...
I wish i knew that earlier.
I have used the Tutorial Over here
Link : [MOD][HOW-TO] User Selectable Long Press Menu or Back to Kill
And I also had a look at these tutorials but its not for our phone.
i just go through all these Tutorials just to have much more understanding.
Link 1 : [Guide] Long press menu button to kill app [GT-N700]
Link 2 : [HOW-TO] Long Menu Press to Kill App (GT-I9500 - GT-I9505)
Link 3 : [MOD][GUIDE] Long press back to kill app
laura almeida said:
In a Non-Offending Way :
Hey That's not Fair....
Just because I'm a Girl, I'm not allowed to have any Interest in Computer, Programs developing etc ????
Do you know what ?
Most of my friends mocks me Just because I'm into all these stuff.
When ever i talks like non-stop with my friends, then someone will give me a Phone or Laptop & they will say like "Laura take this, now go and sit in that corner and do you stuff with this".
Its actually Sad.
That hurts me little bit.
But i simply laugh at that.
They don't know that Its hurting me.
Click to expand...
Click to collapse
Begin a program developer does not require to be a boy
I really like that you are a pro at these stuff . That's one in a million girl and I always loved the special ones!
I understood that when my phone got restarted.
So, i thought i would just use Aroma File Manager to copy the file in Recovery.
But unfortunately Aroma File Manager was not Starting.
Because i forgot to rename it to "aromafm.zip"
last time when i updated it, its file name was "aromafm-1.90.zip".
Just another Stupidity of Mine..
That's why i had to restore my nandroid backup
otherwise i could have used Aroma File Manager to copy the Original android.policy.jar and avoid Boot Loop
Click to expand...
Click to collapse
ive nerve used aroma! And even didn't know we can move files through this recovery
laura almeida said:
When my phone got Auto restarted I understood that i had to replace that file in the Recovery...
I wish i knew that earlier.
I have used the Tutorial Over here
Link : [MOD][HOW-TO] User Selectable Long Press Menu or Back to Kill
And I also had a look at these tutorials but its not for our phone.
i just go through all these Tutorials just to have much more understanding.
Link 1 : [Guide] Long press menu button to kill app [GT-N700]
Link 2 : [HOW-TO] Long Menu Press to Kill App (GT-I9500 - GT-I9505)
Link 3 : [MOD][GUIDE] Long press back to kill app
Click to expand...
Click to collapse
Unfortunately, I found out you could fix the problem without losing data ,asking me how? I'll tell you(bad news ,yea?)
You could access recovery right?so you could do these to make your ROM back to life:
create nandroid backup from the unbootable ROM ,do wipes ,flash new ROM ,updating recovery(as you said dear laura) +make files ready to flash(move or what ever)
Then restore the defective ROM and flash file (android.policy.jar) ....
That's it, everything works again without losing any thing! Sorry if I made you sad again :banghead:
Plus ,are you sure "killing via back button" option doesn't existing in settings /developing (named as " stop app via long press back button ")???? Cause almost all of custom Roms have this feature.
Cheers:beer:
Sent from my GT-S5660 using Tapatalk 2
The file manager can have any name. You just install it like any other zip.
From the recovery file manager, try replacing that jar again, and use the terminal included in the file manager(menu > terminal) to chmod the replaced jar file.
jay-z-s said:
Begin a program developer does not require to be a boy
I really like that you are a pro at these stuff . That's one in a million girl and I always loved the special ones!
Click to expand...
Click to collapse
Oh Yeah ! I'm a Special One
jay-z-s said:
ive nerve used aroma! And even didn't know we can move files through this recovery
Click to expand...
Click to collapse
Aroma File Manager Support Adapted from amarullz and sk8erwitskil
You get here the possibility to browse your phone with root access in a friendly GUI file browser, while being in recovery
You even now get a terminal emulator to run in recovery
jay-z-s said:
Unfortunately, I found out you could fix the problem without losing data ,asking me how? I'll tell you(bad news ,yea?)
You could access recovery right?so you could do these to make your ROM back to life:
create nandroid backup from the unbootable ROM ,do wipes ,flash new ROM ,updating recovery(as you said dear laura) +make files ready to flash(move or what ever)
Then restore the defective ROM and flash file (android.policy.jar) ....
That's it, everything works again without losing any thing! Sorry if I made you sad again :banghead:
Click to expand...
Click to collapse
OH MY GOD !
Why did i never thought of that ?
Now i want to Bang my Head over the wall :banghead:
Anyways, i keep this in my Mind so that next time when i get Boot Loop i wont have to loose my data while Fixing it.
jay-z-s said:
Plus ,are you sure "killing via back button" option doesn't existing in settings /developing (named as " stop app via long press back button ")???? Cause almost all of custom Roms have this feature.
Click to expand...
Click to collapse
Actually Omega Rom (Which i used) has this Feature....
But i have moded so much, now it doesnt even look like Omega rom.
I removed many of its features and Added many extra mods.
While doing so i had changed my android.policy.jar a couple of time.
by doing so i lost "Stop App via long press Menu button" feature
xpmode said:
The file manager can have any name. You just install it like any other zip.
Click to expand...
Click to collapse
I Use PhilZ Touch Recovery
In PhilZ Touch Recovery i have to do the following steps for Aroma File Manager Support
Download Aroma File Manager from its Home Page
Get the 1.90 version and name the file aromafm.zip
Put the aromafm.zip in clockworkmod/aromafm/aromafm.zip in external or internal sdcards
In recovery, tap the Aroma File Manager menu or double tap any part of the screen outside menus
It will launch the file manager automatically
Double tap gesture linked to Aroma File Manager can be altered in the GUI Settings menu
Click to expand...
Click to collapse
If the file name is not aromafm.zip then it wont work.
laura almeida said:
Oh Yeah ! I'm a Special One
Click to expand...
Click to collapse
Hmm ,so pride yourself on that laura
Aroma File Manager Support Adapted from amarullz and sk8erwitskil
You get here the possibility to browse your phone with root access in a friendly GUI file browser, while being in recovery
You even now get a terminal emulator to run in recovery
Click to expand...
Click to collapse
I'm a user of sony device which recovery is included with kernel & its not easy to change it, and so I have to obey the KERNEL developer so no aroma till I change device
OH MY GOD !
Why did i never thought of that ?
Now i want to Bang my Head over the wall :banghead:
Anyways, i keep this in my Mind so that next time when i get Boot Loop i wont have to loose my data while Fixing it.
Click to expand...
Click to collapse
:beer: yea , forget past ,its gone
At least you have created a backup
Actually Omega Rom (Which i used) has this Feature....
But i have moded so much, now it doesnt even look like Omega rom.
I removed many of its features and Added many extra mods.
While doing so i had changed my android.policy.jar a couple of time.
by doing so i lost "Stop App via long press Menu button" feature
Click to expand...
Click to collapse
OK,you're right ! Why you don't try to build your own Rom? I think you've got the knowlage and skill
Sent from my E15i using XDA Premium 4 mobile app
jay-z-s said:
I'm a user of sony device which recovery is included with kernel & its not easy to change it, and so I have to obey the KERNEL developer so no aroma till I change device
Click to expand...
Click to collapse
I have a Sony Xperia S & Sony Xperia Z
Both are Rooted + CWM + Running Cyanogenmod
I Had no Problem in Installing CWM in Both of them.
Which Sony device you have ?
jay-z-s said:
OK,you're right ! Why you don't try to build your own Rom? I think you've got the knowlage and skill
Click to expand...
Click to collapse
Building a Rom is not an easy task.
And I'm not sure that whether everyone is going to like my rom.
After all I'm a girl, my likings will be entirely different from you guys...
But i do have a Custom Rom.
I had flashed it to all my friends who has S3.
They liked it very much (But they all are Girls)
laura almeida said:
I have a Sony Xperia S & Sony Xperia Z
Both are Rooted + CWM + Running Cyanogenmod
I Had no Problem in Installing CWM in Both of them.
Which Sony device you have ?
Click to expand...
Click to collapse
X8 (e15i) kernel nAa 2.6.32.61 jelly bean + cwm recovery included
Does aroma runs on armv6 device? :what:
Building a Rom is not an easy task.
And I'm not sure that whether everyone is going to like my rom.
After all I'm a girl, my likings will be entirely different from you guys...
But i do have a Custom Rom.
I had flashed it to all my friends who has S3.
They liked it very much (But they all are Girls)
Click to expand...
Click to collapse
If you don't create a thread for your Rom then you'll never know it'll be popular or not.most of girls don't like cyanogen cause of color less UI , but you know what do girls exactly like
Ps.How do you create build.prop? I mean some serial numbers or build numbers should not change to fake num. Right?
Sent from my E15i using XDA Premium 4 mobile app
I am going to suicide...
My hdd is broken
2 TB of data gone forever.
All my apps, softwares, mods, pics, videos everything is gone forever...
There is no point of living now.
Good Bye guys
Sent from my GT-I9300 using xda premium
laura almeida said:
I am going to suicide...
My hdd is broken
2 TB of data gone forever.
All my apps, softwares, mods, pics, videos everything is gone forever...
There is no point of living now.
Good Bye guys
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
OMG , are you just kidding? I'd take a freefall from my window if this happened to me! Seriously this normally happens for me every two month I've copied a piece of data to dvds and pics are in my fb account , and games/apps can be redownloaded.I'm a kind of impassive!!!
(To consoling you):beer:
Sent from my E15i using XDA Premium 4 mobile app
---------- Post added at 12:27 AM ---------- Previous post was at 12:19 AM ----------
jay-z-s said:
OMG , are you just kidding? I'd take a freefall from my window if this happen to me!
Seriously this normally happens for me every two month I've copied a piece of data to dvds and pics are in my fb account , and games/apps can be redownloaded.I'm a kind of impassive!!!
(To consoling you):beer:
Sent from my E15i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sent from my E15i using XDA Premium 4 mobile app
jay-z-s said:
OMG , are you just kidding? I'd take a freefall from my window if this happened to me! Seriously this normally happens for me every two month I've copied a piece of data to dvds and pics are in my fb account , and games/apps can be redownloaded.I'm a kind of impassive!!!
(To consoling you):beer:
Sent from my E15i using XDA Premium 4 mobile app
---------- Post added at 12:27 AM ---------- Previous post was at 12:19 AM ----------
Sent from my E15i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
What about the stuff you created ?
From where will you download that ?
Sent from my GT-I9300 using xda premium

Categories

Resources