updater-script not copying files - C++ or Other Android Development Languages

Here is my little flashable zip. It contains the line:
package_extract_dir("system", "/system");
But the files are not copied. What have I done wrong?
Sent from my GT-N7100 using xda premium

I'm not familiar with these scripts. But probably it's a mounting problem. I suggest you to see a script of a rom and compare with it.
Sent from my E16i using Tapatalk 2

Related

[Q] Rom Building Error

Hi
May i seek help to resolve this issue?
I created a rom by modifying on the phone and extracting the system folder using adb. Then I drag the system folder to a pre-existing rom zip. I tried to flash using cwm successfully but it just stuck at at the android logo. Many thanks for assistance.
Terry
it wasnt as simple as copy and paste, drag and drop like that.
u need to consider many thing. even one library missing or mismatched with the updater script in the zip file, it wont boot.
Oh ic.. so I have to modify the updater-script?
Sent from my GT-S5830 using xda premium
terrymcnuggets said:
Oh ic.. so I have to modify the updater-script?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Technically , there's more than just editing the updater-script .
But at a basic level , yes .
Sent from my GT-S5830 using XDA App

(Q) {How To Recomile Decompile Apks By Phone}

I Know How To Recompile Decompile Apks By Pc But Don't Know How To Do It By Phone
Is There Any App To Do That Pls Tell....
Sent from my LG-E400 using xda premium
No there is no way to do it on a phone.
Wayne Tech S-III
you can extract apks on a phone and view the files inside (rename to .zip and extract) unless you mean something else
Sent from my U8160 using xda premium
pikakai said:
you can extract apks on a phone and view the files inside (rename to .zip and extract) unless you mean something else
Sent from my U8160 using xda premium
Click to expand...
Click to collapse
Yes you can unzip any apk and see the files but the xmls and the .9 pngs are stil encrypted and they can not be edited unless the apk is decompiled first.
So Is There Anyway To Decompile By Phn...
Sent from my LG-E400 using xda premium

(REQUEST) Creating update.zip

Can you explain me how to create update.zip? How I can create update script?
Sent from my GT-I9070 using xda app-developers app
Just take one of the themes already in this section, remove all of the apk's in it, and add your own.
Though, I'd recommend learning how to make your own updater script, it's good practice, tutorials all over XDA.
panda00 said:
Just take one of the themes already in this section, remove all of the apk's in it, and add your own.
Though, I'd recommend learning how to make your own updater script, it's good practice, tutorials all over XDA.
Click to expand...
Click to collapse
Can you give link to the tutorials please....
Sent from my GT-P3100 using xda app-developers app
Chirag_Galani said:
Can you give link to the tutorials please....
Sent from my GT-P3100 using xda app-developers app
Click to expand...
Click to collapse
Give pls
Sent from my GT-I9070 using xda app-developers app
http://forum.xda-developers.com/showthread.php?t=1610121
panda00 said:
Just take one of the themes already in this section, remove all of the apk's in it, and add your own.
Though, I'd recommend learning how to make your own updater script, it's good practice, tutorials all over XDA.
Click to expand...
Click to collapse
I don't want to put apk I want to put .so files and host file.
Sent from my GT-I9070 using xda app-developers app
panda00 said:
http://forum.xda-developers.com/showthread.php?t=1610121
Click to expand...
Click to collapse
Thanks mate...
Sent from my GT-P3100 using xda app-developers app
use the search bar. =.=
pro100jekon said:
I don't want to put apk I want to put .so files and host file.
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Then make folder where that .so fille will go. Example /system/lib. So where file is in that zip, it will be copied in root of phone.
shut_down said:
Then make folder where that .so fille will go. Example /system/lib. So where file is in that zip, it will be copied in root of phone.
Click to expand...
Click to collapse
I agree with you but some scripts are formatting folders.
Отправлено из моего GT-I9070
pro100jekon said:
I agree with you but some scripts are formatting folders.
Отправлено из моего GT-I9070
Click to expand...
Click to collapse
U used this one, it just mounts system partition. Do not format anything. Here is updater script:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");
ui_print("Flashing generic zip");
package_extract_dir("system", "/system");
unmount("/system");
You just make folders in system folder where you want files to be flashed. Like system/framework, system/app, system\lib, etc...

[Q] Where is my META-INF folder stored??

Hey guys,
I need my META-INF folder to customize my rom but where is it??
Its in the flashable zip.
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Its in the flashable zip.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
By flashable zip do you mean the firmware I flashed??
Basically META-inf is a folder which contained sign data ,update binary and update script ,which is found only on flashable zip. It can be also be presented in apks.
Sent from my GT-S6102 using xda app-developers app
rahulsnair said:
Basically META-inf is a folder which contained sign data ,update binary and update script ,which is found only on flashable zip. It can be also be presented in apks.
Sent from my GT-S6102 using xda app-developers app
Click to expand...
Click to collapse
Sorry im a dumb newb but I still dont understand where is the folder I have checked my .md5 firmware file but it didnt have that folder!
When you flash a custom rom, it comes as a zip file. The folder you are talking about is what makes that zip file flashable. It contains scripts that control what recovery does with the contents of the zip
You admitted to being new to this in your other thread. Can I suggest that whatever you're hoping to achieve by modifying scripts might be a bit advanced for you at this stage
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
When you flash a custom rom, it comes as a zip file. The folder you are talking about is what makes that zip file flashable. It contains scripts that control what recovery does with the contents of the zip
You admitted to being new to this in your other thread. Can I suggest that whatever you're hoping to achieve by modifying scripts might be a bit advanced for you at this stage
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Well its just that when you mod with the uot kitchen your end result is a meta-inf folder so!!
You're doing it wrong then. The end result of uot is a flashable zip, so!
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
You're doing it wrong then. The end result of uot is a flashable zip, so!
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Oooooh now I understand I wasnt supposed to extract the zip file!!
Ha ha. Cool.
Sent from my GT-I9300 using Tapatalk 2
---------- Post added at 01:22 PM ---------- Previous post was at 01:21 PM ----------
Take a nandroid backup before flashing that zip via recovery
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Ha ha. Cool.
Sent from my GT-I9300 using Tapatalk 2
---------- Post added at 01:22 PM ---------- Previous post was at 01:21 PM ----------
Take a nandroid backup before flashing that zip via recovery
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
thx man!!

Updater-script and Update-script

I have been wondering which phones generally use update-script [amend format]. I have seen may updater-script but no update-script. Can anyone give an example phone which uses update-script?
Sent from my Micromax A110 using Tapatalk 4

Categories

Resources