hi guys am creating a update package and I want to completely remove previous /system/app, /system/framework and /system/media folder please tell me the command which I can put in updater-script to remove them
dhlalit11 said:
hi guys am creating a update package and I want to completely remove previous /system/app, /system/framework and /system/media folder please tell me the command which I can put in updater-script to remove them
Click to expand...
Click to collapse
you can remove it from your computer with Android Commander software
dhlalit11 said:
hi guys am creating a update package and I want to completely remove previous /system/app, /system/framework and /system/media folder please tell me the command which I can put in updater-script to remove them
Click to expand...
Click to collapse
Maybe delete_recursive("<dir name>") may help: delete_recursive("/system/app");
Related
I uninstalled the stock clock because I thought that would delete the clock widgets instead. Restoring did not help, so I searched the forum and found this: (http://forum.xda-developers.com/showthread.php?t=1070083)
According to the thread, I would need ClockPackage.apk and ClockPackage.odex to get the stock clock back. I have found ClockPackage.apk here, so all I need now is ClockPackage.odex. Could anyone please upload the odex file here, please? Thanks in advance.
Help, please. I'd greatly appreciate any help.
are you on a stock rom? how did you uninstall a system app? Guessing you have root so just put the clockpackage.apk in system/app, give it the right permissions, reboot and it'll be fine (hopefully), the phone should generate a new odex for the apk
Extract those original files from your downloaded "Rom" package and copy it to your mobile. Use root explorer to copy the file to system\app and set the right permissions.
viva.fidel said:
are you on a stock rom? how did you uninstall a system app? Guessing you have root so just put the clockpackage.apk in system/app, give it the right permissions, reboot and it'll be fine (hopefully), the phone should generate a new odex for the apk
Click to expand...
Click to collapse
Yes, it is rooted. Also, I did put the apk file in system/app and I got the app back on the application menu. However, it crashes whenever I try to run it.
a152222 said:
Yes, it is rooted. Also, I did put the apk file in system/app and I got the app back on the application menu. However, it crashes whenever I try to run it.
Click to expand...
Click to collapse
Have you set the right permissions in root explorer for the apk?
viva.fidel said:
Have you set the right permissions in root explorer for the apk?
Click to expand...
Click to collapse
No, I did not set or change the permissions. Could you guide me on what to do?
bala_gamer said:
Extract those original files from your downloaded "Rom" package and copy it to your mobile. Use root explorer to copy the file to system\app and set the right permissions.
Click to expand...
Click to collapse
I did not downlaod any rom so I think I am still on stock rom. What permission do I need to set?
I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
ImAhNoBoDy said:
I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
Click to expand...
Click to collapse
erm... is the permissions set correctly rw-r--r-- ?
MoonBlade said:
erm... is the permissions set correctly rw-r--r-- ?
Click to expand...
Click to collapse
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
ImAhNoBoDy said:
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
Click to expand...
Click to collapse
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
MoonBlade said:
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
Click to expand...
Click to collapse
I have been pushing the modified apk through root explorer all this time. I don't even have adb install, haha. The procedure you explained have been the way I have been doing it the whole time, lol. I read the threads you posted and the procedure is the same as I've been doing it, except for the second thread. I can't grab the apktool from 4shared because I don't have an account. I am using the latest apktool 1.5.2. Also, I didn't understand what PulseDroid was talking when he said "We are NOT done just yet, we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk". So I'm suppose to replace the resources.arcs and the .ogg files that I created from the new apk to the old apk? I didn't mess with any xml file.
Anyways, is there anything else I can try?
EDIT: ........I feel so embarrassed. I checked out this thread http://forum.xda-developers.com/showthread.php?t=2378177 and saw this post "Drag your replacement files into WinRAR and (here's the important part) in the Compression Method drop-down choose "Store"." All this time I have been compressing the file as "Normal" in Winrar, instead of "Store".
All in all, I did not need apktool at all. I used the original apk and opened it up in Winrar. I deleted the files that I wanted to replaced and put in the files that I wanted. Each time I put something in the file in Winrar I get a prompt for compression and instead of "Normal" compression just use "Store". It was that simple.
This helped me, thank you!
hello everybody
a lot of times I find system modded files and I wanna use them but the developers often offer the file is not flashable so I have to replace the older and set the permissions
but in all times I did that , the system sent an error and was damaged
so I wanna learn how to make a flashable.zip for any system file to be installed to its location and set the permissions
please help me
thanks
engnajjar said:
hello everybody
a lot of times I find system modded files and I wanna use them but the developers often offer the file is not flashable so I have to replace the older and set the permissions
but in all times I did that , the system sent an error and was damaged
so I wanna learn how to make a flashable.zip for any system file to be installed to its location and set the permissions
please help me
thanks
Click to expand...
Click to collapse
Its quite simple. Download a superuser.zip file that is for your device. Extract it. You will find two folders, System and Meta-Inf. Open System folder and you will find a folder called app inside it. Open it and delete the superuser.apk file and copy your modded system file into it.
For eg., Let the file be Gallery2.apk .
Now open META-INF folder -> com -> google -> android. You will find a file called updater-Script. You have to edit that file. There will be a line, where the system mount command is given. Do not do anything until that line. Delete the lines below it and enter these lines.
delete("/system/app/Gallery2.apk");
# [here Gallery2 is the name of the apk file you copied]
package_extract_dir("system","/system");
ui_print("Installation complete!");
Now rezip the folders together and you have your own flashable zip to install modded system files.
Hit thanks if this helped! :laugh:
PM me if you require further help.
dev27 said:
Its quite simple. Download a superuser.zip file that is for your device. Extract it. You will find two folders, System and Meta-Inf. Open System folder and you will find a folder called app inside it. Open it and delete the superuser.apk file and copy your modded system file into it.
For eg., Let the file be Gallery2.apk .
Now open META-INF folder -> com -> google -> android. You will find a file called updater-Script. You have to edit that file. There will be a line, where the system mount command is given. Do not do anything until that line. Delete the lines below it and enter these lines.
delete("/system/app/Gallery2.apk");
# [here Gallery2 is the name of the apk file you copied]
package_extract_dir("system","/system");
ui_print("Installation complete!");
Now rezip the folders together and you have your own flashable zip to install modded system files.
Hit thanks if this helped! :laugh:
PM me if you require further help.
Click to expand...
Click to collapse
thanks so much it works well
engnajjar said:
thanks so much it works well
Click to expand...
Click to collapse
Glad that I could help. :good:
Hi,
A friend of mine recently returned from China with a Coolpad 8675, which he gave to me. I tried to install various apps such as Google Search and the Play Store, to no avail. This makes it impossible to use apps like Google+ and Ingress. This is quite annoying, and i was wondering if there was a solution to this problem. I really have no idea how android phones work or how to do stuff like rooting, so basic solutions would be appreciated!
Thanks,
LeCrazyPanda
same here
I am having the same issue.
I installed Google account log in service, and Google play store with successfully I even found those on the Chinese coolpad app store.
My trouble comes with trying to install Google play services, as even when I download it from the coolpad store, the install always fails.
SOLVED
Hi I have one and i had same problem.
First you must root phone, that is simple and here is instructions:
https://translate.google.cz/translate?hl=cs&sl=zh-CN&tl=en&u=http%3A%2F%2Fsjbbs.zol.com.cn%2F166%2F1606_1657041.html
after that you can manualy install GAPPS.
I get Universal Pico from Paranoid then unzip it on pc and create this pack https://drive.google.com/file/d/0BzMLUR1MF4g3RHBqQjBsTGlyVm8/view?usp=sharing
You must copy to Phone disk and manualy copy to system folder directories.
EACH FILE YOU MUST MANUALY SET PERMISSION 644
AND DIRECTORY \etc\preferred-apps\ THAT YOU CREATE MUST SET PERMISSION 755
After that you must restart phone and enjoy
For Copy and set permissions i use Root Explorer that you must manualy install from disk
Sorry for my bad English
Hagen656 said:
Hi I have one and i had same problem.
First you must root phone, that is simple and here is instructions:
https://translate.google.cz/translate?hl=cs&sl=zh-CN&tl=en&u=http%3A%2F%2Fsjbbs.zol.com.cn%2F166%2F1606_1657041.html
I' don't find anywhere this "1, in the mobile phone standby interface, click to enter [Cool housekeeper] - [Settings] (Click pinion upper right corner) - [on], as shown below;"
Please can you help me to perform this fisrt part of instructions?
Click to expand...
Click to collapse
Phenomen said:
Hagen656 said:
Hi I have one and i had same problem.
First you must root phone, that is simple and here is instructions:
https://translate.google.cz/translate?hl=cs&sl=zh-CN&tl=en&u=http%3A%2F%2Fsjbbs.zol.com.cn%2F166%2F1606_1657041.html
I' don't find anywhere this "1, in the mobile phone standby interface, click to enter [Cool housekeeper] - [Settings] (Click pinion upper right corner) - [on], as shown below;"
Please can you help me to perform this fisrt part of instructions?
Click to expand...
Click to collapse
Hi sorry for my late respond.
This is in Setting - Security - CoolManager
Click to expand...
Click to collapse
Hagen656 said:
Hi I have one and i had same problem.
First you must root phone, that is simple and here is instructions:
https://translate.google.cz/translate?hl=cs&sl=zh-CN&tl=en&u=http%3A%2F%2Fsjbbs.zol.com.cn%2F166%2F1606_1657041.html
after that you can manualy install GAPPS.
I get Universal Pico from Paranoid then unzip it on pc and create this pack https://drive.google.com/file/d/0BzMLUR1MF4g3RHBqQjBsTGlyVm8/view?usp=sharing
You must copy to Phone disk and manualy copy to system folder directories.
EACH FILE YOU MUST MANUALY SET PERMISSION 644
AND DIRECTORY \etc\preferred-apps\ THAT YOU CREATE MUST SET PERMISSION 755
After that you must restart phone and enjoy
For Copy and set permissions i use Root Explorer that you must manualy install from disk
Sorry for my bad English
Click to expand...
Click to collapse
Hi
Can you specify where to put those apks exactly. Thanks for your time.
mirchichamu said:
Hi
Can you specify where to put those apks exactly. Thanks for your time.
Click to expand...
Click to collapse
Hi directories from my zip (app, etc, framework, lib, priv-app) must extract to /system directory. Means
files from zip/GAPPS/app/*.apk copy to /system/app/*.apk on your phone
files from zip/GAPPS/etc/permissions/*.xml copy to /system/etc/permissions/*.xml on your phone
files from zip/GAPPS/etc/preferred-apps/*.xml copy to /system/etc/preferred-apps/*.xml on your phone
files from zip/GAPPS/framework/*.jar copy to /system/framework/*.jar on your phone
files from zip/GAPPS/lib/*.so copy to /system/lib/*.so on your phone
files from zip/GAPPS/priv-app/*.apk copy to /system/priv-app/*.apk on your phone
EACH FILE YOU MUST MANUALY SET PERMISSION 644
AND DIRECTORY \etc\preferred-apps\ THAT YOU CREATE MUST SET PERMISSION 755
Hagen656 said:
Hi directories from my zip (app, etc, framework, lib, priv-app) must extract to /system directory. Means
files from zip/GAPPS/app/*.apk copy to /system/app/*.apk on your phone
files from zip/GAPPS/etc/permissions/*.xml copy to /system/etc/permissions/*.xml on your phone
files from zip/GAPPS/etc/preferred-apps/*.xml copy to /system/etc/preferred-apps/*.xml on your phone
files from zip/GAPPS/framework/*.jar copy to /system/framework/*.jar on your phone
files from zip/GAPPS/lib/*.so copy to /system/lib/*.so on your phone
files from zip/GAPPS/priv-app/*.apk copy to /system/priv-app/*.apk on your phone
EACH FILE YOU MUST MANUALY SET PERMISSION 644
AND DIRECTORY \etc\preferred-apps\ THAT YOU CREATE MUST SET PERMISSION 755
Click to expand...
Click to collapse
Thank you very much.
Sent from my HUAWEI MT7-TL10 using Tapatalk
Didnt get that screen
Hagen656 said:
Phenomen said:
Hi sorry for my late respond.
This is in Setting - Security - CoolManager
Click to expand...
Click to collapse
I dont get that screen. i get this:
Click to expand...
Click to collapse
Hagen656 said:
Hi directories from my zip (app, etc, framework, lib, priv-app) must extract to /system directory. Means
files from zip/GAPPS/app/*.apk copy to /system/app/*.apk on your phone
files from zip/GAPPS/etc/permissions/*.xml copy to /system/etc/permissions/*.xml on your phone
files from zip/GAPPS/etc/preferred-apps/*.xml copy to /system/etc/preferred-apps/*.xml on your phone
files from zip/GAPPS/framework/*.jar copy to /system/framework/*.jar on your phone
files from zip/GAPPS/lib/*.so copy to /system/lib/*.so on your phone
files from zip/GAPPS/priv-app/*.apk copy to /system/priv-app/*.apk on your phone
EACH FILE YOU MUST MANUALY SET PERMISSION 644
AND DIRECTORY \etc\preferred-apps\ THAT YOU CREATE MUST SET PERMISSION 755
Click to expand...
Click to collapse
I see all these files are APK's. Do I install them like regular APKs? Then how do I grant permissions? I have two left thumbs as far as technology is concerned, so I would sincerely appreciate someone guiding me, step by painful step. Thanks.
DUSANT_AP said:
I see all these files are APK's. Do I install them like regular APKs? Then how do I grant permissions? I have two left thumbs as far as technology is concerned, so I would sincerely appreciate someone guiding me, step by painful step. Thanks.
Click to expand...
Click to collapse
Read my first post
Hagen656 said:
Hi I have one and i had same problem.
First you must root phone, that is simple and here is instructions:
https://translate.google.cz/translate?hl=cs&sl=zh-CN&tl=en&u=http%3A%2F%2Fsjbbs.zol.com.cn%2F166%2F1606_1657041.html
after that you can manualy install GAPPS.
I get Universal Pico from Paranoid then unzip it on pc and create this pack https://drive.google.com/file/d/0BzMLUR1MF4g3RHBqQjBsTGlyVm8/view?usp=sharing
You must copy to Phone disk and manualy copy to system folder directories.
EACH FILE YOU MUST MANUALY SET PERMISSION 644
AND DIRECTORY \etc\preferred-apps\ THAT YOU CREATE MUST SET PERMISSION 755
After that you must restart phone and enjoy
For Copy and set permissions i use Root Explorer that you must manualy install from disk
Sorry for my bad English
Click to expand...
Click to collapse
Hagen656 solution works, tried & tested
DUSANT_AP said:
I see all these files are APK's. Do I install them like regular APKs? Then how do I grant permissions? I have two left thumbs as far as technology is concerned, so I would sincerely appreciate someone guiding me, step by painful step. Thanks.
Click to expand...
Click to collapse
Do exactly as @Hagen656 says: copy ALL files from GAPPS, *.apk *.jar *.xml *.so into the corresponding folders from the /system/ folder on your phone. If the folder is not present in /system/ on your phone, copy the entire folder from GAPSPS. You don't have to install anything, just to change permissions to 755 for /system/etc/preferred-apps/ folder and to 644 for ALL files (including the ones from /system/etc/preferred-apps/).
To understand file permissions in Android, read this:
http://androidforums.com/threads/understanding-android-file-permissions.73177/
For changing file permissions, I used ES File Explorer, you can directly download the .apk from here http://www.estrongs.com/?lang=en
After installing ES File Explorer, you need to install ES Permission Manager plugin, which can be found here http://getandroidapp.org/applications/libraries-demo/93311-es-permission-manager-plugin-1-0.html
Pls how did you change d language of d coolmanager app
How can we change our Bootanimation. In my other devices i change it by replacing Bootanimation.zip from System/Media.
But it is not working on this device. How can we change it?
Any comment is appreciated!!
Thank You!!
Try replacing bootanimation.zip in /oem/media
mhaha said:
Try replacing bootanimation.zip in /oem/media
Click to expand...
Click to collapse
Thank You! It works!!
How exactly are we supposed to put our bootanimation.zip into the /oem/media directory? I'm getting permission denied, even if I was able to rename the existing file in ES (I have ROOT and mounted my system partition as RW, but it doesn't let me do the same to /oem)
bofis said:
How exactly are we supposed to put our bootanimation.zip into the /oem/media directory? I'm getting permission denied, even if I was able to rename the existing file in ES (I have ROOT and mounted my system partition as RW, but it doesn't let me do the same to /oem)
Click to expand...
Click to collapse
I had the exact same problem. I was getting permission denied to add the new file to /oem/media. Interestingly, I was able to rename the bootanimation.zip in this folder to bootanimation2.zip. Then the system started to look for the bootanimation.zip located in another folder (/system/media) and there I could manage to replace the file.