yashsingh1/xdaforums huggingface dataset:
[HTC Amaze 4G] shekki:
Well I had 3G and 4G show up on my phone for a while and then after I managed to get a logcat the data connection disappeared. I've tried connecting to wifi, turning data on and off, checking the apn settings for T-Mobile, connecting to the T-Mobile network in the mobile networks setting, as well as rebooting the phone and I still can't seem to get data back. Well here's a logcat for CM 9 with the edited ext.jar file, silent, provided in that thread. Hopefully this helps with getting data to work. Logcat
[HTC Amaze 4G] crose948:
hidden APN's

came across this post about hidden APN's

http://xdaforums.com/showthread.php?t=1691633
[HTC Amaze 4G] crose948:
Just tested this on the other sense 4 rom

OK, I just tried this on the [ROM][BETA] FastAmaze4 ICS with Sense 4.0, and was able to get the same "highlighted APN" settings with 2 APN's to choose from, it is still stuck on the (turning on) stage but at least we have some APN settings now.

http://xdaforums.com/showthread.php?t=1664128&page=97
[HTC Amaze 4G] DEFINITIONOFREAL:
I don't know if this can help or not

http://processors.wiki.ti.com/index.php/TI-Android-ICS-PortingGuide
[HTC Amaze 4G] crose948:
WOW a treasure trove of info, we may need someone with kernel skills to look at and mod the kernel.

USB 3G Modem

The USB 3G Modem section describes how to connect USB Modem to the android.

Introduction

PPP is the protocol used for establishing internet links over dial-up modems, DSL connections, and many other types of point-to-point links. The pppd daemon works together with the kernel PPP driver to establish and maintain a PPP link with another system (called the peer) and to negotiate Internet Protocol (IP) addresses for each end of the link.

Kernel Configuration for USB Modem

Device Drivers --->

[*] Network device support --->

<*> PPP (point-to-point protocol) support

<*> PPP BSD-Compress compression

<*> PPP Deflate compression

<*> PPP support for async serial ports

<*> PPP support for sync tty ports

[*] USB support --->

<*> USB Modem (CDC ACM) support

<*> USB Serial Converter support --->

[*] USB Generic Serial Driver

<*> USB driver for GSM and CDMA modems

File System Changes

To get the Modem Working, we need usb_modeswitch, usb_modeswicth.conf(configuration file) for the specific modem or Hardware vendor and the airtel.chat(dialer script) for the specific network.

Copy the usb_modeswitch (ARM Compiled binary) and usb_modeswitch.conf to the /system/xbin folder. The ARM compiled binary and the sources can be obtained from HERE

Copy the airtel.chat(dialer script) to the /system/etc/ppp folder

---------- Post added at 08:19 AM ---------- Previous post was at 07:45 AM ----------

Ok the nightmare rom under ( system/xbin) is missing "sqlite3 and su" files, it also has 4 (extra) files the other roms don't ,,I looked at 4 different roms to compare,

1 bb <-------------------------------- now some roms do and some DON'T have this file

2 nano

3 sysro

4 sysrw

not sure what these do but I tried to copy / paste the 2 missing files but it would not let me, they might have to be burned into the rom as it's built.
[HTC Amaze 4G] :
You can drag and drop those into the rom zip in the appropriate folder before you flash it with 7zip. Will flash fine.
[HTC Amaze 4G] laggo:
Bb is busybox

Nano is a terminal based text editor

Sysro a sysrw are scripts to mount system as readonly or readwrite. These files wouldnt affect data connections, just added bonuses most ppl cook into their roms.
[HTC Amaze 4G] KnowledgeBroker:
I've been trying to think of a productive way of explaining something, without offending you, nor scaring you or others from trying to take it to the next level..

First, the guy who posted the link before you(here and in 3+ other threads) intended well, but it really isn't a treasure trove of information as far as what we are trying to do here or in other roms- but is a useful bit of information about how wifi works with ti omap hardware. I have a feeling he felt like he had made some discovery he wanted to share, but he was missing some of the facts that would back it up..

Which leads to your missing files: I understand you see missing files and thought "maybe this is why", but before you jump to conclusions you need to do a bit of research.. here is a basic explanation of the android file system http://anantshri.info/andro/file_system.html be aware, you can click the black triangles to expand directory structures- you will see for xbin it says "Excutable Files generally this holds special executables like busybox or toolbox". Also, you can find the link to that and maybe other useful info in my signature for the bible, under the section "8. Advanced Android 101: So you wanna go to the next level?" Seriously read that section.

As I said, I don't want to offend you or kill your desire to help out, quite the opposite- I want to help you hone your methods into something that will REALLY help out, rather than go thru a long and drawn out trial and error process with little to no results.. and the only way to do that is RESEARCH.

Many, many, many posts in ALL of the forums are by people who have made some error in the process.. if I flash A, and everything is fine, then I flash B, and then there is an issue, then obviously B must be to blame.. the logic is sound, but if they don't have all of the factors then they are making false assumptions.

Do more research. Learn about linux. Try to find more info about the android file structure. Look at as many guides to porting as you can find. See if you can find posts about people who've had issues with data with a port, send them a PM and see how they resolved it- there is NO shortcut to doing good research.

At work they call me a "knowledge broker" because I have done so much research into so many things, I have really solid answers to a lot of issues. I can make logical conclusions because I have solid information to base it on, and I have to constantly try to keep that information up to date. It is what I do, it is what I am good at.. but it requires researching things till my fingertips bleed.

Anyways, just wanted to try to give you some productive feedback that may help get you on a more productive track.
[HTC Amaze 4G] KnowledgeBroker:
On a different note, user possessed1913 told me about a program called diffmerge for windows, linux, and OSX which would be good for comparing output files.. definitely worth looking into(and it is free!)

http://sourcegear.com/diffmerge/
[HTC Amaze 4G] crose948:
I got to thinking, after I and others installed the updated jellybean 7.0 rom, some of us said data did not work, we looked under settings, and nothing, the (turn on) was in the quick settings under the "pull down" notification box. So I'm wondering if, sense the phones / roms are stuck on the (turning on) stage of data if there is some string of words that need looked at, IE: if I want to look for the steering wheel of the car; I know to look in the LEFT drivers side door at the dash, BUT if we are (per-sa) looking for the steering wheel of a japan car and we keep looking in the LEFT door we will NEVER see the steering wheel, do to the fact it's on the RIGHT side of these cars. hope this makes some sense to you. as the code / string of commands might not be geting to the data modem all the way to turn it on all the way, sure it's in the same car, but on a different side. you, us, we, have to think (out-side the box)

---------- Post added at 11:21 AM ---------- Previous post was at 11:09 AM ----------

also, the sense 4 ported rom might have too many drivers / and or files and the phone just does not know which one to look at, IE: I was able to get data "highlighted" with the APN's without doing the pyramid string 0x1 mod, by just replacing or DELETING some files / modules.

or if you install 2 different apk's in the system/apps the phone would have a difficult time knowing which one to use, turn on or install while booting up there is a conflict of interest for the phone if you delete / rename one of those apk's / folders then the phone / build.prop knows what to look for.

IE: some files or folders don't show up on your computer with certain programs until you "tell the computer" to (*) look for ALL the files folders within a folder by just putting the * in the search box and hit enter.
[HTC Amaze 4G] crose948:
no, the only thing that gets under my skin is when someone thinks (there) mod or hack is the ONLY one that works. I was able to get the APN's on and highlighted "WITHOUT" the ext.jar mod. so I know for a fact there are other ways of doing things, IE: adding / deleting or overwriting files with other files. so 'we' have 2 ways of geting the same resault, and the other thing, you keep telling everyone else to do research and talk to others that have solved porting problems, well I say why can't you PM them and find more out. Theres a neighbor that always brags how smart / or good he is at things ,then when the " thing" breaks, his bragging bites him in the ass. He calls me to fix his S$%^t . but hey I dont want to make anyone mad.:p
[HTC Amaze 4G] EclipzeRemix:
There could be multiple ways too fix the data, but of course there is something holding it back
[HTC Amaze 4G] crose948:
and my hunch is it's a missing or extra file / folder that has to be added or deleted, as we seem to be able to get the highlighted APN settings with the 2 t-mobile apn's by 2 different ways , they just are not "seeing" the data modem, or allowing it to (hook) to the on status

like I posted before, I did not get the apn's to highlight till I deleted the 2 modules that began with the letter "L"

as in there are too many files / folders / setting for the sense 4 rom still in this rom, and could be something with the beats audio stuff, as the HTC one S has a "chip" on the mother board for beats, this phone does not.
[HTC Amaze 4G] crose948:
A thought just crossed my mind; I used to mess with and hack Nextel when they first came out and they had diff color sim cards, if you did not use the right sim card for the phone some features would not work.Not sure how we would check this other than seeing what the sim color and features are for the HTC one S.
[HTC Amaze 4G] PeartFan40:
Ok guys, I can see a potential flame war starting. You're all here for the same reason, so instead of debating about how things should be done, put your heads together and solve the problem as a team. Whatever you do, don't argue about it here please.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"If you choose not to decide, you still have made a choice"
[HTC Amaze 4G] KnowledgeBroker:
Nah, no worries. The point of the thread is simply to put some tools into the hands of users who may want to try to help current efforts.. All I intended was to give feedback.. most are communicating by PM.

Good to see you tho, haven't seen you post for a minute :laugh:
[HTC Amaze 4G] crose948:
OK, I just got done looking at the htc one s forum, could it be who ever ported this rom, "ported the wrong one" as there are 2 different OS's for the one s (s-3, s-4) and if you put the wrong one on the particular phone you have it WILL brick it , so there must be a substantial difference.

---------- Post added at 10:16 AM ---------- Previous post was at 09:50 AM ----------

Here is another thought, If most all the folders / files are the same phone to phone, why not get just the files folders for the sense 4 portion of the rom and put them in a 100% working amaze rom. seems we are taking the full sense 4 rom from the one s and then adding / replacing the folders and files for the amaze, basically don't replace the car just because the doors damaged.
[HTC Amaze 4G] blast0id:
not sure if this will help any of you budding devs/wannabe devs, but for those using windows...

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

been thinking about making one for smali/baksmali too... but not sure if anyone would use it... the last version (1.5) had over a thousand downloads... but I received very little thanks for it, and even fewer responses it seems... I guess most devs like the manual way... that's fine... the less typing the better as far as I'm concerned... lol...
[HTC Amaze 4G] KnowledgeBroker:
I prefer less typing personally.. but I think people should learn for themselves at some point also. If you had a mac version I'd definitely give it a spin ;)
[HTC Amaze 4G] blast0id:
is there a mac equivalent of windows batch scripts? something that supports drag and drop?
[HTC Amaze 4G] KnowledgeBroker:
I've always wondered if there was an easy way to do things.. typically if I open batch scripts and run the commands in terminal, they work just fine. I've done that with every batch script I've found in these forums.

But no, I've no clue if/how a batch file could be converted to work on a mac- I'll bet there's some app that I could install to run batch scripts in tho.. hmm.
[HTC Amaze 4G] riprowan:
I haven't had any problems just running Windows in Parallels. YMMV.
[HTC Amaze 4G] bos2333:
Anyone want to take a look at this thread?

http://xdaforums.com/showthread.php?t=1691017&page=33

and this change in the framework.jar... https://github.com/Quarx2k/android_frameworks_base/compare/7d118ac9b3...105d5d86e5

Looks like it helped with a very similar problem with the gsm defy, I just don't know how to actually apply the code change.
[HTC Amaze 4G] KnowledgeBroker:
bos2333 just sent me a message pointing out these two links(changes to framework.jar) that helped someone else with fixing their data..

https://github.com/Quarx2k/android_frameworks_base/compare/7d118ac9b3...105d5d86e5

Top Post: http://xdaforums.com/showthread.php?t=1691017&page=33[/QUOTE]

I'm not exactly sure yet what change we would have to make.. but the cm9 code for that file is this:

The next step would be to compare the file from our original framework.jar.. I have a feeling the codes toward the end may be wrong, just like they were in the ext.jar. Look at the change I made to the ext.jar here: http://xdaforums.com/showpost.php?p=25786037&postcount=13

If the same fix can be applied(because that is a flag that tells it what device we are using), then perhaps one of the last lines "const/4 v0, 0x0" should be changed to "const/4 v0, 0x1" and recompiled..

Not sure how that patch(in the first two links) can be applied, or if it would help.. At least we know for a fact that it was one of the things that broke data for someone else, so it could warrant a line by line comparison with our stock rom..

I would do a bit of work on it myself it I had time, but lately work+school has been kicking my ass, and today is my day to catch up on homework :( Good find by bos2333, and I'm glad someone else is working on finding answers, or even just good questions!

If someone can decompile the classes.dex in our framework.jar and compare that file with the one in our cm9(which I will attach, I had to add the .txt to upload), perhaps you will see some minor change that needs to be made, as this CERTAINLY has to do with data, and the symptoms seem to match..
[HTC Amaze 4G] KnowledgeBroker:
The last post detailed the file that gets CALLED on(I was thinking that that file may be the issue) by the file the first two links talk about.. if anyone wants to compare our stock rom's decompiled framework to these files that are pulled out of cm9, and do a line comparison.. or look into adding a hack like they did in the linked posts at the top of the last post, feel free.

The truth is, many of those files with gsm in the title are directly related to our data, and comparing those files between stock and cm9 may give us decent results.
[HTC Amaze 4G] bos2333:
Ok, so I compared this to stock and found that stock had accessFlags = 0x0, so I made that one change, recompiled and swapped out the framework.jar. It got all the way passed optimizing all the apps and then went into the bootloop. I'm going to attach the logcat if anyone wants to take a look.
[HTC Amaze 4G] KnowledgeBroker:
You may want to wipe data after each change.. you can always restore it later, but I see some apps in the log that wouldn't be there if you wiped ;)
[HTC Amaze 4G] bos2333:
Does wiping data matter with this kind of change?
[HTC Amaze 4G] KnowledgeBroker:
It potentially can, settings are stored in the /data partition.. oh, and make sure you use "adb logcat -b radio" when making logcat, so it only lists the relevant events/errors for data- much easier to read thru :)
[HTC Amaze 4G] bos2333:
Will do, I'll give it another shot with those tidbits
[HTC Amaze 4G] bos2333:
Ok so after trying with wiping data I got it to boot but couldn't even get through signing into google without tons of system ui and settings force closes...
[HTC Amaze 4G] bos2333:
Ok, so I've been messing around with the build.prop today and in a logcat I keep seeing this...

E/MobileDataStateTracker( 404): default: Ignoring feature request because could not acquire PhoneService

E/MobileDataStateTracker( 404): default: Could not enable APN type "default"

What could be causing this and where do we fix it?
[HTC Amaze 4G] :
Could this be the LTE setting? I'm suspicious of that one.

I looked at the ICS build.prop, and the LTE designations in that are different...
[HTC Amaze 4G] bos2333:
Hmm. I've been looking more into my logcat and found this too...

D/ConnectivityService( 404): handleInetConditionChange: no active default network - ignore

Could there be something wrong with our default network setting? And if so, how do we fix it?
[HTC Amaze 4G] dubt17:
Good idea! Delete all options that are under the radio type (*#*#4636#*#*) such as lte and it may fix itself.
[HTC Amaze 4G] Perry977:
Also...On the build.prop under the Ril properties there is a line that says telephony.lteongsmdevice=1 ...I haven't seen that line on sense roms
[HTC Amaze 4G] dubt17:
Kill it! Kill it with fire!
[HTC Amaze 4G] bos2333:
Yeah I noticed that too...I deleted it and it did nothing that I've noticed. Wanna look at the Wildfire S build.prop? There is a bunch of extra stuff in there, maybe some of it would help us but I'm just not familiar enough to know.
[HTC Amaze 4G] dubt17:
Found some LTE line in my sense based Rom... Not the same one
[HTC Amaze 4G] bos2333:
I'm assuming that it only calls upon it if it needs it, maybe so HTC and CM can change less code for each device?
[HTC Amaze 4G] dubt17:
Yea, I think.that's it. Here's a weird line... RIL dormancy?
[HTC Amaze 4G] Perry977:
Okay on these build.props did u see two line ro.ril.a52 and ro.ril.a53 ...those two means gprs encryption algorithm...idk if they r of any use
[HTC Amaze 4G] bos2333:
I see them in the Wildfire S but not in ours. Should I add them, and if so does it matter where?

Also, in the Wild and Sens I found this line...

rild.libpath=/system/lib/libhtc_ril.so

But in ours we have this...

rild.libpath=/system/lib/libril-qc-qmi-1.so

Does the first rely on a vendor ril where as ours relies on something else?
[HTC Amaze 4G] Perry977:
It wont hurt to try..go ahead and add those two lines..see what happens..i googled it..and its something about gprs algorithms..idk wtf its supposed to do but its related to gprs
[HTC Amaze 4G] bos2333:
Ok done, also, in the Wildfire and Sensation I found this line...

rild.libpath=/system/lib/libhtc_ril.so

But in ours we have this...

rild.libpath=/system/lib/libril-qc-qmi-1.so

Does the first rely on a vendor ril where as ours relies on something else?
[HTC Amaze 4G] Perry977:
hmm yeah i saw that....did you also notice on the wild build.prop.. on the additional properties.. they have ro.telephony.ril.v3=signalstrength, skipbrokendatacall mobile data, interfaces=rmnet0, rmnet1, rmnet2 blah blah
[HTC Amaze 4G] bos2333:
Yup, I noticed and added those too...I'm about to test another build.prop now

---------- Post added at 04:21 PM ---------- Previous post was at 04:18 PM ----------

Back with my first edit I posted in the other thread I also added the libhtc_ril.so to system/lib because our phone also does not have that. I don't think it did anything initially because it has to be called upon. When I changed the line that I mentioned to libhtc_ril.so I lost all gsm, so I switched it back.

---------- Post added at 04:26 PM ---------- Previous post was at 04:21 PM ----------

A couple days ago either Ziggy or Sports said they built the ril from source but were going to try and build it the other way...I'm wondering if a lot of these things would be included in a new build.
[HTC Amaze 4G] Perry977:
Yeah all these lines ur adding is leading to nowhere...because we dont have them rils maybe...idk lol these libs and rils are hurting my brain..my brain is optimized for forensic techniques lol
[HTC Amaze 4G] bos2333:
Ha yeah I hear ya, it hurts me because I dont actually know what Im doing. I did some research and those ro.ril.a52 and 53 are actually in the libhtc_ril.so, so yeah Im assuming they wouldnt work without that. The lines did nothing, but didn't hurt either...

---------- Post added at 04:43 PM ---------- Previous post was at 04:31 PM ----------

My uninformed gut is telling me that we need to use "rild.libpath=/system/lib/libhtc_ril.so" and "rilswitch.vendorlibpath=/system/lib/libhtc_ril.so" instead of "rild.libpath=/system/lib/libril-qc-qmi-1.so" and "ro.vendor.extension_library=/system/lib/libqc-opt.so" based on what I've been reading and seeing, both in researching RIL's and in comparing all the cm10's with working data.,,,but I could be very wrong.
[HTC Amaze 4G] Perry977:
But our rom dont seem to have libhtc_ril.so right?
[HTC Amaze 4G] bos2333:
Correct, not until I added it myself. But then after I did that and I switched it in the build.prop I lost GSM, so I'm sure something else, or lots of other things need to be changed as well.
[HTC Amaze 4G] Perry977:
Well then something needs to be done to the file to able to get it to work on our phone
[HTC Amaze 4G] EclipzeRemix:
you cant change those lines to find files that dont exist

also, the LTE for HTC is just the code name for our 4G, since they make similar things to actual 4glte HTC Devices, so anything LTE should not get in the way
[HTC Amaze 4G] bos2333:
That's what I've been figuring, that's why I added libhtc_ril.so to the system/lib before I changed it...I'm sure there's more than that that needs to be done, I just don't know what.
[HTC Amaze 4G] EclipzeRemix:
from what device did you take the ril from?
[HTC Amaze 4G] bos2333:
I've compared several, but the ones that have recently gotten data working are the cm10's from the wildfire S and Sensation, both of which use the htc one and it's counterparts.

---------- Post added at 05:25 PM ---------- Previous post was at 05:07 PM ----------

Misunderstood the question, I took it from our device, from energy rom.
[HTC Amaze 4G] EclipzeRemix:
We are getting help soon yay
[HTC Amaze 4G] bos2333:
I know I'm pumped. I'm still trying to get used to this miui and all the theming you can do...my **** looks weird!
[HTC Amaze 4G] azcledel:
I've been posting around trying to get some devs to help from other forums and one from YouTube said he would help for a 20 dollar donation
[HTC Amaze 4G] EclipzeRemix:
That's BS, that's not a donation that's a payment
[HTC Amaze 4G] KnowledgeBroker:
LOL. If people wanted to "donate" enough to where I can quit my job, I could make this a full time endeavor too.. but I'm pretty sure donations are supposed to be donations. Lol.
[HTC Amaze 4G] bos2333:
I would tell that guy that if he wants to come and help that's great, but nobody is going to pay him before he does anything. If he comes, helps, and gets stuff working, he will "make" way more than 20 bucks.