Related
K so I've been trying to figure out how to change the annoying "verizon wireless" carrier name off my lock screen and notification bar...and heres how to do it..
as for the file... download the zip file in post #8 and extract it to your "C:\android-sdk-windows\tools\" directory.
Then open it up in notepad and edit the part that says "Verizon Wireless" to anything you want.
for those that aren't too familiar with adb: (you must install android SDK, you'll find links to do this in the Droid Eris Android Development and Hacking section)
1. connect your phone to compter, enable usb debugging and open up command prompt. (don't mount SD card)
2. in command prompt, type "cd C:\android-sdk-windows\tools\" then enter...(now you have moved to working within your "tools" folder, where your adb program resides...
3. Type "adb remount"
4. Any file you want to push to your phone, you must put into the "tools" folder on your computer...then use the following command...
"adb push "filename" "directory on your phone"
(example... adb push YouTube.apk /system/apps)
5. To push the edited carrier file, use the following command..
adb push eri.xml /data/
6. To finish the process, reboot by using this command...
adb reboot
Now when you pull your notification bar down, your carrier name will be changed..
to do this, you need to edit eri.xml in framework-res.apk
Use google
can u do that for at&t?
Framework43 said:
to do this, you need to edit eri.xml in framework-res.apk
Use google
Click to expand...
Click to collapse
Googled and found which file to edit. When I search it in hex, I dont see Verizon Wireless in it. Am I missing something?
EDIT: I dont think this applies for the Eris but it does for the Droid. Just looking around a lil bit and a few others have said this. Anyone know the exact file for Eris?
after speaking with Jamezelle on IRC, this seems to NOT be possible to change, as it is set by radio.
ugh Eris has to be tough. doesn't it...I was hoping to change Verizon wireless to like Subway
Sent from my Eris using the XDA mobile application powered by Tapatalk
Could we flash the radio with a custom firmware to allow us to change the carrier name?
I would like to change the carrier name to "xda" or "HTC Eris"
Carrier logo change!!!!
Check post #1 for the fix...
Thank you so much for this tutorial! I totally crashed my phone and wasted a couple hourse trying to edit framework-res.apk. Had to go back to a Nandroid. Sure wish I'd found this first. But, at least I got some good experience editing apks.
Thanks again!
Thanks for the fix. It worked.
vash8806 said:
K so I've been trying to figure out how to change the annoying "verizon wireless" carrier name off my lock screen and notification bar...and heres how to do it..
as for the file... download the zip file in post #8 and extract it to your "C:\android-sdk-windows\tools\" directory.
Then open it up in notepad and edit the part that says "Verizon Wireless" to anything you want.
for those that aren't too familiar with adb: (you must install android SDK, you'll find links to do this in the Droid Eris Android Development and Hacking section)
1. connect your phone to compter, enable usb debugging and open up command prompt. (don't mount SD card)
2. in command prompt, type "cd C:\android-sdk-windows\tools\" then enter...(now you have moved to working within your "tools" folder, where your adb program resides...
3. Type "adb remount"
4. Any file you want to push to your phone, you must put into the "tools" folder on your computer...then use the following command...
"adb push "filename" "directory on your phone"
(example... adb push YouTube.apk /system/apps)
5. To push the edited carrier file, use the following command..
adb push eri.xml /data/
6. To finish the process, reboot by using this command...
adb reboot
Now when you pull your notification bar down, your carrier name will be changed..
Click to expand...
Click to collapse
Couldn't one move the edited eri.zip file to the right folder via terminal on the phone?
meanm50 said:
Couldn't one move the edited eri.zip file to the right folder via terminal on the phone?
Click to expand...
Click to collapse
Well..for 1... your eri.xml file exists on the phone as ".xml"...so if you unzip first, then move to phone via terminal...go for it!
gohamstergo said:
after speaking with Jamezelle on IRC, this seems to NOT be possible to change, as it is set by radio.
Click to expand...
Click to collapse
Are you high? I'm sorry..but I've tried this on Froyo..as well as 2.1 roms... I have never had a problem with changing it... as I keep mine as "username: vash"
Hmmmm, I pushed, pushed and re-pushed and I can't change that diabolical 'VZW' text. Just trying to change it to a simple 'My Android' for now...
Followed the instructions in the OP to the letter (and spaces!) I managed to root my phone the 'hard' way by myself and have tinkered with some ROMs although I'm back at 'stock' 2.1 now, but my build number has 'test keys.'
Any ideas?
bill
Worked like a charm. Thanks!
Works great, was a great guide. Thanks a lot!
I just open eri.xml in root explorer (must select r/w in the app so you can modify system settings) and changed the carrier name with the keypad on my phone. Changes are displayed after the next reboot.
Sent from my FroyoEris using XDA App
Use root explorer. Mount r/w data then long press eri.XML. Edit with keyboard, save and reboot.
Sent from my FroyoEris using XDA App
xtrSENSE
I have tried this approach on xtrSENSE and it does not work. I have used this method on cyogenmods and it works great but on this rom does not work. If you have any suggestions please let me know. I am working on something to help people out.
You should be able to change it in the phone itself with QPST or EPST.
This version has no ATT, White notification text, fixed signal bars, and no FC's! Based on Adeo, so you keep the reboot functionality. This works for me on the new 1.5.2 SBF as well as Adeo. the "newbackup" framework apk is NOT deodexed, and from the new 1.5.2 SBF.
I still need to take new screenshots without the ATT and white notification text, but nothing else changed, so you should be able to use your imagination
New Black Browser (still unfortunately black text and a white text box until I can get apktool to actually build the browser apk).
For those who would like to know, I'm using Launcher Pro Plus, Light Grid LWP, and Beautiful Widgets with the small Super Clock and Simplicity theme with no background. Androdena weather icons.
If you want to revert, please follow the instructions with the framework-old and services-old files renamed to framework-res.apk and services.jar (remove .zip).
For the Black Browser, please just re-run with the backup browser apk.
To install the Browser, copy (cp) your current /system/app/Browser.apk to /mnt/sdcard, then adb push the downloaded apk to your phone in a directory of your choosing, and with root, run cp /path/to/Browser.apk /system/app/Browser.apk and reboot.
If you are deodexed, and you follow these instructions to a tee, there shouldn't be issues. No guarantees if not, though I'm running the new SBF non-deodexed, and no issues.
Here are modified instructions copypasta'd from Designgears (thanks man!):
First, Rename the downloaded services.zip to services.jar (due to xda's upload restriction on .jar files).
[/B]
run "Shell Root" from SuperOneClick, wait until it says you have root.
Enter adb shell from command line, You should have root(#) access:
adb shell
Mount the system directory as read/write:
mount -o rw,remount /dev/block/mmcblk0p12 /system
Make a new directory on /data for your framework file:
mkdir /data/framework
Exit shell:
exit
Then from the directory of the downloaded files, run:
adb push framework-res.apk /data/framework
adb push services.jar /data/framework
Enter ADB Shell:
adb shell
Copy your new files to their proper location:
cp /data/framework/services.jar /system/framework
cp /data/framework/framework-res.apk /system/framework
Reboot:
reboot now
Phone will flash a red led. Just let the phone reboot (it will take up to a minute, so just be patient!).
IF YOU GET ANY READ ONLY ERRORS WHILE INSTALLING, MAKE SURE YOU'RE IN A ROOT SHELL (IF NOT, TYPE SU), THEN RUN THE FOLLOWING BEFORE TRYING THE FAILED STEP:
mount -o rw,remount /dev/block/mmcblk0p12 /system
nice
i want it
but dammmn its alot of work
I think fastboot might be unnecessary, however for some reason, I've had the best results using super one click every time.
Really, it takes 5-10 minutes, and some copy pasting...I've already done the hard stuff.
Im planning on releasing a shell script to be run in the folder with the files on the phone with terminal emulator, but want to polish the theme a bit more.
Sent from my MB860 using XDA App
thanks, i'll be bookmarking this page for updates.
synergye, you can remove AT&T from the status bar if you change framework-res.apk/res/layout/status_bar.xml, and carrier length and padding to zero on line 5.
Also, the phone will reboot itself with the reboot now command, it just takes a bit (45-60 seconds). Do that instead of pulling the battery.
Good luck on getting the white text and removing AT&T from the task bar.
Can't wait
shawnbuck said:
synergye, you can remove AT&T from the status bar if you change framework-res.apk/res/layout/status_bar.xml, and carrier length and padding to zero on line 5.
Also, the phone will reboot itself with the reboot now command, it just takes a bit (45-60 seconds). Do that instead of pulling the battery.
Click to expand...
Click to collapse
Thank You very much Shawn! I'm going to change the original post, and remove ATT ASAP.
synergye said:
Thank You very much Shawn! I'm going to change the original post, and remove ATT ASAP.
Click to expand...
Click to collapse
Glad to help
Also, this theme won't mix with Adeo because of the reboot option it uses.
shawnbuck said:
Glad to help
Also, this theme won't mix with Adeo because of the reboot option it uses.
Click to expand...
Click to collapse
I'm actually using Adeo with it right now and still have the reboot option. I would assume this is because I modified the framework-res apk from Adeo.
Thats great, going to install this right now.
Shawn, I've tried droiddraw, microsoft's xml editor, excel, eclipse, wordpad, and notepad won't actually open the status bar xml. What am I missing?
It's a proprietary compiled XML format. To unpack it, you need to use apktool.
http://code.google.com/p/android-apktool/
Use:
apktool d framework-res.apk framework-res
apktool b framework-res.apk framework-new.apk
IMPORTANT:
Make sure you have the META-INF files inside the new apk. The easiest way of doing this is repacking the apk as something new, pulling out the compiled XML files, then adding them into the original apk.
On a side note, its nice to see an honest representation of what data connection the phone is getting.
I have a question. The data/framework folder we create, is there any reason why we cannot do it from a folder on our sdcard like how we pushed the deodex file over from designgears? Is this just your preference to have it in data or is it 100% required? Just curious cuz after we do all this we will have an empty data/framework folder just sitting there.
There's no reason it can't be in an already existing folder, or just data.
@Sean, thanks for the help, didn't know I'd be using apktool for that.
Sent from my MB860 using XDA App
synergye said:
There's no reason it can't be in an already existing folder, or just data.
@Sean, thanks for the help, didn't know I'd be using apktool for that.
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Thanks. There is a minor typo in your instructions. You forgot a space between CP and / for the service.jar line. You will get a directory does not exist without that space
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp/data/framework/services.jar /system/framework
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp /data/framework/services.jar /system/framework
Some reason my signal icons are not showing up properly and stays on white even though i have full bars. also the signal part is still black
NguyenHuu said:
Thanks. There is a minor typo in your instructions. You forgot a space between CP and / for the service.jar line. You will get a directory does not exist without that space
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp/data/framework/services.jar /system/framework
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp /data/framework/services.jar /system/framework
Some reason my signal icons are not showing up properly and stays on white even though i have full bars. also the signal part is still black
Click to expand...
Click to collapse
Thank you for your correction.I believe this is because I replaced only one set of radio icons, so.if you're roaming, etc, they'll revert. Ill unify them later today. Also, the data portion stays white as if it's uploading and downloading until.it connects.
Sent from my MB860 using XDA App
Another note: after you push framework it will auto reboot, no need to enter in a command. So you push services.jar first, then push framework or else it will reboot before you can do it. Not sure if it will also auto reboot if you push services.jar, but it does with framework-res.apk.
I also noticed that graphics were replaced that were unrelated to the status bar such as graphics for various menu items and popups. It made them have white text on light grey background, which was hard to see. I went through the original framework and compared it with the gingerbread one and only moved over miles that were related to the status bar.
it looks better now, just missing the icons for the signal bars for normal state and also getting rid of the at&t text. Thanks for the mod!
@synergye
Would changing the images in the framework file work? Or would we need to take any special care? I mean, if we update the images only in the framework file and push that to our phone, would it work?
diablo009 said:
@synergye
Would changing the images in the framework file work? Or would we need to take any special care? I mean, if we update the images only in the framework file and push that to our phone, would it work?
Click to expand...
Click to collapse
yeah that's what i did too to replace the images that were misplaced. just change up the images in framework-res, then follow the directions in the OP to push it back in. i did it several times today.
you still gotta be wary of making your own though cuz some of the pngs are .9 extensions, those are tricky. but if you just copying and pasting images from other frameworks over, that should be fine.
NguyenHuu said:
yeah that's what i did too to replace the images that were misplaced. just change up the images in framework-res, then follow the directions in the OP to push it back in. i did it several times today.
you still gotta be wary of making your own though cuz some of the pngs are .9 extensions, those are tricky. but if you just copying and pasting images from other frameworks over, that should be fine.
Click to expand...
Click to collapse
I only want to change the status bar to something dark, and the battery icon to be one with numbers so I can take off the battery level app.
Want to keep the phone as close to stock and do my own mods n work.. So can anyone point me in this direction? I haven't found anything on it..
shelooga said:
Want to keep the phone as close to stock and do my own mods n work.. So can anyone point me in this direction? I haven't found anything on it..
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=633246
dont let all the text scare you away easily, it is quite simple to use and easy to get a hang of.
magneticzero said:
http://forum.xda-developers.com/showthread.php?t=633246
dont let all the text scare you away easily, it is quite simple to use and easy to get a hang of.
Click to expand...
Click to collapse
Was hoping I could do it at work right over the phone.. Oh well, new project for tonight. Thanks!!
i cannot get this to work. my cygwin will not open. it flashes a command prompot box for a split second each time i try to open the shortcut.
any other ways to deodex the tb without using android kitchen? i just cant get it to go smoothly. i remember using (incorrectly) a program similar to this when playing around with my droidx.
Apktool and something else...much more involved. I will let you know when i find the info
Smali/baksmali. But i think the kitchen is the easiest and quickest way to deodex your own rom....such a useful tool imo
magneticzero said:
Apktool and something else...much more involved. I will let you know when i find the info
Smali/baksmali. But i think the kitchen is the easiest and quickest way to deodex your own rom....such a useful tool imo
Click to expand...
Click to collapse
Think it was apktool. Ill keep plugging away when I get home
My cygwin won't open for more than a split second when I double click the shortcut. Any ideas?
i have no idea about VM's, I have a linux box
shelooga said:
Think it was apktool. Ill keep plugging away when I get home
My cygwin won't open for more than a split second when I double click the shortcut. Any ideas?
Click to expand...
Click to collapse
You didn't install it correctly.
The install defaults to the unzipped folder. You need the folder inside the unzipped folder.
Run the install again, and this time when it wants the path to the packages, browse to the folder inside the folder you unzipped to.
The folder inside the unzipped folder has the same name..... cygwin_packages
well i finally have the command prompt open. but im totally lost form here. ive extracted the kitchen files to my home, ive ran 'cd nameofmyfolder', ive ran ./menu. i get nothing. no such file or directory. im getting really pissed
shelooga said:
well i finally have the command prompt open. but im totally lost form here. ive extracted the kitchen files to my home, ive ran 'cd nameofmyfolder', ive ran ./menu. i get nothing. no such file or directory. im getting really pissed
Click to expand...
Click to collapse
you may have to chmod +x the menu so your linux os can execute it
magneticzero said:
you may have to chmod +x the menu so your linux os can execute it
Click to expand...
Click to collapse
typed 'chmod +x' and got chmod: missing operand after '+x'
im totally new to linux. or this emulator; whatever the kitchen is.
ive tried placing a 399mb pg05img file i used to root the phone through adb. nothing
tried putting up the system.img and boot.img from a backup i made of my rooted bloated phone to the original update folder too.
c:\cygwin\home\kitchen\original_update is where i put it, like the post says.
so if the kitchen starts and seemingly works, why cant it pick up on these files
shelooga said:
so if the kitchen starts and seemingly works, why cant it pick up on these files
Click to expand...
Click to collapse
having the android files doesnt matter if the kitchen works or not. you will have to import the android files while in the kitchen.
not really sure how else to go about this, never done it this way, maybe someone else can chime in.
**just thinking in my head atm... you are root(command: su , then input your password(you will know when the command prompt changes) just wondering
yea i appreciate the help anyway. im going to try with the leaked stock package and see how that goes
Is your Home folder in the Cygwin folder?
In your Home folder is there another folder with your name on it?
That's where Kitchen goes.
Start Cygwin from the batch file in the Cygwin folder, cd to Kitchen, then enter the ./menu command
I put my system.img and boot.img from a nandroid backup i made in the original update_folder and it worked perfectly.
dave8311 said:
Is your Home folder in the Cygwin folder?
In your Home folder is there another folder with your name on it?
Thats where Kitchen goes.
Start Cygwin from the batch file in the Cygwin folder, cd to Kitchen, then enter the ./menu command
Click to expand...
Click to collapse
that would make sense.
i tried extracting the kitchen file to home, i tried extracting it to home/erich. it is not going. i just keep getting no such file or extension
shelooga said:
i tried extracting the kitchen file to home, i tried extracting it to home/erich. it is not going. i just keep getting no such file or extension
Click to expand...
Click to collapse
Put the kitchen zip file in the "erich" folder, right click on it and choose "extract here"
.. then open cygwin and after the $ type 'cd erich' right? It's not working still for me
shelooga said:
.. then open cygwin and after the $ type 'cd erich' right? It's not working still for me
Click to expand...
Click to collapse
Nope.
cd kitchen
then....
./menu
bash: cd: kitchen: no such file or directory
man i am so sick of seeing that message. i cant tell you how many times ive deleted it all and redownloaded the files. or bash: cd: erich
ive tried so many combos of unzipping the kitchen and putting my rom in it and rezipping and unzipping back into cygwin home its crazy. so much wasted time
How to modify your framework-res.apk
There are plenty of "How-to's" out there that I've seen for modifying the framework-res.apk. I've tried probably 20 of them...all resulted in getting stuck in a bootloop. Finally figured out a method that works.
Here goes:
THIS IS FOR LINUX BASED USERS
Go to www.jokersax.com and grab my tool.zip under Th3Bill Mods
Extract it in your HOME folder
Inside it you will find 2 versions of apktool. There is a good reason for that, which you will see later.
You also need a good xml editor like Editra (available in most distros packages)
Need an archive manager as well (I recommend File Roller)
[COLOR="green"[B][U]]Initial Setup:[/U][/B][/COLOR][/SIZE]
[SIZE="3"]1) Open your Home folder and select to show hidden files
2) Open your .bashrc file
3) Add the following lines to the bottom of the file
export PATH=${PATH}:~/bin
export PATH=${PATH}:~/tool/reg
export PATH=${PATH}:~/tool/ics
Then save the file
4) Open your .profile file
5) Add the following line to the bottom of the file
PATH="$HOME/tool/ics:$HOME/tool/reg:$PATH"
Then save the file.
Now, on to editing
1) Navigate to the framework folder that your framework-res.apk is in.
2) Open a terminal
3) Type in "reg if framework-res.apk" no quotations and press Enter
4) Type in "reg d framework-res.apk" no quotations and press Enter Now minimize terminal (you'll use it later)
5) You should see in your file manager the folder called framework-res. This is your decompiled framework-res.apk
6) Make your edits. be careful....this file controls a TON of things in your system, and you can make some major problems for yourself if you edit things incorrectly.
7) Once your edits are done, go back to your terminal session
8) Type in the following "ics b framework-res" no quotations (where *username* is your account username) and press Enter.
9) It should recompile correctly. You'll have a framework-res.apk in the /framework-res/dist folder. DO NOT USE THIS ONE WILL CAUSE BOOTLOOPS!!
10) Open it with an archive manager and extract the resources.arsc as well as any files you edited in the xml folder.
11) Go back to your ORIGINAL framework-res.apk and open (not extract) it in your archive program
12) Add in the files you extracted from the edited framework-res.apk, placing them in the appropriate folders
13) You're done!
Cheers!
P.S. If you get a recompile error that mentions plurals, you have some work to do. Go to the values folders one at a time and look for the plurals.xml files. You will see a bunch of entries....scroll all the way down till you see a section that looks like this:
<plurals name="matches_found">
<item quantity="other">%d of %d</item>
<item quantity="one">1 match</item>
you need to edit this section to look like this:
<plurals name="matches_found">
<item quantity="other">%1$d of %2$d</item>
<item quantity="one">1 match</item>
This must be done for EACH plural.xml file...placing 1$ behind the first % and 2$ behind the second one. Save each as you go. Then recompile, and you should be good to go.
HOW TO LOGCAT PROPERLY
Here's how to logcat so that a dev can actually help fix your issue
SETUP
1) Download Android SDK from HERE
2) Place it directly in your HOME folder
3) Extract the file there and rename the folder android-sdk
4) Go to the platform-tools folder and double-click android
5) Download at least the tools and platform-tools. You can download other stuff, but that's unnecessary for this exercise.
6) Close SDK when it's done
Now to LOGCAT
1) Navigate to the /platform-tools folder.
2) Open a terminal
3) Type in either A or B depending on your system
A) (works on Ubuntu derivatives)
sudo ./adb kill-server
sudo ./adb start-server
B) (Suse, Fedora, etc)
su
(enter your password)
./adb kill-server
./adb-start-server
Now, the server should be running....leave it open!
4) Plug your phone into the PC (making sure that if it's ON, that you have android debugging enabled...or the proper edit in build.prop listed below)
5) If your phone is OFF(meaning you can't get it to boot from a rom/mod you did), follow A). If your phone is ON (meanint working but has a FC somewhere), follow B)
A) Type into the terminal the following
./adb logcat -C
and press enter. Should say waiting for device. Turn on your phone. When it gets to a section where you see a large amount of red pass by on the screen (like 8-10 lines), go to step 6
B) Be sure to turn off ALL apps that are NOT related to your FC (this makes it nice and neat for us to read the logcat)
Open terminal and type in the following
./adb logcat -C
and press enter. You should see it start to log stuff...it'll be going by really fast...don't worry about that right now.
NOW, do whatever it is that fcs (open the app, process, etc) and wait for it to FC. When it does, go to step 6
6) With the Terminal being your primary window in the PC, Press Ctrl +Z. This will stop the logcat output
7) Search through the logcat for the section with all the red (you'll see a bunch of E's). Don't cut this up on us...we may need some of the other info
8) Select about 30-40 lines ABOVE the red error section through about 10-20 lines AFTER the error section
9) Paste this into Pastebin. Please don't send us this in an e-mail...it just looks a hot mess that way.
10) Link to the Dev.
CHEERS!
Blank flashable zip
For all of you out there wanting to flash an app or framework file, here is a flashable zip that is blank. It contains instructions inside it, so PLEASE
READ THE FILE LABELED "READ ME FIRST!!!!"
This will make a simple process of flashing the items you want to flash.
CHECK POST 8 FOR CORRECTED INFORMATION
Any questions...ask me
Could we use this to turn our phones into a space/time bending machine??
Lol jk. Thanks for the information and flash able zip!!!
Sent from my MB855 using XDA
tsdeaton said:
Could we use this to turn our phones into a space/time bending machine??
Lol jk. Thanks for the information and flash able zip!!!
Sent from my MB855 using XDA
Click to expand...
Click to collapse
Don't I wish...or an intelligence enhancer...LOL
Glad to share
th3bill said:
don't i wish...or an intelligence enhancer...lol
glad to share
Click to expand...
Click to collapse
lmao! +1476930593
Bad ass thread buddy thanks for the how to's and blank flash zips these will surely come in handy....
MIUI/ICS for the Photon
http://forum.xda-developers.com/showthread.php?t=1536161
For deodexed I'm guessing.
Th3Bill said:
For all of you out there wanting to flash an app or framework file, here is a flashable zip that is blank. It contains instructions inside it, so PLEASE
READ THE FILE LABELED "READ ME FIRST!!!!"
This will make a simple process of flashing the items you want to flash.
If you wish to flash other items, you simply need to make sure that the item you want is in the folder it would be in within your phone, so if you want something to go into /system/lib, make sure that you create a folder /lib inside the /system folder in the zip and put the file inside that folder.
Any questions...ask me
Click to expand...
Click to collapse
Also, I should add that I forgot something in the explanation for this file. Wherever you are putting the file you're flashing (app, framework), you will need to adjust the permissions portion of the updater-script to show that file. Otherwise, you will set your entire /system to those permissions and you will get wonderful boot-loops
So, for app Music.apk, that line would look like:
set_perm(0, 0, 0755, 0644, "/system/app/music.apk");
Here is the updated file with the corrected instructions inside it Sorry for any issues fellas!
Blank CWM2.zip
Go to the site to download the file
Cheers!
TOOLS
Who doesn't love tools?
I've seen a lot of confusion over which versions to use for decompiling. Magic values being off with the current version of Android being pushed to 4.0.4.
Here's a helpful little tool kit. Disclaimer: It's for Linux based systems(save for the Androidsuite). I will try to find all these for Windows at some point, but with MIUI for Photon and Atrix, CNA for Photon, and Kitchen Sinks for both Photon and Atrix, I'm spread a little thin for some of these how-tos. I will post more soon once Kitchen Sink is Beta.
Tool.zip
Go to the site and download the file.
There's a small file inside with an explanation of each tool. NOTE: I put that Android suite works in Wine. It does not. It will OPEN and look like it might work, but does not recompile or decompile anything. It's a windows only wonder...LOL
Is there any way you'd be able to write up a How-To on how to use Diff/Patch in the laments terms, with Android specific type files directions cuz I'm trying to figure it out but since all the info I find is for applying it to everything other than Android. I'm on a mac and have it all setup correctly but I fk shyt up cuz I lose a step or something.
By the way, thanks for this How to also. Awesome.
MoPhoACTV Initiative
moonzbabysh said:
Is there any way you'd be able to write up a How-To on how to use Diff/Patch in the laments terms, with Android specific type files directions cuz I'm trying to figure it out but since all the info I find is for applying it to everything other than Android. I'm on a mac and have it all setup correctly but I fk shyt up cuz I lose a step or something.
By the way, thanks for this How to also. Awesome.
MoPhoACTV Initiative
Click to expand...
Click to collapse
What are you trying to do? You looking to do rom porting? Try to change some features? Change colors in a menu? Need a bit more info. Depending on what you're wanting to do will determine what the steps will be.
Idiots guide to porting ROMs for Photon, now THAT would be great. Sure it'd be a PITA and 3/4 to make though lol, great work on keeping up this how-to thread and all your ROM work!
w0lf215 said:
Idiots guide to porting ROMs for Photon, now THAT would be great. Sure it'd be a PITA and 3/4 to make though lol, great work on keeping up this how-to thread and all your ROM work!
Click to expand...
Click to collapse
<<<[----RECOGNIZED CONTRIBUTOR now
I feel bad that I haven't written more "how to's" in a while, but with 6 downloads I'm currently doing (MIUI Photon, MIUI Atrix, CNA Photon, Kitchen Sink Photon, Kitchen Sink Atrix, TabletUI Photon), I'm being spread pretty thin....LOL. It's all good. I love doing this stuff.
I promise to write more of these as I get a chance. I like to have more people help with stuff.
Th3Bill said:
<<<[----RECOGNIZED CONTRIBUTOR now
I feel bad that I haven't written more "how to's" in a while, but with 6 downloads I'm currently doing (MIUI Photon, MIUI Atrix, CNA Photon, Kitchen Sink Photon, Kitchen Sink Atrix, TabletUI Photon), I'm being spread pretty thin....LOL. It's all good. I love doing this stuff.
I promise to write more of these as I get a chance. I like to have more people help with stuff.
Click to expand...
Click to collapse
I noticed that a little while ago, Congrats on the new title thats whats up.
btw check your pm
moonzbabysh said:
I noticed that a little while ago, Congrats on the new title thats whats up.
btw check your pm
Click to expand...
Click to collapse
Check yours...got a book in there for ya...LOL
Updated OP How Tos.....Framework-res edit and Logcatting
Th3Bill said:
Updated OP How Tos.....Framework-res edit and Logcatting
Click to expand...
Click to collapse
Just setting up on pc. Ready to try this. You may be hearing from me! LOL
So my friend was playing around with my T-Prime awhile back when he shows me he has entered the incorrect pattern so many times that it will only allow me to sign in with my Google account to regain access to it. Im like okay, no big deal, ill just sign in change the password and no problem.. Well, I have tried that and it will not accept my log in information.. I know the username (email) and password is right. I can log in from my computer just fine and I haven't changed the password for that account since I've had the tablet. I do not know what else to do..? I have tried putting just the first part of my username, tried entering null into the password box. didn't work.. I believe it might have something to do with the wifi not being on, but i cant turn it on because my tablet is locked! Is there anyway i can use ADB or something to turn wifi on or to let me reset the lock screen so i can enter my unlock pattern? I do know what the unlock pattern is. I would really like to not have to factory reset and wipe all the data and loose everything.. Thanks in advance!
You can use adb if you had usb debugging e.nabled and then you can remove some file which keeps the lockscreen info.I can't remember the file name but you can google it.If uou can't find anything the only thing you can do is hard reset.
Sent from my Optimus Me using xda premium
yup
but rember if you try to whipe data/cash in recovery mode u still have to enter your lockscreen password
as mentioned try hardreset via buttons at startup
hope u get done fast =)
nerot said:
You can use adb if you had usb debugging e.nabled and then you can remove some file which keeps the lockscreen info.I can't remember the file name but you can google it.If uou can't find anything the only thing you can do is hard reset.
Click to expand...
Click to collapse
I do have debugging enabled and I'm not really good with ADB, but I have tried accessing the file in: data/data/com.android.providers.settings/databases/settings.db
Now on my OG Droid, when I navigate to this file using Root Explorer, it allows me to open and view the settings.db file with its internal viewer, where I can see an entry called "secure". When you open that, the most notable entry is the one called "lockscreen.lockedoutpermanently" and its value is of course 0 being "false", because this is on my Droid. but its likely the value of 1 means "true", which is what i assume to be the case on my T-Prime. This all seems like a promising lead, meaning, in theory, all I would have to do is be able to get that file from the tablet and change the value to 0.. however, using ADB when I navigate to that folder, I cannot pull the settings.db file because it says permission denied. Any ideas on what might cause that? I might not be using ADB correctly, or its because it's a system file. I found some instructions awhile ago saying you could use ADB and call a program called sqlite3 to edit the file that way and return the value to 0, but when I tried that it could not locate a program called sqlite3.. Also, I have tried hard resetting with volume down and power multiple times.. no luck.. So I'm out of knowledge and ideas..
Ryco26 said:
I do have debugging enabled and I'm not really good with ADB, but I have tried accessing the file in: data/data/com.android.providers.settings/databases/settings.db
Now on my OG Droid, when I navigate to this file using Root Explorer, it allows me to open and view the settings.db file with its internal viewer, where I can see an entry called "secure". When you open that, the most notable entry is the one called "lockscreen.lockedoutpermanently" and its value is of course 0 being "false", because this is on my Droid. but its likely the value of 1 means "true", which is what i assume to be the case on my T-Prime. This all seems like a promising lead, meaning, in theory, all I would have to do is be able to get that file from the tablet and change the value to 0.. however, using ADB when I navigate to that folder, I cannot pull the settings.db file because it says permission denied. Any ideas on what might cause that? I might not be using ADB correctly, or its because it's a system file. I found some instructions awhile ago saying you could use ADB and call a program called sqlite3 to edit the file that way and return the value to 0, but when I tried that it could not locate a program called sqlite3.. Also, I have tried hard resetting with volume down and power multiple times.. no luck.. So I'm out of knowledge and ideas..
Click to expand...
Click to collapse
Hmm try typing
su
*adb pull command*
if it doesn't work download Qt ADB and use that its a windows software.Afte lr you download it get the file and upload it here.I might be able to help you then,edit it reupload it so that you can push it back and see.
Sent from my Optimus Me using xda premium
nerot said:
Hmm try typing
su
*adb pull command*
if it doesn't work download Qt ADB and use that its a windows software.Afte lr you download it get the file and upload it here.I might be able to help you then,edit it reupload it so that you can push it back and see.
Click to expand...
Click to collapse
This is what I have tried doing so far:
using ADB and typing:
adb shell
[email protected]:/ $ su
[email protected]:/ # adb pull data/data/com.android.providers.settings/databases/settings.db C:\Users\Ryan\Desktop
and it returns "error device not found"
I have tried:
adb pull data/data/com.android.providers.settings/databases/settings.db C:\Users\Ryan\Desktop
and it returns "failed to copy 'data/data/com.android.providers.settings/databases/settings.db' to 'C:\Users\Ryan\Desktop/settings.db': Permission denied"
here's what it shows:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If i just try to pull the whole data folder, it returns:
"pull: building file list... 0 files pulled. 0 files skipped."
I dont know whats wrong here.. it does not want me to have access to the data folder in any way I try to pull from there.. maybe I'm missing something.. like I said I'm not very good with ADB.
So then I tried using QtADB like you recommended, which looked really promising! and it does work great for a lot of things. I'm happy to now have it if I need it.. except when I try to use it to navigate into the data folder it shows nothing!
See the screen shots:
and
Any ideas what to do?
Dude. Go on your comp. Go to the play store and look for no luck screen. There's an app that disables your lock screen in instances like this. It tells you to download it to your phone, then to find another app to download. Do that from your comp and you're golden
Sent from my 8-Core LG Galaxy S7
Alphaneus said:
Dude. Go on your comp. Go to the play store and look for no luck screen. There's an app that disables your lock screen in instances like this. It tells you to download it to your phone, then to find another app to download. Do that from your comp and you're golden
Click to expand...
Click to collapse
You do realize I wont be able to set the app up, or even download it to the tablet..? The tablet is locked, I cannot unlock it to set the app up, and the wifi is not on, so no internet connection.
I may be missing something here, but I am honestly open to any ideas.
Ryco26 said:
This is what I have tried doing so far:
using ADB and typing:
adb shell
[email protected]:/ $ su
[email protected]:/ # adb pull data/data/com.android.providers.settings/databases/settings.db C:\Users\Ryan\Desktop
and it returns "error device not found"
I have tried:
adb pull data/data/com.android.providers.settings/databases/settings.db C:\Users\Ryan\Desktop
and it returns "failed to copy 'data/data/com.android.providers.settings/databases/settings.db' to 'C:\Users\Ryan\Desktop/settings.db': Permission denied"
here's what it shows: http://oi47.tinypic.com/mcum8z.jpg
If i just try to pull the whole data folder, it returns:
"pull: building file list... 0 files pulled. 0 files skipped."
I dont know whats wrong here.. it does not want me to have access to the data folder in any way I try to pull from there.. maybe I'm missing something.. like I said I'm not very good with ADB.
So then I tried using QtADB like you recommended, which looked really promising! and it does work great for a lot of things. I'm happy to now have it if I need it.. except when I try to use it to navigate into the data folder it shows nothing!
See the screen shots:
http://oi47.tinypic.com/9sc7c8.jpg
and
http://oi49.tinypic.com/f1hycw.jpg
Any ideas what to do?
Click to expand...
Click to collapse
Hmm there must be some sort of protection.Are you rooted? If not thwn I really don't know what else you could do.The only thing that you can do is go to the place where you bought it and explain the situation and hope they will take it for repair.
Sent from my Optimus Me using xda premium
nerot said:
Hmm there must be some sort of protection.Are you rooted? If not thwn I really don't know what else you could do.The only thing that you can do is go to the place where you bought it and explain the situation and hope they will take it for repair.
Click to expand...
Click to collapse
Yes, I am rooted.. and I did figure out what was wrong! I had to change the permissions of each folder and the settings.db file to allow "other" to read, write and execute.
I used ls -l to see what was there and what permissions they currently had and took note. So here's what I had to do.
> adb shell
$ ls -l
gives you this:
(This is after I had already changed the permissions)
So I then took note of all the permissions of the folders that were in the path of data/data/com.android.providers.settings/databases/settings.db
I then read up on changing permissions and came across this site: http://ss64.com/bash/chmod.html
Very useful.
So I then did:
$ su
# chmod 777 data/
and it worked. I could now see the data/ folder in QtADB
So, finally some progress!
I did the same thing for the remaining folders using chmod and changed whatever the existing permissions were by adding only read, write and execute to the "other" category. This works perfectly on my Droid. and after all that I can use adb and pull the settings.db file right to my desktop or wherever. I then found an SQLite program to open and edit the file on my computer. http://sourceforge.net/projects/sqlitebrowser/
This all works perfectly and now I'm thinking all I have to do is do all of this to my T-Prime, pull the file, edit the database file, push back to device, go back and change permissions back to the way they were, reboot and I'm good to go.
However, I make it into the databases/ folder and discover there are 3 files in there.
1) settings.db
2) settings.db-shm
3) settings.db-wal
There was only one on my droid. And the main database file seems to kind of depend on the others. So I pull it and try to open it with the program I mentioned earlier and it is empty. there is nothing in it to edit. the file size is 39Kb, which is slightly larger than the 34Kb file I pulled from my Droid, yet its empty. I don't know how to edit it at this point. I believe it uses the other 2 files somehow.
I would like someone else, preferably with a Transformer Prime, to try this, pull the file and upload and link it so I can see if it will open for me and contain anything. They don't seem to contain any personal or device specific information in them, just settings. if it's from another Prime and opens for me, what the heck, i'll push it onto mine and give it a shot. All I have now is a $630 paperweight and headache.
You could try using your phone to edit it using an editor from the market, then push the file back to your tab.
I had something like this happen to me once when trying to import contacts to a freshly reset device.
What worked for me was disabling 2 step verification in Gmail.
Theonew said:
You could try using your phone to edit it using an editor from the market, then push the file back to your tab.
Click to expand...
Click to collapse
I thought of that too and I tried doing that. It says: "An error occurred while opening the database. database disk image is malformed: , while compiling: SELECT * FROM sqlite_master WHERE type in('table','view') ORDER BY name"
Whatever that means.. I don't know.
Thanks for the suggestion though.
Try using SQLite Editor from the market.
Theonew said:
Try using SQLite Editor from the market.
Click to expand...
Click to collapse
That is what I'm using in the previous post. I navigate to it through Root Explorer and it opens it with that. it opens all the other ones just fine though..
Ryco26 said:
That is what I'm using in the previous post. I navigate to it through Root Explorer and it opens it with that. it opens all the other ones just fine though..
Click to expand...
Click to collapse
That is weird. I tried it with the one from my tab and it opened it perfectly. Have you tried another editor in that case?
Theonew said:
That is weird. I tried it with the one from my tab and it opened it perfectly. Have you tried another editor in that case?
Click to expand...
Click to collapse
Yeah, I have tried the one on my computer, SQLite Editor, like you had mentioned and another from the market, i forget which one, but all with no luck. It's like because its locked, the file is blank.. but i think it could also be because of the other 2 files. The ones called settings.db-shm and settings.db-wal. What do you think? Do you have a T-Prime?
Ryco26 said:
Yeah, I have tried the one on my computer, SQLite Editor, like you had mentioned and another from the market, i forget which one, but all with no luck. It's like because its locked, the file is blank.. but i think it could also be because of the other 2 files. The ones called settings.db-shm and settings.db-wal. What do you think? Do you have a T-Prime?
Click to expand...
Click to collapse
No, I do not have a Prime (waiting for something else to come along ). You could try pulling all files and placing them in a folder, then using an editor to see if that works.
Theonew said:
No, I do not have a Prime (waiting for something else to come along ). You could try pulling all files and placing them in a folder, then using an editor to see if that works.
Click to expand...
Click to collapse
Oh ha okay. I shoulda waited for the TF700t.. anyway thats what i have done, is pull all files and put them into a folder.. it doesn't seem to make a difference because the -shm and -wal make them unreadable to average editors as database files. I can zip them and link them to you if you think you can figure something out?
Ryco26 said:
Oh ha okay. I shoulda waited for the TF700t.. anyway thats what i have done, is pull all files and put them into a folder.. it doesn't seem to make a difference because the -shm and -wal make them unreadable to average editors as database files. I can zip them and link them to you if you think you can figure something out?
Click to expand...
Click to collapse
Go ahead .