yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Mini] asratxda:
Very well written tutorial !!!. Was very easy to understand.

...

@dheeraj (dhlalit11)

This script is called "edify" script. This is just a suggestion because you have not mentioned it in your tutorial.

...

...

Is it possible to set properties of "build.prop" file from updater-script?. From terminal we can use "setprop" command, is there similar command that can be used in the updater-script. Or may be some busybox command i.e "run_program(...)" ???
[Samsung Galaxy Mini] dheeraj (dhlalit11):
you will need to create a script then create its flashable zip in updater-script first extract it to /tmp, make it executable then run it through run program command
[Samsung Galaxy Mini] 2012katas:
awesome............
[Samsung Galaxy Mini] dheeraj (dhlalit11):
done editing

guys any fixing needed please reply
[Samsung Galaxy Mini] Harpratap:
What is the difference between mount("yaffs2", "MTD", "system", "/system"); and run_program("/sbin/busybox", "mount", "/dev/block/mmcblk0p2", "/data"); ??

I am getting an error - mount() expects 3 args. got 4

assert(getprop("ro.product.device") == "beni" || getprop("ro.build.product") == "beni" || getprop("ro.product.board") == "beni" ||
getprop("ro.product.device") == "GT-S5670" || getprop("ro.build.product") == "GT-S5670" || getprop("ro.product.board") == "GT-S5670");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
ui_print("Root for AOSP by harryhades");
ui_print("--------------------------------");
show_progress(0.100000, 0);
show_progress(0.500000, 0);
package_extract_dir("system", "/system");
set_perm(0, 0, 06755, "/system/xbin/sqlite3");
set_perm(0, 0, 06755, "/system/xbin/su-v1");
set_perm(0, 0, 06755, "/system/xbin/su-v2");
set_perm(0, 0, 06755, "/system/xbin/su-v3");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/sh");
set_perm(0, 0, 06755, "/system/xbin/busybox");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
#unmount("/system");

P.S: what permssion should be set for the superuser binaries?? i am confused between 06755 and 04755
[Samsung Galaxy Mini] sarvesh563:
Just remove it n at last '#' is used for command line!!
[Samsung Galaxy Mini] dheeraj (dhlalit11):
from the first command remove the yaffs2

that busybox mount command will mount /data

the permission should be 06755

and also remove those getprop lines they are useless
[Samsung Galaxy Mini] arpitkh96:
Please tell permissions for frameworkres.apk
[Samsung Galaxy Mini] dheeraj (dhlalit11):
think why I linked you to this thread

just because so you can see it yourself and learn from it

if I had to give you the answer I had given you in the thread you created

read the op then ask if you didn't get anything
[Samsung Galaxy Mini] arpitkh96:
I understood the command used for it. But I am not able to understand how you selected permissions . I have to set permissions rw-r-r . How you selected the no.s like 06755 etc..?
[Samsung Galaxy Mini] yackovsky:
you can find a lot of info about that on internet, just google "linux file permissions"
[Samsung Galaxy Mini] dheeraj (dhlalit11):
I don't know myself how these numbers work but it will give you correct working permission just try to use that command

and some chances are of that the file is not edited properly
[Samsung Galaxy Mini] arsradu:
One of the best tutorials I've read so far! Congrats!

A few things I would like to mention:

"set_perm(0, 0, 06755, "/system/xbin/su");"

I think you got an unnecessary "6" in the permission code for this command. I suppose it should have been 755 or 0755 (4 digits). :P From my experience, you should set permission 0755 for folders and 0644 for files. But I could be veeeery wrong, so don't count my word for this. If you want to try my word, try it, but don't blame me if it doesn't work. I'm still in a very low stage in learning.

What about that damn "update-binary" script? Can I use any "update-binary" from any flashable zip for any other flashable zip no matter of the content? From what I could see, the size is not the same between different "update-binary" files so I suppose they are not the same in content. I can't open one anyway cause it appears to be encoded/encrypted.

I'm trying to flash a kernel. I got the folders structure, I got the boot.img, so basically all I need is that "update-binary" and I'm ready to go.

Also, can anyone of you guys tell me how can I sign my own flashable zip? Can you even sign a zip? Cause from my experience, you only need to sign apk files, not zips.

Sorry for the stupid questions. I'm trying to learn as much as I can, as fast as I can. But right now I'm struggling to understand these things I mentioned above. Can anyone of you guys help me in this,please?
[Samsung Galaxy Mini] dheeraj (dhlalit11):
signing is not at all required by the cwmr but you can sign you flash able zip with and app called zip signer

you can use any update-binary meant for armv6 devices or if you have armv7 device you should choose armv7 compatible binary

you cannot open it as it is compiled in c type languages

you can only execute it

take update-binary out of any rom related to the device you own

I don't know much about the permission code but the one mentioned is required to make a binary executable
[Samsung Galaxy Mini] arsradu:
Thank you very much, dheeraj. :) I successfully flashed the kernel to my phone.

Now, about editing.. I use Notepad++ in Windows and I want to arrange the code lines for easy reading without making it unusable by adding a brake line (Enter). How do I do that?

I want to be able to write, for example:

ui_print("-> Mounting /system...");

mount("yaffs2", "MTD", "system", "/system");

set_progress(0.100000);

ui_print("-> System partition mounted successfully!");

But to make the code look like this I would have to press the Enter key on my keyboard which will enter brake lines, which will make the code unreadable for CWM (will display status 6 - syntax error -) So, how to have a nice layout of the code without making it unusable?

About the permissions, indeed, 755 or 0755 is the command to make a file executable, but you wrote 0(6)755 which I believe will cause some errors. For as far as I know, but again, I might be wrong, it's either 0755 or 0644, but not 06755 or 07544. :)
[Samsung Galaxy Mini] dheeraj (dhlalit11):
if you are using notepad++ line break would not be changed don't worry

wanna make script look more better then just put a # after every line

and the permission command is not wrong it is tested
[Samsung Galaxy Mini] A_U:
hey dheeraj..i believe u can change the guide a bit..our file system is different [EMMC] so u can change the below code to ours..

mount("yaffs2", "MTD", "system", "/system");

to

mount("ext4", "EMMC", "/dev/block/stl12", "/system");
[Samsung Galaxy Mini] dheeraj (dhlalit11):
thanks for the tip done that
[Samsung Galaxy Mini] arsradu:
Hello, dheeraj

Thank you very much for your answer. Unfortunately, a code written in Notepad++ with break lines, cannot be ran in CWM. I will try some more but..it simply will not run. It will display a syntax error. I tried jEdit which apparently works (I can put break lines in code to be easier to read and edit, and the code will still run ok in CWM). But it makes a temporary file in the folder I work with, which is annoying since it doesn't seem to be automatically deleted after I close the program. And I don't want a temporary file in my flashable zip. I'm looking for a better solution for Windows than simply editing the code in Linux, which has absolutely no problem with scripting languages :)
[Samsung Galaxy Mini] dheeraj (dhlalit11):
there must be an option to choose line break code in that option you can choose lf which is for linux
[Samsung Galaxy Mini] arsradu:
There is indeed an option for that in Notepad++.

It's located in Settings->Preferences->New Document/Default Directory tab->New Document section on that tab->select Unix/OSX.

After that, all your new documents will be written like this. If you have an old script, just copy-paste it entirely into a new script. The breaklines will be rewritten with the correct line break codes.

Also found out that, Windows systems use two characters to put a break line: CR and LF.

Linux systems, use only LF. And Mac Systems, probably only the old ones, use only CR.

CR=Carriage Return

LF=Line Feed.

So, in order to write a script for CWM, it should never contain CR, otherwise you will be getting a syntax error (status 6).

Thank you very much for your help and for the tutorial! :)
[Samsung Galaxy Mini] cyber-x:
based on your tutorial, so we don't change anything in "update-binary" file?
[Samsung Galaxy Mini] Jeeko:
great!!
[Samsung Galaxy Mini] fikrifools:
can you explain the detail about permission number? if i set on rootex rwsrwxr-x , the number on updater-script is?

i know R:4 - W:2 - X:1, but if i add setUID or GID, i dont understand there's number :confused:

and if rw-r--r is 0, 0, 0644 what the meaning the number 0, 0, ?

thankyou before, and sorry with my bad english hehehe :)
[Samsung Galaxy Mini] mushroom5596:
really help me a lot thanks :victory:
[Samsung Galaxy Mini] XDRdaniel:
soo.... where do i get update_binary?

i must create it?
[Samsung Galaxy Mini] genieass:
Hexadecimal notation for file permissions. Please search net for meaning. If you use a linux machine, try the command "man chmod"

Edit :- try this.

http://www.redhat.com/mirrors/LDP/LDP/GNU-Linux-Tools-Summary/html/file-permissions.html
[Samsung Galaxy Mini] dheeraj (dhlalit11):
Armv6 and armv7 both have different update-binary

You can get one from the phone's any flashable zip file (any rom, mod etc.)
[Samsung Galaxy Mini] rudisans:
Nice tut
[Samsung Galaxy Mini] chipdawg:
Where did you place the Meta-INF files? I know system files goto system/framework but I cant find where Meta-INF files go. I'm using a root file manager.
[Samsung Galaxy Mini] vlad1999:
what is update.zip ?

"just out of curiosity"
[Samsung Galaxy Mini] Eko De Brayenz:
nicee :)
[Samsung Galaxy Mini] olagovno:
nice

nice turtorial
[Samsung Galaxy Mini] jbliz:
:)

I preserved with this tutorial, great. Now it's easy to make update.zip for my cosrom. :victory:
[Samsung Galaxy Mini] AndroidGeek18:
Very Nice !

BUT how can i edit updater-script from an ext4 rom to work on my mt6572 ubifs :laugh: pleaaaaaaase :crying:

---------- Post added at 01:15 PM ---------- Previous post was at 01:06 PM ----------

Meta-Inf is a folder that comes out from a flashable zip. It is not located on system/framework. :o
[Samsung Galaxy Mini] Kroekel:
Can somebody help me to modify the update-scipt with patches for my Acer A1-724?

The update-script is to big for me to understand.
[HTC One X] nearlygod:
Hi,

i´d like to switch off GSM at times and leave another radio on.

eg. If i go on a hike for a few days i want gsm and data to be switched off, as i´m off coverage most of the time anyway and i realyy need to preserve my poor battery life. So the only thing that i want to switch on at times is the gps.

Sometimes i want just wifi to be switched on and everything else off.

Winmo did it and the iPhone did with iOS4.

Can Android and the HOX do it?

thx a LOT, nearly
[HTC One X] treebill:
Turn on airplane mode, that turns it all off and you can still use WiFi just toggle it back on. As for GPS I believe you will need mobile data on Sewell.
[HTC One X] xmoo:
Nope, GPS works with data off. Tested it while driving to Belgium.
[HTC One X] nearlygod:
perfect guys, thanks a lot.

Funny airplane mode btw.

Nearly
[HTC One X] treebill:
I don't use GPS Ty for clearing that up.

Your wecome :)
[G2 and Desire Z General] MarkyG82:
There are alot of devices coming out in the next few months along with WP8 later in the year ( and maybe android5?). As its well known that WP will/should run on the same chipsets as android and vice versa, whats to stop the manufacturers releasing android and WP versions of the same device? Im not talking about the ability to jump between the two as there are issues with open source vs closed source etc. but surely it would be cheaper to produce, provide a more standard real estate for app creation across platforms and give a final answer as to performance comparisons.

Granted that last one would produce its own battles but the other reasons (and more respectively) represent quite a heavy argument for this to happen.

The only reason I can think of not to, is button layout.
[G2 and Desire Z General] MarkyG82:
52 views and no responses. I must be really boring ;)
[G2 and Desire Z General] noneabove:
There was the HD2 which was a phone that unless I'm wrong could multi-boot in android and wp7. I think the reason for not using the same hardware (at least to date) is because the hardware used to change from one week to the next, no phone was ever on top for more than a couple weeks, so why would you make another phone on the same hardware?
[HTC Wildfire S] SargentRudy:
I have unlocked bootloader, rooted, and i am running simonssense 3.5 v2. It comes pre loaded with a2sdgui but im not sure how i can remove all the apps i dont want. Can anyone help me with this? And can someone tell me how to remove my original stock rom? Its taking up WAY too much space.

Thanks :)
[HTC Wildfire S] johnnyspritz:
You can use Link2SD to remove any apps you don't want, and link the ones you want to keep to your SD card, so they take up less space. Also, you can't remove a ROM, since that would make your phone useless. You can, however, flash a different ROM, the process for which has been described countless times on about fifty million threads and forums, and a guide for which is located in the index (you could use the guide for installing CM7, for example, to install any ROM you would like to, the process is identical for most ROMs). Also, a thread on what apps you can safely remove.
[HTC Wildfire S] Android311:
To get rid of the apps that you can't delete in the application settings you need to use a file manager like es file manager, astro or root explore, go to system/app and delete the apps you do not want, just becareful of what you delete ;) you do not want to delete an apk that your system needs. Hope this helps :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] taknil:
I would like to know it the HD2 supports USB on the go, meaning can it act as an USB Host, I'd like to try out this DSLR Controler App which looks quite nice

https://play.google.com/store/apps/details?id=com.dslr.dashboard

If anyone has experience with it (or the ADK for that matter), let me know.

If it is a ROM thing maybe point me to one that supports it
[HD2 Android Q&A, Help & Troubleshooting and Genera] bever86:
Yes the HD2 supports USB Host, I used it when I put Ubuntu on my phone.

I don't know if the Android Roms support it, but I'm sure some do.. You would have to look around for that :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] derschnelle:
USB Host is currently not working on android...

http://xdaforums.com/showthread.php?t=1459999&highlight=usb+host
[HD2 Android Q&A, Help & Troubleshooting and Genera] Thealshear:
Please update your info before posting in ics it is supported but we need a kernel and rick_1995 is working on it but it's a side project give him some time
[HD2 Android Q&A, Help & Troubleshooting and Genera] derschnelle:
Oh that's very nice to hear. But I only said, that it ain't working yet, I don't see something wrong about it!?
[HD2 Android Q&A, Help & Troubleshooting and Genera] taknil:
thanks for the quick info
[HD2 Android Q&A, Help & Troubleshooting and Genera] rjvisje:
is this already working in the meanwhile?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jasonlee0315:
Any progress here?

Any progress here?
[HD2 Android Q&A, Help & Troubleshooting and Genera] eL_ImmIgrAntÄ:
working...

Hi,

check out this thread posted earlier by 'derschnelle': http://xdaforums.com/showthread.php?t=1459999&highlight=usb+host

It is working now, for me atleast.

I tested it yesterday with Remote Release (USB) on my Canon EOS 7D and the HTC HD2/Leo (on CyanogenMOD9 nightlies) using a Y-USB-Cable (that came with my 2.5" external Harddisk).

However, there are two disadvantages:

1. you need a power source, like a pc, a socket with an adapter, ...

2. after applying the patch to android, the HD2 doesn't seem to charge while switched on. However, when it's switched off, it recharges. Kinda weird, will have to look into that.

cYa
[Android Q&A, Help & Troubleshooting] raoufn1984:
I have a sony xperia arc s and it is on official ICS

It can read and write arbic just fine , but some applications project the arabic words left to right

is there a fix

thanks
[Android Q&A, Help & Troubleshooting] ansariharrism:
I have the same problem in ICS custom ROMs. Any luck? :confused:
[Captivate Q&A, Help & Troubleshooting] SGT_Watkins:
So recently bought a 3500mah battery for my phone, and for about a month it was AWESOME. Now I'm having some issues with it.

I can have it on the charger all night but it never goes over 55-65%

Sometimes I can plug it in and it'll say charging but actually does nothing.

I've tried reflashing the teamhacksung's ICS hoping it would fix it, and it fixed the issue where it would connect to the computer but not charge, but the other issues are still there. I've cleared the battery stats, dalvik, did a full restore and just now I've put the original battery in to see how it's going to work with that. Any suggestions/known issues?
[Captivate Q&A, Help & Troubleshooting] SGT_Watkins:
Just an update, even after just a few minutes on the old battery it's already went from 51% to 62% charged. I'm beginning to think that maybe it's the 220v power here in Germany, or that I'm just using the stock charger and didn't get a new one with the new battery?
[Captivate Q&A, Help & Troubleshooting] SGT_Watkins:
Ugh, second update, on the charger it's gone DOWN to 59%, going to try to reboot and clear the battery stats again.
[Captivate Q&A, Help & Troubleshooting] bravomail:
Charging circuit might have blown capacitor or something. Time to get HTC One X (in lack of GS3).
[Captivate Q&A, Help & Troubleshooting] SGT_Watkins:
Unfortunately I'm stationed in Germany, and only for another year or so, so it's pointless for me to get a contract here (plus they're expensive) so I'll wait it out. I have a camera battery charger where you just line up the positive and the negative, and I was planning to just use that when I get home, swap out the batteries when I can.

Is there any 100% certain way to know if the capacitor is blown or if it's the rotation of the Earth and the moons gravitational pull with Jupiter or any other problems that could be causing it?
[Captivate Q&A, Help & Troubleshooting] bravomail:
If you can live with 50% charge, and otherwise things work - bigger battery should make it tolerable.

Get a cheap used phone on the market as a backup. In Europe there's big variety of them.
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
no longer before I rooted my Arc s and flashed the 2.3.4 to custom ICS but I regret now Can I flash the official ICS now?

BTW sorry for my bad English
[Xperia Arc Q&A, Help & Troubleshooting] Flo95:
Yeah, just use FlashTool to flash it (or normal update method if your bootloader is locked)
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
but when I try to relock bootloader It become error

Like this

03/023/2012 21:23:11 - INFO - Selected Xperia_Relock_bootloader.ftf

03/023/2012 21:23:11 - INFO - Preparing files for flashing

03/023/2012 21:23:11 - INFO - Please connect your device into flashmode.

03/023/2012 21:23:11 - INFO - Opening device for R/W

03/023/2012 21:23:11 - INFO - Reading device information

03/023/2012 21:23:11 - INFO - Start Flashing

03/023/2012 21:23:11 - INFO - Flashing loader

03/023/2012 21:23:11 - INFO - Ending flash session

03/023/2012 21:23:11 - ERROR -

03/023/2012 21:23:11 - ERROR - Error flashing. Aborted

03/023/2012 21:23:12 - INFO - Device connected in flash mode

03/023/2012 21:23:15 - INFO - Device disconnected
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
Also the LED is green, is that why I can't?
[Xperia Arc Q&A, Help & Troubleshooting] Rohil.khadgee:
flasing with flash tool is best idea
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
but now I can't flash anything with flashtool
[Xperia Arc Q&A, Help & Troubleshooting] sekptar:
with flashtool the led must be blue and you must press "option" and not return button, no?
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
when I back button+plug usb=LED green=flash

opinion button+plug usb=LED blue=fastboot

how can I flash .ftf when it is fastboot mode?
[Xperia Arc Q&A, Help & Troubleshooting] king-iyokan:
You can't. You have to be on flash mode
[Xperia Arc Q&A, Help & Troubleshooting] king-iyokan:
With flash tool you have to be in flash mode ( green led) not in fastboot mode( blue led)
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
I know I have to use flash mode to flash. Ftf but there's error what can I do?
[Xperia Arc Q&A, Help & Troubleshooting] king-iyokan:
Try using the latest version of flashtool and flash the ROM directly without locking the bootloader.

Check this : http://xdaforums.com/showthread.php?t=1598072
[Xperia Arc Q&A, Help & Troubleshooting] zygzoo:
i have the same problem , can't flash my device with flashtool.

i connect the phone in flashmod (led green), but not want to flash any ftf. :(
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
That's exactly my problem! What can I do?

My flashool version is 0.7.1.0
[Xperia Arc Q&A, Help & Troubleshooting] zygzoo:
nobody knows a solution to this problem?
[Xperia Arc Q&A, Help & Troubleshooting] 10vesnsd:
I finally know whats happen

My driver is not the flashtool's one so it keep fail

but BTW thanks everyone
[Motorola Droid 3] Sloop:
Hey all,

I created and added a secondary Googlemail account onto my Droid3 and would like to remove completely my old(first one). Unfortunately my Droid3 doesn't allow that to me, because it says I have to do a factory reset which I don't want. I manually switched within various applications from my old Gmail-Account to my new one through the applications settings menu. I also cleared data of all GoogleApps I found under Settings-->Applications-->Manage Apps-->All. I cleared data of all GApps, YouTube, PlayStore, etc...

I rebooted the phone, but I'm still not able to remove my first old Gmail account. Why? How can I check which applications my old account is assigned to?

any help appreciated
[Motorola Droid 3] boazal:
Hi to you (again)

any android device have to registrate himself by gmail account

so,

(if you) reboot to CWM, than:

nanbackup

Wipe Data/Factory Reset

Wipe Cache

Reboot

Then you will bein ask to creat gmail accunt or login to existing one, choose the one you prefer...
[Motorola Droid 3] Sloop:
But I don't want to factory reset my current stock ROM with all my apps and settings on it. I just want to clear and remove this old Gmail account. Do I miss something?
[Motorola Droid 3] boazal:
you can't,

you have to re-registration your D3 on google servers

for keeping yours app. download titanium backup apk (free) from the market.

install, than backup ALL (yours) apps,

after wiping and re-registration your D3, download titanium backup (again), and restore your's apps :-)
[Motorola Droid 3] MrObvious:
Sorry unfortunately he's correct. What's nice however is the Play store will download all your apps for you when you first boot your phone after a hard reset. If you do that or Titanium Backup you should be fine.
[HTC EVO 3D] calvinfoo:
Hello,

I cant seem to get http://xdaforums.com/showthread.php?t=1627596 to boot. I just unlocked the bootloader with revolutionary cwm installed. Still on S-on.

Hboot 1.49.0011

Rom still stays on the green htc logo after 5- 10mins.
[HTC EVO 3D] triscuit1983:
Since you're still S-On, I can only imagine that the boot.img for the ROM did not flash. You have to flash it in fastboot. There are tons of tutorials on how to do this.

Try using 4EXT recovery, it has an S-On flashing option.

http://xdaforums.com/showthread.php?t=1560279
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] Ritmasz:
I flashed s5830 rom on my s5830i and it cant boot up. Where i can download s5830i stock rom?
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] mcc2005:
Look at www.samfirmware.com...