You don’t have to do a custom rom, but if you want all the jing apps gone you will need to.
- I do not know if removing these packages breaks anything, If it does then add them back in and recompile then flash your device. do at your own risk.
I was able to remove the Jing specific apps by editing the following file adding a “#” at the beginning.
source/device/sprd/roc1/ud710_2h10u/jingos/device.mk
PRODUCT_PACKAGES +=
.# JingOta
.# jl-install.sh
.# JingosLog
.# JingCenter
.# com.yozo.office
.# com.asa.jingnote
.# JingSettings
If anyone needs to change default to english. It can be done by editing the following lines.
persist.sys.language=en \
persist.sys.country=US
persist.sys.timezone=America/New_York
persist.sys.locale=en-US
ro.product.locale.language=en
ro.product.locale.region=US
How I removed the Jing Chinese specific apps, I added a “#” after the “+=”
source/device/sprd/roc1/ud710_2h10u/jingos/apps/preinstall/device.mk
PRODUCT_PACKAGES += #com.tencent.qqlivepad
PRODUCT_PACKAGES += #com.ss.android.article.news
PRODUCT_PACKAGES += #com.tencent.mm
source/device/sprd/roc1/ud710_2h10u/jingos/apps/postinstall/device.mk
PRODUCT_COPY_FILES += #device/sprd/roc1/ud710_2h10u/jingos/apps/postinstall/com.baidu.input.apk:system/jlpreinstall/app/com.baidu.input
PRODUCT_COPY_FILES += #device/sprd/roc1/ud710_2h10u/jingos/apps/postinstall/应用宝.apk:system/jlpreinstall/app/com.tencent.android.qqdownloader
The edit’s mentioned apear to be done in the following files.
source/bootable/recovery/install/install.cpp
//Commented_out_below
// return INSTALL_CORRUPT;
//Commented_out_above
}
bool is_ab = android::base::GetBoolProperty(“ro.build.ab_update”, false);
// Verifies against the metadata in the package first.
//Commented_out_below
/*
if (int check_status = is_ab ? CheckPackageMetadata(metadata, OtaType::AB) : >
check_status != 0) {
log_buffer->push_back(android::base::StringPrintf(“error: %d”, kUpdateBinar>
return check_status;
}
*/
//Commented_out_above
…
// Verify package.
ui->Print(“Verifying update package…\n”);
auto t0 = std::chrono::system_clock::now();
int err = verify_file(package, loaded_keys);
std::chrono::duration duration = std::chrono::system_clock::now() - t>
ui->Print(“Update package verification took %.1f s (result %d).\n”, duration.>
if (err != VERIFY_SUCCESS) {
LOG(ERROR) << “Signature verification failed”;
LOG(ERROR) << "error: " << kZipVerificationFailure;
//Commented_out_below
// return false;
//Commented_out_above
source/bootable/recovery/etc/init.rc
service recovery /system/bin/recovery
class recovery
socket recovery stream 422 system system
//Commented_out_edit_below
.# seclabel u:r:recovery:s0
seclabel u:r:su:s0
//Commented_out_edit_above
source/device/sprd/roc1/ud710_3h10u/BoardConfig.mk
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4169728000
source/packages/apps/JingSettings/res/values/arrays.xml
<string-array name="screen_timeout_entries">
<item>1500000 seconds</item>
<item>30 seconds</item>
<item>1 minute</item>
<item>2 minutes</item>
<item>5 minutes</item>
<item>10 minutes</item>
<item>30 minutes</item>
</string-array>
<!-- Do not translate. -->
<string-array name="screen_timeout_values" translatable="false">
<!-- Do not translate. -->
<item>1500000000</item>
source/packages/apps/JingSettings/res/values/jing_strings.xml
string name=“jing_os_version” translatable=“false”>JingOS 1.0
source/device/sprd/roc1/ud710_3h10u/ud710_3h10u_native.mk
#internal software version
SOFTWARE_INTERNAL_VERSION :=1.0.0002.013
Once I made these changes I used the following to create the .pac file.
cd source/vendor/sprd/release/IDH/Script
./build_pac.sh -a ud710_3h10u_native-userdebug-native -b all 2>&1 | tee build.log
or
./build_pac.sh -a ud710_3h10u_native-user-native -b all 2>&1 | tee build.log