yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] iorange:
Anybuddy Help?

I tried to modify android.policy.jar to get a 7-in-1 power menu, and I tried to copy the smali files(only "Globlal Actions" titled) to replace the original files.

Lucily I've got a mostly-functional power menu, just left some label/text mismatched.I thought it's because of the wrong text ID ,so i searched for the labels and found the ID address to replace(in the framework-res.apk/.../public.xml)....But in the smali files i cannot find any ID that looks coincident....

Can someone just help me to modify the files or give me a tutorial.

AttachedFiles:

android.policy.jar -> moded file

backup_android.policy.jar -> origin file

Related Text IDs(which are found in the public.xml , but i cannot find any in smali):

roamingText4 -> global_action_power_off

0x01040125 -> 0x01040156

roamingText5->global_action_silent_mode_off_status

0x01040126 -> 0x01040159

roamingText6->global_action_silent_mode_on_status

0x01040127 -> 0x01040158

roamingText7->global_action_toggle_silent_mode

0x01040128 -> 0x01040157

roamingText8->global_actions_toggle_airplane_mode

0x01040129 -> 0x0104015a

roamingText10->global_actions_airplane_mode_off_status

0x0104012b -> 0x0104015c

roamingText9->global_actions_airplane_mode_on_status

0x0104012a -> 0x0104015b
[Android Software/Hacking General [Developers Only]] iorange:
All Finished and now i will give out my mods..

just for experienced users....

WARNING: I Assume NO Liability for ANYTHING!

for DEODEXed versions

the following attachments are:

android.policy.jar :=: 7-in-1 power menu (screen shot is in chinese but do have english resources , because its related to framework-res.apk)

framework-res.apk :=: battery icon mod for 1% increment

SystemUI.apk :=: extended toggles(Brightness + Rotation) of Quick Setting
[Android Software/Hacking General [Developers Only]] grad061980:
Thanks for posting your mods. Just so I have it straight. Can these be pushed to the system individually or are all 3 needed to be pushed to have them function correctly.
[Android Software/Hacking General [Developers Only]] iorange:
er..

each file achieves the function I noted after the ":=: " mark, each works individually for its function below:

android.policy.jar :=: 7-in-1 power menu

framework-res.apk :=: battery icon mod for 1% increment

SystemUI.apk :=: extended toggles(Brightness + Rotation) of Quick Setting

you should put the file into the right direct directory(to replace the original file), and DON'T FORGET TO SET THE PERMISSION (rwxrxxrxx):

android.policy.jar @ /system/framework

framework-res.apk @ /system/framework

SystemUI.apk @ /system/app

ONLY for DEODEXed version,or you should delete the .odex file attached.
[Android Software/Hacking General [Developers Only]] HampTheToker:
So, if I wanted to apply only the battery mod, I should delete all odex files in system/framework?

Also, may I have your permission to repost this at sdx-developers.com if you don't want to do it personally?
[Android Software/Hacking General [Developers Only]] iorange:
if u wanna apply only the battery mod, you should delete ONLY framework-res.odex.

btw, i've only tested it working on the deodexed version , so i suggest you make a backup before apply the changes.

and...of course you can repost this at anywhere you want^^ i'm a little lazy:D
[Android Software/Hacking General [Developers Only]] akguanja:
I have a couple questions if someone wouldnt mind answering.

First off 2fast does your root method change the CID of the phone?

2nd off, can I just manually root my design by unlocking the bootloader then putting cwm recovery on and then flashing superuser from within cwm recovery?

Reason im asking is my first design i had i used fridgids method of rooting and i ended up botching my MMS up (which i think was somehow related to it changing the CID) not 100% although.
[Android Software/Hacking General [Developers Only]] HampTheToker:
http://forum.sdx-developers.com/index.php?topic=19080.0
[Android Software/Hacking General [Developers Only]] akguanja:
what exactly am i looking for on the forum? I understand how to flash the SU.

I guess what im asking is will the manual install of SU from recovery to root break my MMS like the zergrush method did?

from reading here i seem to think that 2fasts root and fridgids root both use the zergrush method which previously killed my MMS so i am thinking shouldnt use that.

btw Im on a local carrier. GCI wireless

and Hamp: thx for helping me in both threads. still trying to understand this whole android thing.

i have some *nix experience but how this all works is still a learning in progress.
[Android Software/Hacking General [Developers Only]] awadewitz:
it shouldnt mess with that but I could be wrong and if it does just have a backup before [im assuming u have cwm] and just flash back and no problems....theres really no risk
[Android Software/Hacking General [Developers Only]] akguanja:
yea, thats what i figured. deffinatly doing a backup this time. last time i rooted first before putting cwm recovery on so i couldn't backup.
[Android Software/Hacking General [Developers Only]] brianhopper82:
I've been watching this thread from the start. I have the HTC Hero S by US Cellular. I'm so confused on how to root this phone.

I used to have HTC Desire and rooted and used CM which was so nice..year after buying the phone because it took me so long to figure it out.

I'll keep watching this thread and hopefully one day I'll figure this out.

Thanks.
[Android Software/Hacking General [Developers Only]] grad061980:
From the first post in this thread.

I used version 1.1 from www.2fastroms.com site. Give it a try. Instructions from his site are quite good. :D
[Android Software/Hacking General [Developers Only]] brianhopper82:
I actually figured it out last night. I used v1.1 from 2fastroms.com

I'm not really sure how I managed to get that to work.

My phone still has S-ON

I don't know how to make a nandroid without having clockwork on the phone.
[Android Software/Hacking General [Developers Only]] grad061980:
Cool. Glad you got it accomplished. Can't. Have to use htcdev.com.com to unlock your bootloader. Then use the port of cwm recovery from 2fast. After that is installed, you will be able to do a nandroid backup, flash roms, kernels (only in cwm if you have an edited Boot.img) , & other mods.
[Android Software/Hacking General [Developers Only]] brianhopper82:
I've unlocked the bootloader from htcdev.com. that doesn't make S-OFF does it?

I'll work on it later. Thanks
[Android Software/Hacking General [Developers Only]] grad061980:
Kind of s-off. The sim-lock & radios are s-on or locked down. Everything else works as s-off (custom recoveries, roms, kernels, etc.) , but your bootloader will say unlocked s-on.
[Android Software/Hacking General [Developers Only]] brianhopper82:
Ok so I missed a step. sorry I'm a noob.

I forgot to download and install the Unofficial ClockworkMod 5.0.2.7

http://xdaforums.com/showthread.php?t=1399321

I'm so glad you all are not giving me crap. I appreciate it very much.

Now I came across another roadblock. on the the first post of this thread, this is what is shown.

-----

Rom's for Evo Design 4g or Hero S:

****zipak Gingerbread base on stock uscc firmware as close to aosp as possible. (I believe two versions are now up)

http://vaelek.com/index.php/topic/2483-skitzipak-for-heros-on-us-celular/

Thanks to skitzi

-----

I don't know if its just me or I missed something throughout this thread but when I click on the link it says:

An Error Occurred

Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.

[#10340] You do not have permission to view this topic.
[Android Software/Hacking General [Developers Only]] HampTheToker:
Skitzi pulled the ROM for some reason and is no longer developing the Design/Hero S. I think he probably got a different phone.
[Android Software/Hacking General [Developers Only]] grad061980:
That rom is dead. I'm running this one http://2fastroms.com/viewtopic.php?t=3988
[Android Software/Hacking General [Developers Only]] brianhopper82:
Ok Thank you both!

@Grad061980, I'll have to check that out. It might be a job for the night for me. lol
[Android Software/Hacking General [Developers Only]] Skitzi:
the scoop on whats up with "SkitziPak" and a download link can be found in the restored thread (had been hidden not deleted that's what the link was not working).

http://vaelek.com/index.php/topic/2483-rom-updated-1612-skitzipak-for-heros-on-us-celular/
[Android Software/Hacking General [Developers Only]] brianhopper82:
Thank you Skitzi
[Android Software/Hacking General [Developers Only]] amoser871:
kernal

Anyone working on an overclock kernal for the heroS or design
[Android Software/Hacking General [Developers Only]] grad061980:
2fast4u88 posted one in this thread. http://xdaforums.com/showthread.php?p=21258363 To flash it is a pain unless you are on 2fast's stock rom too. If on his rom boot into recovery & flash the kernel zip & reboot. If you are not on his rom, there are instructions I think in this thread & over at sdx-developers in the design 4g/hero s section.

After flashing the kernel it's set at 1.8 overclock, grab a cpu control app & set it to 1.6, ondemand, apply at boot. You can set it higher or lower, but 1.6 is the sweet spot for performance, stability, & battery use & also what 2fast recommends. I get no adverse effects at that setting running my hero s & get nearly 24 hrs of moderate use at that. It will also take your boot time from 2:30 down to just over 50 seconds.
[Android Software/Hacking General [Developers Only]] Quizzys:
HTC Hero S Messed Up Please Help

Hello i am not a complete noob to flashing roms but flashed a rom and now my notification bar is gone at the top of my screen and its just acting really weird. I have the US Cellular HTC Hero S and would like to just go back to total stock. I have my bootloader unlocked via HTCDev so if anyone could please give me a step by step to a complete stock format i would really really appreciate it
[Android Software/Hacking General [Developers Only]] grad061980:
This post has the stock rom & instructions http://xdaforums.com/showthread.php?p=21381654

Here is a copy & paste from sdx-developers.com & skitzi too with basic instructions & some lines added by me:

"I have also had luck on the HeroS re-locking the bootloader before using the stock images, which the ruu just pushes the stock images so it is effectively the same.

May be some thing to try

1. Boot in bootloader (adb reboot bootloader - or press power, select reboot, hold volume down when screen goes black)

2. I forget if it takes you straight to fastboot or if you have to select fastboot once in the bootloader.

3. from your computer terminal type fastboot oem lock

Reboot the phone, it will be act as if you just flashed a rom. Once booted try the ruu again.

Not positive this will work but I do know for a fact your bootloader needs to be locked on the HeroS to flash the stock images.

Hope this helps"
[Android Software/Hacking General [Developers Only]] herbzilla:
So I flashed the 2fast4u kernel it is running steady at 1.8 very solid kernel. I wish that there were more ROMs out there for the HTC hero s. I cam from the EVO and I am a flashaholic. Anyone need a testers I am your man.
[Android Software/Hacking General [Developers Only]] amoser871:
now will the UV kernal work as an OC kernal as well or are they both the same he just added UV to it?
[Android Software/Hacking General [Developers Only]] HampTheToker:
I'm interested to see more kernel development for the Design. IIRC, 2fast said his kernel was just a proof of concept, and I'm unsure if he still owns a Hero S. If anyone knows of more than I do about current kernel development please feel free to clue me in.
[Android Software/Hacking General [Developers Only]] grad061980:
Both. Afaik at the overclocked, I think around 1.4-1.6 mhz, the kernel is using stock (1.2) voltage.
[Android Software/Hacking General [Developers Only]] amoser871:
just wanna say 2fast's kernal works amazing running a 1.7 and it is shear beauty
[Android Software/Hacking General [Developers Only]] HampTheToker:
Did anyone add the WiFi and Wimax modules for the Evo Design into 2fast's kernel? I forgot he didn't add them when I flashed it, so I had to restore a backup. I'd be willing to do it myself for the experience if anyone could tell me how.
[Android Software/Hacking General [Developers Only]] captivated1971:
ready for root

dang lol the forums down ready to root it. any idea how much longer?
[Android Software/Hacking General [Developers Only]] firegeek:
So my design seems to pass the total immersion test. It went for a swim and after a brief drying period it is working great... Sigh. I'm still an idiot for knocking it off the counter into the toilet.

E.
[Android Software/Hacking General [Developers Only]] lui22:
haha you think yours is bad my battery back is still in the hunting ground mud somewhere in california
[Android Software/Hacking General [Developers Only]] HampTheToker:
How do you use it without the cover? I always lost signal every time it was off.
[Android Software/Hacking General [Developers Only]] firegeek:
Damn! Mud!

I've never reached into a toilet so fast... Then immediately dropped it back in because I just grabbed it from the toilet... Then reached in again and pulled it out... I'm the double dipper!
[Android Software/Hacking General [Developers Only]] HampTheToker:
It's probably best to buy a new battery. Have you noticed any decrease in normal battery life? And, did you use rice to get everything dried out?
[Android Software/Hacking General [Developers Only]] firegeek:
So far no decrease in battery life that I can see... And I wasn't patient enough to rice it. I used a blow dryer on cool and then threw it all together. The only thing I noticed is the the SIM card isn't recognized now... I have the black tie protection plan from best buy.... But the design is currently back ordered... So I'm gonna wait so I'm not stuck with a crappy ass loaner phone for more than 5 days.
[Android Software/Hacking General [Developers Only]] lui22:
i am always either on roaming gsm or no signal... the phone is deactivated now since i cant use it and i havent any insurance *facepalm* and my battery drains in half an hour if im playing a game or something... today i was playin plants vs zombies and from 86 it went down to fifty for a half hour of playing.

i cant find the back anywhere ive checked withh all the stores in my area the swapmeets and even sprint and they dont have it,

the batteryback is actually the antenna BTW same design with the Legen Desire HD and most aluminum unibody phones
[Android Software/Hacking General [Developers Only]] Rally187:
I got fed up with my nexus s 4g ****ty signal strength and went to best buy to look for a new phone. i was due for an upgrade and noticed that the the htc design 4g was free. i felt it and played around with it and after i felt the quality i was sold. I wouldnt have ever guessed that this phone would have virtually no dev support :( I really love the phone but i really love messing around and tweaking my phones. do you guys think this phone will ever get the love it deserves or should i just take it back and wait tell the galaxy nexus comes out? TIA.
[Android Software/Hacking General [Developers Only]] HampTheToker:
I'd hang on to it. Development is starting to pick up. CM7 and a custom kernel are in the works at sdx. Plus, it'll surely get some love when ICS drops. I can't wait for all the system dump requests, lol.
[Android Software/Hacking General [Developers Only]] LouZiffer:
After a lot more pressure, new kernel source has been dropped out on htc.dev. It's the source for the most recent update. Bye bye Carrier IQ!
[Android Software/Hacking General [Developers Only]] OctoberNexus:
What is the latest Hero S Baseband anyone?

Sent from my HTC Hero S
[Android Software/Hacking General [Developers Only]] grad061980:
http://db.tt/rpSnM1Rx
[Android Software/Hacking General [Developers Only]] moconnell_2007:
I am new to this so bare with me. I've unlocked the bootloader on my us cellular HTC Hero S and have been playing with frigid's supertool and looking around the forums trying to gain enough understanding to put all of this together for root access. Supertool isn't getting me anywhere and neither are the 404 error pages that most of the links on here are leading me to. I know nobody wants to go tutorial mode for lack of time but maybe links could be reposted. I currently have all the time in the world so with a little assistance i could figure this out and in turn be able to contribute to this forum as well. Thank you for any replies.
[Android Software/Hacking General [Developers Only]] herbzilla:
You can go to page 14 and download the rom from 2fast4u its a great rom.I use it.
[Android Software/Hacking General [Developers Only]] Mangani001:
next step should be a custom recovery.... find it here

http://forum.sdx-developers.com/?board=344.0
[Android Software/Hacking General [Developers Only]] Carbon Trooper:
That's EXACTLY what's happening to me! I unlocked the bootloader, and installed a custom recovery. Now what do I do for root access? Any help would be much appreciated :)
[Android Software/Hacking General [Developers Only]] rmcali:
If your guys are updated to the most recent updates you cant use the super tool. The update blocks it. If you already have the bootloader unlocked and a recovery flashed then depending on what software version you have to gain root again. Simply flash a super user zip of your choice. Make sure it's got the bianary and apk in it and then just go into the recovery and go to install zip and find the SU zip and flash away and now your rooted.
[Android Software/Hacking General [Developers Only]] weenerdog3443:
does anyone have the Design back to stock RUU? the links from post16 I believe it is are junk. first one doesnt work and the second all day long has been saying to many users for free download
[Android Software/Hacking General [Developers Only]] iorange:
4/13 - HTC EVO Design 4G Software Update - 2.12.651.8

HTC EVO Design 4G Software Update - 2.12.651.8

Enhancements/Fixes:

- Security Update

Important Notes:

- The new software version is: 2.12.651.8

- The customer may initiate the update beginning 4/13 or wait until notifications begin being sent to devices on 4/17

- Refer to the HTC EVO Design 4G Software Updates blog install instructions

- Updates may be released in stages. When checking for the update, if you receive a message that no update is available,

check back later or wait until the update notification is sent to your device

=================================================

Link http://community.sprint.com/baw/message/411880#411880

=================================================

Btw, can some just give me a OTA upgrade package.

it might be somewhere in your internel storage when finished download the OTA update.
[Android Software/Hacking General [Developers Only]] rhynocharge:
no notification bar up top

i have this phone and i factory reset it to unistall a rom i flashed on it and now my notification bar is missing need help plz reply back
[Android Software/Hacking General [Developers Only]] herbzilla:
What kind of factory reset are you talking about.

most factory resets just erase data not the rom.
[Android Software/Hacking General [Developers Only]] skinzzz:
guys, a noob question.

i have sprint evo design 4g.

unlocked and using in india in reliance cdma network.

if i unlock my device through htcdev, will it reset the phone ?

will it reset my reliance cdma network settings ?

i am afraid of loosing those network settings, because i dont know how to configure them.

your help would be highly appreciated.

thanks in advance.
[Android Software/Hacking General [Developers Only]] holicl523519839:
I think it will not reset those settings .
[Android Software/Hacking General [Developers Only]] skinzzz:
Thanks for the reply.

But I do not want to take any chances.

Gurus, please advise.
[Android Software/Hacking General [Developers Only]] HampTheToker:
Where did you buy the phone? Is it from reliance or do you just use that service with a phone you bought from another country? Would help to know more...

An unlock at htcdev will erase your downloaded apps and data, but it won't reset any regional settings that were set by an official carrier. If it made your phone unusable you could easily file an insurance claim if it is available to you. I don't know how that carrier or country handles insurance for your devices, but if an official HTC unlock borked your phone the carrier and/or manufacturer would be responsible if your device is still under warranty or insured.

I wouldn't worry about it if the phone was purchased in India at an official vendor of some sort.
[Android Software/Hacking General [Developers Only]] HampTheToker:
Edit: Skipped the part where you said Sprint Evo Design.

Do you have Sprint (or subsidiaries) in India?

Edit 2: How exactly did you unlock it before since you're using it on a cdma network? Did you buy it like that?
[Android Software/Hacking General [Developers Only]] skinzzz:
HampTheToker , thanks for reply.

this phone belongs to sprint usa, and it's unlocked and being used on reliance cdma network in india.

there is nothing official about it ! sprint does not exist in india.

that's the reason i am afraid of experimenting.

basically, i have two reasons to unlock bootloder.

1. root

2. gsm sim unlock

please advise further.
[Android Software/Hacking General [Developers Only]] grad061980:
htcdev unlock leaves the sim & radios locked (check the faq on htcdev.com unlock bootloder tool). So to tell you that you will still have your cdma unlocked is questable. I think the best bet would be s-off via another method, but that is currently not possible (I do know a few people that have it & a couple that are working on s-off - no luck yet though). Root should not be an issue.
[Android Software/Hacking General [Developers Only]] HampTheToker:
Can he fastboot flash recovery and then su binary for root?
[Android Software/Hacking General [Developers Only]] rhynocharge:
i did it through the clockwork mod and the stock factorys resets none work :mad:
[Android Software/Hacking General [Developers Only]] holicl523519839:
Do you guys know when the Android 4.0 for Design 4G release ?
[Android Software/Hacking General [Developers Only]] grad061980:
"Can he fastboot flash recovery and then su binary for root?"

@ Hamp. I'm not sure if that will work or not as to put a custom recovery on you have to be unlocked.
[Android Software/Hacking General [Developers Only]] grad061980:
Nobody knows yet. Might keep track on htc's blog, as that is where they are posting release information on ics

http://blog.htc.com/2012/03/ics/
[Android Software/Hacking General [Developers Only]] adamraymondtroy:
ICS
[Android Software/Hacking General [Developers Only]] debage39:
Ics rom w gapps.

http://xdaforums.com/showthread.php?t=1542639
[Android Software/Hacking General [Developers Only]] Straightsix74:
Wrong phone, mate. He's be looking for one for the Hero S or Evo Design, not so much the old Hero 200.
[Android Software/Hacking General [Developers Only]] debage39:
Oh my bad. Just started messing with this phone. Thought there was just cdma and GSM heros.
[Android Software/Hacking General [Developers Only]] debage39:
I miss my Evo lol
[Android Software/Hacking General [Developers Only]] debage39:
Hero s looks like a cool device. Be a cute Evo when it grows up. Lol
[Android Software/Hacking General [Developers Only]] Straightsix74:
It's all good. Just remember that the Hero and Hero S are two very different pieces of hardware.
[Android Software/Hacking General [Developers Only]] holicl523519839:
what size available ROM Do you have ?

I mean "Internal storage"

my d4g only has 1GB,but sprint said it's 4GB
[Android Software/Hacking General [Developers Only]] 13iron:
ics update

just read evo design 4G to be released with Android 4.0 on boost mobile at end of quarter so hopefully we get the ics update on sprint at that time...