[Q] how to removing some system folder in recovery - Captivate Q&A, Help & Troubleshooting

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

anyone please tell

Related

New theme, having trouble signing [with screenshots]

ok, so I've made some modifications to the default theme but I cannot seem to get a .zip that will flash. I've just transferred them straight to my hero using android commander, which works.
But anyway, it doesn't really matter if no one wants to use it, right? so here are some screenshots, if someone could help me out that would be much appreciated.
easiets way is to look inside a rom.zip
Take out the files META-INF and System
go through the meta-inf folder until you get to update-script and open it in notepad.
Delete everything except the first show progress line and the on saying copy package:SYSTEM or something very similar.
Go back to the system folder and open that,depending what files you are trying to flash you need to keep and empty those files....
if your changing rosie.apk its in system/app so empty system>app and put rosie.apk inside it.
Framework-res.apk is inside system>framework so put it there
When you have finished putting your files in go back to where META-INF and system are,Add them to an archive (.zip) and then resign! if you are unsure of the siging process please search google on how to resign update.zip

[Q] custom rom permission script

hi,
well i've made a custom rom but i need to copy a file to /data/system which is the appwidget.xml
First i try to use the "simple" copy script as for application.
But it breaks the boot of my sgs.
I think i need to make some permissions on the updater script but i don't know which numbers to put in.
Can you help me or have a better solution.
Thanks in advance.

[Q] where is /data/preload folder on my phone?

Hey fellas,
I need to copy a file into folder /data/preload/ .
I cannot find this folder using the root explorer. Where is it?
I know it exists (or should exist) since system gives me an error message while applying OTA updates saying that a file is missing in that folder.
I have got the file now and want to put it back.
my phone:
HTC One M7,
rooted
stock recovery
s-on
bootloader unlocked/tampered
geek654 said:
Hey fellas,
I need to copy a file into folder /data/preload/ .
I cannot find this folder using the root explorer. Where is it?
I know it exists (or should exist) since system gives me an error message while applying OTA updates saying that a file is missing in that folder.
I have got the file now and want to put it back.
my phone:
HTC One M7,
rooted
stock recovery
s-on
bootloader unlocked/tampered
Click to expand...
Click to collapse
Does anyone know?
Thanks
Could it be in the system partition?
How can I access system partition?
In TWRP recovery I see an option named "mount" when I select it only the "data" in ticked.
Should I tick "system" as well, and it will mount the system partition? If so, then i can probably use the file browser of TWRP, find the data/preload folder and copy the missing file back in place. right?
download root browser, there is a free edition from play store as soon as you open it you will see the data folder on the list, its not in system, that's a separate folder.
you will need to copy the preload folder and its contents to that folder and change the permissions of the folder and contents.
you need to be rooted to use it.
Seanie280672 said:
download root browser, there is a free edition from play store as soon as you open it you will see the data folder on the list, its not in system, that's a separate folder.
you will need to copy the preload folder and its contents to that folder and change the permissions of the folder and contents.
you need to be rooted to use it.
Click to expand...
Click to collapse
Thanks Seanie.
So by default that folder does not exist? That's why I couldn't find it then!
I created the folder via root browser. What should be the permission for folder/apk file ?
now the preload folder permissions are rwsrwsrwt and apk file permissions are rw-rw----
does it make sense or should I change permission of filder and file both to 777 or 666 ?
geek654 said:
Thanks Seanie.
So by default that folder does not exist? That's why I couldn't find it then!
I created the folder via root browser. What should be the permission for folder/apk file ?
now the preload folder permissions are rwsrwsrwt and apk file permissions are rw-rw----
does it make sense or should I change permission of filder and file both to 777 or 666 ?
Click to expand...
Click to collapse
It does initially exist, but if you've been flashing custom rom's and recoveries, then when you clear data it gets deleted, set permissions to rw-r-r- for the apk's etc and rwxr-xr-x for the folder

[REQUEST] Stock Keyboard Application along with .ODEX files please

Hi everyone!
I currently have the Galaxy S6 running 7.0 on the May update (G920TUVU5FQE1)
I accidentally hit the delete button on my Root Explorer app instead of Cut, and deleted the folder containing my keyboard (SamsungIMEv5_SYSTEMUID)
Ive done some heavy modifications to the system which is why I dont want to reflash the firmware to fix this, so can someone please send me their folder from the "system/app" so I can use my phones keyboard again please
(the folder might have the .ODEX file as well, please just send the whole folder)
I appreciate it in advance!
Happy Modding!

Question Add apk to system.img of Stock Rom

Dear all, I need help im modifying system.img from Stockrom. I can delete apks (de-bloating) but I do not know how to add new apks!
So far I have done the following steps:
1. Untar AP*.tar.md5
2. Extract with LZ4 system.img.lz4
3. simg2img system.img system-new.raw
4. sudo mount -t ext4 -o loop system-new.raw mnt/
5. delete bloatware apps from system/app and system/priv-app
6. add additional apks to system/app and system/priv-app????
7. umount, img2simg, lz4, tar and flash (e.g. Odin)
I have real issues with step 6, everything I tried so far did not work.
a) add apks to system/app and system/priv-app with user root and 644
b) create directories in system/app and system/priv-app
c) replace apks in system/app and system/priv-app
While the de-bloating works, step 6 is broken! The new apps are not usable. They show up with the generic android "robot icon" and their canonical name (e.g. org.fdroid.fdroid...) and are immediately stopped.
What is the correct approach to add additional apks to an existing stock rom image? Please help.

Categories

Resources