yashsingh1/xdaforums huggingface dataset:
[HTC One X+] atgmartin:
I brought my phone into Telus last week after re-locking and returning to stock by running the RUU, and just got a call yesterday letting me know that there is a charge due to unauthorized software installed or something. So yeah, unlocking pretty much voids the warranty:(.
[HTC One X+] devilsadidas:
I don't understand... How did you relock? Without being s-off isn't devunlock a perm thing?
[HTC One X+] Jeklund:
Odd, I've had the exact opposite experience with Telus. I've had my phone unlocked since day one and I bought a extra charger off ebay and something must have been messed with it as I made sure the voltage and mah was correct. Upon plugging it into my phone it basically just fried the battery and maybe something on the board I never really got a real answer from Telus. I brought it into the store and they just took it even after I told the dude I had rooted it and stuff, he just said it's mostly up to HTC if they want to repair it and that he wouldn't say anything. A week later my phone came back and the replaced the battery, main board, and sim tray for some reason. I didn't get charged for anything but its probably because they couldn't even power it on to see.
[HTC One X+] bobsie41:
Just run fastboot oem lock in command prompt and it is re-locked then suitable RUU can be run to return to stock.
[HTC One X+] devilsadidas:
Ah yes that is right it will just say tampered
[HTC One X+] atgmartin:
I returned it to stock following Hasoon2000's guide in the stickied post:

http://xdaforums.com/showpost.php?p=35897885&postcount=3

No dice, I'm picking up my phone and will either deal with the problem or replace soon.
[T-Mobile Samsung Galaxy S II SGH-T989] gulbir101:
Hey guys. So my phone is having problems with WiFi not turning on, it will turn on sometimes but just stays at the Gray slider saying WiFi is turning on. I'm not a noob with android ;). But is this a hardware problem? I was on stock ICS rooted and tried cm10.1. I didn't try Odin yet tho. Thanks.
[T-Mobile Samsung Galaxy S II SGH-T989] Towle:
Doesn't sound like a hardware issue. First thing I would try is wiping data, cache and system in recovery and re flashing your rom. If that doesn't work, I would definitely try Odin.
[T-Mobile Samsung Galaxy S II SGH-T989] gulbir101:
Yeah I tried all of that. I hope its not a hardware issue because it turns on sometimes. I'm going to try Odin soon
[T-Mobile Samsung Galaxy S II SGH-T989] Towle:
Going from ICS to JB can do funny things when doing it through recovery. Not all partitions are overwritten using recovery, so you still have some ICS stuff there. It's always best to use Odin when going back and forth between different bases, if possible.
[T-Mobile Samsung Galaxy S II SGH-T989] abhi08638:
To me it sounds like a kernel problem. Try clean flashing a ROM and a corresponding kernel version
[T-Mobile Samsung Galaxy S II SGH-T989] Towle:
He said he already tried that.
[T-Mobile Samsung Galaxy S II SGH-T989] gulbir101:
I have yet to try a different kernel. Let me give that a go.

EDIT: So i updated to the latest TWRP Recovery and fixed Permissions and it worked again, ill test it some more. on AOKP 4.2
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] samelaryan:
I know this has been asked hundreds of times, and i searched the forums for days for a way to fix it, but with no use.

I have a rooted AT&T Galaxy SIII with JB 4.1.1. I am trying to install the CM 10.1(4.2.2) Nightly version, but i always get the infamous "Status 7 Installation Aborted" error. :(

Yes i am sure im downloading the correct ROM zip file for my phone and carrier.

I have CWM 6.0.2.1, and i followed the steps correctly. (Clear data -> Clear Cache Partition -> Clear Dalvik Cache -> install ROM)

I have tried so many times, i also re-rooted my phone, reinstalled CWM, and redownloaded different nightly versions of the ROM, as well as other ROMS like JellyBam.

I also tried to delete the assert lines in the update-script file, but that also wouldnt work.

Thank you. :good:

And please dont hate on me, im new to rooting and flashing. :crying:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] BAM1789:
Improper recovery.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
if you can boot into the phone, download ROM manager and update your cwm recovery. latest version is 6.0.2.8.

CM10 and 10.1 are picky about you having the most recent version. cheers
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] samelaryan:
I did that and it worked :) thank you :good:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
thats what we're all here for, buddy
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] perceptorz:
Status 7: installation aborted.

Hi guys, I'm having same issue but on N7000 international version. I'm able to go in the recovery mode and download mode but phone won't boot normally. It's stuck on Samsung logo so can you please advise something? How can I update CWM if that's the issue. I was on ICS 4.0.4 XXLRK before trying to install CM10.1 on Note.

Thanks in advance for your help.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
I would be doing my research in an N7000 forum, friend.

Also, your post seems confusing as you seem to be saying you also got a status 7 error but then you appear to have installed abroad and are stuck at the boot logo. If you successfully flashed the correct rom for your device without any errors, pull battery, replace and wipe data in recovery. Reboot
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] perceptorz:
Apologies for both confusion and using the S3 that to find some help. I just found the situation quite familiar so I couldn't help myself from asking the question :)

On the situation, I was able to install CWM and am able to go to recovery or download mode but the error displays when I try to update the zip of any rom.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
If the phone itself is functioning fine but you simply cannot flash a new rom or rom update, you need to update your recovery. Go to clockworkmods website and download version 6.0.1.2.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] perceptorz:
Right now, phone doesn't get pass Samsung boot logo so will I be able to update new CWM using Odin? (Sorry, if the question appears to be basic or stupid)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
I would take up this situation in the correct forum. The more we discuss your device issues the more likey you are to download the wrong file or use a procedure not designed for your device software.

If you came from stock, flashed a rom and are stuck at the samsung logo, boot into recovery, wipe data and cache. Reboot to see if that helped. If not, seek advice in the N7000 forum. Cheers
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] perceptorz:
Thanks for the guidance.
[Android Q&A, Help & Troubleshooting] 1982Strand:
Hi guys...

I'm a translator for MIUI, so i edit apks a lot.

To make things easier, i made this small tool, to help me automate things.. Something like Android Utility and APK Multitool..

But, i'm no programmer, i just got a lot of help from various places, ending up with this tool.

It's far from perfect, needs a lot of improvement and here's where xda comes in :)

The script is running more or less fine as it is, but it has some (serious?) issues i can't figure out how to fix..

It's a little tricky to explain, but here goes..

First, i press c to clean everything, the operation completes fine.

I press e. to extract apks from a rom zip, operation completes.

Then i install frameworks, operation completes..

BUT, if i now press 2 to decompile all, i get an error:

/home/dan/buildtool/functions.sh: line 44: no match: *jar
Invalid choice
#?

Thing is, if i quit the tool and restarts it, press2, then it runs fine... ( the *.jar error is expected, it's the "invalid choice" which is interesting..)

So, it has to be something in the menu function, in a loop somewhere, i don't know..

I was hoping someone could run through the script and perhaps catch the error.. I'm really hoping for a simple answer ;)

Other than that, i could use some good inputs about how to improve the script, add functionality and develop it in general...

The script is on github:

https://github.com/1982Strand/buildtool
[Android Q&A, Help & Troubleshooting] soupmagnet:
I don't think you have a looping problem.

[COLOR=Gray]1067[/COLOR] [[ -z $zip ]] && echo "Invalid choice" && continue

Looks like you explicitly want it to echo "Invalid choice"

I think the problem lies in line #53

for file in *.apk *jar; do

...you will receive an error if *jar doesn't exist.

You may want to split it up with an if/then...for, for both *.apk and *jar like so:

if [ -f *.apk ]; then
for file in *.apk; do
...
done
fi

if [ -f *jar ]; then
for file in *jar; do
...
done
fi

[Edit:] Also, you should be aware of this if you aren't already....You can debug your bash scripts with the -vx switch in your shabang statement like so:

#!/bin/bash -vx
[Android Q&A, Help & Troubleshooting] 1982Strand:
okay, i tried changing line #53 as you said, but now i get another error:

/home/dan/buildtool/functions.sh: line 53: [: too many arguments
/home/dan/buildtool/functions.sh: line 64: no match: *jar
Invalid choice
#?

And with the -vx set in the shebang:

/home/dan/buildtool/functions.sh: line 53: [: too many arguments
/home/dan/buildtool/functions.sh: line 64: no match: *.jar

++ [[ -z '' ]]
++ echo 'Invalid choice'
Invalid choice
++ continue
#?

Before i changed the code, it was normal that i threw the error with the *.jars not found, but it's supposed to continue anyway..

As i said, if i quit the tool when the error came up, start the tool again and press 2, it works. (it still gives me the error with the *.jar not found, but that was normal)

I don't understand why it takes me back to the prompt as if i were about to extract the apks??

It seems to me it's because i'm still "in" the "e. extract apks from zip" - function...?? I must admit,i don't fully understand the code in that function, so i'm having a hard time troubleshooting it..
[Android Q&A, Help & Troubleshooting] soupmagnet:
Sorry, I forgot using an 'if' statement in that way would produce the "too many arguments" error. This is from '*.apk' having more than one match, so this is what I came up with:

cd $IN
if [ "$(ls -1 | grep '.\+\.apk$' | wc -l)" -gt 0 ]; then #if there are more than 0 results of *.apk...
for file in *.apk ; do
echo "Decompiling $file" 2>&1 | tee -a $LOG/decompile_log.txt
apktool -q d -f $file $DEC/$file
done
cp -f $HJEM/sort.py $DEC
cd $DEC
python sort.py
rm -r sort.py
fi

if [ "$(ls -1 | grep '.\+\jar$' | wc -l)" -gt 0 ]; then #if there are more than 0 results of *jar...
for file in *jar; do
echo "Decompiling $file" 2>&1 | tee -a $LOG/decompile_log.txt
apktool -q d -f $file $DEC/$file
done
fi

After running options 'e' & 'c', then running option 2, there is no error and the script runs as it should (That is, assuming you chose option 2 of 'c' - "Clean all but apks in apk_in folder". Chosing option 1 of 'c' will obviously result in an error because no .apk or jar files will exist to decompile).

The reason you keep getting the "Invalid choice" error is because you're explicitly asking for it.

With the line #1067 mention earlier and others similar to it like the example below:

[COLOR=Gray]914[/COLOR] [[ -z $file ]] && echo "Invalid choice" && continue

When the variable string for '$file' has a zero length, as would be the case if '*jar' doesn't exist, the script will echo "Invalid choice". My example above ensures that the '$file' variable string will not have a zero length.

My suggestion would be to change "Invalid choice" to something more specific to the function for which it is being used, that way you can get a better idea of the source of your error.

As far as why you would get that error only after choosing options 'e' & 'c' and not after restarting the script, I couldn't say for sure without digging into it a little more, but at least this fixes your original problem.

I hope that helps.
[Android Q&A, Help & Troubleshooting] 1982Strand:
Wow! That did the trick for option 2!!

But then it returns when i continue and get to option 4 "Fix sources":

[--- Fix MIUI sources ---]

...Fixing framework-miui-res.apk

patching file /home/dan/buildtool/apk_in/decompiled/framework-miui-res.apk/apktool.yml
/home/dan/buildtool/functions.sh: line 132: no match: *.rej
Invalid choice
#?

The point here is, that sometimes the patching fails and patch will generate some files (*.rej and *.orig) that needs to be deleted. But often, like most of the time really, the patching succeeds, so these files are not generated and my simple "remove" commands fail, obviously..

So, i'm guessing here that i get this zero-length issue and my script returns me to this code...

Well, this brings us back to

[[ -z $file ]] && echo "Invalid choice" && continue

From the "e" option..

This seems to be it.. I'm not entirely sure about what the code exactly means, except the "invalid choice" and continue..

The point with the option "e. Extract apks from zip", is that the user gets a list of zip files contained in the source_rom folder, then choose one.

Then a set of apks (defined in translation_list.txt) must be extracted to apk_in.

The function should simply give the options to choose a zip, x to return to the main menu, or write "invalid choice" if wrong key is entered...

But something seems broken in code, i just can't figure out what and where...

Btw, the code itself is from stackoverflow.com, so i didn't write it myself like that, i just used it for my script as it seemed to do what i needed, but i guess it needs some adjustment still :)
[Android Q&A, Help & Troubleshooting] 1982Strand:
Really good stuff! Learning a lot from this, thanks! I'll dig into regular expressions right away :D

Anyways, i think i got around the missing *.rej and *.orig by approaching the operation with SED instead of PATCH..

First of all, it makes my code shorter and i don't need an external .diff file for the operation to succeed. (Given that i write the SED code correctly of course..)

Added the code :)

For now, the script runs through all options fine without halting. Great! But i still need to test it more thoroughly.

Now, i will look into refining the script. Especially the "5. mods" and "10. build flashable zip".

Here's how i'd like it to operate:

When option 4 is processed, i'd like to be able to add some modding to the files. I think it's better to do this before recompiling (option 6/12) because if an apk needs to be edited, it's already decompiled.

For the 3way reboot, it needs to modify some jars. I'd like the user to choose which zip from the source_roms folder to work with and extract the version number the zip filename. (The filename will ALWAYS contain a version number..) So that when the jars are processed, the output files will be placed in a folder with the version number (like /out/"version") This is because, when i want to build my flashable zip, i want the user to input which version number to build it for and then it would pull whatever mods are made for this version number. (Because the entire ROM would probably break if those version numbers don't match)

For the crt-off effect, it should do the same, but it has to check wether a jar file is already existing in /out/"version" and modify that one if it is. (Both mods need to modify the same file)

Right now, i have extra options for OFFICIAL roms. The mods are exactly the same, only the file naming in the function are different. I'd like to eliminate those options, by having the user choose what file to process, like i explain in the above.. :)

Guess that gets a little complicated, hope you get what i mean.. :) It'll take some time to re-write my functions and the code, but eventually, i'll get there!
[Android Q&A, Help & Troubleshooting] 1982Strand:
Ok, so I got it working, with the creation of the folder from the filename. Cool, one step further, I'll continue development tonight or tomorrow :)
[Android Q&A, Help & Troubleshooting] 1982Strand:
Ok, next problem :)

In the following function, i want the script to check, if any apks exist in the folder. If yes, present the menu to choose which one to decompile. If no, display an error message and return to the main menu.

But something is up with the LS command, no matter if there are files or not in the folder, it returns the message "no files found"..

Having trouble figuring this one out..

decompile_single () {

shopt -s failglob
echo "[--- Choose apk number, or x to exit ---]"
echo ""
echo ""

cd $IN
if [ "$(ls -A $IN)" ]; then
echo ""
echo "No files found.."
echo ""
else

select file in *.apk
do
cat /dev/null > $LOG/decompile_log.txt
[[ $REPLY == x ]] && . $HJEM/build
[[ -z $file ]] && echo "Invalid choice for single decompiling" && continue
echo
echo "Decompiling $file" 2>&1 | tee -a $LOG/decompile_log.txt
apktool d -f "$file" $DEC/$file
cp -f $HJEM/sort.py $DEC/$file
python $DEC/$file/sort.py
rm -r $DEC/$file/sort.py
break
done
fi
}

Any ideas? :)
[Android Q&A, Help & Troubleshooting] soupmagnet:
Okay...

The output of the command "ls -A $IN" exits with 0 if successful, otherwise it exits with 1. A good way to look at 'if' constructs is...(

if

"0" (goto)->

then

.....

if

"anything else" (goto)->

else

). If you're unsure of what the exit status of a command is, you can enter it in the terminal while piping it into the "echo $?" command. "$?" is a bash variable that represents the exit code of the previous command only.

For your example, you can test the exit status of that command like so...

ls -A ~/buildtool/apk_in | echo $?

Since the exit status is 0,

then

your output will be "No files found.." But here's where it gets tricky...The exit status of the 'ls' command will always be 0 unless the directory just cannot be accessed, which is why you will always get the same output..."No files found..". You can find out more about the exit status of a command by visiting its man page (man ls).

To get around this, you need to write the command in such a way that will give you an exit status of anything other than 0 if the condition is not met. Since you only want to check for the existence of ".apk" files you could expand on the command using a regular expression and the 'wc' command, like with my previous example...

if [ "$(ls -A $IN | grep '.\+\.apk$' | wc -l)" -eq 0 ]; then
echo ""
echo 'No ".apk" files found..'
echo ""
else
...

;)
[Android Q&A, Help & Troubleshooting] 1982Strand:
Yes, thankyou!! Again, learning new stuff.. :)

I just added your earlier code to this function.. Of course, it works like a charm! Facepalm on me! Hehe!

Been reading page after page about regular erxpressions, tests and all kinds of commands this weekend, i kinda stares blind at my code sometimes, haha!
[Android Q&A, Help & Troubleshooting] soupmagnet:
I would say, the things you need to be comfortable with are (in order of importance IMO)...

man pages

exit statuses

debugging

regular expressions

pipes

data manipulation

loops

conditions

everything else
[Android Q&A, Help & Troubleshooting] 1982Strand:
Got some more reading ahead of me :D

Anyways, i think the script is pretty good now, it suits my needs so far and most of the errors are taken care of..

I can always improve the code, so i'll probably continue developing on this.. Also because it's not perfect at all and still got some flaws here and there...
[Galaxy Note II Accessories] Philip:
OK - I've spent lots of time looking at various cases and reviews, but I can't seem to find one that meets my requirements, which are:

A case, that also acts as a stand, which will allow both Portrait and Landscape with a charging cable attached.

Why? I'd like to have a case that I never normally have to take the phone out of. During the day, I want it on my desk in Portrait and at night I want it next to my bed in Landscape (running Night Clock), in both instances with a charging cable plugged in.

Landscape alone doesn't seem to be a problem, but because the charging socket is on the bottom of the phone, I can't seem to find a case that allows Portrait with the cable attached. I don't want to use a dock, because they normally mean that you have to take the phone out of the case to use them.
[Galaxy Note II Accessories] darekz:
Depends on case used it may fit into smart dock.
[Galaxy Note II Accessories] Lord Sekhmet:
I can't help you with cases, but I use and love the iCarpus stand. It fits over my cases and I can use it in portrait or landscape. It stores flat when not in use. Once clamped in, it is solid.

I did have to glue soft neoprene pads to the clamps because it would allow one of my eases to slip out. Now it is 100%. That case was an aluminum bumper style.
[Galaxy Note II Accessories] Philip:
Thank you both for the suggestions.

Am I correct in thinking that (1) the smart dock for the Note 2 (unlike the dock for the Note 1) will only work/charge in Portrait, but not in Landscape and (2) the iCarpus stand will hold the phone in Landscape with a charging cable attached, but won't work in Portrait (because the charging cable fits in the bottom of the phone)?

I guess that one possibility would be to have the smart dock during the day (in Portrait), and the iCarpus stand at night (in Landscape). Not as elegant a solution as I was looking for, but it might be as good as I can get ...
[Galaxy Note II Accessories] Lord Sekhmet:
Correct. You wouldn't by chance have the iMagnet car dock?
[Galaxy Note II Accessories] wase4711:
take a look at this...

http://www.amazon.com/gp/product/B008QVQYS2/ref=oh_details_o04_s00_i00?ie=UTF8&psc=1
[Galaxy S II Q&A, Help & Troubleshooting] Elamine_hind:
hello

could you give me the "mods" for "LK95 simplisticROM" XXLSJ?

thank you:cool:
[Nokia Lumia 800] Hewell:
Today Microsoft had publish a new update, it`s only know thant repair Tiles, but no more because there isn't change-log.

I can'rt see it on Navifirm+ 1.7 but throw Zune, the phone update correctly

Bye

Source: www.xatakawindows.com/windows-phone/microsoft-lanza-una-nueva-actualizacion-de-windows-phone-7-8
[Nokia Lumia 800] *Detection*:
Its 8862 once its done, 2 updates

8860 > 8862
[Nokia Lumia 800] bynieto:
Hello, I have the rom Reality Rom since day one and 0 problems, now I find that I have no way to update, I always get the error 8018119B, I tested with the method zune and cab but I get the same error.

Can anyone help me??
[Nokia Lumia 800] saneman69:
not a very great update. could have throw more features in
[Nokia Lumia 800] aynshtayn:
Latest Windows Phone 7.8 update removes Google Contacts & Calendar sync

It rather removes features, such as integration with google account. (contacts and calendar)

Link is below

http://www.neowin.net/news/latest-windows-phone-78-update-removes-google-contacts--calendar-sync?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+neowin-main+%28Neowin+News%29
[HTC One X] WFSFTW:
Over the last couple of days, my HOX has been experiencing some random stuff.

Firstly, this is a common problem but I cannot find a solution. I have contacted HTC and they said that it has something to do with the cache, and they took me through some steps and got my phone re-calibrated. What this problem is, is that whenever I try and unlock my phone, the LED buttons at the bottom light up, however, the touch screen does not work on the main screen and nothing shows and it is just a black screen. When I do get in, the font and the display is completely zoomed in so I cannot do anything.

MY REQUEST:

CAN SOMEONE PLEASE GUIDE ME THROUGH A PROCESS WHEREBY THIS ISSUE IS SOLVED? I WILL BE TRULY GRATEFUL AS THIS IS GETTING FRUSTRATING.

Thank you
[HTC One X] americasteam:
You might be better served if you posted in the One X forum. ;O)

Sent from my RM-820_nam_att_100 using Board Express
[HTC One X] SmallMan123:
Have you tried doing a factory reset?

Using CM10.1

---------- Post added at 12:29 PM ---------- Previous post was at 12:27 PM ----------

http://www.androidayos.com/2012/09/...one-x-to-its-original-factory-stock-firmware/

This may help

Using CM10.1