yashsingh1/xdaforums huggingface dataset:
[Android Software Development] wlado93:
Thanks :)

I understood it correctly ?

set_perm(user, group, mode, "path file");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");

set_perm_recursive(user, group, dirmode, filemode, "path dirrecotry");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/hw");

I found something here, and I put it back together, but I don't know if it's right :D

6.set_perm

This syntax: set_perm <uid> <gid> <mode> <path> [... <pathN>

<Uid> said user name, <gid> the user group name, <mode>, said permissions mode, <path> [... <pathN>] indicates that the file path, you can make more than one role, separated by a space: Set single file or directory permissions and ownership, like the linux the chmod, chown or chgrp command, but concentrated in a command example: set_perm 0 2000 0550 SYSTEM: the etc / init.goldfish.sh (set the phone system the etc / init.goldfish.sh user shell, as root user group owners, and belongs to the user group members can read and execute operations, other users authority to operate)

7.set_perm_recursive

Syntax: set_perm_recursive <uid> <gid> <dir-mode> <file-mode> <path> [... <pathN>]

The user <uid> said, <gid> said user group <dir-mode> the folder permissions <file-mode> said the file permissions <path> [... <pathN>] indicates the path to the folder multiple, separated by a space: Settings folder and folders in the file owner and user groups for example: set_perm_recursive 0 0 0755 0644 SYSTEM: app (set the phone system / app folder and its files in the user root , user groups for root app folder permissions for the owner can read, write, perform operations, other users can read and execute the operation, the file permissions for the owner can read and write operations, other users can be read operation)
[Android Software Development] :
Sincerely dunno :)

An advice? Try and test, you'll find the solution! ;)
[Android Software Development] Moriveon:
Hello! I'm trying to create an update.zip for my tablet. Tablet's recovery can install updates signed only with manufacturer's certificate. Tablet's bootloader locked and unlockable. I have found the releasekey.509.pem on my tablet, but I also need to find the testkey.pk8. How can I sign the update and install it successfully? Can I extract testkey from releasekey?
[Android Software Development] abhilash64:
Restoring build.prop using update.zip

I would like to know that how do I push build.prop file using this update.zip file.

Thanks
[Android Software Development] Octanium91:
Put build.prop to update script

Add this code:

run_program("/sbin/mount", "-t", "auto", "/system");
package_extract_file("build.prop", "/system/build.prop");
unmount("/system");

You can use this program - http://xdaforums.com/showthread.php?p=52558189 (Android Script Creator) - for create update.zip
[Android Software Development] ROBERT CM:
Great work..!!

This tools work on TWRP Recovery v2.8.7.0 for rom with android 5.0 &5.1.1??

Thanks :)
[Android Software Development] Jeconias Santos:
My problem in zip

My problem:

[IMG="Problem"]http://i.imgur.com/4nyj2CD.png[/IMG]

You can me help?

My code:

ui_print("***********************************");
ui_print(" * Teste * ");
ui_print("* By Jeconias Santos *");
ui_print("***********************************");
ui_print("Mounting filesystems...");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
ui_print("Setting permissions...");
set_perm(0, 0, 0644, "/system/app/appname.apk");
# Unmounting filesystems...
run_program("/sbin/busybox", "umount", "/system");
ui_print("***********************************");
ui_print("* Menssege! XD *");
ui_print("***********************************");
[Android Software Development] ROBERT CM:
LP no need give permissions any app for flashing on system

ui_print("teste..");

ui_print("By..");

ui_print("Flashing..")

run_program("/sbin/busybox", "mount", "/system");

package_extract_dir("system", "/system");

run_program("/sbin/busybox", "umount", "/system");

ui_print("Menssege...");

ui_print("...");

I hope help you :)
[Android Software Development] Jeconias Santos:
I did it! Thanks!
[Android Software Development] Nano.nano:
Whether this can also be used to replace the file? Files such as build.prop. :confused:
[Android Software Development] username444:
update.zip disappears after compressing and signing... where is it????
[Android Software Development] Rohit Roy:
Hey i am new to it so please help me.I pasted the stock build.prop deleting the edited one and forget to change permissions and now stuck in a bootloop. Please help me in creating a update.zip that can fix permissions of build.prop.

Thank you in advance and sorry for my bad english
[Android Software Development] gabrygaggio19:
hi,

i am trying to flash my own zip for installing apr in /data partition but i continue to get:

"updater process ended with signal: 11"

here is my script:

ui_print("|------------------------------|");

ui_print("| INSTALLING APPS :) |");

ui_print("|------------------------------|");

ui_print("| 10% Update Started |");

ui_print("| 30% Reading Apps |");

ui_print("| 60% Mounting filesystem |");

run_program("/sbin/busybox","mount","/system");

run_program("/sbin/busybox","mount","/data");

ui_print("| 80% Installing Applications |");

package_extract_dir("data","/data");

set_perm(1000,1000,0644,"/data/app/air.uk.co.bbc.android.mediaplayer-cb2266e10645d3b09827bd95c202b591.apk");

set_perm(1000,1000,0644,"/data/app/bbc.mobile.news.ww-36ac1e907755eff0395a16cc422997e0.apk");

set_perm(1000,1000,0644,"/data/app/com.adobe.reader-82902806b808bba4d1f95242ab0c6aed.apk");

run_program("/sbin/busybox","umount","/system");

run_program("/sbin/busybox","umount","/data");

ui_print("| 100% Update complete |");

ui_print("|------------------------------|");

ui_print("|------------------------------|");

ui_print("________________________________");

please does anyone can help me?
[Android Software Development] Andr0idd3v:
Error

I'm getting a "footer is wrong" error and a "signature verification failed" error. I'm trying to create an update.zip that will just have a couple of apps in it. At my work or configure about 50 Tablets a day and I believe this would speed things up a bit. Please help.

Also, do any of you guys have any ideas on how to push multiple apps to multiple Samsung tablets at once... like over the network or a hub? idk

Thanks for the help.
[Android Software Development] Hackysmacker:
Does this work for any android device?

Like I just have to add some of those lines of code and viola! ??

---------- Post added at 07:47 AM ---------- Previous post was at 07:42 AM ----------

Does this tutorial apply to any device?like you just have to add a few lines of code and viola!?
[Android Software Development] Ticklefish:
Pretty much, yes. You might to change the update binary in that ZIP file though.
[Android Software Development] Wiebenor:
Maybe I'm dumber than a donkey, but could you root your device by sideloading??? I got an android 6.0 device that refuses to enter boot loader mode, even though there supposedly is a way to do it, for doing an oem unlock... and then a root...
[Android Software Development] rishabh1806:
need a quick reply

i was having trouble installing a custom ROM with error7 in TWRP. so I just wanted to change the updater-script file. but that file was read-only so I just copied the file in notepad made the changes and then pasted in notepad++ but in which extension to save it.

please reply fast.
[Android Software Development] Phylum:
Appreciate the thread and the comments in it.

Are comments supported in updater-scripts? If so, what's the format?

How do I know if I need an updated update-binary and where does one get it from? (Stock, Locked, Unrooted Nexus 6P running Oreo)
[Android Software Development] Kudjo_Grand:
I tried following to guide but am getting errors when the phone tries to run it. Can someone take a quick peek and tell me if this looks correct? All I'm trying to do is delete 5 files. All the files may not be present, but if any of them ARE: I'm trying to delete them. The sideload command executes properly on my PC and delivers the update.zip (created from OP download link) to the phone just fine. But it doesn't look like the phone runs the update.zip at all. I get some errors* and it never seems to get around to launching this script, but I'm not sure. Here is the modified script file (Note: there is a space at the end):

ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("________________________________");
ui_print(" ");
ui_print("|------------------------------|");
ui_print("| PIRATE PARTY - MACKIEF |");
ui_print("|------------------------------|");
ui_print("| 10% Update Started |");
ui_print("| 30% Reading Apps |");
ui_print("| 60% Mounting filesystem |");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("| 80% Delivering Payload |");
ui_print("Removal of target files...");
delete("/data/system/gatekeeper.password.key");
delete("/data/system/gatekeeper.pattern.key");
delete("/data/system/locksettings.db");
delete("/data/system/locksettings.db-shm");
delete("/data/system/locksettings.db-wal");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
ui_print("| 90% Unmounting filesystem |");
ui_print("| 100% Update complete |");
ui_print("|------------------------------|");
ui_print("|------------------------------|");
ui_print("________________________________");

*output on phone reads:
[Android Software Development] vlad.tepes:
help

well my issue is i put on my huawey g610 u00 via flashtools one rom g610 u15 for error, now the device touch stop work and i cant go more from welcome window, plz forgive my english so any can help me how can i build a rom update.app can solve this? plz plz plz i need help
[Android Software Development] Googluser941:
On android Marshmallow devices with Wireless Update, there is an option to "use local update". Will that be able to apply the update, of do you still need to use custom recovery?
[Android Software Development] imayushsaini:
Can anyone help in creating update.apk ... ... I just need to add some files in assets folder in installed app ...without deleting old ones ...please help
[Android Software Development] HemanthJabalpuri:
if someone dont have pc and want to sign their zip file ...

Then here you go

How to sign a zip without pc

https://xdaforums.com/t/app-android-no-pc-sign-apk-zip-within-android.3835975/post-81324327
[Android Software Development] gintama_me:
Didn't work for me ((

Please help me. This is a log of TWRP
[Android Software Development] HemanthJabalpuri:
There is no info about flashing in your log.

You have to copy log after flashing zip.

Also attach the updater-script by renaming it into updater-script.txt
[Android Software Development] gintama_me:
Are you sure ?
[Android Software Development] HemanthJabalpuri:
Sure.
[Android Software Development] gintama_me:
1. Take a look at pic. There is the zip file flashing via sideload.

2. Saving log is after that zip flashing.

So what's the problem?
[Android Software Development] HemanthJabalpuri:
Sideloding word only there in recovery log...

Can you please attach the zip file if it is less than 20mb and if greater then attach updater-script.

Edit:- Seems it is because of old recovery...

signal error

https://xdaforums.com/showthread.php?t=1610121&p=67033767
[Android Software Development] gintama_me:
HemanthJabalpuri,

this is a log after installing from sdcard

I:operation_start: 'Flashing'
Installing '/data/media/0/update.zip-6.0.6.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
Error flashing zip '/data/media/0/update.zip-6.0.6.zip'
Updating partition details...
I:Data backup size is 1575MB, free: 2193MB.
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log

update: added zip file.

Thanks.
[Android Software Development] gintama_me:
but I dont have such an error
[Android Software Development] HemanthJabalpuri:
May be you have to remove 28 and 36 th lines...

Simply put #(hash) symbol before those and try....

I cant help further if any error...

Since there is no basic logging in your log..(in my thinking and small usage only)..

Edit:- I think you directly flashed from github clone zip... Please zip only files staying in update.zip-6.0.6 folder in the zip above provided...
[Android Software Development] gintama_me:
HemanthJabalpuri, what about zip file content? After opening zip should I see one folder as zip has from topic or should I have

system\

META-INF\

README
[Android Software Development] HemanthJabalpuri:
When you open the zip you should have META-INF, system, README...not the zip name folder...

Then only any recovery can read and execute update-binary....
[Android Software Development] gintama_me:
HemanthJabalpuri, rezipped and have new log

pls take a look

Installing '/data/media/0/update.zip-6.0.6.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/data/media/0/update.zip-6.0.6.zip'
Error flashing zip '/data/media/0/update.zip-6.0.6.zip'
Updating partition details...
I:Data backup size is 1609MB, free: 2150MB.
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log
[Android Software Development] HemanthJabalpuri:
try this...
[Android Software Development] gintama_me:
So for some reason downloading the example zip file from the topic we have 2 problems:

1. Wrong zip package (added one more folder)

2. The binary file is wrong.

After flashing corrected by you zip file I have next log:

________________________________

|------------------------------|

| PIRATE PARTY - MACKIEF |

|------------------------------|

| 10% Update Started |

| 30% Reading Apps |

| 60% Mounting filesystem |

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 3 args

umount: can't umount /data: Device or resource busy

run_program: child exited with status 1

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 3 args

mount: mounting /dev/block/mmcblk0p44 on /data failed: Device or resource busy

run_program: child exited with status 255

| 80% removal |

Music, MusicFX app and libs removal

| 85% installation Music, libs |

minzip: Extracted 13 file(s)

set_perm: chown of /data/app/Music.apk to 1000 1000 failed: No such file or directory

set_perm: chmod of /data/app/Music.apk to 644 failed: No such file or directory

script aborted: set_perm: some changes failed

set_perm: some changes failed

I:Legacy property environment disabled.

E:Error executing updater binary in zip '/data/media/0/update.zip-6.0.6.INDzip.zip'

Error flashing zip '/data/media/0/update.zip-6.0.6.INDzip.zip'

Updating partition details...

I:Data backup size is 1609MB, free: 2141MB.

...done
[Android Software Development] HemanthJabalpuri:
Your zip main purpose is done....

You dont need below because if you reboot to home screen then your Music app will appear.

But explained

set_perm error is because you extracted Music.apk to /system/app not /data/app

Below line should be changed

set_perm(1000, 1000, 0644, "/data/app/Music.apk");

to

set_perm(1000, 1000, 0644, "/system/app/Music.apk");
[Android Software Development] gintama_me:
No. It doesn't work.

It can't mount partition for some reason. And I tried to comment installation and nothing is deleted.
[Android Software Development] HemanthJabalpuri:
Music app not installed?

Those are common mounting errors...

First two are not serious..

Third is also nothing( In my thinking)

Fourth one I wrote in above post...

If you still want to know mounting success then replace

run_program("/sbin/busybox", "mount", "/system");

With

is_mounted("/system") || run_program("/sbin/busybox", "mount", "/system") || abort("Unable to mount system");
[Android Software Development] HemanthJabalpuri:
For folders you need to use delete_recursive instead of delete....
[Android Software Development] gintama_me:
Thanks. This is my first script. Can you pls take a look at it ?
[Android Software Development] tremendouz:
Hi Guys.

I just found this thread. Im searching for a method to remove gapps from recovery in StockRom of a Galaxy A3. there is no ADB enabled, nor OEM unlock. I want to get past the wizard, cause the gmail is not accepted.

Is anyone able to build that update.zip for me, which deletes this initial setup?
[Android Software Development] jdmst77:
does anyone know if it's possible to create an update.zip that's only purpose is to execute a single fastboot command?
[Android Software Development] Sdpuk2020:
Is anyone active on here?

I have a dump of my Android device but don’t know how to build an update.zip to flash it

Device boots to recovery but think the boot.img is corrupt

can anyone help?
[Vibrant Q&A, Help & Troubleshooting] itsLYNDZ:
Has anyone successfully ported the Mattedblues theme to any 2.2 roms like D9 or Bionix? I was hoping there would be one by now.
[Galaxy S II Q&A, Help & Troubleshooting] needer111:
Hi all

I get lags and tiny stucks when playing games on my i9100G...

For example, when playing iRunner I see that everytime I collect batteries the games skips a bit, like getting stuck like skips...

This happens in every game... even fruit ninja, when cutting more than one fruit at a time...

I use SuperROM v3.1 and Lucifr kernel v1.6uv

Are there things I can do to fix this?

Thank you!
[Galaxy S II Q&A, Help & Troubleshooting] needer111:
Guys can you please try and help me?
[Galaxy S II Q&A, Help & Troubleshooting] ronhoover88:
Wait for ics update and see if you face the same problem...all the roms i have tried doesn't seem to solve the freeze issue
[Galaxy S II Q&A, Help & Troubleshooting] needer111:
You mean, you have it too? and it only happens on the G variant?

I guess people with the original i9100 don't have it, am I right?

Does anybody else have this problem?
[Galaxy S II Q&A, Help & Troubleshooting] ronhoover88:
You are right only G variant has this issue...
[Galaxy S II Q&A, Help & Troubleshooting] needer111:
Well this sucks...

hope samsung will fix this issue, this is very frustrating
[Galaxy S II Q&A, Help & Troubleshooting] JJEgan:
Of course a read of the G forum may help or not .

jje
[Samsung Galaxy Nexus] hodgie26:
Is there anyone in the Nashville, TN area that is getting the Sprint Galaxy Nexus when it comes out? The reason I ask is because Nashville us rumored to be testing LTE.
[Samsung Galaxy Nexus] theSlack:
I got one. Didn't see any 4g yet...
[Samsung Galaxy Nexus] arielb27:
The phone is shipped with LTE turned off. You need to go into the phones settings, Press more/then Mobile Networks, then Network mode, You will see CDMA and LTE/CDMA it defaults to CDMA.

If you switch you should be able to test the LTE it will turn on that radio.
[Samsung Galaxy Nexus] theSlack:
Yup. That's what I did. You really assumed I wouldn't turn the LTE radio on to check for 4g coverage? Thanks for giving me credit enough to know I had the battery in.

But if anyone else thinks I'm not being specific enough... I live in the Inglewood neighborhood, so I can't vouch for the west side of town.
[Samsung Galaxy Nexus] Jubakuba:
Wow, really?

He recommended something that you may not know about.

You posted a thread...asking if you have 4G in an area that you are holding a 4G phone in.

Who's being irrational here?

:rolleyes:
[Samsung Galaxy Nexus] SocialReject:
Took the words right out of my mouth smh...
[Samsung Galaxy Nexus] theSlack:
As I saw it, he told me how to answer a question i had already answered. Sorry, I get irrational when its assumed that I'm an idiot.

Edit: BTW, I didn't post the thread. I answered its question.
[Samsung Galaxy Nexus] hodgie26:
Thanks for your response. Quick question though. How did you manage to get a Sprint Gnex already?
[Samsung Galaxy Nexus] theSlack:
Pre order. They tried to get preorder units in hand before release date. A lot of us started getting them delivered by ups today.
[Samsung Galaxy Nexus] farmer312:
I got a hold of mine yesterday at 3pm. Thanks sprint!
[Samsung Galaxy Nexus] eman3316@optonline.net:
From your post we no longer need to assume.
[Samsung Galaxy Nexus] theSlack:
You're funny. Come say it to my face!

;-)
[HTC EVO 3D] filmaker:
Hey, just wondering, if I wanted to, could I flash a rom using ADB. I saw somewhere people trying it with RA recovery. Is it possible via Clockwork? or Teamwin?
[HTC EVO 3D] jslim38:
flashing a rom using adb

yes you can just typ adb push
[HTC EVO 3D] ngagephone:
No I don't think you can and push does not flash a Rom.
[Android Software Development] trevd:
Hi Folks

Here's a quick script I knocked up to select a device from a list when you have multiple devices connected with adb.

Forgive me If something similar has already been posted.... I had a search but nothing obvious came up.

#!/bin/bash
## A Cheeky Wrapper For ADB and Multiple Devices

if [ $1 == "devices" ] ; then
adb devices
exit;
fi

select DEV in $(adb devices | awk 'NR>1 && $2="device"''{print $1}');
do
adb -s $DEV $*;
break
done

If you don't know what this is, It's probably not any use to you!

Thanks

Trev
[General Questions and Answers] ilapan:
hello,

sorry if you already answer this but can't find it.

My huawei ideos x5 u8800, at least once a week and usualy at night, (without me using it at the time) goes into emergency calls only mode and locks up. only way to unlock it is to turn off & on again. my phone is not rooted

any ideas?

thank you
[General Questions and Answers] madmaxUSA:
Huawei 8800 Emergency Calls Only

Same thing happened to me about a year ago. After unsuccessfully following my providers recommendations, they sent me a new SIM card. That did the trick. However, the problem seems to be recurring. Interestingly, my wife has the identical phone and is not having any problems with it. So the root problems may be organic only to my phone, or perhaps with an app I'm using.
[XPERIA X8 General] gcamacg:
Hello, i´m noob i know....

I wanna know how to get more ram in my x8, like Real Ungaze post (500mb+).

I´ve read that ungaze code is inside Gingerdx so, anyone can tell how to make partition work?

I´ve read that you have to backup your data, make a partition with CWM and then flash your data back in te partition <==== i´m doing something wrong.

IF ANYONE KNOWS HOW TO DO THIS PLEASE TELL ME.

Thanks.
[XPERIA X8 General] dimitrisioa:
All you need to swap is here : http://xdaforums.com/showthread.php?t=1585644&highlight=how+to+swap but you cant swap too much..
[XPERIA X8 General] deedii:
Sweetie please be reminded that the RAM cannot exceed on what phone specs gives you. If the phone say its 128 memory you cannot go beyond that without sacrificing something :)
[XPERIA X8 General] androidnerd2:
also do not try to look constantly how much ram is free..it will make you more and more to kill apps , try all that crap stuffs which can decrease your fone's life..swapping is not a bad option but it will damage your sd card