yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] sandnap:
Okay I updated the guide above in case you or someone else needs it down the road.
[Android Software/Hacking General [Developers Only]] greg97526:
i already got root back ty though. working on the codes

---------- Post added at 08:08 PM ---------- Previous post was at 08:00 PM ----------

YOU PEOPLE F'ING ROCK!

Rooted, back to stock and home key is working.

installing titanium backup now and then after backup will try to update to JB again.

I'll post back with results!
[Android Software/Hacking General [Developers Only]] sandnap:
Great! Glad to hear it.

---------- Post added at 09:14 PM ---------- Previous post was at 09:12 PM ----------

Do you have adb access to the phone, are you rooted, and is it failing to boot (at at&t logo)?
[Android Software/Hacking General [Developers Only]] greg97526:
should i delete any of the original files we backed up or the ones we copied over?

i have a full backup with titanium now.

downloading the JB update...
[Android Software/Hacking General [Developers Only]] sandnap:
yep, you can:

adb shell
rm -r /sdcard/temp/
rm -r /sdcard/backup/
[Android Software/Hacking General [Developers Only]] greg97526:
ok so it made it to 28% this time but the update still fails.

---------- Post added at 10:07 PM ---------- Previous post was at 09:17 PM ----------

has anyone else updated their phones while unlocked? thinking this might be the problem. att not wanting to update those who dont use their service.

i unlocked mine and set a new apn for straight talk, unlimited everything for 45 a month.

yes i tried updating without a sim card and also by reverting back to att apn

---------- Post added at 10:30 PM ---------- Previous post was at 10:07 PM ----------

okso the only thing i dont have working on mine is my gallery.

i tried reinstalling it but no go still. maybe thats all thats hanging me up at 28%? lol doubtful
[Android Software/Hacking General [Developers Only]] sandnap:
I am stumped. Do you have a place where you can upload the update so I can download it and peek inside? If the update is still on your device it should be in /cache somewhere.
[Android Software/Hacking General [Developers Only]] greg97526:
where would it download to?
[Android Software/Hacking General [Developers Only]] sandnap:
I believe it's in the /cache folder or a sub-folder under /cache. It may clear it out after an update attempt.
[Android Software/Hacking General [Developers Only]] greg97526:
i'll download it and then postpone it to look

---------- Post added at 10:46 AM ---------- Previous post was at 10:20 AM ----------

gota_package.bin

would that be it?

gonna see if i can put it in my drop box

---------- Post added at 11:08 AM ---------- Previous post was at 10:46 AM ----------

pm sent to you. i have the file uploaded
[Android Software/Hacking General [Developers Only]] sandnap:
Downloading it now. I'll see if I can crack it open and check out the install script(s). Might give us an idea of what it is doing.
[Android Software/Hacking General [Developers Only]] greg97526:
i am thinking because i unlocked my phone to use with someone other than att this is the problem. its a jb update provided by att not pantech.

others with root on here have updated fine but myself and one other who are unlocked and using a different carrier have the same exact problem.

good luck
[Android Software/Hacking General [Developers Only]] cogency:
Just want to let everyone know I was able to successfully root on JB using framaroot 1.6 found here: http://xdaforums.com/showthread.php?t=2130276

Framaroot is an app you install on the phone and the entire process took at most 1 minute.

Hope this can help some people having trouble with the earlier root methods posted.

Oh, you can also unroot from the app as well for those who are worried about warranty issues and such.
[Android Software/Hacking General [Developers Only]] sandnap:
I am unlocked and using Straight Talk $45/mo. plan on mine and I was able to update mine after disabling root with Voodoo. However, after the update I had to unlock it for the sim again so hopefully you still have the unlock code (if not I can help you with it). I opened the file and I am looking over the installer script. It definitely validates that just about everything is untouched. I have to get some work done today but I will figure out what files are validated after I get home later. Also, now that you have the update file you can move it to an external sdcard and install it from there so you don't have to keep downloading it. You just need to rename it from gota_package.bin to gota_package.zip and use the hidden recovery install feature.

---------- Post added at 01:28 PM ---------- Previous post was at 01:26 PM ----------

This is good. I tried framaroot 1.6 with ICS and it didn't work but it's nice to know it works with JB.
[Android Software/Hacking General [Developers Only]] greg97526:
I still have my unlock code :)
[Android Software/Hacking General [Developers Only]] sandnap:
Can you send me the /cache/recovery/last_log file? If so, email it to me.
[Android Software/Hacking General [Developers Only]] greg97526:
pm ur email again please. deleted my messages i guess

---------- Post added at 05:51 PM ---------- Previous post was at 05:50 PM ----------

nm its in the drop box link, do u need it again?
[Android Software/Hacking General [Developers Only]] sandnap:
Looks like the checksum for /system/framework/core.odex does not match the original.

Verifying current system...
file "/system/framework/core.odex" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: assert failed: apply_patch_check("/system/framework/core.odex", "66ad5e069194235227a76782aa17fbb6f5ee9c5e", "73b844a71a8d63afcd8c2ea703754ccaf152a47a")
assert failed: apply_patch_check("/system/framework/core.odex", "66ad5e069194235227a76782aa17fbb6f5ee9c5e", "73b844a71a8d63afcd8c2ea703754ccaf152a47a")
E:Error in /cache/recovery/gota_package.bin
(Status 7)
Installation aborted.

You will probably need to do to /system/framework what you did to /system/app.

Same as before for the framework directory:

1. Download the contents of the framework directory provided above to lets say C:\pantech\framework

2. In a terminal run:

adb shell
cd /sdcard
mkdir temp
exit

3. Now navigate to C:\pantech

cd C:\pantech

4. Now push the files to temp

adb push c:\pantech\framework\ /sdcard/temp/

5. Mount the system partition

adb shell
su
mount -o rw,remount /dev/block/mmcblk0p14 /system

6. Backup what you have in case you need them again

mkdir /sdcard/backup
cp /system/framework/* /sdcard/backup/

7. Remove the old frameworks

rm /system/framework/*

8. Copy the new framework files

cp /sdcard/temp/* /system/framework/

9. Make sure you have a bunch of jar files and odex files in the system/framework directory

ls /system/framework

You should have a bunch of files there.

10. Reboot

exit
exit
adb reboot
[Android Software/Hacking General [Developers Only]] greg97526:
sure, just tell me what code to use etc.
[Android Software/Hacking General [Developers Only]] sandnap:
And this is how you can use your gota_package.bin file for the update.

1. If you don't already have an sdcard in the phone install one. This will only work from the external sd card.

2. Rename the file to gota_package.zip

3. In a command window navigate to the directory where your zip file is

4. Push the file to the phone (substitute path)

adb push C:\<path_to_zip_file>\gota_package.zip /external_sd/

5. Use VooDoo to backup "su" then temporarily disable root

6. Shut down the phone

7. Hold down volume up and power key until "Pantech" goes away for a second then let go of power but keep the volume button down

8. You should boot up to a horizontal android robot with a red X and you can let go of all buttons

9. Hold down the power key, then press the volume up key and let go of both buttons

10. You should see a menu with an option that is something like "install update from external sd card", use the volume keys to select it then press the power button to select it

11. You should see the files on your external sd card, use the volume keys to navigate to gota_package.zip then press power, select install and wait.

Also, I updated my post above with the framework stuff.
[Android Software/Hacking General [Developers Only]] greg97526:
do i just need to aqcuire su and just do the framewrok or all the jargin again?
[Android Software/Hacking General [Developers Only]] sandnap:
I would do everything in the framework directory as per my instructions above. The install script fails and aborts at the first error and given that core.odex is corrupt I am guessing other files are too.
[Android Software/Hacking General [Developers Only]] greg97526:
ugh

ill add another install log file, failed again

should be there now

downloading the lib files as well
[Android Software/Hacking General [Developers Only]] sandnap:
Bingo! lib it is. At least you are past framework which is the biggie. I am guessing you already saw this. :)

script aborted: assert failed: apply_patch_check("/system/lib/libGLEngineJNI.so", "22acd11082f2143c91a62f8ee856f595515eda31", "1aa1e940fc7b49d39817846ba908a47fb42b75a0")
assert failed: apply_patch_check("/system/lib/libGLEngineJNI.so", "22acd11082f2143c91a62f8ee856f595515eda31", "1aa1e940fc7b49d39817846ba908a47fb42b75a0")
E:Error in /external_sd/gota_package.zip
(Status 7)
Installation aborted.
[Android Software/Hacking General [Developers Only]] greg97526:
yes so i will do your instructions again only with the lib directory correct?
[Android Software/Hacking General [Developers Only]] sandnap:
Correct.
[Android Software/Hacking General [Developers Only]] greg97526:
mkdir /sdcard/backup

root@android:/ # cp /system/lib/* /sdcard/

cp /system/lib/* /sdcard/backup/

/system/lib/bluez-plugin: omitting directo

/system/lib/drm: omitting directory

/system/lib/egl: omitting directory

/system/lib/hw: omitting directory

/system/lib/modules: omitting directory

/system/lib/plugins: omitting directory

/system/lib/soundfx: omitting directory

1|root@android:/ #

?wtf?

thats ok right?
[Android Software/Hacking General [Developers Only]] sandnap:
Looks like lib has a few sub-directories :(. Don't delete everything from lib. Unfortunately I have to take off for a bit, in a nutshell you have to either deal with just the lib directory and skip the sub-directories or work with each individual sub-directory. Either way my instructions will need to be modified. Might be ahead to just update the file causing the problem and see where that gets you. You are safe for now where you are at.
[Android Software/Hacking General [Developers Only]] greg97526:
apparently i wasnt safe right there. now it just boots to pantech logo and thats it.

going to factory reset it then root again then try again i guess

---------- Post added at 09:09 PM ---------- Previous post was at 09:04 PM ----------

ok so now what? it wont let me do that either

can we work from fastboot or anything else or do i have a brick now?

at the point you said i was safe for now it rebooted by itself and now nada.
[Android Software/Hacking General [Developers Only]] sandnap:
Up through step 6 you were safe (copy to backup) but if you executed step 7 you removed the files in your lib directory and didn't replace them. Can you still "adb shell" into the phone while it is at the at&t logo?
[Android Software/Hacking General [Developers Only]] greg97526:
i did not pass step 6 and no it wont boot past the pantech logo at all

i am able to see it in fastboot though.

can we push anything this way?
[Android Software/Hacking General [Developers Only]] sandnap:
I want to get something straight if you did not execute step 7 you didn't do anything to damage your phone. Step 6 merely backs up the files. Step 7 removes them.

The question is if you execute "adb shell" can you get a shell on the phone? If yes, can you gain root access with "su"?

If not the next best bet is booting into the evita recovery as described in the original post and pushing files.
[Android Software/Hacking General [Developers Only]] greg97526:
i think my phone battery died after step 6 not sure what happened really.

i will try adb shell again from the pantech logo

---------- Post added 5th September 2013 at 12:10 AM ---------- Previous post was 4th September 2013 at 11:59 PM ----------

ok no adb shell

---------- Post added at 12:30 AM ---------- Previous post was at 12:10 AM ----------

C:\Android>adb shell

~ #

looks like i can boot to recovery from fastboot and get into adb shell that way.

going to put a full charge on my phone and start fresh when you are ready

if you have an instant messenger we could do this quicker.

also i have downloaded all files for the phone so maybe just push it all or what? or is there a way to push a full system image or the gota zip?
[Android Software/Hacking General [Developers Only]] sandnap:
What do you see if you type:

adb shell
ls /system/lib

If you get an error, while still in the shell try:

mount /dev/block/mmcblk0p14 /system
ls /system/lib

To answer your questions, the gota zip file doesn't contain a full image, it patches the existing files where necessary and leaves everything else. It might be possible to create an update and flash it but it's risky and would be time consuming. The fastest and safest method is fixing one thing at a time from a functional system like we have been doing.

---------- Post added at 07:05 AM ---------- Previous post was at 06:46 AM ----------

In order for this to work though we need to be able to mount /system as read/write with root access. If we can no longer do that through adb then I hope you can boot the evita recovery from the original post.
[Android Software/Hacking General [Developers Only]] sandnap:
Great! You are most likely not bricked. Now we just need to figure out what went wrong. In the adb shell try running:

ls -l /system/lib

Post the results.

Then you can pull everything from /system/lib to your computer in a new directory called backup_lib with the command:

adb pull /system/lib/

At this point I would go through each directory in your backup_lib and make sure that all of the files you downloaded from the original rom are there.
[Android Software/Hacking General [Developers Only]] greg97526:
~ # adb pull /system/lib/

adb pull /system/lib/

/sbin/sh: adb: not found

~ #

confused!

is there a way to just overwrite or erase and then push everything i downloaded or put the files on my sd card from my pc and put it back in the phone and push them?
[Android Software/Hacking General [Developers Only]] sandnap:
You need to run the adb pull command from a computer terminal not the adb shell.

You can just push everything if you want. You are in pretty good shape since you can boot to evita. But there is always a chance of bricking the phone if something goes wrong. If you get any errors ask before moving on.

1. If it was me I would pull your entire system folder to your computer first in case you need it later on. From a computer terminal in a backup_system directory from the phone:

adb pull /system/

2. Make sure the folder structures are identical to those you downloaded (directories, sub-directories, & files) including /system

3. Pray to the android gods and in your android shell type:

rm -r /system

4. Exit the adb shell and from your computer terminal push the files from (for example if you downloaded to C:\discover_stuff\system) and type:

adb push C:\discover_stuff\system\ /system/

5. Use the "ls" command in the adb shell to verify the folder structure is correct and if so reboot
[Android Software/Hacking General [Developers Only]] greg97526:
ok the original that i downloaded through here has 2 differences

one is the original has an "fbin" folder and my pull did not

second is there is a file inthe original that is partlayout4android in the root

i do not see an actual system folder but i assume that all the folders and directories "are" the system correct?
[Android Software/Hacking General [Developers Only]] sandnap:
That is correct.

I am surprised there were only two differences but that's not a bad thing.
[Android Software/Hacking General [Developers Only]] greg97526:
C:\Android>adb shell

~ # rm -r /system

rm -r /system

rm: remove '/system/usr/we-need-root/su-backup'?
[Android Software/Hacking General [Developers Only]] greg97526:
i wont do anything else till i hear back from you
[Android Software/Hacking General [Developers Only]] sandnap:
I am guessing that is where VooDoo backs up su. If you pulled your system files you can add it back from your backup to the downloaded directory you are going to push.
[Android Software/Hacking General [Developers Only]] greg97526:
ok then what do i type in at that stage?

hitting enter only gives the following

rm: remove '/system/usr/we-need-root/su-backup'?

rm: can't remove '/system/usr/we-need-root': Directory not empty

rm: can't remove '/system/usr': Directory not empty

rm: can't remove '/system': Device or resource busy

~ #
[Android Software/Hacking General [Developers Only]] sandnap:
run "ls /system" and lets see what you have
[Android Software/Hacking General [Developers Only]] greg97526:
aha so basically it already removed everything but the we-need-root part?

~ # ls /syst

ls /system

usr

~ #

so push everything?

adb push C:\pantech\ /system/ ?

on my c drive is a folder named pantech and everything is laid out inside the pantech folder so would the above code be right?
[Android Software/Hacking General [Developers Only]] sandnap:
Yes that looks right.
[Android Software/Hacking General [Developers Only]] greg97526:
adb push C:\pantech /system/

that was the code that worked for me.

pushing now crossing my fingers.

---------- Post added at 02:32 PM ---------- Previous post was at 02:20 PM ----------

ok did the ls command, everything was there, adb reboot

android with triangle ugh then i went to hidden recovery

then apply update from sd card gota update zip file, verified no errors so far says its installing update at 75% so far

UPDATE:

nope it failed at 100% after it said it was done and status 7 error in gota_update.zip
[Android Software/Hacking General [Developers Only]] sandnap:
Do an "ls -l /system" and lets see what the file ownership and permissions are. I'll compare them with mine.
[Android Software/Hacking General [Developers Only]] greg97526:
c:\Android>adb shell

~ # ls -l /system

ls -l /system

drwxr-xr-x 2 system system 0 May 27 2012 bin

~ #
[Android Software/Hacking General [Developers Only]] sandnap:
You only have a "bin" directory in /system. Not everything was pushed.
[Android Software/Hacking General [Developers Only]] greg97526:
ok i will push them again and see if it works this time

i am not getting errors with pushing and it appears to be pushing to the right location

ie \pantech/framework/filename -> /system/framework/filename

---------- Post added at 03:40 PM ---------- Previous post was at 03:36 PM ----------

or should i remove system and try again?

---------- Post added at 03:50 PM ---------- Previous post was at 03:40 PM ----------

push: C:\pantech/media/audio/alarms/RomanticForest-1.ogg -> /system/media/audio/

alarms/RomanticForest-1.ogg

protocol failure

c:\Android>

ya know? im sure its frustrating you to help lol if ya want i have team viewer
[Android Software/Hacking General [Developers Only]] greg97526:
ok so i had to add one directory at a time and push it seperately.

all push without errors but when i run ls command i do not see the following

app

com.touchtype

etc

fbin

fonts

framework

lib
[Android Software/Hacking General [Developers Only]] sandnap:
PM'd you.
[Android Software/Hacking General [Developers Only]] sandnap:
For anyone keeping score I was able to get greg's phone operational and on JB by reconstructing the entire /system partition. While this might sound easy without having an image it's not. File permissions and ownership, and symbolic links make getting a full backup difficult. Even if you are able to get a complete backup and push it to the device new symbolic links will need to be identified and set up and permissions/ownership of all files will need to be set. This is all pretty risky, precise, and time consuming. If greg's phone was not able to boot to the evita recovery he would have a brick.

Speaking of the evita recovery, if you are able to apply the JB update it looks like it flashes a locked bootloader which prevents fastboot boot. Greg is the exception since he has a hybrid.

For anyone wanting to update to JB but the update is failing I posted the process I recommend here: http://xdaforums.com/showpost.php?p=45406494&postcount=2
[Android Software/Hacking General [Developers Only]] jose makalolot:
good.

since greg's phone is good now, maybe you can help me with mine.
[Android Software/Hacking General [Developers Only]] greg97526:
What problem are u having with your phone?
[Android Software/Hacking General [Developers Only]] jose makalolot:
i want to go back to stock.

Actually I made a big mistake by flashing the system image in the OP.
[Android Software/Hacking General [Developers Only]] greg97526:
So are u getting any errors or what?

I do have the ota jb update and can post the link for you when I get home but use it at your own risk.

Mine was missing core files so when I updated it quit at 25% and that's where I got screwed. As long as everything works on urs and no errors it should run but I don't know that for sure.
[Android Software/Hacking General [Developers Only]] jose makalolot:
Here's what is happening to my phone:

1. The framework and systemui on the OP is messed up and can't see some of the letters since it has the same background color.

2. If I try to swap the files I get a boot loop.

3. Now I will try to update it to JB and will see what will happened.
[Android Software/Hacking General [Developers Only]] greg97526:
PM'ed you the link to the JB update you can rename it to .zip and flash from external through the hidden recovery accessed by holding up and power, then once ur at the android with red triangle click up and power or power and up again, sometimes its a bit finicky so just keep trying.
[Android Software/Hacking General [Developers Only]] jose makalolot:
Will do that tonight sir.

Thanks.

Will post here with the results.
[Android Software/Hacking General [Developers Only]] greg97526:
Any luck?

Know anything about the location of the wifi configuration file? Wanna see if I can get a better connection since jb wifi sucks.

I know it's been done on other phones, maybe the galaxy s3 has the same configuration file.
[Android Software/Hacking General [Developers Only]] jose makalolot:
No sir,

I was stopped with boot loop when replacing PackageInstaller.apk

Sent from my phone.
[Android Software/Hacking General [Developers Only]] greg97526:
did you delete any system apps etc?

did you freeze with titanium backup?

if so unfreeze or reinstall system apps, this was part of my problem as well.
[Android Software/Hacking General [Developers Only]] sandnap:
Did you replace both PackageInstaller.apk and PackageInstaller.odex? You need both.
[Android Software/Hacking General [Developers Only]] jose makalolot:
I replaced both.

[MENTION=243784]greg[/MENTION], I just replaced it from the original files.

Sent from my phone.
[Android Software/Hacking General [Developers Only]] greg97526:
still no luck?

check permissions on the file and compare them.

also iptables gave us a problem as well.
[Android Software/Hacking General [Developers Only]] jose makalolot:
iptables?
[Android Software/Hacking General [Developers Only]] greg97526:
yes, iptablesv4 and iptablesv6, with the update that screwed up they werent set to right permissions and pointing to wrong places, sandnap would know better about this.

my phone is up and running great with no problems other than mi wifi keeps refreshing causing a lag while surfing the web or playing games.
[Android Software/Hacking General [Developers Only]] jose makalolot:
ah ok. i hope sandnap can share about this.