change permission of files while making rom - HTC Pico (Explorer)

Hey i am siddharth1102 on my bro's id, i've almost fixed su in sense 4 and included all the apps but the problem is 4mb space is left so i can't install any app to check su is working or not. i want to know that how to change permission of files while the rom is installing as i want to include ungaze script in it so there is no issue of memory.
ive edited updater script as there was a thing wrong in it.
please if you can then tell me those lines.
thanks in advance.

jayank said:
Hey i am siddharth1102 on my bro's id, i've almost fixed su in sense 4 and included all the apps but the problem is 4mb space is left so i can't install any app to check su is working or not. i want to know that how to change permission of files while the rom is installing as i want to include ungaze script in it so there is no issue of memory.
ive edited updater script as there was a thing wrong in it.
please if you can then tell me those lines.
thanks in advance.
Click to expand...
Click to collapse
oa delete some apps from rom n reflash to check su.....

jayank said:
Hey i am siddharth1102 on my bro's id, i've almost fixed su in sense 4 and included all the apps but the problem is 4mb space is left so i can't install any app to check su is working or not. i want to know that how to change permission of files while the rom is installing as i want to include ungaze script in it so there is no issue of memory.
ive edited updater script as there was a thing wrong in it.
please if you can then tell me those lines.
thanks in advance.
Click to expand...
Click to collapse
hey paste in updater script
set_perm(0, 0, 0644, "/system/app/Velvet.apk");
where 0644 is permition u want and change file name and directory to which files u want to se permition

Please don't include all the apps in zip package. We can install them as user apps. Haveing 4 mb space is useless.

arunsai123 said:
Please don't include all the apps in zip package. We can install them as user apps. Haveing 4 mb space is useless.
Click to expand...
Click to collapse
but he wanted to include ungaze script to increase internal memory

@hpsgill i wanna ask for files not apps
do i have to write like this:-
set_perm(0, 0, 0644, "/system/file/blabla");
EDIT 1 : ok got it. thanks.

Related

How to create update script

I dont know how to create update script till now i used to edit some ones update script so i need a tutorial on making update script...
Update script? if you are asking for what I think you are you need to learn bash scripting. If not, you should clarify what you want when asking a question.
I think perhaps he means themes? If so, use the search key
Darkrift said:
Update script? if you are asking for what I think you are you need to learn bash scripting. If not, you should clarify what you want when asking a question.
Click to expand...
Click to collapse
If you're thinking what I'm thinking that you are thinking about what he is thinking..
the update-script file in an update.zip isn't a bash script . It sorta looks like one, but it actually contains commands that are interpreted by the recovery program.
sangeet.003 said:
I dont know how to create update script till now i used to edit some ones update script so i need a tutorial on making update script...
Click to expand...
Click to collapse
Assuming you mean update-script in an update.zip update, you will need to either look at existing update-script files for an example of the syntax, or look at the source of the recovery program in the android source
Thanks JesusFreke U got my point...
Bump
I too would like info on this. I'm wondering if its at all possible to alter the update script to install 3rd party apps into /data/app and /data/app-private. I've tried placing 3rd party apps into one of the Dude's roms(i think, can.'t remember exactly which rom it was), but I didn't install my 3rd party app. Yes, I did resign the update.
So if someone could help me with this, i would be really grateful. I'd like to make one script to load just /data and another to be included with my usual update.zip's.
I really enjoy the fact that my phone is so customizable, but those 3rd party apps make my custom themes sooooo ugly. i don't mind taking the time to pull apps and theme them, but reinstalling them is a pain. I know there is a windows utility for reinstalling apps, but I'd rather just flash /data.... is this even possible?
Anywho, if any of you "smart" guys around here could help me with this, I would be such a happy droid.
jonnybueno said:
I too would like info on this. I'm wondering if its at all possible to alter the update script to install 3rd party apps into /data/app and /data/app-private. I've tried placing 3rd party apps into one of the Dude's roms(i think, can.'t remember exactly which rom it was), but I didn't install my 3rd party app. Yes, I did resign the update.
So if someone could help me with this, i would be really grateful. I'd like to make one script to load just /data and another to be included with my usual update.zip's.
I really enjoy the fact that my phone is so customizable, but those 3rd party apps make my custom themes sooooo ugly. i don't mind taking the time to pull apps and theme them, but reinstalling them is a pain. I know there is a windows utility for reinstalling apps, but I'd rather just flash /data.... is this even possible?
Anywho, if any of you "smart" guys around here could help me with this, I would be such a happy droid.
Click to expand...
Click to collapse
update-script can put things into data, yes. Just create a data folder in your zip file and include the relevant lines in the script:
copy_dir PACKAGE:system SYSTEM:
copy_dir PACKAGE:data DATA:
Thank you! you sir, are a kind person. I will try this tonight and report my findings afterward!
bringing this thread back from the dead. I need help, if somebody could point to how to use set_permission and why all the symlinking toolbox and busybox (i understand busybox is not part of the regular android package) to other tools already in bin. Also, maybe pointers of what the tools in bin do and if i could remove them after including busybox since they're already in busybox anyway
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
gwydionwaters said:
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
Click to expand...
Click to collapse
Nope but I think
"delete SYSTEM:app/Mms.apk"
update-script
gwydionwaters said:
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
Click to expand...
Click to collapse
what he said:
delete SYSTEM:app/Mms.apk
delete SYSTEM:app/Mms.odex
if you're really interested just grab any ROM available on xda and started learning the commands .. it's really rather simplistic
right on, thanks guys. i'll download some other roms as well and have a look through.
Maybe someone can halp me with correct command for sript. I need to copy one file (for example photo.ipg) into ext (root) partition whilst flshing update.zip. Files is in update.zip/photo.jpg. I have try put it into system/sd, but after flash files wont copy.
im trying remove certain apps from /data/app then install other apps on the /system/app
but im having trouble in removing apps from /data/app
mount("MTD", "data", "/data");
delete("/data/app/someapp.apk"); ?? not sure about deleting apps, i think this is wrong.
unmount("/data");
Is that the even the correct way to mount it? because that works with the /system
Any help would be greatly appreciated.
Ubuntu only
Wrong section btw, just have to say it. I am on Ubuntu 10.04 LTS and I just use terminal:
Code:
gedit update-script
Once you do that your newly created file will pop up, the put what ever you want in it and save it. The file will be in your home folder. this is what mine looks like:
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
Then create these folders, each one inside of the other:
Code:
META-INF
root of update zip >
Code:
com
>
Code:
google
>
Code:
android
Then place your update-script in the android folder, and also create the system or data folder in root of update.zip
If it's not compressed into a zip file already than you will need to select all the folders, right click and select compress, then compress as zip. After compressing into zip you will need to sign it. I'm not going to get into signing and all that because there is tons of info on xda for signing roms
in other thread and if someone still looking:
update-script syntax - A guide for ROM devs, modders, and themers
Code:
http://forum.xda-developers.com/showthread.php?t=641223
Thanks to TylTru for the gift
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
anybody knows the reason?
Thanks in advance..
jm0077 said:
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
anybody knows the reason?
Thanks in advance..
Click to expand...
Click to collapse
does /system/keyspa.sh exist?

help: how to add removable apk to roms?

I wasn't able to find info about this until now. But I need to know how to make the apks I include in a rom removable. I guess, maybe, I have to copy into a different folder instead or /system/app. is it right?
thanks
you have to install it in data directory not in system directory. so data/app
ok, thanks, but, if it doesn't exist, should I create it?
no u should not create it because then it wouldnt be a proper directory for your rom, the rom may not recognize it, i think.
which rom are you on? most rom has a data directory, that is where third party apps are installed and where apps downloaded from the market is also installed
this one
http://forum.xda-developers.com/showthread.php?t=556962&highlight=enomther
ok i see what u mean when there's no data directory. what you should test out first is go to market and download an app. then see where that app is install. see if it created a data directory or not. it should...
I had a look using root explorer, and there is a folder in the root called /data/app , and there inside are every installed apk, even the ones I installed by astro...
and there is another one called /data/data where I find folder of every app too
ANd another one called /data/app-private (there I found one apk that I downloaded from market.
I try to download a new one
Yup put your apks in data/app
on a related note, is there any way to flash unsigned ROMs? like if I want to drop .apk 's into the data folder of a rom before flashing?
The_Chrome_Coyote said:
on a related note, is there any way to flash unsigned ROMs? like if I want to drop .apk 's into the data folder of a rom before flashing?
Click to expand...
Click to collapse
I think no, but have a look for a program called autosign.
It very easy
NguyenHuu said:
Yup put your apks in data/app
Click to expand...
Click to collapse
but it only appear in my phone,not in the files of the rom.
Anyway I'm going to ask enomther, the creator of the rom, maybe he can help me
joshuas_79 said:
but it only appear in my phone,not in the files of the rom.
Anyway I'm going to ask enomther, the creator of the rom, maybe he can help me
Click to expand...
Click to collapse
ok your running a reg rom system, thus meaning 1.5/1.6 non hero. i can teach you step by step on how to set up "signing .zip's". its super super convenient!! i promise and its not to hard. just pm me if you need help. its way way easier to flash a rom with whatever apk you want then to push them and hope you pushed them to the right spot.

[Q] Update.zip to restore apps?

hey guys i just wanted to ask something. Its possible to install apps via update.zip immediately after flashing ROM rite? I searched XDA and found this: http://forum.xda-developers.com/showthread.php?t=917922
but im not sure how to do it and anyway the meaupload link for that download is down. Btw since all my app data together is more than the data partition of the phone (>200mb), is it possible to make the apps link to my second partition of sd card via update.zip script or something? Hope u guys can help me!!
Does anyone know how to do this? if possible i think it would save a lot of time as when reinstalling via titanium backup. this way would be more hassle-free if possible.
So no one knows how to do this? ok then nvr mind i guess it must be too hard or something....
Why not just use an ext partition and app2ext?
Creating an update.zip is possible, but it's not very convenient. Esp keeping it up-to-date.
Mioze7Ae said:
Why not just use an ext partition and app2ext?
Creating an update.zip is possible, but it's not very convenient. Esp keeping it up-to-date.
Click to expand...
Click to collapse
srry if im asking a really dumb qn but does that mean that if u install apps to ur ext2 via link2sd, u dont have to install them again on new ROM?
App2ext is different from link2sd (but they both use ext partition.
In link2sd you usually create /sd-ext/link2sd folder, reboot and then use the Link2SD app to manually move apps to /sd-ext/link2sd. This is good if you want to mix apps on SD and internal.
In app2ext (which I'm suggesting) you instead create /sd-ext/app folder on sdcard and reboot. All your installed apps will be moved there from internal memory and new apps will be installed there automatically. They will still be there after you factory reset or install a new ROM. (To preserve application data you need something else such as titanium backup)
Ohhhhh. Thx a lot!! Ok I just wanna try a bit of programming that's why I asked how to make update.zip. haha. Anyway Thx!!
Sent from my XT720 using XDA App
androidlover123 said:
Ohhhhh. Thx a lot!! Ok I just wanna try a bit of programming that's why I asked how to make update.zip. haha. Anyway Thx!!
Click to expand...
Click to collapse
You can learn by studying the gapps package used by CM or any other update.zip. The "magic" is inside the META-INF folder. META-INF/com/google/android/updater-script has the installer commands that do things like mount /system and extract files, set permissions etc. The final step is to sign the update. OpenRecovery allows unsigned updates, but you should sign anyway even using testkeys--it forces a sha1 verification of the zip files to detect corruption before the update is applied.
Mioze7Ae said:
You can learn by studying the gapps package used by CM or any other update.zip. The "magic" is inside the META-INF folder. META-INF/com/google/android/updater-script has the installer commands that do things like mount /system and extract files, set permissions etc. The final step is to sign the update. OpenRecovery allows unsigned updates, but you should sign anyway even using testkeys--it forces a sha1 verification of the zip files to detect corruption before the update is applied.
Click to expand...
Click to collapse
oooh i can kinda understand the code in the updater-script. for eg: ui_print to print to screen, package_extract_dir to extract files to the directory in whatever folder u state. but what is the update-binary file?
The update-binary is the program that reads and executes updater-script.
Mioze7Ae said:
The update-binary is the program that reads and executes updater-script.
Click to expand...
Click to collapse
Is that something you must write yourself or something? Or just copy from other update.zips?
I just copy it. It's probably in the AOSP source somewhere but I've never looked.

[APP][SHARE]Odex Me...Odex Any rom(and i mean any)

Works on 2.3.7 upto 4.2.2(At least thats all I have tested).
Hi,Guys this is an awesome app here let me start by stating.
Advantages of Odexed Rom.
1.Better Battery life
2.Better app performance.
3.lower ram usage.
Disadvantages of Odexed Rom.
1.no themes can be applied(and i mean at all).
2.Lower /system space.
How to Install -Guide-
1) make sure you have a custom rooted rom / kernel with init.d support (scripts must be able to run at boot: it is a folder in /system/etc). It is very important or it won't run pre-boot scripts.
2) make sure that you don't have any themes applied before odexing or you will loose your themed apps after odexing.
3) simply put the apk in /system/app folder with a file browser like "Root Explorer" and ofcourse give correct permissions rw-,r--,r-- and reboot.
4) do a nandroid backup(just added safety) and/or a titanium backup of all user apps and system data
5)Start ODEX ME app
6) follow the onscreen instructions.
7)your device will boot several times or even boot for a long time(Its all normal).
8)to see if you rom is odexed go to /system/app partition and you will see a whole lot of .odex files.
Credit :
paulobrien : for the app.Original Thread : http://forum.xda-developers.com/showthread.php?t=1215271
Dark Passenger : for testing the app and sharing.
NOTE : doesnt work with any app2sd script that moves system dalvik cache to /sd-ext eg.INT2EXT4+
copy paste already share in galaxy mini section,anyway nice
fitranger said:
copy paste already share in galaxy mini section,anyway nice
Click to expand...
Click to collapse
hello this is no copy paste work.
yes there may be a shared thread in mini section but here i posted to share the app as I thought it might be useful for fit users.
Dark Passenger said:
Hi,Guys this is an awesome app here let me start by stating.
Advantages of Odexed Rom.
1.Better Battery life
2.Better app performance.
3.lower ram usage.
Disadvantages of Odexed Rom.
1.no themes can be applied(and i mean at all).
2.Lower /system space.
How to Install -Guide-
1) make sure you have a custom rooted rom / kernel with init.d support (scripts must be able to run at boot: it is a folder in /system/etc). It is very important or it won't run pre-boot scripts.
2) make sure that you don't have any themes applied before odexing or you will loose your themed apps after odexing.
3) simply put the apk in /system/app folder with a file browser like "Root Explorer" and ofcourse give correct permissions rw-,r--,r-- and reboot.
4) do a nandroid backup(just added safety)
5)Start ODEX ME app
6) follow the onscreen instructions.
7)your device will boot several times or even boot for a long time(Its all normal).
8)to see if you rom is odexed go to /system/app partition and you will see a whole lot of .odex files.
Credit :
paulobrien : for the app.Original Thread : http://forum.xda-developers.com/showthread.php?t=1215271
Dark Passenger : for testing the app and sharing.
Works on 2.3.7 upto 4.2.2(At least thats all I have tested).
Click to expand...
Click to collapse
How to make nandroid backup if I not have Amon-RA, than CWM5?
ZmisiS said:
How to make nandroid backup if I not have Amon-RA, than CWM5?
Click to expand...
Click to collapse
I think all recoveries support backup options(that is nandroid backup)
else backup all user apps and system data using titanium backup.
Partial odexing from fixes themes
Sent from my GT-S5570 using Tapatalk 2
Tried it!! It's Working!!!:thumbup::thumbup: Odexed my Cyanmobile rom without any issues. Thanks for sharing this ONE-CLICK-ODEX app. I really needed it.
Pls. tell if this app can odex 2.3.6 custom rom (like Razodroid,creeds...etc), I've read the heading already but just curious.
Thnks Again
Sent Via XDA™ Premium
Galaxy_Rohit said:
Tried it!! It's Working!!!:thumbup::thumbup: Odexed my Cyanmobile rom without any issues. Thanks for sharing this ONE-CLICK-ODEX app. I really needed it.
Pls. tell if this app can odex 2.3.6 custom rom (like Razodroid,creeds...etc), I've read the heading already but just curious.
Thnks Again
Sent Via XDA™ Premium
Click to expand...
Click to collapse
yes.
Looks interesting will try it!!
For me in CM 10.1 Setting.apk removed and it has disappeared in the menu.How to solve it?
Android Daymon said:
For me in CM 10.1 Setting.apk removed and it has disappeared in the menu.How to solve it?
Click to expand...
Click to collapse
Huh what sorry are you saying that you placed the apk in /system/app partition gave it permission rw-,r--,r-- rebooted , clicked on the app icon from the app drawer of odex me. choice odex now let the phone remain aside till it stabalised about 5 min max. and then your settings app is not there.
what did you do cause I am using latest release and nothing happened.
Yes,I do what you say.but my settings disappeared.
---------- Post added at 05:58 PM ---------- Previous post was at 05:54 PM ----------
Doesn't it work with INT2EXT4+?????
Android Daymon said:
Yes,I do what you say.but my settings disappeared.
---------- Post added at 05:58 PM ---------- Previous post was at 05:54 PM ----------
Doesn't it work with INT2EXT4+?????
Click to expand...
Click to collapse
OH MY did you do the steps I mentioned after flashing int2ext4+ no wonder go into /system/app and tell me if there is a file called settings.apk and settings.odex
for most safe and best result always run first any script. mod .anything you need done then flash any app2sd script.
Sry... but I can't odex official cyanogenmod (2.3.7). It goes to bootloops. (Cyanmobile, Razodroid etc. were odexed successfully by your mentioned method but not this one)
Sent Via XDA™ Premium
Galaxy_Rohit said:
Sry... but I can't odex official cyanogenmod (2.3.7). It goes to bootloops. (Cyanmobile, Razodroid etc. were odexed successfully by your mentioned method but not this one)
Sent Via XDA™ Premium
Click to expand...
Click to collapse
I'm using cm7 official odexed so what exactly did you do is your dalvik cache moved to /sd-ext cause that will explain the boot-loop.
sol. don't use any app2sd solutions till after you have odexed k.
Dark Passenger said:
I'm using cm7 official odexed so what exactly did you do is your dalvik cache moved to /sd-ext cause that will explain the boot-loop.
sol. don't use any app2sd solutions till after you have odexed k.
Click to expand...
Click to collapse
I use Link2SD. I also used Link2SD on Cyanmobile too but no bootlooping in that while odexing.
So, do I've to unlink all the links of Link2SD & then try odexing??
If Yes, then I'll give it a try...
Sent Via XDA™ Premium
Galaxy_Rohit said:
I use Link2SD. I also used Link2SD on Cyanmobile too but no bootlooping in that while odexing.
So, do I've to unlink all the links of Link2SD & then try odexing??
If Yes, then I'll give it a try...
Sent Via XDA™ Premium
Click to expand...
Click to collapse
that doesnt make any sense link2sd moves only user installed apps not system so should give no problem....? but you can try and unlink from link2sd and see how it goes.
After I installed this OdexMe, in system/app, I have only 4,96 MB free.
ZmisiS said:
After I installed this OdexMe, in system/app, I have only 4,96 MB free.
Click to expand...
Click to collapse
hmm thats actually not really any problem or bug the app converts the dex files to odex files and stores the file onto /system/app basically the dalvik cache of system apps is moved to the /system/app directory. Hence the lower space.
Dark Passenger said:
hmm thats actually not really any problem or bug the app converts the dex files to odex files and stores the file onto /system/app basically the dalvik cache of system apps is moved to the /system/app directory. Hence the lower space.
Click to expand...
Click to collapse
I know, but now I can't install some applications.
Is there a possibility that I can remove .odex files, and that I do not again install ROM?

[Q] Settings-->Themes

There is this option called Themes in the settings menu. consider me a complete newbie and tell me how that works(Like does it help in changing themes if so how do I do it).
There is no option called themes on the stock Rom. What are you running?
blackuse said:
There is this option called Themes in the settings menu. consider me a complete newbie and tell me how that works(Like does it help in changing themes if so how do I do it).
Click to expand...
Click to collapse
A custom ROM dev may choose to add the new CM theme engine to his/her ROM. If you were to install a theme (via Play Store or .apk from XDA, NOT themes that you flash or where you modify files) you use the theme manager to use the theme.
Lethargy said:
A custom ROM dev may choose to add the new CM theme engine to his/her ROM. If you were to install a theme (via Play Store or .apk from XDA, NOT themes that you flash or where you modify files) you use the theme manager to use the theme.
Click to expand...
Click to collapse
nice it works great !!. how do i add fonts to the system like change the whole system fonts
hi do u remember my pre question about my missing internal files i jst figured out that when i delete this folder "storage" all the files gets wiped out
only happens when i delete it through my comp, not able to see the file using any file explorer with in the phone and i have no idea of which app created that file
blackuse said:
hi do u remember my pre question about my missing internal files i jst figured out that when i delete this folder "storage" all the files gets wiped out
only happens when i delete it through my comp, not able to see the file using any file explorer with in the phone and i have no idea of which app created that file
Click to expand...
Click to collapse
Storage is an android folder and it contains links to tour /sdcard
Don't delete things of you don't know what they are
Sent from my Nexus 5 using Tapatalk
blackuse said:
hi do u remember my pre question about my missing internal files i jst figured out that when i delete this folder "storage" all the files gets wiped out
only happens when i delete it through my comp, not able to see the file using any file explorer with in the phone and i have no idea of which app created that file
Click to expand...
Click to collapse
You deleted a symlink that linked to your internal storage, thus it deleted everything. You can't see the symlink in a file explorer while in Android but while connected to a PC, you can.
https://www.google.com/#q=define+symlink
Lethargy said:
You deleted a symlink that linked to your internal storage, thus it deleted everything. You can't see the symlink in a file explorer while in Android but while connected to a PC, you can.
https://www.google.com/#q=define+symlink
Click to expand...
Click to collapse
wow never expected it to be so complicated. Does this symbolic link show up only in custom rom's, if no then normal users like myself would probably mistake it for an empty folder and delete it.
Thanks for the explanation.
blackuse said:
wow never expected it to be so complicated. Does this symbolic link show up only in custom rom's, if no then normal users like myself would probably mistake it for an empty folder and delete it.
Thanks for the explanation.
Click to expand...
Click to collapse
It exists in any ROM. You shouldn't delete anything if you don't know what it is.
Sent from my Nexus 5

Categories

Resources