yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] funky638:
Hi!

i have a problem with SIM card after installing kingo root apk trying to get phone rooted. i got phone rooted and then install twrp recovery.

now my phone doesn't detect SIM cards (i have dual model)

i tried both slots and nothing. also tried sim in other phone and it works ok.

i also flashed the phone through spFlashtool with backup file that i fund in this thread 1022(boot, system, recovery) and there were no changes. also upgraded to latest wersion and still cant find sim.

does enyone have any suggestions what to do?

Thanks,

p.s.: sorry for my bad english

Found out that my imei-s are mising. Tryed to change imei throught few programs and no luck.

Also if i'm correct i think my NVRAM is damaged. does anybody know if i can flash it throught SPFlashTool (the only program that works for me)?
[Upgrading, Modifying and Unlocking] LittleFire1980:
Hey!

Edit your scatterfile-entry NVRAM like this:

partition_name: NVRAM
file_name: NVRAM
is_download: true

Then you're able to flash it.

Greets
[Upgrading, Modifying and Unlocking] wiljak_hakker:
you got the pictures arrows wrong..!! first it asks if you agree to the license-agreement then you click the other button.. then you click no to update....*!! :D
[Upgrading, Modifying and Unlocking] Doggy77:
Sorry for this "dumb" question,but what are you refering to?

Greets, doggy77
[Upgrading, Modifying and Unlocking] Catterman:
I have a B15Q with SS 1.032 software. Phone is not rooted. Will the chinese link on page 8 still work on newer version.
[Upgrading, Modifying and Unlocking] ezantera:
Can you upload 22 to 32 version somewhere or pm? ?
[Upgrading, Modifying and Unlocking] hersche:
cm 13.01 on b15q works

I've posted that already in forum.cyanogenmod, may here are the people also interessted:

I've done some mods on a cm 13,0,1/android 6.0.1 from mtkroms.com, tested on a eu-variant of the phone.

It works pretty well since two days and withouth google-apps (dont want this) and i doesn't see bugs yet.

How i did the rom and my expiriences (and solutions) about common problems are descripted here:

http : //piratepad.net/ b15q

The file and also backup-files are here:

https : //drive. google.com/folderview?id=0ByDwEzL3kR7iaWJnb1d2dG9VZVk&usp=sharing

Please care about the piratepad-tutorial and use your own backup as possible and if needed.

Hope it will work for you...

+ this post since today:

hey people, since there are no replies to my little post, i'm not shure how much you're interessted in it.. anyway, i think this is the right place to put my first little changelog, which solves the stupid big resolution for that display. anyway, i just post, what i wrote already in piratepad.

--------------

V2 (11. Sept 16): Found out optimations in build.prob. New/changed values:

#ro.sf.lcd_density=320 # original-val from mtk-roms.com

ro.sf.lcd_density=233 # val for b15q

ro.sys.usb.charging.only=no

# USB BICR function, from cm it's yes, in stockrom it's no

ro.sys.usb.bicr=no

+ delete some unused files in zip (from work).

The first line (lcd_density) seems to be the most important to me, cause they restore original device-screen-resolution. On a installed cm, you basicly just could replace the lines in /system/build.prop .

--------------

There are at least spanish users, which translated my description. This is avaible @ http : // piratepad.net / b15q-esp :)

The upload will have v2 in the filename and will be uploaded these days on the same google-address..

Use-expiriences where good until now, good batterylive, wlan doesn't autoconnect, but find and connect problemless (may my usersetting anywhere..). bluetooth is fine. gsm (tel/sms/mobile data) may use a minute after restart to connect/detect, but worked then very good. camera did it. gps not really tested, mtp (file-transfer) works, but not good tested..

---------

hope you've phun with this ;)
[Upgrading, Modifying and Unlocking] Doggy77:
See PM.

Greets,

Doggy

---------- Post added at 07:09 AM ---------- Previous post was at 07:01 AM ----------

Thank you very much for this.I did not see it on the CM forums, could you provide a link?

Greets,

Doggy
[Upgrading, Modifying and Unlocking] hersche:
Hello doggy,

i just answered existing posts.. conrect, those:

https : //forum.cyanogenmod.org/topic/103297-cat-b15q/

https : // forum.cyanogenmod.org/topic/116972-can-i-download-cm-on-cat-b15q/

and also on my main-used-network, diaspora:

https : // nerdpol.ch/u/hersche

i post it that late here cause as a "beginner" it's for example forbidden to post links - exactly viewed, i posted stuff against the (forum)rules, but i think it's acceptable cause people could use it. when i should get banned, just repost it, when you're allowed to :p
[Upgrading, Modifying and Unlocking] ezantera:
Thanks, it really means alot. With this I will repair my messed up phone :D
[Upgrading, Modifying and Unlocking] bone101:
Can't install this zip...... TWRP error 7 ..... don't know what that means......

I'm on 032 version ROM location Austria......
[Upgrading, Modifying and Unlocking] hersche:
ok, good you post that.

personaly i reformated my whole phone, so maybe my partition-table has changed since that (and would do with my scatter-file on reformat).

so a file called cm-13.0.1-b15q-v2-originalPartitions.zip is on uploading right now and finishing soon, maybe this will work for you. feedback wellcome.

i do NOT recommend reformating! better try the other zip. and as wrote many times: don't forget the backup!! ;)

upload seems to have about 1h.

when you like to get the failure by yourself, you could do following:

- unzip the file

- edit META-INF/com/google/android/updater-script

--> look for the lines

mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system", "");

or /dev/block/mmcblk0p5 at all.

(it's /dev/block/mmcblk0p6 in my first images, 5 is original from mtk-roms).

to look, which partition is your system-partition, mount the system ("einbinden" with german), then go to advanced->terminal and type "mount". the last entry/line will tell you if it's 5,6 or even something else.

same thing but a bit less important is valid for /data which is /dev/block/mmcblk0p7 originaly (and new upload) and /dev/block/mmcblk0p8 in my image.

- in the end: go to the root of unzipped files, zip them again and flash this zip.

or maybe i'm totaly wrong and the download was wrong (unuseable zip,redownload), but i think error 7 was the formating-failure i've "corrected" :)
[Upgrading, Modifying and Unlocking] bone101:
I was looking to the updater script of v2.zip compared to the recovery log

Orginal system partition : dev/block/mmcblk0p6 as in v2.zip updater script

Orginal data partition : dev/block/mmcblk0p8, is also ok

Cache is 7

Info given by recovery.log

?????????????????

& THX for uploading & presenting your hard work , on cm rom and to get your cat back to live ...
[Upgrading, Modifying and Unlocking] hersche:
so it still didn't work?

mh, would format may system in twrp to ext4 as a idea?

is there any hint in what step it fails?

with

ui_print("step foo");

in the update-script, it's detectable where it fails exactly..

a important detail could be the twrp-recovery.. do you installed version 3? in the 2.7-series, there's a break, i think, it's about the metadata-stuff in the update-script.. the older version is not able to flash some kinds of newer androids..
[Upgrading, Modifying and Unlocking] bone101:
I've the twrp 3.022....

It print installing and then comes the error.....

---------- Post added at 08:51 AM ---------- Previous post was at 08:36 AM ----------

From recovery log: detected filesystem ext4 for /dev/block/mmcblk0p6detected filesystem ext4 for /dev/block/mmcblk0p6

about to run program [/tmp/install/bin/backuptool.sh] with 2 args

Not backing up files from incompatible version: 13.0

run_program: child exited with status 127

about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args

You have an installed system that isn't signed with this build's key, aborting...

run_program: child exited with status 124

script aborted: Can't install this package on top of incompatible data. Please try another package or run a factory reset

Can't install this package on top of incompatible data. Please try another package or run a factory reset

Prozess Updater endete mit FEHLER: 7

I:Legacy property environment disabled.

Fehler beim Installieren von ZIP '/external_sd/download/cm-13.0.1-b15q-v2.zip'

Partitions-Informationen werden aktualisiert..
[Upgrading, Modifying and Unlocking] Doggy77:
I have three questions regarding MTK Droid Tools / Scatter files:

The MTK Droid Tools 2.5.3 I found has inside the ADB 1.0.31, which does not detect the B15Q as ADB device.

On the same machine after "adb kill-server" exits the 1.0.31-adb I start the ADB 1.0.35 from a different folder and the device is recognized. => No problem with the device or the ADB drivers or the cable.

Where do i get a version of MTK Droid Tools with a correct ADB? Or how can I use MTK Droid tools with newer ADB?

My Goal is to get my own Scatter-File from my own device.

Is there any other way to get it (if possible rather on a linux device than a Windows machine) than using MTK Droid Tools?

An one generic question regarding scatter-files:

A Scatter file is (as I understand) some sort of "partition table" for the memory of the phone: where does each partition begin and where does it end.

Does this scatter change when (original OTA-)updates are installed (either minor updates 4.4.2 => 4.4.4 or main updates 4.4.4 => 5.0 if it would come one day)? Or does it stay the same all over the lifecycle of the device?

Greets,

Doggy77
[Upgrading, Modifying and Unlocking] bone101:
Is there a other way.....

Good question..... cat /proc/mtd do not work for me...
[Upgrading, Modifying and Unlocking] hersche:
Well:

You have an installed system that isn't signed with this build's key, aborting... <<<--- this is from otasigncheck-file

run_program: child exited with status 124 <<<---- back in updater-script-file, status 0 would be success, status 124 have to mean error

script aborted: Can't install this package on top of incompatible data. Please try another package or run a factory reset <<<--- detect of that.

the failure is descriped here, but as a problem of "assert" directly in script. instead, there's the otasigcheck.sh-file in install/bin/ .

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

i'm personaly not shure if the data-partition holds that or a system-format is needed as well

OR

i've did changes on system/build.prop, also on

ro.product.device and ro.build.product

it is absolutly possible that a preformat of system and data is a must, since this error say's it's the wrong system installed on it, not that's the wrong phone, as i understand it.

my setup was like:

kick cat phone-software complete

reinstall by reflash original partitions to phone

not shure if format system again in twrp, but at least data

twrp-flash cm.zip some times for tests and so on (flashing was working then)

so i just could ask: did you tried by backup (apps, contacts etc as well) and format the sys + data?

about the mtkdroid, sry, no idea, and also don't know if it could bring the pc into download mode..

the scatter-file "knows", where every partition is. in sp-flashtool this is needed to say: recovery/system/data image goes from address xxxx to address yyyyy (in storage, individual per partition/image). it's basicly needed for flashing everything in it's right place and predefines for example the order of partitions (as far i understand it, else please correct me).

i think they basicly stay over the whole lifecycle. at least it's not very personal so you just could use the one on the google-"repo". the personal stuff is nvram and maybe sec_ro and the other sec-partition..

i'm not shure how good cat would be able to change partitions via update (at least when userdata should stay).
[Upgrading, Modifying and Unlocking] jeagle24:
Thanks for posting this! Was very useful ... specifically directing me to look for SP Flash Tool...

In case anyone is lookign for it, check out:

hxxp://freeandroidroot.com/download-smart-phone-flash-tool-sp-flash-tool/
[Upgrading, Modifying and Unlocking] Doggy77:
I found out that the tool was last updates in 2013. The delevoper vanished, there is no source code available and it dies not recognize any Mediatek-chips MTK67.. and later.

German info: http://privatstrand.dirkschmidtke.d...atei-erzeugen-und-system-backup-durchfuehren/

Therefore bad luck for us.

This may be right. But there are (as far as I know from different forums about the B15Q) at least 3 different versions of the B15Q: SingleSim EMEA mostly sold in UK, but also seen in Germany, DualSim EMEA mostly sold in Germany, SingleSim AMER mostly sold in southern america, and I think there is also a DualSim APAC sold in Asia and Oceania. And if someone posts his files the correct hardware is mentioned seldomly.

This is the cause I want to create "my own scatter" to make sure it matches my version of device.

Besides this, I also own other Mediatek-based devices of different manufacturers and would like to begin to fondle with them too, but e.g. for the "ZTE KIS 2 MAX" there is no scatter found anywhere.

So if anyone could lead me to the (generic) creation of a scatter file for newer Mediatek phones I would be very thankful.

Here, my Sir, you are very right. :)

Best regards,

Doggy
[Upgrading, Modifying and Unlocking] hersche:
sir? ^^

eham, test the scatter-stuff with mtkdroid-tools with success..

use it under linux, starting windows xp in a virtual-box then and forward usb.. imei-recovery via indiviual nr definently work, as well as the scatter-part. result is here, if usefull, it should go to the repo..

also a virtualbox-image of the mtkdroid-tools-set (including driver etc) would be maybe nice?

did someone test current versions of reactos because of stability and may adb-possibilitys? would be nice to stay legal..

http://piratepad.net/b15q-scatter-android6

and to concretise my phone-type, it's EMEA with dualsim then..

did anyone tried to install the image with format the system first?

when this is a solution, i could finish search why it didn't work. would make sense cause the build-signature will be diffrent on stockrom and cm.. just not shure where it's stored (sys,data,both?)

Edit: just uploaded my used driver and mtkdroid under the windows-xp-folder. it's a while ago i did this and i saw that i've tried about 7 drivers, some of them are malware i think - so maybe this driver saves people's time and nerves..
[Upgrading, Modifying and Unlocking] bone101:
http://xdaforums.com/showthread.php?t=2540400

adb pull proc/dumchar_info

---------- Post added at 10:15 PM ---------- Previous post was at 09:37 PM ----------

I think it would work after wiping system partition....

But attention it would risk to loss recovery if something goes wrong
[Upgrading, Modifying and Unlocking] hersche:
Why should a format of system affect recovery? Would do that in twrp->wipe->advanced and select system there.

This should do mkfs.ext4 which does not play with partitions..

Or did i misunderstand something?
[Upgrading, Modifying and Unlocking] bone101:
Maybe i thougth this bevause in my defy there was no recovery if you wiped the system partition....

E.G. ... Rom works fine but no localisation Networ/GPS for me .....

Gapps gave me some problems but i installed them not before first use and w.o. any wipe

Back to stock...

Cheers
[Upgrading, Modifying and Unlocking] hersche:
Cool that it works basicly..

* gps is a issue i could definently confirm since today (tested with osmand and satstat, not 1 satelite)

* e-mail-app works for me with openmailbox - today i wasn't able to refresh once but it worked again after a while (autoreceived after while). But we could smash k9-mail as system/default-email-app instead?a Idea?

They've a stable, own base..

* gapps is something i will not test, but maybe there are better binarys? Source isn't avaible anyway.. But there are diffrent kinds of them. Gmx worked withoth gapps?

Personal, my only appstore is f-droid and davdroid does my cloud-sync-stuff to owncloud..

Will update the instructions for error 7 and mtk-droid soon..

Ah, when someone of you like to have access on the googledrive-repo, pm me..
[Upgrading, Modifying and Unlocking] bone101:
Full wipe was needed......

I also could not connect/login with xda dev app....

GMX mail was working until gapps installation.....

We need a dev who build cm from source !!!!!!!!!!!!!!!!
[Upgrading, Modifying and Unlocking] hersche:
Maybe the xda-dev-app works via playstore-engine? Smssecure was just like this.

I look further for the gps-issue. when you spend ajit (mtkdev) a phone, he may recompile it for b15q specific? Sadly nowhere found explainings how he compiled it..

All my apps im using are working fine so far.. I think i let it be when gps gets solved (also withouth compile). Hope the instructions helps you or others to port it a may more proper image out of existing ressources..

Edit:

Thanks to that link, gps-problem is maybe solved: https://github.com/crevetor/android_device_arale/commit/28ef82aa006dc6dd51055959016a1656bbd397fa

i have no idea about "android_device_arale" but line

/dev/gps(/.*)? u:object_r:gps_device:s0

in file_contexts (in our case in root-folder, both sys and zip) was not there - i put it inside and get "0/3" satelites, depending where i was it was changing - before it just switched just betwen "-" and "0/0" in satstat-app.

was not moving around a lot yet, hope the fix is about my current position and/or weather (rainy).. but will see that later

Edit 2: in adb logcat i become this messae:

[MNL2AGPS] sendto dest=[/data/agps_supl/mnl_to_agps] len=8 reason=[Connection refused]

Edit3:

09-17 16:51:43.621 240 240 D mnl_linux: read_prop: read_prop: open /data/misc/gps/mnl.prop fail!

09-17 16:51:43.622 240 240 D mnl_linux: read_prop: read_prop: open /sbin/mnl.prop fail!

+file_contexts is reseted after restart - so, "solution" is none. make the files avaible could may help.

idea of edit file_contexts (selinux in the end) would be like:

/dev/gps(/.*)? u:object_r:gps_device:s0

/data/agps_supl/mnl_to_agps	u:object_r:gps_socket:s0

/system/xbin/mnld u:object_r:tcp_socket:s0

Edit3End

sadly, i have no data-backup (stock), may someone have a clean version? would like to replace this file from stockrom. in case of mtk_agpsd, it seems to be the right edition to took the stock-binary, since it wouldn't found the sim-cards in logcat with cm-binary while it does this step with stock. in the zips, there is already the stock-binary, but i rechecked it today and it's may a good example..

btw, momentary idea of problems: hw-gps does work, agps did not. got no fix, but become details from work. withouth agps it could during may 5 minutes to a fix..
[Upgrading, Modifying and Unlocking] bone101:
Maybe its more easier to port this.... http://www.mtkroms.com/2016/08/aospa-paranoid-android-for-mt6582.html
[Upgrading, Modifying and Unlocking] hersche:
mmh, think they're similiar.. also in base, but it's a idea to port other roms as the taste of users is diffrent..

i'm further:

yesterday i've learned how to manipulate ramdisk of boot.img, what let me fix seLinux and with this: GPS! got about 5 fixes, but depend really on weather. but more later.
[Upgrading, Modifying and Unlocking] bone101:
Theres also a CM version aviable.... Selinux enable is top....

Is GPS working in .V3 ?
[Upgrading, Modifying and Unlocking] bone101:
Obsolete
[Upgrading, Modifying and Unlocking] hersche:
this is avaible in recover-folder.

https://drive.google.com/open?id=0ByDwEzL3kR7iUGM4SzEtcnBaMlE

v3 should work on gps. i've tried another file from stock there: /system/bin/gsm0710muxd

there's still the original-file as well, called gsm0710muxd_from_cm. by just renaming and restart you could change. stock-binary does a lot of debug, but not errors. cm-binary is very quite. it's difficult to say who works how well, if you want, help me testing :)

in a friend's case, sim-card is single times undetected and sometimes data-connection doesn't start, both on boot.

the detected provider was a little wrong from the beginning and we had to fill in apn-data. maybe works better when autodetect.

if it's started with success, it seems to be very stable, also when turning mobile data on/off. ATTENTION: airmode seems to be a connection-killer

i'm still interessted in this one:

https://www.dropbox.com/sh/ch3udwye...xUH0fxaWa?dl=0&preview=LT80-Kernel-GPL.tar.gz

(from disclaimer of cat, our kernel in source)

to do a change like this:

https://github.com/TheStrix/android...mmit/e3241bdf67bca32584931eee986498f085295dfc
[Upgrading, Modifying and Unlocking] bone101:
There permission problems for diverse folders under root folder ....

proc/asound/cards has error entry i can't change..... No permissions

Catlog :

09-22 20:37:46.366 E/KernelUidCpuTimeReader(1161): Failed to read uid_cputime: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)

09-22 21:33:27.289 E/LocationManagerCompat(9290): java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission.

---------- Post added at 09:34 PM ---------- Previous post was at 08:40 PM ----------

MTK stuff like engeneer mod do not work...

GPS do not work....

Cheers by testing v3 , gp services get closed horrible often when playstore app is open or in background playstore is workig .....

---------- Post added at 10:02 PM ---------- Previous post was at 09:34 PM ----------

You canHook in here if you do not have

: http://xdaforums.com/showthread.php?t=2274332&page=553
[Upgrading, Modifying and Unlocking] hersche:
09-22 20:37:46.366 E/KernelUidCpuTimeReader(1161): Failed to read uid_cputime: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)

this failure is the most nerving i know. this is what i meant with the kernel above and why i wrote the url with source for that. maybe we could integrate uid_cputime as module or static.

09-22 21:33:27.289 E/LocationManagerCompat(9290): java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission.

Do you rechecked here that your app have the access_location-permission set? when this is set for shure, it's may a failure in permission-xml-files.

mtk-engineermode: this never worked on my cm, so in the last cm i use, the apk is removed (as well as other mtk-apk's, eg bluetooth, but bluetooth works still well)

/proc is kind of "virtual folder" (don't know how to call it), like /dev.. as i've know /proc, it simply exists to provide information about hardware and system (like /proc/cpuinfo).

Where in the root-folder you found wrong permissions? there's stuff in kernel/boot.img done. when i "corrected" the wrong lines, i may destruct more in the kernel than i've did better.. until v2 it's simply a stock-kernel with cm-initramfs. just flash boot.img (in zip) via sp-flashtools to test..

for me, a lot of stuff is newland and both, stockrom and cm from mtkroms are closed. for a lot of stuff, this is kind of blackbox-testing.

atm i try to integrate microg a little. this is a google-free way for unified location provider, which supports gps. maybe the original gapps got more problems than microg, but i need more testing-time and it would need a little manual.

https://microg.org/

https://github.com/microg/android_packages_apps_UnifiedNlp/blob/master/README.md

another user in cyanogenmod-forum means, everything is working absolutly nice, except autodetecting of phone-nr of one sim-card (but it's still working, think, this info depends on provider).

what i've also learned these days:

the stockrom got no adb. because of this mtkdroid couldn't handle stock, but cyanogenmod.

so, beside we couldn't get a proper scatter-file from stock then (to stay original), we could do at least a IMEI-recovery in cyanogenmod..

if someone is able to do a proper scatter-file out of stock-data, that would be great. or also, how we could define a bigger data-partition...
[Upgrading, Modifying and Unlocking] bone101:
Best would be to get things compiled from source first !!!!!!