yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro General] lightstorm66:
Hello everyone,

Just got an XDA Exec yesterday with two batteries. However, the both charge to 85% and don't move forward. They've been on the AC plug for over three hours now. Am I missing a config setting or something?

Thanks in advance!

-Marc
[JASJAR, XDA Exec, MDA Pro General] cornelius:
No setting needed to charge the battery until 100%, hardware failure i guess, any warranty for replacement, I mean maybe the unit, coz it happend on your 2 battery
[JASJAR, XDA Exec, MDA Pro General] lightstorm66:
cornelius,

Thanks much. It MAY be that these batteries have never been fully charged; I left them on overnight and although it took A LONG TIME to get over the 85% hump, they eventually got there.
[JASJAR, XDA Exec, MDA Pro General] robegee:
battery charging

you do need to charge the battery first time for a good 16hours - i've gone for a 3200mah Lithium ion instead of the standard 1600mah - got it off ebay for £16 with a new rear cover as its really thick!!! only problem now is the brick won't sit in the car cradle ;-)
[JASJAR, XDA Exec, MDA Pro General] kcfong2:
Robegee,

Does your unit report battery % correctly, or does it stick at 100% all the time? I've read (haven't tried), that these aftermarket batteries don't report drain properly.

Just curious... I'm thinking about purchasing an extended battery, but want to know. Where did you get yours from?

Thanks.

-Kevin.
[Samsung Captivate Glide] arniks8:
Hi!

Loudspeaker on my sister`s phone isn`t working and i can`t take it to repair either, because phone wasn`t available for our region and was bought on ebay. Everything was fine and dandy for about two years and about two weeks ago loudspeaker just died and wasn`t working on any rom(so that`s only hardware related). I don`t want to change speaker, because it`s not my phone, but is it possible to use small speaker instead of loudspeaker?
[Galaxy S 5 Q&A, Help & Troubleshooting] Hannah Stern:
Hello.

I have been in a Store. (More [IMG="The „i“ from „I“nformation :D"]http://xdaforums.com/images/icons/advanced/info_2.png[/IMG]nformation in the Quote(s).:D

Don't blame me please! (For any reason, z.B. if my English is not so good.) :)
[Galaxy S 5 Q&A, Help & Troubleshooting] Hannah Stern:
For any Possible Reason, this might be two different models. However,

if you know, why there's an S5 with 30 Burst Shots in a row and a another a Galaxy S5 with 1000 Birst Shots, then please tell it here.

You don't have to, if you don't want. Lol :)
[Galaxy S 5 Q&A, Help & Troubleshooting] Hannah Stern:
Why i made a thread for this (nobody-interesting nearly useless) Question...

Because nobody answered me in the Galaxy S5 and Overall Noob-Friendly (All-Question1s)) forums, i had to make a thread for this :(
[Galaxy S 5 Q&A, Help & Troubleshooting] Hannah Stern:
Info: Problem Solved

Here's the Solution (Sorry to say for G900F-Users:()

30 Shots in Row:

G900F

Galaxy Note 4 and S6 :crying:

1000 Birstshots in Row: :laugh:

G900X (Live Demo Unit)

G901F

G906S

...and G901X doesn't exist... :)
[Galaxy S 5 Q&A, Help & Troubleshooting] Daniel x88:
S7 and Note 6

Note 4, Note 5 and S6 are limited to thirty shots while iPhones and Xperia are not limited.

Let's hope, that Samsung removes this ridiculous restriction in 2016
[X 2014 Q&A, Help & Troubleshooting] FLUFFYMANGOES:
how does the natural leather feel? does it scratch easy? i heard the natural is most prone to scratching compared to cognac, black, and the other leathers. does the natural scratch as bad as this? thanks :)
[X 2014 Q&A, Help & Troubleshooting] godutch:
My back is black leather, not natural, it came from the box already scratched but that's the beauty of leather, especially natural leather that scratches give it character, not ugliness

btw we can't see your image
[X 2014 Q&A, Help & Troubleshooting] Mayze23:
If your worried about imperfections then don't get leather. I have navy blue leather and it had little nicks right out of the box. Scratches and nicks are going to happen unless you use a case.
[X 2014 Q&A, Help & Troubleshooting] distortedloop:
My natural leather back is beautiful. If there are scratches or flaws, I don't notice them, and I'm not the type to obsess over it and scrutinize it closely looking for normal wear signs.

No case on mine.

Sent from my XT1254
[X 2014 Q&A, Help & Troubleshooting] veekta:
i've had my black leather back for as long as the phones been out and its pretty much in pristine condition. There have been a few times where I've scratched it but all i did was condition it, add black leather polish, and polish it as i would for a shoe and it is about as good as new. I'd imagine that for the natural leather back you could apply some oils to it to give it a nice color and mask some scratches. It is grippy enough for me and definitely more grippy than metal
[X 2014 Q&A, Help & Troubleshooting] floepie:
Over time you see only the most recent scuffs. The older scuffs just get buffed out over time.
[Ouya Q&A, Help & Troubleshooting] Neodreamer24:
Hi, I have installed cm rom with Cwm recovery because the last stock version give me problems with dhcp. Now, we have new stock version and u want to install it but with Cwm recovery and boot. How can I do it? Any tutorial in this forum that I didn't saw? Thanks

Enviado desde mi SM-N9005 usando Tapatalk 2
[Ouya Q&A, Help & Troubleshooting] billouetaudrey:
Hi,

Just flash the Ouya fw zip with cwm...

Be careful, you loose root with new Ouya firmware...

https://ouyafw.skumler.net/
[Ouya Q&A, Help & Troubleshooting] gessi2000:
I also want Stock Rom back on my Ouya as I wann sell it through Ebay in the next days...

So I download the Stock Rom and install via CWM, OK.

But what can I do to remove CWM so I get a real factory reset device?
[Ouya Q&A, Help & Troubleshooting] billouetaudrey:
When you flash Ouya stock fw with cwm, at the end, cwm ask if you want flash recovery (when you click on reboot device on cwm), say yes and it's good....

Sorry for my bad english
[Ouya Q&A, Help & Troubleshooting] leonardopires:
Hi, only upgrading the thread. I installed the cwm manager apk in Cyanogenmod and recovery the stock rom without use keyboard. works like a charm!
[Galaxy Tab S Q&A, Help & Troubleshooting] mike240se:
Is there any way to root the tab s 10.5 without tripping this bootloader flag? I want to root but want to be able to return the tablet (and use the warranty) if needed. Is there any root methods that dont require odin that perhaps attack a vunerable app?

How obvious is it when the bootloader is tripped? Does it show something on boot up?
[Galaxy Tab S Q&A, Help & Troubleshooting] Ccieslin:
If you root you will trigger knox there is no way to stop it at least from my research.
[Galaxy Tab S Q&A, Help & Troubleshooting] Deltadroid:
Does Triangle Away work on this device?
[Galaxy Tab S Q&A, Help & Troubleshooting] DUHAsianSKILLZ:
Nope since when knox is tripped, it will trip a fuse telling that you trip knox. Theres no way to untrip knox as of now.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] paulbyrdjr:
What's the point in buying a phone and paying for a service if I can't do what I wish with my phone. Can we get a petition started to get unlock for this damn phone?
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] mmw68666:
AMEN
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] paulbyrdjr:
I get how they change more for developer edition but that's a joke.

I paid for a phone and yes its at discount but I'm locked in for 2 years. Ughhhhhhh.

The next phone I get I guess has to be developer edition so I can do the simple task of having my boot loader unlocked.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Sintanio:
Hello.

I have this device which i wanted to network unlock.

I used towelroot and installed safestrap to install mf3 baseband to get unlocked, it didnt helped.

Now i want to downgrade my device so that I can network unlock my phone. I am currently downloading the MK2 firmware. Should I Odin this version or will it brick my device?

For your info at the boot i see a "custom" sign with an unlocked pad, thats something to do with knox i believe..

Can someone guide me briefly, am confused, not into samsung....
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jd1639:
Flash the nb1 tar in Odin then follow this http://xdaforums.com/showthread.php?p=54932702
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jmjoyas:
To Sim unlock, flash MF3 modem and use regionlockaway app. It works.
[Galaxy Note 3 Q&A, Help & Troubleshooting] ronak_143:
Hi guys,

I just bought a Note 3 (N900S SK Telecom) from Korea which will be used by me in India. I have observed that I get a G icon when i am in 2G mode which should be generally as E (EDGE). The speeds in G are drastically low when compared to E and i get about 2 KB/Sec browsing speed which is absolutely horrendous. Now when i have 3G Reception, i get a maximum of 3 mbps whereas i used to get 7.2 mbps constant in my Note 2. I also get a 3G icon in the top instead of H or H+.

Is there any possible to way to get EDGE and H or H+ speeds in my N900S ?? WIll changing of modems or flashing any other ROM will help?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ronak_143:
Anybody knows how to sort out this problem?
[Galaxy Note 3 Q&A, Help & Troubleshooting] vndnguyen:
Do you use the same SIM and in the same location as when you used your Note 2?

I don't think it's the problem with modem. Most likely it is the problem of the mobile network.

Please follow these steps and show the screenshot: open Dialer, enter *#0011#, Menu, Back menu item, Menu, Key Input, enter Q0 and wait for some seconds...

Then select DEBUG SCREEN > NAS INFORMATION > GMM REJECT CAUSE. Capture screenshot and post it here.

And also check the FIRMWARE INFO section in the Phone INFO ★Samsung★ app.
[Galaxy Note 3 Q&A, Help & Troubleshooting] ronak_143:
Here you go. I use Local Network of India and it is not a network issue as my other phones gives a EDGE network support
[Galaxy Note 3 Q&A, Help & Troubleshooting] devilsdouble:
So if that phone has an unlocked bootloader and all those, why not just flash a different ROM? The latest Hong Kong one for example? Damn that screenshot has hard coded Korean language written!

Damn ignore my comment, didn't notice the model number is N900S!
[Galaxy Note 3 Q&A, Help & Troubleshooting] vndnguyen:
Looks like all info are normal. Should be a network issue. Or please check your APN settings and make sure all parameters are correct?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ronak_143:
They settings are perfect. Are there any compatible modems or roms?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ronak_143:
I've used Korean S2, S3 and all had same problems. Korean S2 was able to convert to International S2 and that gave me EDGE Connection whereas there was no work around for S3 and now Note 3. Can this phone be installed with some other modem which will give me EDGE?

will n9005 roms be compatible?
[Galaxy Note 3 Q&A, Help & Troubleshooting] vndnguyen:
AFAIK there are several custom roms for N900S. You can google it.
[Galaxy Note 3 Q&A, Help & Troubleshooting] ronak_143:
I am just looking to remain stock and was just concerned with this network related issue. How do i solve this now!?
[Nexus 7 Q&A, Help & Troubleshooting] gabidiez:
same problem

I have the same problem as you.

Did you find a solution?

Can anybody help us?

Thanks.
[Nexus 7 Q&A, Help & Troubleshooting] eawooten:
I have a similar problem, but I think mine is related to the bootloader.

I'm stuck on 3.34 and that's where it fails ever time I try Wug's Nexus Tool Kit.

Have you tried Nexus Tool Kit yet?
[Nexus 7 Q&A, Help & Troubleshooting] gabidiez:
I have tried factory reset from recovery, no errors while wiping but when device restarts nothing has happened: I only have a 30s-1min of old system with all my data and apps or directly bootloop.

Also I have tried flash factory images with Nexus Tool Kit and directly from bootloader. No errors while flashing, apparently has flashed new image system. When device restarts nothing has happened: bootloop or my old system with data and apps for 30s before restart.
[Nexus 7 Q&A, Help & Troubleshooting] jaysus145:
Myself and a few others are having the same problem... please keep us updated if you find anything out.

http://xdaforums.com/showthread.php?t=2588911
[Android Software/Hacking General [Developers Only]] ericlnu:
Very nice indeed :). I started writing my own update-binary replacement, and saw this, at first on github, then here, and liked the quality of the work, so I'm borrowing this to make my own personal update.zip (saves time, as you know).

A big "Thank you!" all to the people who made this possible.
[Android Software/Hacking General [Developers Only]] Hero:
Does anyone know the shell code for block_image_update?
[Android Software/Hacking General [Developers Only]] 604:
Very good thanks

but how do I run a program?
[Android Software/Hacking General [Developers Only]] osm0sis:
Unless there's a binary executable equivalent like applypatch is for files that we can leverage, patching partitions with dd would be too dangerous.

Like my instructions state, as you would in any shell script; directly.

e.g. /sbin/program

General note: these are due for an update soon (I want to properly add set_metadata, etc.). I just have some stressful real life job stuff to get sorted out first then I'll get cracking in my free time. :)
[Android Software/Hacking General [Developers Only]] Captain_Throwback:
I didn't even know you did this until you linked it in the AIK thread. Nice work! But I'm not sure I can use it without set_metadata, since that's the current method of setting permissions and file contexts. I still wish there was an easy way to set the proper permissions and contexts automatically - it'd make scripting for file-based installs much easier. But I guess those are going away too, so block-based installs would need to be supported eventually as well.
[Android Software/Hacking General [Developers Only]] osm0sis:
I'm going to take another stab at getting busybox to cross-compile from Cygwin for AIK-mobile v2.0, so I can incorporate it into my build farm, then updating this is next on my list. :)
[Android Software/Hacking General [Developers Only]] osm0sis:
Well first of all you didn't include any of the functions I wrote so show_progress won't work. Second you likely also have issues running pm since /system/bin isn't in the recovery path and probably linking issues. Even then, I'm not sure you can disable services from recovery, I think Android might need to be booted for that, and they don't stay disabled permanently if I recall correctly, which means this would be more of an init.d/su.d script to run after every boot.
[Android Software/Hacking General [Developers Only]] Beakhole:
Ok thanks.
[Android Software/Hacking General [Developers Only]] MattBooth:
I second the need for this. I've been trying myself by adding the following methods

set_metadata() {
set_perm "$2" "$3" "$4" "$1"
ch_con "$5" "$1";
}

set_metadata_recursive() {
set_perm_recursive "$2" "$3" "$4" "$5" "$1"
ch_con_recursive "$6" "$6" "$1";
}

Along with this usage:

set_metadata_recursive /system 0 0 0755 0644 system_file
set_metadata_recursive /system/bin 0 2000 0755 0755 system_file
set_metadata /system/bin/ATFWD-daemon 0 2000 0755 atfwd_exec
set_metadata /system/bin/PktRspTest 0 2000 0755 diag_exec

But the system won't boot. The same commands in Edify are required to boot :/
[Android Software/Hacking General [Developers Only]] osm0sis:
Good idea using functions within functions, not sure why it isn't working for you, but I'll be working on a comprehensive full-featured version of set_metadata soon; for my other current project I managed to make busybox compile on Cygwin for arm but it's taking a bit more work getting some patches sorted out and compiling for x86 and mips along with the 64-bit architectures, and, you know, like, a day job and such :p, so it's taking longer, but I'm getting there. :good:
[Android Software/Hacking General [Developers Only]] Beakhole:
So I'm a pretty big novice when it comes to scripting. I'm looking for help on how to interpret your script template. I'm not sure what to keep in the template and what I don't need and not sure how to plug in the specific commands and such for what I want to do.

I'm looking to do something really simple: I just want to extract a few files and set their permissions recursively. They are overlay apk files for Layers themes and they go in /system/vendor/overlay. So how would the scripting look if I wanted to package extract that /system directory in the zip and set perms for all files in /system/vendor/overlay to 644?
[Android Software/Hacking General [Developers Only]] osm0sis:
If you're not sure then include all of them; it doesn't affect anything to have extra ones you don't use. Commands go at the bottom of the template, after all of the defined "commandlet" functions so it will know what they mean.

Look up a beginners shell/scripting tutorial if you're unsure of some of the basics. Typing things with the "--help" argument in Terminal Emulator and looking things up on Stackoverflow accounts for at least half of what I know now. :)
[Android Software/Hacking General [Developers Only]] Beakhole:
Ok. I'll do that. I was just wondering, too, if I need to define any of your variables, such as $1 or $ZIP. (please forgive my ignorance.)

---------- Post added at 01:19 PM ---------- Previous post was at 01:13 PM ----------

Also, I'm assuming there's no way to sign these zips right on my phone, is there? I've always used Zip Signer to sign my regular flashable zips.
[Android Software/Hacking General [Developers Only]] osm0sis:
Nope, those all handle themselves, passed to the script by the recovery itself upon flash to let it know where the zip is, how to write to the output file descriptor, etc.

For the functions just pay attention to the usages I've put as comments above each one to know how to use them below in the script.

As for signing, no there's not because they require Chainfire's custom signing utilities. You could compile zipadjust for arm and add dex MinSignApk.jar so both could run on-device, but it's more trouble than it's worth since pretty much every custom recovery has zip verification off by default.
[Android Software/Hacking General [Developers Only]] Beakhole:
So I did build the zipadjust per your instructions. But I tried to sign the zip and I'm running into another issue:

I used this command first:

7za a -tzip -r build-unsigned.zip .\build\*

Then this:

java -jar signapk.jar test.certificate.x509.pem test.key.pk8 build-unsigned.zip build.zip

After I run this command I get an error saying something like Error accessing signapk.jar. Any idea what I'm doing wrong?
[Android Software/Hacking General [Developers Only]] osm0sis:
Yeah looks okay from here.

Are you in the correct directory when executing it? Do you have signapk.jar? It's not included in the Omni OpenDelta repo like minsignapk.jar and the zipadjust sources are.
[Android Software/Hacking General [Developers Only]] osm0sis:
Cool!

What TWRP needs is at least to add the keys of the major ROMs like Lineage (so verification can remain enabled for deltas/updates), and have the recovery cycle through those several built-in keys with fallback logic to only report a failure if all are failed.
[Android Software/Hacking General [Developers Only]] ale5000:
Hi,

I would like to know, if possible where "signapk.jar" come from, and where are the sources.
[Android Software/Hacking General [Developers Only]] osm0sis:
AOSP, of course. ;)

https://android.googlesource.com/pl.../signapk/src/com/android/signapk/SignApk.java

MinSignApk and zipadjust sources are Chainfire's via his Omni OpenDelta repo and linked in the OPs.
[Android Software/Hacking General [Developers Only]] FriendlyNeighborhoodShane:
Hey [MENTION=4544860]osm0sis[/MENTION] ! Awesome guide. I built a few very simple but useful zips using this. But tell me, theoretically, if we were to make a shell script with just all the variables and functions, and no actual command except 'exit 0', and run it or maybe flash a zip with that, shouldn't that complete with no errors?
[Android Software/Hacking General [Developers Only]] osm0sis:
Yeah that should work in shell. Why?
[Android Software/Hacking General [Developers Only]] FriendlyNeighborhoodShane:
Yeah, i asked because both ways it's showing one error, more accurately in the assert function.

# assert "<command>" ["<command2>"]
assert() {
until [ ! "$1" ];
do $1;
test $? == 1 && abort "assert failed ($1)";
shift;
done;
}

STDERR:

sush: <stdin>[247]: syntax error: '(' unexpected

And yes, before you ask, line 247 is " test......$1)";

If we remove the brackets, the error is solved. so, why is it there and is it supposed to be there?
[Android Software/Hacking General [Developers Only]] osm0sis:
Hmm must depend on the recovery shell executing it, but we could probably shore that up by escaping the brackets with \($1\). They're just there, displaying that way, to match the EDIFY output.

Edit: Actually try it like: abort 'assert failed('"$1"')';

The devdb is buggy when it comes to \ escapes and eats them when they're in the OP, unless I escape the escapes \\, but it'll still eat one slash on every edit. :rolleyes:
[Android Software/Hacking General [Developers Only]] FriendlyNeighborhoodShane:
Yeah, thanks. Working good now. Hope this update-binary revolution reaches the far reaches of flasho-verse. Keep up the good work:svetius:

And yeah, the escape bug must get totally irritating, no?:silly:
[Android Software/Hacking General [Developers Only]] osm0sis:
Oh absolutely, I have to remember to re-double-esacpe the \n for ui_print on every edit. :silly:

Check it out, even you quoting my double escape ate a slash. Silly forum software..
[Android Software/Hacking General [Developers Only]] shubhamgulati91:
Is there a quote missing in package_extract_dir() in the OP? in the outfile={...}

package_extract_dir() {
for entry in $(unzip -l "$ZIPFILE" "$1/*" 2>/dev/null | tail -n+4 | grep -o " $1.*$" | cut -c2-); do
outfile="$(echo "$entry" | sed "s|${1}|${2}|")[COLOR="Red"]"[/COLOR];
mkdir -p "$(dirname "$outfile")";
unzip -o "$ZIPFILE" "$entry" -p > "$outfile";
done;
}
[Android Software/Hacking General [Developers Only]] FriendlyNeighborhoodShane:
Hey! I've been working on something and i want to ask some stuff...

1. I've been using the y/n logic from [MENTION=378915]Zappo[/MENTION] with the keycheck file. and since (I'm pretty sure) the output for vol keys can be different from phone to phone, i want to have a simple interface at the start of the zip (for the zip to be universal). like, i print "please press vol+" and keycheck captures the output as a variable and that variable will be used in the decision mechanism... is that possible?

2. If i use shell scripts other than the update-binary (to compartmentalise the code), how can i make variables & functions universally accessible? like the update-binary (or heck, even a child script) makes a variable, and the parent script or even another child script can use that...

3. And finally, i need to get the keycheck files for the common architectures for this project (arm64, x86, x64, etc)... Is there a source repo from where they can be built or where they are available?
[Android Software/Hacking General [Developers Only]] ale5000:
I think it is the same in most phones (but I don't exclude the possibility that there may be differences).

You can use EXPORT.

If you want an example you can see my flashable zip.
[Android Software/Hacking General [Developers Only]] osm0sis:
He can also check out the different method Chainfire used in the AVB signing zip. It may be more universal and relies on internal recovery commands.

As for "compartmentalizing" the OP script (minus the ZIPFILE=$ ... etc.), you could have it in its own script, e.g. functions.sh, then source it in whatever you need with `. functions.sh`
[Android Software/Hacking General [Developers Only]] osm0sis:
Posted how to update the su.img detection snippet (linked in the OP) and zips in general to support Magisk, Magisk Manager, and BINDSBIN SuperSU:

https://xdaforums.com/showthread.php?p=73542799#post73542799