[CLOSED] Help me, Updater-script - Android Q&A, Help & Troubleshooting

Hi.
I have a samsung A70 device
I want to make a simple zip can to delete bloatware and install some app after reflash rom.
So, i try many time with updater-script file but seemlike it not working.
There is code example:
ui_print(" Starting ... ");
run_program("/sbin/busybox", "mount", "/system");
Click to expand...
Click to collapse
mount("ext4", "EMMC", "/dev/block/platform/soc/1d84000.ufshc/by-name/system", "/system");
Click to expand...
Click to collapse
ui_print(" ");
delete("/system/app/ARCore/ARCore.apk");
Click to expand...
Click to collapse
I Zip it on update.zip file and when i flash it still running nomarly but nothing got delete in /system/app/arcore/
TWRP so me
script susseded: result was [0]
Click to expand...
Click to collapse
i think system partion is not mounted yet. I don't know extracly vartion "/dev/block/platform/soc/1d84000.ufshc/by-name/system" is correct or not. Or i must set permission for that.
Can somebody help me write updater-script. Thank you!

mrttd said:
Hi.
I have a samsung A70 device
I want to make a simple zip can to delete bloatware and install some app after reflash rom.
So, i try many time with updater-script file but seemlike it not working.
There is code example:
Click to expand...
Click to collapse
@mrttd Thread closed as duplicate of
How to make updater-script.
Hi. I have a samsung A70 device I want to make a simple zip can to delete bloatware and install some app after reflash rom. So, i try many time with updater-script file but seemlike it not working. There is code example: ui_print(" Starting ...
forum.xda-developers.com
Please review the XDA Forum Rules with special emphasis on rule no. 5 and post only ONCE! Your other duplicate thread has been closed, too. Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator

Related

(DEV/WIP) Sensation sense 3.5 android 4.01 port for Shooter

hey all, just saw THIS yesturday, which made me made me feel extremely left out. i then searched & found THIS...i spent some time this morning following the instructions for the port, then i upped it for testing. PLEASE POST RESULTS. i have a very busy day and may not be able to flash this today..if it does not boot please try the anthrax kernel or some others(after flashing the rom,but before reboot). i just wanted to jumpstart dev on this for us lowly shooter owners..
DISCLAIMER: IF SANTA COMES AND REPLACES YOUR HOUSE WITH REINDEER FECES AFTER FLASHING THIS ROM YOU AND ONLY YOU ARE TO BLAME. I ACCEPT NO RESPONSIBILITY/LIABILITY. THIS IS A TEST TO GET THIS STARTED SINCE THE DEVICES ARE SO SIMILAR AND JUST A SENSE TO SENSE PORT. NO CRYING. PLEASE JUST POST RESULTS AND ILL GET TO IT AS SOON AS I CAN.THIS IS A TEST ROM.
MERRY CHRISTMAS
credits to robocik and capychimp for the sensation rom
​
Awesome! I'm going to check this out when I get off work!
Sent by my Supercharged dual core from the 3rd Dimension
Has anyone tried this rom yet?
Sent from my HTC EVO 3D using xda premium
Nandroiding now, will post after flash.
Downloading now.
Good to see some movement on the ICS front for our device! I was beginning to think all the devs had forgotten us...
Looking forward to checking this out after work as well, dang you work filter blockage
Funny, I was working on the same thing
Hit me up in PM if you want to chat.
Flashed it, stuck on white htc screen, reboot into bootloader and my recovery doesn't exist anymore. Had to use RUU.
Gordon Ramsay said:
Flashed it, stuck on white htc screen, reboot into bootloader and my recovery doesn't exist anymore. Had to use RUU.
Click to expand...
Click to collapse
Oh wow that sucks I guess I will not be flashing this but thanl you for taking one for the team.
Sent from my PG8610000 using XDA App
Gordon Ramsay said:
Flashed it, stuck on white htc screen, reboot into bootloader and my recovery doesn't exist anymore. Had to use RUU.
Click to expand...
Click to collapse
Yeah, I was just gonna say....
Dont flash it! The mount points are all wrong. They are set for the Sensation.
Whats in the script:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
What it should be:
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
Good news is you didn't brick it!
Also, if that ever happens again you dont have to drop back to RUU. You can just copy twrp flashable to SD card and just reflash it or flash it from fastboot.
Yeah but the problem was I couldn't get USB to put the recovery back on my sd, so I was stuck haha.
So then who will be the one to get a working ics up before the day is out lol
Sent from my PG8610000 using XDA App
Gordon Ramsay said:
Yeah but the problem was I couldn't get USB to put the recovery back on my sd, so I was stuck haha.
Click to expand...
Click to collapse
Thats why you can use fastboot. I made a tool that will do it for you
You can check it out here: http://forum.xda-developers.com/showthread.php?t=1292556
(I may have done this once or twice in the past 24 hours, lol)
isn't this the same port that was put up yesterday & moved to general yesterday?
SketchyStunts said:
isn't this the same port that was put up yesterday & moved to general yesterday?
Click to expand...
Click to collapse
Nope, not even remotely close.
The thread I assume you are referring to yesterday is this one: http://forum.xda-developers.com/showthread.php?t=1404346
The Op of that thread is simply pointing out that Sensation had ICS. This thread is for actual development. Big difference.
scrosler said:
Nope, not even remotely close.
The thread I assume you are referring to yesterday is this one: http://forum.xda-developers.com/showthread.php?t=1404346
The Op of that thread is simply pointing out that Sensation had ICS. This thread is for actual development. Big difference.
Click to expand...
Click to collapse
well, on that note....word to the mothership!!!!
scrosler said:
Yeah, I was just gonna say....
Dont flash it! The mount points are all wrong. They are set for the Sensation.
Whats in the script:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
What it should be:
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
Click to expand...
Click to collapse
So if change the points in the script will it flash?
scrosler said:
Yeah, I was just gonna say....
Dont flash it! The mount points are all wrong. They are set for the Sensation.
Whats in the script:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
What it should be:
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
Good news is you didn't brick it!
Also, if that ever happens again you dont have to drop back to RUU. You can just copy twrp flashable to SD card and just reflash it or flash it from fastboot.
Click to expand...
Click to collapse
@ scott thanks for pointing this out - was about to post the same.
@ magnus, you should be ashamed of yourself, this is downright abusive. What if the script had block 34. Did you even look? WTF.
---------- Post added at 03:44 PM ---------- Previous post was at 03:41 PM ----------
alammori said:
So if change the points in the script will it flash?
Click to expand...
Click to collapse
Clearly there is something wrong, my guess is magnus posted a sensation ROM with a renamed zip title to be "first". Which is awesome.
I wouldn't touch this with a ten foot pole. But sure you could try if you want lol.
---------- Post added at 03:46 PM ---------- Previous post was at 03:44 PM ----------
@ scott - tell me this isn't ACTUALLY the sensation ROM
....please tell me....
@Scott: I'm working on something as well. I'll get in touch with you.
@MagnusRagnarok: PM me for me gtalk
Thread closed until the ROM is made usable for the 3D...

Cooking a custom rom

Can some One make a guide for cooking a custom rom what you need etc....
Verstuurd van mijn LT26i met Tapatalk
remco.k said:
Can some One make a guide for cooking a custom rom what you need etc....
Verstuurd van mijn LT26i met Tapatalk
Click to expand...
Click to collapse
You need to unpack system.img, change the things you want and repack it. To change the actual code, you'll need apktool and some knowledge of Java/smali
Sent from my LT26i using XDA
First thing I'd say is that if the OP has to ask the above, Dev work is probably a little above their level.
Also, would somebody with a years college level Java be on a good footing to work on such things or would you need to be wholly proficient in the language to start?
Borrowing this thread.
I'm trying to cook a custom rom for my personal use but I'm encountering problems with updater-script. I'm using prerooted .73 Norway generic as a base. I think my problem is that I enabled use of data/app and I can't implement the changes in updater-script. Any help from you guys?
When flashing I get error status 0 every time.
E: I'm using dsixda's Android Kitchen of course. I'm a noob.
Anyone? I've tried almost everything and still I get this (Status 0) error every time. What does it mean?
When we are talking about cooking custom ROM, can someone please upload framework-res.apk AND SystemUI.apk?
You'll find it in /system folder on your phone.
mikbe said:
Borrowing this thread.
I'm trying to cook a custom rom for my personal use but I'm encountering problems with updater-script. I'm using prerooted .73 Norway generic as a base. I think my problem is that I enabled use of data/app and I can't implement the changes in updater-script. Any help from you guys?
When flashing I get error status 0 every time.
E: I'm using dsixda's Android Kitchen of course. I'm a noob.
Click to expand...
Click to collapse
You can't use the META-INF folder from dsixda Android Kitchen. The update script will have mistakes and it has the wrong update binary for the Xperia S.
Take the META-INF folder from my rom or r-ikfoot's rom and edit the update script.
Good luck
Sent from my LT26i using XDA
krabappel2548 said:
You can't use the META-INF folder from dsixda Android Kitchen. The update script will have mistakes and it has the wrong update binary for the Xperia S.
Take the META-INF folder from my rom or r-ikfoot's rom and edit the update script.
Good luck
Sent from my LT26i using XDA
Click to expand...
Click to collapse
I made these additions to your updater-script and it worked!
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
Code:
run_program("/sbin/busybox", "umount", "/data");
Now all I have to figure out is how to change default wallpaper and browser home page/bookmarks. Current home page is some Telenor website.
mikbe said:
Current home page is some Telenor website.
Click to expand...
Click to collapse
Yeah hahah..thats my operator in Norway xD
Sent from my LT26i using xda premium
I decided to find unbranded base to work with but which is the fastest?
krabappel2548 do you have an opinion on this one?
E: Nevermind I'm already downloading the CE firmware. Sounds good.
Hi ! Nice thread.
I want to know, what can I do for generating a correct / working update-binary from roms ? (without using from existing custom roms)
thanks in advance

I made my first flashable ROM but phone gets into boot loop

Hi everybody! I'm struggling to make this work but after some hours I'm done! I need halp
I made a flashable zip (420mb) of my aosp themed rom that i want for personal use but when I flashed it the phone got into bootloop...
what's symlink? how do I make it work?
(It's for my MK16, I sold the SK17 some days ago but i was developing a custom rom so i now work with the pro)
Thanks for any advice
This is the updater script:
show_progress(0.1, 0);
ui_print(" ");
ui_print("AOSP Style");
format("MTD", "system");
format("MTD", "cache");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
show_progress(1.2, 83);
package_extract_dir("system", "/system");
show_progress(0.14, 3);
package_extract_dir("data", "/data");
set_progress(0.700000);
unmount("/system");
unmount("/data");
show_progress(1, 0);
ui_print("");
You need symlinking and set_perm ...
Just use any meta inf without aroma to flash it ( i assume you know that, so wont be explaining clearly) .. make sure all files are right
Sent from my WT19i
It's the wrong section...so I'm gonna PM u the reply to that question...
It worked
But now I'm facing 2 bugs:
*On the power menu there's only a power off option
*Physical home button doesn't work
Attached is the script If someone can see what's missing
Thanks to BRAiNCHiLD95 and everyone!
cachanilla86 said:
It worked
But now I'm facing 2 bugs:
*On the power menu there's only a power off option
*Physical home button doesn't work
Attached is the script If someone can see what's missing
Thanks to BRAiNCHiLD95 and everyone!
Click to expand...
Click to collapse
You removed readytorun.apk from system/app ? If yes, then add that app back to your Rom and flash again. script is okay.
Sent from my ST15i using xda app-developers app
cachanilla86 said:
It worked
But now I'm facing 2 bugs:
*On the power menu there's only a power off option
*Physical home button doesn't work
Attached is the script If someone can see what's missing
Thanks to BRAiNCHiLD95 and everyone!
Click to expand...
Click to collapse
script is perfect....home button is a problem in many AOSP roms..when u press it 2-3 times it works right?
Try this:
Setings->Developer Options -> Force GPU Rendering..
about the power menu:
check out this mod: http://forum.xda-developers.com/showthread.php?t=1391348
Hope i could help!
PS: Hit Thanks if i did!
---------- Post added at 02:20 PM ---------- Previous post was at 02:18 PM ----------
gouthamthemostwanted said:
You removed readytorun.apk from system/app ? If yes, then add that app back to your Rom and flash again. script is okay.
Sent from my ST15i using xda app-developers app
Click to expand...
Click to collapse
bro that is the sync app for exchange services...what does that have to do with home button/power menu??
I thought the same but removing readytorun.apk I faced the same proble as op. Maybe it has to register first for the first boot or something .
It's worth a try.
Sent from my ST15i using xda app-developers app

Easy Root

Download https://www.dropbox.com/s/2yoxhfzq3sm21aj/Root-i8190-Signed.zip
Paste in the root of sd card.
Go to recovery
Select install update from sd card (or like that)
Install zip
Reboot
I AM NOT RESPONSIBLE FOR ANY DAMAGE
BIG THANKS TO Deadly, for generous support, tutorials and overall help. I will always remember that
Highly unlikely.
This is for a different device and for gingerbread.
(it's my previous device btw)
I tried this root method: http://forum.xda-developers.com/showthread.php?t=1886460
but it also failed...
I'am trying to come up with root as we speak with the help of my friend Deadly.
ppero196 said:
I'am trying to come up with root as we speak with the help of my friend Deadly.
Click to expand...
Click to collapse
wow! good luck mates!
Ok guys, its here
Download http://db.tt/64EnEhCV
Paste in the root of sd card.
Go to recovery
Select install update from sd card (or like that)
Install zip
Reboot
In theory it should work. It almost imposible to brick with wrong mounting of partitions, but to be sure I AM NOT RESPONSIBLE if you manage to brick it.
No one?
Sent from my GT-I8190 using xda app-developers app
ppero196 said:
No one?
Sent from my GT-I8190 using xda app-developers app
Click to expand...
Click to collapse
I think evrybody here are rooted, so lets wait for some new members..
Пратено со Tapatalk 2 од мојот SGSIII mini
vonuzu said:
I think evrybody here are rooted, so lets wait for some new members..
Пратено со Tapatalk 2 од мојот SGSIII mini
Click to expand...
Click to collapse
Yeah.
Sent from my GT-I8190 using xda app-developers app
Pumping this thread, maybe someone (more courageous than me) is willing to give this a try!
quendil said:
Pumping this thread, maybe someone (more courageous than me) is willing to give this a try!
Click to expand...
Click to collapse
I feel ya mate, I really don't feel like doing something that hasn't been tested yet.
ppero196 said:
Ok guys, its here
Download http://db.tt/64EnEhCV
Paste in the root of sd card.
Go to recovery
Select install update from sd card (or like that)
Install zip
Reboot
In theory it should work. It almost imposible to brick with wrong mounting of partitions, but to be sure I AM NOT RESPONSIBLE if you manage to brick it.
Click to expand...
Click to collapse
putting the phone in recovery with rom tools with root access from blackmart ou google play, and then install the zip update doesnt work... needs to be signed by samsung. i already tried that with a custom rom i made and tried to flash it that way, CWM in recovery...
infected_ said:
putting the phone in recovery with rom tools with root access from blackmart ou google play, and then install the zip update doesnt work... needs to be signed by samsung. i already tried that with a custom rom i made and tried to flash it that way, CWM in recovery...
Click to expand...
Click to collapse
Thank You!
You just earned a :beer:
You 100% sure you tried this? Cause its signed..
ppero196 said:
Thank You!
You just earned a :beer:
You 100% sure you tried this? Cause its signed..
Click to expand...
Click to collapse
yes, I'm sure. tried different signers also.
infected_ said:
yes, I'm sure. tried different signers also.
Click to expand...
Click to collapse
Can you please tell what it said? Like any error or such? Usually something will be shown if it didn't work.. that would give a clue..
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
Deadly. said:
Can you please tell what it said? Like any error or such? Usually something will be shown if it didn't work.. that would give a clue..
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
Click to expand...
Click to collapse
says "signature bla bla bla"... sorry can remember now exactly.
This is the updater script for my previous device i9001 (the one that was set as an example in the first post:
-----------------------------------------------------------------------------------------------
ui_print("***********************************************");
ui_print(" ROOT Superuser.apk & su for I9001 only! ");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:xbin/su permissions to 6755...");
set_perm(0, 0, 06755, "/system/xbin/su");
set_progress(0.500000);
ui_print(" Setting SYSTEM:app/Superuser.apk permissions to 644...");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
-----------------------------------------------------------------------------------------------
Now, i'm no expert, but if we know how to change the: "mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");" line shouldnt wew be able to make a root zip for our device as well?
quendil said:
This is the updater script for my previous device i9001 (the one that was set as an example in the first post:
Now, i'm no expert, but if we know how to change the: "mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");" line shouldnt wew be able to make a root zip for our device as well?
Click to expand...
Click to collapse
Yup... I figured out its this
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system" );
But I'm not sure on update binary.. we need a update binary which was used with job roms... anyone has a jb rom zip of other devices of Samsung ?
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
Deadly. said:
Yup... I figured out its this
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system" );
But I'm not sure on update binary.. we need a update binary which was used with job roms... anyone has a jb rom zip of other devices of Samsung ?
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
Click to expand...
Click to collapse
What if we use the superuser.apk and binary from the zip files from the superuser site:
http://androidsu.com/superuser/
It's supposed to work up to 4.1
quendil said:
What if we use the superuser.apk and binary from the zip files from the superuser site:
http://androidsu.com/superuser/
It's supposed to work up to 4.1
Click to expand...
Click to collapse
That's not what causing problems.. that's what everyone uses... we need a working binary afaik
Does anyone know a jb rooting zip file of other device? I can try with it..
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
I found this (attached) which was the SimpleRoot for the 4.1 Nexus S device.
Hope it helps.

Error cwm status 6

So, I'm trying to port MIUI V4 to p769, but when I flash it it says "Error status 6"
I know that this problem is on build.prop, but I'm not developer, and I want to know what's the problem
(I'm noob, and I can't post links, so delete spaces)
dl .dropboxusercontent.com /u/49865447/Rom.txt
dxco said:
So, I'm trying to port MIUI V4 to p769, but when I flash it it says "Error status 6"
I know that this problem is on build.prop, but I'm not developer, and I want to know what's the problem
(I'm noob, and I can't post links, so delete spaces)
dl .dropboxusercontent.com /u/49865447/Rom.txt
Click to expand...
Click to collapse
post your updater-script and what recovery you are using
Lelus said:
post your updater-script and what recovery you are using
Click to expand...
Click to collapse
https:// dl.dropboxusercontent .com/u/49865447/updater-script
CWM 6
dxco said:
https:// dl.dropboxusercontent .com/u/49865447/updater-script
CWM 6
Click to expand...
Click to collapse
looks like wrong mount points in updater-script
system should be mmcblk0p10 , boot mmcblk0p3 , etc...
http://forum.xda-developers.com/showthread.php?t=2173613
Lelus said:
looks like wrong mount points in updater-script
system should be mmcblk0p10 , boot mmcblk0p3 , etc...
http://forum.xda-developers.com/showthread.php?t=2173613
Click to expand...
Click to collapse
Thanks Lelus! But like I said, I'm a noob on this, I searched but I can't understand where I have to put that, I'd appreciate that you could explain me how to do it
dxco said:
Thanks Lelus! But like I said, I'm a noob on this, I searched but I can't understand where I have to put that, I'd appreciate that you could explain me how to do it
Click to expand...
Click to collapse
Please try to download L9 flashable patch/rom, unzip it and see what is the right thing to do in updater script.
artit said:
Please try to download L9 flashable patch/rom, unzip it and see what is the right thing to do in updater script.
Click to expand...
Click to collapse
Thanks a lot! I just did it, now, like I was expecting, I have Status 7
format () expects 5 args, got 4
I'm going to search, but if you have an idea, is welcome
dxco said:
Thanks a lot! I just did it, now, like I was expecting, I have Status 7
format () expects 5 args, got 4
I'm going to search, but if you have an idea, is welcome
Click to expand...
Click to collapse
This is what format and mount should be
Code:
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");

Categories

Resources